From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 49E7BC433E6 for ; Thu, 21 Jan 2021 04:24:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 08D5E238E5 for ; Thu, 21 Jan 2021 04:24:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732227AbhAUEX7 (ORCPT ); Wed, 20 Jan 2021 23:23:59 -0500 Received: from foss.arm.com ([217.140.110.172]:45082 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732063AbhAUESS (ORCPT ); Wed, 20 Jan 2021 23:18:18 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 9D15414FF; Wed, 20 Jan 2021 20:17:31 -0800 (PST) Received: from mammon-tx2.austin.arm.com (mammon-tx2.austin.arm.com [10.118.28.62]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 8B4063F719; Wed, 20 Jan 2021 20:17:31 -0800 (PST) From: Jeremy Linton To: linux-arm-kernel@lists.infradead.org Cc: catalin.marinas@arm.com, will@kernel.org, mark.rutland@arm.com, lorenzo.pieralisi@arm.com, sudeep.holla@arm.com, bhelgaas@google.com, robh@kernel.org, vidyas@nvidia.com, linux-kernel@vger.kernel.org, Jeremy Linton Subject: [PATCH v3 0/1] arm64: PCI SMC config conduit Date: Wed, 20 Jan 2021 22:17:28 -0600 Message-Id: <20210121041729.1858499-1-jeremy.linton@arm.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This set provides a platform standardized way to access PCI config space. It does that via an Arm specific interface exported by the firmware. The Arm specification this is based on can be found here: The Arm PCI Configuration Space Access Firmware Interface https://developer.arm.com/documentation/den0115/latest v2->v3: Convert from SMC only calls to arm_smccc_1_1_invoke() for better conformance with the specification. v1->v2: Add SMC_PCI_FEATURES calls to verify _READ, _WRITE and _SEG_INFO functions exist. Add a _SEG_INFO bus start, end validation against the ACPI table. Adjust some function naming, and log messages. Jeremy Linton (1): arm64: PCI: Enable SMC conduit arch/arm64/kernel/pci.c | 111 ++++++++++++++++++++++++++++++++++++++ include/linux/arm-smccc.h | 29 ++++++++++ 2 files changed, 140 insertions(+) -- 2.26.2 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 54A41C433DB for ; Thu, 21 Jan 2021 04:19:33 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E167020637 for ; Thu, 21 Jan 2021 04:19:32 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E167020637 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=fPcRQG1dILt6xskUZmqOu/s7DwC0U23h3XPoxy4B4Ds=; b=OeJF8tiG5ZRpjEyu/yDL0sFAyB +JDltOgQedHD9sftlbpWapWhoF8kdJ6IzhDCLDrcRjkyEWdCW4g0iAzFyvYjdwkPqCiADUcEOi6fV uYcgiAvf065BTfUAjZn0HK5oG2OXF/SZfPLTrZCcW8ghQRR/WBiL5/yi06bOdMJVDCABozdRGPrfB H4Zvukx61JDlq34ffPcGt9FpjXLgllbyN7AXmxdf+BwhgQIIIfFOGH6C4ka+4iZ8wuc9wQHO/qghC L5rt40R1xQsGlLTRcP0Nz4aL8ob74v9qb9wkgDh/8zNxKNlR30Xn8HKzzpdQTeLU9vKbquHXjslei I1xjAEKg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1l2RPb-0004Jm-Jt; Thu, 21 Jan 2021 04:17:35 +0000 Received: from foss.arm.com ([217.140.110.172]) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1l2RPY-0004Ie-U5 for linux-arm-kernel@lists.infradead.org; Thu, 21 Jan 2021 04:17:33 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 9D15414FF; Wed, 20 Jan 2021 20:17:31 -0800 (PST) Received: from mammon-tx2.austin.arm.com (mammon-tx2.austin.arm.com [10.118.28.62]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 8B4063F719; Wed, 20 Jan 2021 20:17:31 -0800 (PST) From: Jeremy Linton To: linux-arm-kernel@lists.infradead.org Subject: [PATCH v3 0/1] arm64: PCI SMC config conduit Date: Wed, 20 Jan 2021 22:17:28 -0600 Message-Id: <20210121041729.1858499-1-jeremy.linton@arm.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210120_231733_010360_B6012DD8 X-CRM114-Status: UNSURE ( 8.08 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mark.rutland@arm.com, lorenzo.pieralisi@arm.com, catalin.marinas@arm.com, linux-kernel@vger.kernel.org, Jeremy Linton , vidyas@nvidia.com, sudeep.holla@arm.com, bhelgaas@google.com, will@kernel.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This set provides a platform standardized way to access PCI config space. It does that via an Arm specific interface exported by the firmware. The Arm specification this is based on can be found here: The Arm PCI Configuration Space Access Firmware Interface https://developer.arm.com/documentation/den0115/latest v2->v3: Convert from SMC only calls to arm_smccc_1_1_invoke() for better conformance with the specification. v1->v2: Add SMC_PCI_FEATURES calls to verify _READ, _WRITE and _SEG_INFO functions exist. Add a _SEG_INFO bus start, end validation against the ACPI table. Adjust some function naming, and log messages. Jeremy Linton (1): arm64: PCI: Enable SMC conduit arch/arm64/kernel/pci.c | 111 ++++++++++++++++++++++++++++++++++++++ include/linux/arm-smccc.h | 29 ++++++++++ 2 files changed, 140 insertions(+) -- 2.26.2 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel