Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4294285ybl; Mon, 9 Dec 2019 08:28:44 -0800 (PST) X-Google-Smtp-Source: APXvYqyl6zXOM9o4tkrFCDGK5Y1Fzi9b6BAviuEk8iUV5R8O7MJOkCHwMYMXCYD1abN36wcBj9Bo X-Received: by 2002:aca:d6d2:: with SMTP id n201mr26007751oig.112.1575908924321; Mon, 09 Dec 2019 08:28:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575908924; cv=none; d=google.com; s=arc-20160816; b=oUqf4v6wLv1tDEHk6IU3lFI9tgmtbNdTHMLJncAxVNaPWWrY2L8gJSKnXVUXNXgZyc tAlvx6akn/nattvj+2/Mojmj7qeBkFzhd6tP5ECW6Hy4s+6Q+srdbzH8PF2MCv3lpS+b /dhEO4fyiivQPw2rGn+PPZuwM+sK9td2RxWUx8zs9BStfaHyWIQIgybJfQngG1l9dveU fd6V8S2iqbjC3ePHVenANfAZcbqVACmXOUae+g0HhiRF+Ov58u1zL9A68wh9kvaL62R6 ix+hLCcrBzzalkVtCWOKPfUxxoSeX5enq5crHnsxEWKXtLnnbIiTm8qWMAmhH0Og/TWq KmnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=D61H0HawueNqkoqqiak5bAHJxWYKgI7nCrmUWpnImU8=; b=hjqDwvP8a+p5VthpanOqbVcdYyDA+40pGXJZYlRDAL0fwrPPOFk3iKju/5ciYBFwGk nzHKeERNgcSt51zmj0rLiFrjXBrnHMKcMm3tyLTjXGlFDuQfM9CBcN3gOKwXOvFrT5YU Bn1qcMiaQOE+KP/MIIYBjSkvKY/WLmqWVCxi6Mi+2kEHw9x4qmfMv1JURZCjg+axl2jU CkoYsooD+QFIdYH+kx0lWjIvK3gfARxT29ErGX5HUcDm9fzL5/9AF2w/he/4lM+2NKIU NcD9WzP5pDsr8bvtl64uLD34Kf76YiaiOBc777Qhb+LpQgM0FpViBH3R/8ke4s66dnfG Krlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=zOU+VVGK; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t23si47993otp.234.2019.12.09.08.28.33; Mon, 09 Dec 2019 08:28:44 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=zOU+VVGK; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726816AbfLIQ0w (ORCPT + 99 others); Mon, 9 Dec 2019 11:26:52 -0500 Received: from mail.kernel.org ([198.145.29.99]:32818 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726477AbfLIQ0w (ORCPT ); Mon, 9 Dec 2019 11:26:52 -0500 Received: from willie-the-truck (236.31.169.217.in-addr.arpa [217.169.31.236]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 839772080D; Mon, 9 Dec 2019 16:26:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1575908811; bh=XmMuS1tdYvjAP/dOf3MN6vwqugHg0P62ECl8srBnh14=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=zOU+VVGKwRrsQ0D+daeQ+x/xsP+ATGq5Wl9RqLMP25OEiY225038UWy37UJhw427c daPKborkT9vmKrlKEnjdHU05mgGRcG8eVRcpb/wMvX8g9vmrQcTXv0EFF7BeKw12Kf l0lhHe8IOzGxUjarOFoGOoeadP8wDld7a054/8Sc= Date: Mon, 9 Dec 2019 16:26:46 +0000 From: Will Deacon To: Andre Przywara Cc: Bjorn Helgaas , Lorenzo Pieralisi , Andrew Murray , "Rafael J . Wysocki" , Len Brown , Catalin Marinas , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, linux-acpi@vger.kernel.org Subject: Re: [PATCH] pcie: Add quirk for the Arm Neoverse N1SDP platform Message-ID: <20191209162645.GA7489@willie-the-truck> References: <20191209160638.141431-1-andre.przywara@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191209160638.141431-1-andre.przywara@arm.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Dec 09, 2019 at 04:06:38PM +0000, Andre Przywara wrote: > From: Deepak Pandey > > The Arm N1SDP SoC suffers from some PCIe integration issues, most > prominently config space accesses to not existing BDFs being answered > with a bus abort, resulting in an SError. "Do as I say, not as I do"? > To mitigate this, the firmware scans the bus before boot (catching the > SErrors) and creates a table with valid BDFs, which acts as a filter for > Linux' config space accesses. > > Add code consulting the table as an ACPI PCIe quirk, also register the > corresponding device tree based description of the host controller. > Also fix the other two minor issues on the way, namely not being fully > ECAM compliant and config space accesses being restricted to 32-bit > accesses only. > > This allows the Arm Neoverse N1SDP board to boot Linux without crashing > and to access *any* devices (there are no platform devices except UART). > > Signed-off-by: Deepak Pandey > [Sudipto: extend to cover the CCIX root port as well] > Signed-off-by: Sudipto Paul > [Andre: fix coding style issues, rewrite some parts, add DT support] > Signed-off-by: Andre Przywara > --- > arch/arm64/configs/defconfig | 1 + > drivers/acpi/pci_mcfg.c | 7 + > drivers/pci/controller/Kconfig | 11 ++ > drivers/pci/controller/Makefile | 1 + > drivers/pci/controller/pcie-n1sdp.c | 196 ++++++++++++++++++++++++++++ > include/linux/pci-ecam.h | 2 + > 6 files changed, 218 insertions(+) > create mode 100644 drivers/pci/controller/pcie-n1sdp.c Where can I buy one of these? They're "unreleased" according to: https://community.arm.com/developer/tools-software/oss-platforms/w/docs/440/neoverse-n1-sdp and I don't think we should wreck upstream because of a platform that doesn't exist. Will