Patchwork acpi: acpidump: Add stub for MPST

login
register
mail settings
Submitter Colin King
Date July 20, 2012, 6:30 p.m.
Message ID <1342809055-14962-1-git-send-email-colin.king@canonical.com>
Download mbox | patch
Permalink /patch/172323/
State Accepted
Headers show

Comments

Colin King - July 20, 2012, 6:30 p.m.
From: Colin Ian King <colin.king@canonical.com>

MPST is a non-trivial table and should be dumped out in an
annotated form at some point, however, there is no demand
for this at the moment so just add a place holder for this
table at the moment.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
---
 src/acpi/acpidump/acpidump.c |    2 ++
 1 file changed, 2 insertions(+)
Keng-Yu Lin - July 23, 2012, 6:14 a.m.
On Sat, Jul 21, 2012 at 2:30 AM, Colin King <colin.king@canonical.com> wrote:
> From: Colin Ian King <colin.king@canonical.com>
>
> MPST is a non-trivial table and should be dumped out in an
> annotated form at some point, however, there is no demand
> for this at the moment so just add a place holder for this
> table at the moment.
>
> Signed-off-by: Colin Ian King <colin.king@canonical.com>
> ---
>  src/acpi/acpidump/acpidump.c |    2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/src/acpi/acpidump/acpidump.c b/src/acpi/acpidump/acpidump.c
> index 9b65703..636631a 100644
> --- a/src/acpi/acpidump/acpidump.c
> +++ b/src/acpi/acpidump/acpidump.c
> @@ -1603,6 +1603,7 @@ typedef struct {
>  #define acpidump_einj          acpi_dump_raw_table
>  #define acpidump_hest          acpi_dump_raw_table
>  #define acpidump_msct          acpi_dump_raw_table
> +#define acpidump_mpst          acpi_dump_raw_table
>
>  static acpidump_table_vec table_vec[] = {
>         { "APIC",       acpidump_madt,  1 },
> @@ -1623,6 +1624,7 @@ static acpidump_table_vec table_vec[] = {
>         { "HEST",       acpidump_hest,  1 },
>         { "HPET",       acpidump_hpet,  1 },
>         { "MCFG",       acpidump_mcfg,  1 },
> +       { "MPST",       acpidump_mpst,  1 },
>         { "MSCT",       acpidump_msct,  1 },
>         { "PSDT",       acpidump_amlcode, 1 },
>         { "RASF",       acpidump_rasf,  1 },
> --
> 1.7.10.4
>
Acked-by: Keng-Yu Lin <kengyu@canonical.com>
Ivan Hu - July 24, 2012, 8:17 a.m.
On 07/21/2012 02:30 AM, Colin King wrote:
> From: Colin Ian King <colin.king@canonical.com>
>
> MPST is a non-trivial table and should be dumped out in an
> annotated form at some point, however, there is no demand
> for this at the moment so just add a place holder for this
> table at the moment.
>
> Signed-off-by: Colin Ian King <colin.king@canonical.com>
> ---
>   src/acpi/acpidump/acpidump.c |    2 ++
>   1 file changed, 2 insertions(+)
>
> diff --git a/src/acpi/acpidump/acpidump.c b/src/acpi/acpidump/acpidump.c
> index 9b65703..636631a 100644
> --- a/src/acpi/acpidump/acpidump.c
> +++ b/src/acpi/acpidump/acpidump.c
> @@ -1603,6 +1603,7 @@ typedef struct {
>   #define acpidump_einj		acpi_dump_raw_table
>   #define acpidump_hest		acpi_dump_raw_table
>   #define acpidump_msct		acpi_dump_raw_table
> +#define acpidump_mpst		acpi_dump_raw_table
>
>   static acpidump_table_vec table_vec[] = {
>   	{ "APIC", 	acpidump_madt, 	1 },
> @@ -1623,6 +1624,7 @@ static acpidump_table_vec table_vec[] = {
>   	{ "HEST", 	acpidump_hest, 	1 },
>   	{ "HPET", 	acpidump_hpet, 	1 },
>   	{ "MCFG", 	acpidump_mcfg, 	1 },
> +	{ "MPST",	acpidump_mpst,  1 },
>   	{ "MSCT", 	acpidump_msct, 	1 },
>   	{ "PSDT", 	acpidump_amlcode, 1 },
>   	{ "RASF",	acpidump_rasf,	1 },
>

Acked-by: Ivan Hu <ivan.hu@canonical.com>

Patch

diff --git a/src/acpi/acpidump/acpidump.c b/src/acpi/acpidump/acpidump.c
index 9b65703..636631a 100644
--- a/src/acpi/acpidump/acpidump.c
+++ b/src/acpi/acpidump/acpidump.c
@@ -1603,6 +1603,7 @@  typedef struct {
 #define acpidump_einj		acpi_dump_raw_table
 #define acpidump_hest		acpi_dump_raw_table
 #define acpidump_msct		acpi_dump_raw_table
+#define acpidump_mpst		acpi_dump_raw_table
 
 static acpidump_table_vec table_vec[] = {
 	{ "APIC", 	acpidump_madt, 	1 },
@@ -1623,6 +1624,7 @@  static acpidump_table_vec table_vec[] = {
 	{ "HEST", 	acpidump_hest, 	1 },
 	{ "HPET", 	acpidump_hpet, 	1 },
 	{ "MCFG", 	acpidump_mcfg, 	1 },
+	{ "MPST",	acpidump_mpst,  1 },
 	{ "MSCT", 	acpidump_msct, 	1 },
 	{ "PSDT", 	acpidump_amlcode, 1 },
 	{ "RASF",	acpidump_rasf,	1 },