diff options
author | Hanjun Guo <hanjun.guo@linaro.org> | 2015-03-24 10:02:44 -0400 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2015-03-25 07:49:31 -0400 |
commit | 4c1c8d7a7ebc8b909493a14b21b233e5377b69aa (patch) | |
tree | 9d7dd3dd654e51f38d1e7264542b26cd854350bb | |
parent | 7c59a3df15df29c8402a05b92385e83e55355778 (diff) |
ACPI / table: Print GIC information when MADT is parsed
When MADT is parsed, print GIC information as debug message:
ACPI: GICC (acpi_id[0x0000] address[00000000e112f000] MPIDR[0x0] enabled)
ACPI: GICC (acpi_id[0x0001] address[00000000e112f000] MPIDR[0x1] enabled)
...
ACPI: GICC (acpi_id[0x0201] address[00000000e112f000] MPIDR[0x201] enabled)
This debug information will be very helpful to bring up early systems to
see if acpi_id and MPIDR are matched or not as spec defined.
CC: Rafael J. Wysocki <rjw@rjwysocki.net>
Tested-by: Suravee Suthikulpanit <Suravee.Suthikulpanit@amd.com>
Tested-by: Yijing Wang <wangyijing@huawei.com>
Tested-by: Mark Langsdorf <mlangsdo@redhat.com>
Tested-by: Jon Masters <jcm@redhat.com>
Tested-by: Timur Tabi <timur@codeaurora.org>
Tested-by: Robert Richter <rrichter@cavium.com>
Acked-by: Robert Richter <rrichter@cavium.com>
Acked-by: Sudeep Holla <sudeep.holla@arm.com>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Acked-by: Grant Likely <grant.likely@linaro.org>
Signed-off-by: Hanjun Guo <hanjun.guo@linaro.org>
Signed-off-by: Tomasz Nowicki <tomasz.nowicki@linaro.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
-rw-r--r-- | drivers/acpi/tables.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/drivers/acpi/tables.c b/drivers/acpi/tables.c index f4e5b888b98e..2e19189da0ee 100644 --- a/drivers/acpi/tables.c +++ b/drivers/acpi/tables.c | |||
@@ -185,6 +185,28 @@ void acpi_table_print_madt_entry(struct acpi_subtable_header *header) | |||
185 | } | 185 | } |
186 | break; | 186 | break; |
187 | 187 | ||
188 | case ACPI_MADT_TYPE_GENERIC_INTERRUPT: | ||
189 | { | ||
190 | struct acpi_madt_generic_interrupt *p = | ||
191 | (struct acpi_madt_generic_interrupt *)header; | ||
192 | pr_debug("GICC (acpi_id[0x%04x] address[%llx] MPIDR[0x%llx] %s)\n", | ||
193 | p->uid, p->base_address, | ||
194 | p->arm_mpidr, | ||
195 | (p->flags & ACPI_MADT_ENABLED) ? "enabled" : "disabled"); | ||
196 | |||
197 | } | ||
198 | break; | ||
199 | |||
200 | case ACPI_MADT_TYPE_GENERIC_DISTRIBUTOR: | ||
201 | { | ||
202 | struct acpi_madt_generic_distributor *p = | ||
203 | (struct acpi_madt_generic_distributor *)header; | ||
204 | pr_debug("GIC Distributor (gic_id[0x%04x] address[%llx] gsi_base[%d])\n", | ||
205 | p->gic_id, p->base_address, | ||
206 | p->global_irq_base); | ||
207 | } | ||
208 | break; | ||
209 | |||
188 | default: | 210 | default: |
189 | pr_warn("Found unsupported MADT entry (type = 0x%x)\n", | 211 | pr_warn("Found unsupported MADT entry (type = 0x%x)\n", |
190 | header->type); | 212 | header->type); |