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 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9687AC433FE for ; Fri, 14 Oct 2022 04:43:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=0hoRkTDCbwN0xpUqCWKnT48Rx1JZsKiKlBvKtbPoYb8=; b=EO2WQs+gmjBjsX TU150ZOOK7ZzIITDROSK8Rtsk3gxDCWOh5oO+bvKjefdFJxTt3fws4C6a0ofFzPKRizZBQn2lc2qZ FPHzcLJ1ggn0JycZroWQJ2VqeSNnbY5KINg4t4pNutDJqBUFdSAUBjF9pODhLmizw2zmV627Op4f2 ehOztJ3NeZBSb442R9FTj2LVSo/yxxrO9cq65hOK8FZbezc3mraaUH8XmUyHJbSbOsuy75ISlvOg1 fFcWFPmmosKIvA1x1DQtufADtgY9sDiWZ6BBGcG67ribGQfF4sc4GDubjsbbDF4R2xxF71AFu5t8d XPQdsYMmarzcBRvHGmDQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ojCVu-00DbMN-7V; Fri, 14 Oct 2022 04:41:38 +0000 Received: from mail-dm6nam10on2065.outbound.protection.outlook.com ([40.107.93.65] helo=NAM10-DM6-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ojCVi-00DbHo-DI for linux-arm-kernel@lists.infradead.org; Fri, 14 Oct 2022 04:41:28 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TDY/ihSLkZSq176S9bmUZXPmdR3RWBOdScGAykTleDoTD4OZkQ4X3lepDtP7ITLMTfbc2Aax5598OaJciIZ4IOipN05zVv9+6KFjQ8rHM/Ec2GdiYBKYL8UMcJqFofxbdnAfyIsB2ELBnsVJvr9wXWBxA5OcKsTKknPS4IudGJ+kgZtFkSIigowkADHWSrf6wyATxzLjp9l9oRp63K9z6hFrO3lpOLl0avnnb+pLjTVtlmBsXGtzNd0I7CKUy32jF9D83OkvtqmmBGEzcbdCp/w5RiSl6fsra5q2PnSNeChFc7k62LKiV+XOGnqfXk8Y4s/Hom6I2rMYZMcdRO/lfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=zQmPzMQls6Sk1H659Pxiz3P+X+/x1S5SkEI8tEZQOV4=; b=jeHYKkrHJtb7oVl6eAJFI4KTo2R3MKeOmw9IU2xN1KA+Y2srb+gQWR2bh1cH+A/kHY150RpCFYxl0JmMLx6b7+HqLhK1gl2+xmt/I9Nmh/L2+QYvWmrIofzsieEWocM0DMo6DcJJ4AYX7FCJ/agWuzZ6W6U0fgtEzt/WUjhTODzKIBtzjCt80pYTlN3PtqTR2V0hFo2bz7LEzumso2QRR5Js07ZzEHTv3/XGSjRm1kglbrJ/lqDJ5o2eBKhNSHaMwn2HvDbUd+XZ7fq8ddmf0K6w5feITfroTzYinoHnB9C3jIjBAtpTBzjSpSG5u2Zv89L0jF2j1CjUjsA78NjSUQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=kernel.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=zQmPzMQls6Sk1H659Pxiz3P+X+/x1S5SkEI8tEZQOV4=; b=Rv83xtRx/RBdOnfkFaP+hnasSOhbf8eeyYcCvpL4TF5SKXQkBcw4/ZBCNQPa4Z3iQ0ke/pI0+YeVpuPhJy9Dtju+oRHTZly7sTp8Su7Mgwf4WX4VQmT+huAR7f/07jIeU9845+PUnJio+8WxofoktzDRktdLiVW9ycCdVukBHuE= Received: from MW4PR03CA0170.namprd03.prod.outlook.com (2603:10b6:303:8d::25) by MN2PR12MB4374.namprd12.prod.outlook.com (2603:10b6:208:266::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5723.26; Fri, 14 Oct 2022 04:41:16 +0000 Received: from CO1NAM11FT058.eop-nam11.prod.protection.outlook.com (2603:10b6:303:8d:cafe::1) by MW4PR03CA0170.outlook.office365.com (2603:10b6:303:8d::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5723.28 via Frontend Transport; Fri, 14 Oct 2022 04:41:16 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB03.amd.com; pr=C Received: from SATLEXMB03.amd.com (165.204.84.17) by CO1NAM11FT058.mail.protection.outlook.com (10.13.174.164) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5723.20 via Frontend Transport; Fri, 14 Oct 2022 04:41:15 +0000 Received: from SATLEXMB07.amd.com (10.181.41.45) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.28; Thu, 13 Oct 2022 23:41:11 -0500 Received: from SATLEXMB04.amd.com (10.181.40.145) by SATLEXMB07.amd.com (10.181.41.45) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.28; Thu, 13 Oct 2022 21:41:06 -0700 Received: from xhdipdslab49.xilinx.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server id 15.1.2375.28 via Frontend Transport; Thu, 13 Oct 2022 23:40:58 -0500 From: Nipun Gupta To: , , , , , , , , , , , , , , , , , , , , , , , , , , , , CC: , , , , , , Nipun Gupta Subject: [RFC PATCH v4 1/8] dt-bindings: bus: add CDX bus device tree bindings Date: Fri, 14 Oct 2022 10:10:42 +0530 Message-ID: <20221014044049.2557085-2-nipun.gupta@amd.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221014044049.2557085-1-nipun.gupta@amd.com> References: <20220803122655.100254-1-nipun.gupta@amd.com> <20221014044049.2557085-1-nipun.gupta@amd.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1NAM11FT058:EE_|MN2PR12MB4374:EE_ X-MS-Office365-Filtering-Correlation-Id: 883e60dc-d36c-4dda-6503-08daad9e5438 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: TuurSXiiQmlTOOm1HRSG5+Aow64xUGKxkCgUgGY0ydHoJDShvIFvDPDKD87dY/KukV21vqyb5VZBCDKpWXVdZjoXadxRe5L3lY+TiWlZt46IV+UdLUfWpkwwA9flRn0+Z3rA6xOBYvBz2YUZkq3t7h40gcScKDsw3GdtcYJyCc1JSlGty0IhfBnVXk92zj+ZKcnvViXo0nn+zFqZKFHFoi2zlO58JJsJ0hsWOnipBdPehHMPtWhgpYSKe6nVDR+O9M/5LtGw+J908MT0bbRLl24wCyDidbWggbCq8YL9vbmwnjC3OvX3+bxpmMBJ/mDDZS7LjqAcGQ5Vi3KDGO0IMkBZyNOUJusYH03sGtvQowRHjzDf3kVMQDuBrmpGIHRQR1IKNZAhF0UQULbBf2ylrGx+DIUVmZlYI433TuuDqZV6Ob44oeZ1kftPDKvYy6MJkfRiZfQMX93Rc7YkP6NzDJ9LeITbD9px/g5ce9nheWFtBED22dvNT0QF98nP73i6NofFqOKJZe4dtZe796WcvqGvw9lHlUoTJLIkCkI4CGwbhTHbjHC9PVFlivCouZ/EGQy4Cl/0mu0A8iWWbm9ERNd0iwRGieXFdaN5z08NjFxopHM8p0QZsxPND1lnkMJc41M2ui6RzWXvt/dE8svzquuy7sm1QAxgmmo30ULMiulJOhaoPusRLpSRMXdh9ZHbEzdn1QZWPlplrLUDWDR7EsyOFhAfHoy9Kxqcp7vd7Ym0qrvZKccwcdj2AVa9EtFTI4H/tuJhyAKJoO3AZ4vx2DPllBZloM654y298IxFZCNgtoiNtuypslH+Zl0mWS7SzRHKy2tLDnbXPg9whnh0ziVoky0fkvP/Z1WJwfTF0NoY95ChZOEioo2f2JovjwO21dwqUp8fBW92vR6NJ0O19moQQGYi4MY90TbbJ9t5XbrfOTmzdm/DpXK/eQMRYcTh X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB03.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230022)(4636009)(376002)(346002)(136003)(396003)(39860400002)(451199015)(40470700004)(36840700001)(46966006)(26005)(83380400001)(5660300002)(82310400005)(36756003)(7416002)(6666004)(70206006)(41300700001)(70586007)(4326008)(8676002)(8936002)(356005)(81166007)(44832011)(921005)(36860700001)(186003)(40460700003)(336012)(86362001)(1076003)(2616005)(40480700001)(2906002)(426003)(966005)(82740400003)(47076005)(316002)(54906003)(478600001)(110136005)(36900700001)(2101003)(83996005);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Oct 2022 04:41:15.4047 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 883e60dc-d36c-4dda-6503-08daad9e5438 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB03.amd.com] X-MS-Exchange-CrossTenant-AuthSource: CO1NAM11FT058.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR12MB4374 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221013_214126_478850_5DF9AECF X-CRM114-Status: GOOD ( 18.66 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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 patch adds a devicetree binding documentation for CDX bus. Signed-off-by: Nipun Gupta --- .../devicetree/bindings/bus/xlnx,cdx.yaml | 65 +++++++++++++++++++ MAINTAINERS | 6 ++ 2 files changed, 71 insertions(+) create mode 100644 Documentation/devicetree/bindings/bus/xlnx,cdx.yaml diff --git a/Documentation/devicetree/bindings/bus/xlnx,cdx.yaml b/Documentation/devicetree/bindings/bus/xlnx,cdx.yaml new file mode 100644 index 000000000000..984ff65b668a --- /dev/null +++ b/Documentation/devicetree/bindings/bus/xlnx,cdx.yaml @@ -0,0 +1,65 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/bus/xlnx,cdx.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: AMD CDX bus controller + +description: | + CDX bus controller detects CDX devices using CDX firmware and + add those to cdx bus. The CDX bus manages multiple FPGA based + hardware devices, which can support network, crypto or any other + specialized type of devices. These FPGA based devices can be + added/modified dynamically on run-time. + + All devices on the CDX bus will have a unique streamid (for IOMMU) + and a unique device ID (for MSI) corresponding to a requestor ID + (one to one associated with the device). The streamid and deviceid + are used to configure SMMU and GIC-ITS respectively. + + iommu-map property is used to define the set of stream ids + corresponding to each device and the associated IOMMU. + + The MSI writes are accompanied by sideband data (Device ID). + The msi-map property is used to associate the devices with the + device ID as well as the associated ITS controller. + +maintainers: + - Nipun Gupta + - Nikhil Agarwal + +properties: + compatible: + const: xlnx,cdxbus-controller-1.0 + + reg: + maxItems: 1 + + iommu-map: true + + msi-map: true + +required: + - compatible + - reg + - iommu-map + - msi-map + +additionalProperties: false + +examples: + - | + soc { + #address-cells = <2>; + #size-cells = <2>; + + cdx: cdx@4000000 { + compatible = "xlnx,cdxbus-controller-1.0"; + reg = <0x00000000 0x04000000 0 0x1000>; + /* define map for RIDs 250-259 */ + iommu-map = <250 &smmu 250 10>; + /* define msi map for RIDs 250-259 */ + msi-map = <250 &its 250 10>; + }; + }; diff --git a/MAINTAINERS b/MAINTAINERS index f5ca4aefd184..5f48f11fe0c3 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -935,6 +935,12 @@ S: Supported F: drivers/crypto/ccp/ F: include/linux/ccp.h +AMD CDX BUS DRIVER +M: Nipun Gupta +M: Nikhil Agarwal +S: Maintained +F: Documentation/devicetree/bindings/bus/xlnx,cdx.yaml + AMD CRYPTOGRAPHIC COPROCESSOR (CCP) DRIVER - SEV SUPPORT M: Brijesh Singh M: Tom Lendacky -- 2.25.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel