Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751525AbbLUOL6 (ORCPT ); Mon, 21 Dec 2015 09:11:58 -0500 Received: from mout.kundenserver.de ([212.227.126.187]:62997 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750914AbbLUOL4 (ORCPT ); Mon, 21 Dec 2015 09:11:56 -0500 From: Arnd Bergmann To: Gabriele Paoloni Subject: Re: [PATCH V2 22/23] pci, acpi: Match PCI config space accessors against platfrom specific quirks. Date: Mon, 21 Dec 2015 15:10:31 +0100 User-Agent: KMail/1.12.2 (Linux/3.19.0-27-generic; KDE/4.3.2; x86_64; ; ) Cc: Tomasz Nowicki , "bhelgaas@google.com" , "will.deacon@arm.com" , "catalin.marinas@arm.com" , "rjw@rjwysocki.net" , "hanjun.guo@linaro.org" , "Lorenzo.Pieralisi@arm.com" , "okaya@codeaurora.org" , "jiang.liu@linux.intel.com" , "Stefano.Stabellini@eu.citrix.com" , "robert.richter@caviumnetworks.com" , "mw@semihalf.com" , "Liviu.Dudau@arm.com" , "ddaney@caviumnetworks.com" , "tglx@linutronix.de" , Wangyijing , "Suravee.Suthikulpanit@amd.com" , "msalter@redhat.com" , "linux-pci@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-acpi@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linaro-acpi@lists.linaro.org" , "jchandra@broadcom.com" , "jcm@redhat.com" References: <1450278993-12664-1-git-send-email-tn@semihalf.com> <1450278993-12664-23-git-send-email-tn@semihalf.com> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201512211510.32029.arnd@arndb.de> X-Provags-ID: V03:K0:wa1KLNktn7t8GKKGNHkTop5ZAHg347NMHAAnBc+gYJsAEw5Sm5w 4v9ppzZfBuHEN8cZtl2eczs/rC8bmpYy3z9qtJfxVGBl/m53tO1vGavnhm7vSDkNLk82Rf4 dV3lBqlZ70cxVznHNagkt25kk4aJar+7SebkLymc+9zROyBcNrHvUDqNjg63kl2/rK2gO4v 91Gvv9kXBdi2sxhFCe2+A== X-UI-Out-Filterresults: notjunk:1;V01:K0:oFV4DBi0FLk=:9ihld9tyky5FaqEhc1yWjj +O1lPrfbBcFIE9WHSiSe9Om75tiNrgx5clWVZlRAZmSb6uxDffAkNs/FI392s0kSVfvErXoC5 cRq5OVJTaEuWaCd6AdExCEzV4x//+8GsFzV+X3B99w2BXaATIR1JkZSfF4JArNpsT+U4/mq5e COMpAmEdSsNKrhx8sdF3DGxJxuFjLrkFCySvltX5qrjiU2v0EejrnFIll5eBiFFXo0L6X5M6a CC9ujUxF1ZWfp2Y7uhrZYNtwRIS5FDNWOyL2N7sdGRXm0nY3OalH22AUA+zEAq/ob3KY2I3Va W5GarcdTw/NpSy8Dm4N2V+8k1VU+oCWSGa4N99/Du3H3/BGc7QgaL95b9NoViIyb6iTndXeDU jqcmCz3WIW7dcpPm87qbVBa/snkhcFEvyyDaM3iFVYJGxcTdUvSdhJDntI2jNi+TfmQ+S+0uY Mnp3nuJjpne4Cr8e/YUTEPlGixTid6dvuLMiJEOeHkUgJneUY/0TaO7J6BpWk8T/QlzjUOEzl IdyIQ8KjyTxwDaPVe/SzVEhSdVnp+1ELcADTH3uUk0hlqqFVrQu/YdUhYy7iMSvjfN4fiA5Lj 0lkyGVwvLXD1ggsJxqt2/+Y/T+c7lWwp3yhOCVTqf8GAB8PUj3VFYPu9RwgftGvt+9L5yQ2c/ bd2YBhRa0/iF5Q0SH6Ic/rlKvpgsjgEpJ39x5zhAAKKv7nbpj1h2Q8+L8Vxg0Ub2DNc2TByW1 ThcGf2jfvXFU25CH Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1644 Lines: 33 On Monday 21 December 2015, Gabriele Paoloni wrote: > > -----Original Message----- > > From: linux-kernel-owner@vger.kernel.org [mailto:linux-kernel- > > owner@vger.kernel.org] On Behalf Of Tomasz Nowicki > > Some platforms may not be fully compliant with generic set of PCI > > config accessors. For these cases we implement the way to overwrite > > accessors set before PCI buses enumeration. Algorithm that overwrite > > accessors matches against platform ID (DMI), domain and bus number, > > hopefully enough for all cases. All quirks can be defined using: > > DECLARE_ACPI_MCFG_FIXUP() and keep self contained. > > I've got a couple of comments/questions about this patch.. > > 1) So according to this mechanism quirks would be supported only by > vendors whose BIOS are SMBIOS compliant. Now personally I am ok > with this but I don't know if this is OK in general as it would > narrow down the number of platforms that would be able to define > the quirks... > Lorenzo, Arnd what is your opinion here? I'd rather not see the quirks in mainline at all, and only support SBSA compliant machines, or require the BIOS to work around the hardware quirks differently (e.g. by trapping config space access through secure firmware, or going through an AML method to be defined). I'm certainly ok with making it depend on SMBIOS if we are going to use something like this. Arnd -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/