Skip to contentSkip to conversation

irqchip, gicv3-its: Add HiSilicon acpi based erratum data.

RFC In review Shameerali Kolothum Thodi 2 participants 2 messages Jan 24, 2017 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

RFC 4/4 irqchip, gicv3-its: Add HiSilicon acpi based erratum data.

This enables the acpi based workaround for HiSilicon erratum 161010801.

---
 drivers/irqchip/irq-gic-v3-its.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
drivers/irqchip/irq-gic-v3-its.c +4 -1
index 9fa12b7..d0f5099 100644
@@ -1868,7 +1868,10 @@ struct acpi_madt_its_quirks {
 
 /*Upadate as per the board OEM ID and TABLE ID*/
 struct acpi_madt_its_quirks acpi_its_quirks[] __initdata = {
-
+#ifdef CONFIG_HISILICON_ERRATUM_161010801
+	{"HISI  ", "HIP06   ", 0, 0, "hisilicon,erratum-161010801"},
+	{"HISI  ", "HIP07   ", 0, 0, "hisilicon,erratum-161010801"},
+#endif
 };
 
 static void acpi_its_enable_erratum(const char  *erratum)
Signature · 1 line
1.9.1
#2 lore raw
Quoted 12 lines · Shameerali Kolothum Thodi

This enables the acpi based workaround for HiSilicon erratum 161010801.

---
 drivers/irqchip/irq-gic-v3-its.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
drivers/irqchip/irq-gic-v3-its.c +0 -0
index 9fa12b7..d0f5099 100644

drivers/irqchip/irq-gic-v3-its.c struct acpi_madt_its_quirks { · line 1875

Quoted 9 lines
drivers/irqchip/irq-gic-v3-its.c +4 -1
@@ -1868,7 +1868,10 @@ struct acpi_madt_its_quirks {
 
 /*Upadate as per the board OEM ID and TABLE ID*/
 struct acpi_madt_its_quirks acpi_its_quirks[] __initdata = {
-
+#ifdef CONFIG_HISILICON_ERRATUM_161010801
+	{"HISI  ", "HIP06   ", 0, 0, "hisilicon,erratum-161010801"},
+	{"HISI  ", "HIP07   ", 0, 0, "hisilicon,erratum-161010801"},
+#endif
 };

Similarly to the arch timer patch, NAK to bodging ACPI match data to DT property names.

Thanks,
Mark.