Re: [PATCH v7 09/17] ACPI / table: Print GIC information when MADT is parsed

2015-01-15 Thread Mark Langsdorf

On 01/14/2015 09:04 AM, Hanjun Guo wrote:

When MADT is parsed, print GIC information to make the boot
log look pretty:

ACPI: GICC (acpi_id[0x] address[e112f000] MPIDR[0x0] enabled)
ACPI: GICC (acpi_id[0x0001] address[e112f000] MPIDR[0x1] enabled)
...
ACPI: GICC (acpi_id[0x0201] address[e112f000] MPIDR[0x201] enabled)

These information will be very helpful to bring up early systems to
see if acpi_id and MPIDR are matched or not as spec defined.

Tested-by: Suravee Suthikulpanit 
Tested-by: Yijing Wang 
Signed-off-by: Hanjun Guo 
Signed-off-by: Tomasz Nowicki 
---

Tested-by: Mark Langsdorf 
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH v7 09/17] ACPI / table: Print GIC information when MADT is parsed

2015-01-15 Thread Mark Langsdorf

On 01/14/2015 09:04 AM, Hanjun Guo wrote:

When MADT is parsed, print GIC information to make the boot
log look pretty:

ACPI: GICC (acpi_id[0x] address[e112f000] MPIDR[0x0] enabled)
ACPI: GICC (acpi_id[0x0001] address[e112f000] MPIDR[0x1] enabled)
...
ACPI: GICC (acpi_id[0x0201] address[e112f000] MPIDR[0x201] enabled)

These information will be very helpful to bring up early systems to
see if acpi_id and MPIDR are matched or not as spec defined.

Tested-by: Suravee Suthikulpanit suravee.suthikulpa...@amd.com
Tested-by: Yijing Wang wangyij...@huawei.com
Signed-off-by: Hanjun Guo hanjun@linaro.org
Signed-off-by: Tomasz Nowicki tomasz.nowi...@linaro.org
---

Tested-by: Mark Langsdorf mlang...@redhat.com
--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[PATCH v7 09/17] ACPI / table: Print GIC information when MADT is parsed

2015-01-14 Thread Hanjun Guo
When MADT is parsed, print GIC information to make the boot
log look pretty:

ACPI: GICC (acpi_id[0x] address[e112f000] MPIDR[0x0] enabled)
ACPI: GICC (acpi_id[0x0001] address[e112f000] MPIDR[0x1] enabled)
...
ACPI: GICC (acpi_id[0x0201] address[e112f000] MPIDR[0x201] enabled)

These information will be very helpful to bring up early systems to
see if acpi_id and MPIDR are matched or not as spec defined.

Tested-by: Suravee Suthikulpanit 
Tested-by: Yijing Wang 
Signed-off-by: Hanjun Guo 
Signed-off-by: Tomasz Nowicki 
---
 drivers/acpi/tables.c | 43 +++
 1 file changed, 43 insertions(+)

diff --git a/drivers/acpi/tables.c b/drivers/acpi/tables.c
index 93b8152..42d314f 100644
--- a/drivers/acpi/tables.c
+++ b/drivers/acpi/tables.c
@@ -183,6 +183,49 @@ void acpi_table_print_madt_entry(struct 
acpi_subtable_header *header)
}
break;
 
+   case ACPI_MADT_TYPE_GENERIC_INTERRUPT:
+   {
+   struct acpi_madt_generic_interrupt *p =
+   (struct acpi_madt_generic_interrupt *)header;
+   pr_info("GICC (acpi_id[0x%04x] address[%p] 
MPIDR[0x%llx] %s)\n",
+   p->uid, (void *)(unsigned long)p->base_address,
+   p->arm_mpidr,
+   (p->flags & ACPI_MADT_ENABLED) ? "enabled" : 
"disabled");
+
+   }
+   break;
+
+   case ACPI_MADT_TYPE_GENERIC_DISTRIBUTOR:
+   {
+   struct acpi_madt_generic_distributor *p =
+   (struct acpi_madt_generic_distributor *)header;
+   pr_info("GIC Distributor (gic_id[0x%04x] address[%p] 
gsi_base[%d])\n",
+   p->gic_id,
+   (void *)(unsigned long)p->base_address,
+   p->global_irq_base);
+   }
+   break;
+
+   case ACPI_MADT_TYPE_GENERIC_MSI_FRAME:
+   {
+   struct acpi_madt_generic_msi_frame *p =
+   (struct acpi_madt_generic_msi_frame *)header;
+   pr_info("GIC MSI Frame (msi_fame_id[%d] address[%p])\n",
+   p->msi_frame_id,
+   (void *)(unsigned long)p->base_address);
+   }
+   break;
+
+   case ACPI_MADT_TYPE_GENERIC_REDISTRIBUTOR:
+   {
+   struct acpi_madt_generic_redistributor *p =
+   (struct acpi_madt_generic_redistributor 
*)header;
+   pr_info("GIC Redistributor (address[%p] 
region_size[0x%x])\n",
+   (void *)(unsigned long)p->base_address,
+   p->length);
+   }
+   break;
+
default:
pr_warn("Found unsupported MADT entry (type = 0x%x)\n",
header->type);
-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[PATCH v7 09/17] ACPI / table: Print GIC information when MADT is parsed

2015-01-14 Thread Hanjun Guo
When MADT is parsed, print GIC information to make the boot
log look pretty:

ACPI: GICC (acpi_id[0x] address[e112f000] MPIDR[0x0] enabled)
ACPI: GICC (acpi_id[0x0001] address[e112f000] MPIDR[0x1] enabled)
...
ACPI: GICC (acpi_id[0x0201] address[e112f000] MPIDR[0x201] enabled)

These information will be very helpful to bring up early systems to
see if acpi_id and MPIDR are matched or not as spec defined.

Tested-by: Suravee Suthikulpanit suravee.suthikulpa...@amd.com
Tested-by: Yijing Wang wangyij...@huawei.com
Signed-off-by: Hanjun Guo hanjun@linaro.org
Signed-off-by: Tomasz Nowicki tomasz.nowi...@linaro.org
---
 drivers/acpi/tables.c | 43 +++
 1 file changed, 43 insertions(+)

diff --git a/drivers/acpi/tables.c b/drivers/acpi/tables.c
index 93b8152..42d314f 100644
--- a/drivers/acpi/tables.c
+++ b/drivers/acpi/tables.c
@@ -183,6 +183,49 @@ void acpi_table_print_madt_entry(struct 
acpi_subtable_header *header)
}
break;
 
+   case ACPI_MADT_TYPE_GENERIC_INTERRUPT:
+   {
+   struct acpi_madt_generic_interrupt *p =
+   (struct acpi_madt_generic_interrupt *)header;
+   pr_info(GICC (acpi_id[0x%04x] address[%p] 
MPIDR[0x%llx] %s)\n,
+   p-uid, (void *)(unsigned long)p-base_address,
+   p-arm_mpidr,
+   (p-flags  ACPI_MADT_ENABLED) ? enabled : 
disabled);
+
+   }
+   break;
+
+   case ACPI_MADT_TYPE_GENERIC_DISTRIBUTOR:
+   {
+   struct acpi_madt_generic_distributor *p =
+   (struct acpi_madt_generic_distributor *)header;
+   pr_info(GIC Distributor (gic_id[0x%04x] address[%p] 
gsi_base[%d])\n,
+   p-gic_id,
+   (void *)(unsigned long)p-base_address,
+   p-global_irq_base);
+   }
+   break;
+
+   case ACPI_MADT_TYPE_GENERIC_MSI_FRAME:
+   {
+   struct acpi_madt_generic_msi_frame *p =
+   (struct acpi_madt_generic_msi_frame *)header;
+   pr_info(GIC MSI Frame (msi_fame_id[%d] address[%p])\n,
+   p-msi_frame_id,
+   (void *)(unsigned long)p-base_address);
+   }
+   break;
+
+   case ACPI_MADT_TYPE_GENERIC_REDISTRIBUTOR:
+   {
+   struct acpi_madt_generic_redistributor *p =
+   (struct acpi_madt_generic_redistributor 
*)header;
+   pr_info(GIC Redistributor (address[%p] 
region_size[0x%x])\n,
+   (void *)(unsigned long)p-base_address,
+   p-length);
+   }
+   break;
+
default:
pr_warn(Found unsupported MADT entry (type = 0x%x)\n,
header-type);
-- 
1.9.1

--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/