Thread (17 messages) 17 messages, 3 authors, 2015-07-20

[PATCH v3 2/8] ACPI / irqchip: Add self-probe infrastructure to initialize IRQ controller

From: Hanjun Guo <hidden>
Date: 2015-07-20 09:32:33
Also in: linux-acpi, lkml

On 07/18/2015 07:15 AM, Timur Tabi wrote:
On Fri, Jul 10, 2015 at 5:45 AM, Hanjun Guo [off-list ref] wrote:
quoted
+void __init acpi_irqchip_init(void)
+{
+       struct acpi_table_id *id;
+
+       if (acpi_disabled)
+               return;
+
+       if (acpi_gic_version_init())
+               return;
+
+       /* scan the irqchip table to match the GIC version and its driver */
+       for (id = __irqchip_acpi_table; id->id[0]; id++) {
+               if (gic_version == (u8)id->driver_data)
+                       acpi_table_parse(id->id,
+                                        (acpi_tbl_table_handler)id->handler);
+       }
Should we display an error message if we don't find a matching table?
That can happen if the ACPI tables shows a GIC version number that is
not listed in __irqchip_acpi_table[]?
Hmm, did you get the error message like: "Invalid GIC version 5 in
MADT"? or just use ACPI_MADT_GIC_VERSION_V1 as the gic_version? if
the later one, it will show everything is fine, but failed to probe
the GIC.

I agree with you that we need to print some error message here,
I will update my patch.

Thanks
Hanjun
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help