Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1031340AbdIZSM1 (ORCPT ); Tue, 26 Sep 2017 14:12:27 -0400 Received: from [198.137.200.161] ([198.137.200.161]:58412 "EHLO denmail01.amcc.com" rhost-flags-FAIL-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1030942AbdIZSMZ (ORCPT ); Tue, 26 Sep 2017 14:12:25 -0400 X-Greylist: delayed 1335 seconds by postgrey-1.27 at vger.kernel.org; Tue, 26 Sep 2017 14:12:25 EDT From: Khuong Dinh To: lorenzo.pieralisi@arm.com, marc.zyngier@arm.com, msalter@redhat.com, bhelgaas@google.com, linux-pci@vger.kernel.org, jcm@redhat.com Cc: patches@apm.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, rjw@rjwysocki.net, Khuong Dinh Subject: [PATCH v4 pci 0/2] PCI/MSI: pci-xgene-msi: Enable MSI support in ACPI boot for X-Gene v1 Date: Tue, 26 Sep 2017 11:49:19 -0600 Message-Id: <1506448161-30961-1-git-send-email-kdinh@apm.com> X-Mailer: git-send-email 1.7.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1451 Lines: 36 This patch set enables ACPI MSI support for X-Gene PCIe v1 hardware and provides the proper MSI driver initialization ordering. Signed-off-by: Khuong Dinh --- v4: - Remove Marc Zyngier ACK in v2 - Use acpi_bus_scan on MSI controller handle when MSI device is found - Register ACPI MSI driver when MSI device is found instead of using subsys_initcall - Split ACPI MSI driver support into two patches - one to enable MSI support for X-Gene PCIe v1 hardware, one to enforce MSI driver loaded before PCIe controller driver in ACPI boot mode v3: - Input X-Gene MSI base address for irq_domain_alloc_fwnode - Add a hook to enforce X-Gene MSI be probed prior acpi_bus_scan happens v2: - Verify with BIOS version 3.06.25 and 3.07.09 v1: - Initial version --- Khuong Dinh (2): PCI/MSI: pci-xgene-msi: Enable MSI support in ACPI boot for X-Gene v1 PCI/MSI: Enforce MSI driver loaded before PCIe in ACPI boot drivers/acpi/Makefile | 2 +- drivers/acpi/acpi_msi.c | 86 ++++++++++++++++++++++++++++++++++++++ drivers/acpi/acpi_platform.c | 3 +- drivers/acpi/internal.h | 1 + drivers/acpi/scan.c | 1 + drivers/pci/host/pci-xgene-msi.c | 60 ++++++++++++++++++++++++-- include/linux/acpi_msi.h | 37 ++++++++++++++++ 7 files changed, 183 insertions(+), 7 deletions(-) create mode 100644 drivers/acpi/acpi_msi.c create mode 100644 include/linux/acpi_msi.h