Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp4804815rwb; Tue, 17 Jan 2023 05:51:10 -0800 (PST) X-Google-Smtp-Source: AMrXdXvHg0s37ddzC2ewM+Z5uemmAiBWf/WLWfzeTWeob1IQlCgnw9eWVjlBW7hlDyWyK3MYlqZ9 X-Received: by 2002:a17:902:ef8b:b0:194:abe7:278c with SMTP id iz11-20020a170902ef8b00b00194abe7278cmr1906512plb.51.1673963470300; Tue, 17 Jan 2023 05:51:10 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1673963470; cv=pass; d=google.com; s=arc-20160816; b=QHfTD0I3Bx7g/sOQi/QSzz+w7PG8XSHMctjNRYktf/tBqEs69l3kNHf7nmg8yW/OnG khpBpcEU5GzigZFac8Y5HYRv1Zsw5rjSVBJmv8mpLM/GHC5/9Ceznhf03Lf07WST3niu KUmrzO0po5HMf1kZMFq0DJISlIxG8v17cQl2rrDs3NOiaaEf9DJlyCv4l9iJKdMGPtY7 C8cSBNlIfMERKo726Coj7zocBXvnjVue6lEX1iGYY4IGbNWC0/gcXB9JNgjcd2W6MxZE 96JdRnAM92k5lfjRSBLoL88zN7XffXOo9yKiW+Oql4n8kwyKH7EqAv20ngFmBUFIfG2p 5euQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=dEOwb8fEvg1k9YeUg/v38So2HvgO1aLYV6V6pVrSsYc=; b=d0kuvXrLsk6AsgL6Ku0ZDualrlOQr/jNisP2GW5Shj7HyhZvudyxFOyQ7MOKaMcB76 8vmaYlpJ84+Dzaf5PosI12lIlw+/obd6wErsko6A2PR+vHQzyhJNhVwwEHugukdDNqVC olULaS7BLAxM2bd9N5Oc8JcvJOB9I7KV17pbxhxpmLl2HiCtpcbgc1jMyE3BoK+PcVEo PmeXj1rdyypeZpYbfkAG4PoT2d7Hq6sQAu4t8Xw8Vq8bVatGprlv5rNianFkqp40w4qm A0BVHyqjnmP4T0XHk5uh7dWtQoHAofM389Hj0xIvEmyEINpe408YvOKaG4nZiaT3YFJ8 Qx7Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=kTGzgGiQ; arc=pass (i=1 spf=pass spfdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y3-20020a17090322c300b001949e5f1d1csi4800020plg.133.2023.01.17.05.51.04; Tue, 17 Jan 2023 05:51:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=kTGzgGiQ; arc=pass (i=1 spf=pass spfdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229830AbjAQNmY (ORCPT + 48 others); Tue, 17 Jan 2023 08:42:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39776 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229888AbjAQNmN (ORCPT ); Tue, 17 Jan 2023 08:42:13 -0500 Received: from NAM04-DM6-obe.outbound.protection.outlook.com (mail-dm6nam04on2075.outbound.protection.outlook.com [40.107.102.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 27D0232534; Tue, 17 Jan 2023 05:42:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KnpBmC8xvPLD9tveeYh/Vh6WaqE69Sn2NMEM5Xy/ip7iQzsBXEDIPf2Gg2Njl8Z6pMVRmFbUweb9Bw1nbQuIJebJYNssr7jFkGZcrvS9JGKCc4V0iNrsmI5le/9VscADr6c0Z3wrHeL/yAraLC32nt9QN2E0YGy5UuDhHC8B3QXaFcK3O0Fh2h3SBK39zNErMUzDGJqbt77yzc9g5SfSFLyYg/yG7sX5jgHJsn8ukkLwmwoVmfFGM6DqRpD+9gIPeI0bVsTbfNmTTLklwEo3HvrvbsPtz2Q9k0PfIxYRU7/beqrw30m0tn2fdV5dlMmMfsKORlEHUq9Ep1WZTlwd7A== 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=dEOwb8fEvg1k9YeUg/v38So2HvgO1aLYV6V6pVrSsYc=; b=nGfafrZqYLDvcu3P/278xVisF8hukURyegvM2dsgn+PhSgiTFXfsOw54EYjuxULouI6zNgU2GkURAJvrANpBrbEyfqraqNk3sGNVd+JZwkyXPw9TEJTKKRC/XMuOWNkDcU2xdlPJE5dDOlrtrRJuCFj9n0hWp1ypl34D16K8oFOXuzw92vXqZHL8WgzC8UHYYNEfuDDicJc/EIoGvSjrhQMRCciII8tEpvk3R518lFkVuFZ6cVofFRkZEpLydMRO8yrfVI7QJLxr5ydDqTx6XUODv8zqLZKQcCi52OcLfDV7Qd5wcgFR5tQn8h3uX1ZVjNiYRraglfbIS2J4IzrJnQ== 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=dEOwb8fEvg1k9YeUg/v38So2HvgO1aLYV6V6pVrSsYc=; b=kTGzgGiQoP76jlkjAGXy9n/3ejH4y3YqqeAAKiPYOcZCIOO7iGp2s4eKJaB/oP+dAsemo28UlwZ9Bvy++kl1pXuHDaDd1MsbrCPOzBCfJTHIkFKGTlbZTEHFTY0imCqFgdT5XlJDhGEgNvC7kdUyzFRyFwKCJ0h4awHRDEVfDvM= Received: from DS7PR03CA0287.namprd03.prod.outlook.com (2603:10b6:5:3ad::22) by MN2PR12MB4286.namprd12.prod.outlook.com (2603:10b6:208:199::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.13; Tue, 17 Jan 2023 13:42:10 +0000 Received: from DM6NAM11FT055.eop-nam11.prod.protection.outlook.com (2603:10b6:5:3ad:cafe::b6) by DS7PR03CA0287.outlook.office365.com (2603:10b6:5:3ad::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6002.19 via Frontend Transport; Tue, 17 Jan 2023 13:42:10 +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=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by DM6NAM11FT055.mail.protection.outlook.com (10.13.173.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6002.13 via Frontend Transport; Tue, 17 Jan 2023 13:42:09 +0000 Received: from SATLEXMB06.amd.com (10.181.40.147) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Tue, 17 Jan 2023 07:42:09 -0600 Received: from SATLEXMB04.amd.com (10.181.40.145) by SATLEXMB06.amd.com (10.181.40.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Tue, 17 Jan 2023 07:42:08 -0600 Received: from xhdipdslab41.xilinx.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server id 15.1.2375.34 via Frontend Transport; Tue, 17 Jan 2023 07:42:01 -0600 From: Nipun Gupta To: , , , , , , , , , , , , , , , , , , , , , , , , , , CC: , , , , , Nipun Gupta Subject: [PATCH 02/19] iommu/arm-smmu-v3: support ops registration for CDX bus Date: Tue, 17 Jan 2023 19:11:34 +0530 Message-ID: <20230117134139.1298-3-nipun.gupta@amd.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20230117134139.1298-1-nipun.gupta@amd.com> References: <20230117134139.1298-1-nipun.gupta@amd.com> MIME-Version: 1.0 Content-Type: text/plain X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6NAM11FT055:EE_|MN2PR12MB4286:EE_ X-MS-Office365-Filtering-Correlation-Id: 469a86a5-c114-4d62-792c-08daf890a1ce X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 650N4iaDm5bf90rZFrfpaoKCrvdceTqmvVS56nyd2QyGkggg+cls8DJjwoOmIY5Abtz7R1nKXr8Y6H3K7gvk+S41lH0eWUkNjUOKofV0CIBelhmliPD9tejSainNcVJS472txMvKZs3jtRx9Rx55i+RaKgGc54JspYkYWv61dQ8pIBMmvZ9qp49nGSHO5HpaC0ULLgIiQfDrViQdF3agRrJ+GwcBWiSGhl+xQ+84YbNl4JqOycms/UNsATUi/rv75DzTkBHYuNsO/POcui+6y188iJBdlafY3hAYsxmD0Dikww9GVUigdlS5xaTkw4iOJDJqGZuLEyf28YkGN+ZWnXaE6wGiQn3YXsM0zwJ/LbXu+TtfRRWlxX2z5PjTdQG0bZRIwvu6Plrd3bQWtrLt56BfvtR3TEWq2Z6S4F7ld2ET2t8q/Tgp/ZL0h2ocG4CLkoQkFQtrUkRiIfMmRy3EqCTYeIE70r4obrpw4NxXnDmta0hFxU1HGS9VMNUaJqIHTGHMC78MnznvHYZYctOMSc0tLXxTZ+UY/2dblw3qYclH9rQrYzrFhSt60ebJB+IhjrOzkMZ6H8AtuxU+D4S2zkXJSdRqDX64Ll51zsxGIMcaKmT4obC6tv1ge/7RX9Nq1e1YgASxpOF9RLSQzuS1H6+2IjLhaPEiMCgZQK3M/zmRSaiI2NX1vxMsODuhqlm+OZiJCgnFrX8A+KArTBQqvgHfV4lg+2SmhFKfs+m7C9eZ8N7Dhl7m71YvD/7MmaZ+5zGzzN65eDSrS5hoEmLm6HTKbKVoP1zioY9YIRRPHVU= X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB04.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230022)(4636009)(396003)(136003)(39860400002)(376002)(346002)(451199015)(46966006)(36840700001)(40470700004)(4744005)(44832011)(2906002)(5660300002)(41300700001)(356005)(7416002)(82310400005)(6666004)(70206006)(40460700003)(70586007)(8676002)(4326008)(8936002)(36860700001)(36756003)(40480700001)(54906003)(921005)(110136005)(81166007)(82740400003)(86362001)(47076005)(186003)(2616005)(1076003)(316002)(336012)(426003)(478600001)(26005)(36900700001)(2101003)(83996005);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Jan 2023 13:42:09.8738 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 469a86a5-c114-4d62-792c-08daf890a1ce 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=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT055.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR12MB4286 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org With new CDX bus supported for AMD FPGA devices on ARM platform, the bus requires registration for the SMMU v3 driver. Signed-off-by: Nipun Gupta --- drivers/iommu/iommu.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/iommu/iommu.c b/drivers/iommu/iommu.c index 834e6ecf3e51..6a28ef25f337 100644 --- a/drivers/iommu/iommu.c +++ b/drivers/iommu/iommu.c @@ -28,6 +28,7 @@ #include #include #include +#include #include #include #include @@ -129,6 +130,9 @@ static struct bus_type * const iommu_buses[] = { #ifdef CONFIG_TEGRA_HOST1X_CONTEXT_BUS &host1x_context_device_bus_type, #endif +#ifdef CONFIG_CDX_BUS + &cdx_bus_type, +#endif }; /* -- 2.17.1