On 07/17/2015 05:21 AM, Al Stone wrote:
On 06/16/2015 07:09 AM, Hanjun Guo wrote:
Parse ITS entries in MADT table to probe ITS
Signed-off-by: Hanjun Guo hanjun.guo@linaro.org
drivers/irqchip/irq-gic-v3-its.c | 54 +++++++++++++++++++++++++++++++++++++--- 1 file changed, 50 insertions(+), 4 deletions(-)
diff --git a/drivers/irqchip/irq-gic-v3-its.c b/drivers/irqchip/irq-gic-v3-its.c index c3652cd..fa2e828 100644 --- a/drivers/irqchip/irq-gic-v3-its.c +++ b/drivers/irqchip/irq-gic-v3-its.c @@ -15,6 +15,7 @@
- along with this program. If not, see http://www.gnu.org/licenses/.
*/
+#include <linux/acpi.h> #include <linux/bitmap.h> #include <linux/cpu.h> #include <linux/delay.h> @@ -1567,6 +1568,47 @@ int its_cpu_init(void) return 0; }
+#ifdef CONFIG_ACPI +static struct irq_domain *its_parent __initdata;
+static int __init +gic_acpi_parse_madt_its(struct acpi_subtable_header *header,
const unsigned long end)
+{
- struct acpi_madt_generic_translator *its_entry;
- struct its_node *its;
- if (BAD_MADT_ENTRY(header, end))
return -EINVAL;
Off topic a bit....
I'm hoping to get rid of BAD_MADT_ENTRY (see the posted RFC) because of this usage -- every routine that traverses the MADT entries has to insert this instead of having it done once.
ok, I will review your patchset :)
Thanks Hanjun