Return-Path: Received: from foss.arm.com ([217.140.101.70]:36364 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726875AbeHHL5W (ORCPT ); Wed, 8 Aug 2018 07:57:22 -0400 Date: Wed, 8 Aug 2018 10:38:22 +0100 From: Lorenzo Pieralisi To: Ray Jui Cc: Bjorn Helgaas , linux-pci@vger.kernel.org, Tomasz Nowicki , Vladimir Olovyannikov , BCM Kernel Feedback Subject: Re: [RFC] ARM64, PCIe, annd ACPI Message-ID: <20180808093822.GA25150@e107981-ln.cambridge.arm.com> References: <89484aa0-08c4-0cff-500d-407d21e2f5fd@broadcom.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <89484aa0-08c4-0cff-500d-407d21e2f5fd@broadcom.com> Sender: linux-pci-owner@vger.kernel.org List-ID: On Tue, Aug 07, 2018 at 05:10:15PM -0700, Ray Jui wrote: > Hi Lorenzo/Bjorn, > > I have a question on PCIe controller APCI support on ARM64 based systems. > > If my understanding of the implementation of "pci_acpi_scan_root" under > "arch/arm64/kernel/pci.c" is correct, it appears > "pci_acpi_setup_ecam_mapping" is called within "pci_acpi_scan_root". > > Does that mean for a PCIe host controller on ARM64 to support ACPI, it needs > to support ECAM and MMIO based access to the configuration space registers? > > If the above statement is true, does it imply that any PCIe controller on > ARM64 that does not support MMIO based access to the config space register > cannot have ACPI support? Yes and it is not just MMIO, config space must be ECAM compliant as described in the PCI firmware specification and enforced here: http://infocenter.arm.com/help/topic/com.arm.doc.den0029b/Server_Base_System_Architecture_v5_0_ARM_DEN_0029B.pdf In short: what's in the mainline (+ adequate PCI controller firmware configuration) must be sufficient to bootstrap your PCI subsystem in ACPI, it is a very simple litmus test and we won't add anything that deviates from that to the mainline kernel ARM64 ACPI PCI code support. Thanks, Lorenzo