Message ID | 729aa3ad3473c9459df55e487f24929d6f8e2716.1723754745.git.nicolinc@nvidia.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org> 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 CEADAC52D7F for <linux-arm-kernel@archiver.kernel.org>; Fri, 16 Aug 2024 00:58:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type: Content-Transfer-Encoding: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=lt5K9UCEEcniaDhgg5NrVV/8rsRKGQ7lUBCbem2SFgE=; b=RfjItlWIPXqFJccAQ4Jyq48Lsq prXDgfHpRfBzvrQOiJw+Z4wsaxP61nK4oUe3JdihVSZTW4rEDYeU+uFWiFBaenbuaXTeUIKWG4baX RwI0e7kKvito5OreB9Ut5Lf4FukHBkSIHdk+LpP5Qk8tKXks2SM15IwxxSaayBUqGGDQIsYLv1dk2 d5MSEj359fpC2ALNs+j4IFfkuXDOBbvZPM25+/WZUDYQsyKyDpBqQw5WzfzvLga+3YXXc4ytYydni c0ZXUgfudx0oSnktK9KZczMETEKpoz9ojRsgAYUcdyVOSF47v1S7rqaggNii8fkxqydu4XovAhna1 oieH+HCw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1selI6-0000000BR1Z-2V5a; Fri, 16 Aug 2024 00:58:06 +0000 Received: from mail-mw2nam12on20610.outbound.protection.outlook.com ([2a01:111:f403:200a::610] helo=NAM12-MW2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1selGA-0000000BQPK-2gxf for linux-arm-kernel@lists.infradead.org; Fri, 16 Aug 2024 00:56:09 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=cuYg3+fpRevRmVa4ikez+ZSdmejbbLhLubjvAew7GqHVZS3VgaMLmGtleEqmno/SZA/vJXdlluYzsGrwNA50e0alALO9/M4FYSjlkWgLnz5IYGz4eJ5uEeWeBNw136m7dOXZEKoM9DONbeTtx6ceDV9P4h1lnkQbCcLKp4rqARiwQ627OkSEwW9Qu6BXFXdKXJgJWletIn37X63mYd7W0kbzCKof7TiEhB+l+eddgC2ZhmTEQFXrCPu2EQmgmVjPTeNU/syyg7YpmqCFFdcFZO6GODHRGsPiEPuRD+eV15kWkcGXOqH+H3VHRdRE2NXa0E4QFPWtAHy9yZOyWlY1fA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=lt5K9UCEEcniaDhgg5NrVV/8rsRKGQ7lUBCbem2SFgE=; b=Ms4Yjv+1phH2ufizPkxQRn0XwME0OwY/gsvs9UYo9Oq6mleaoKv8yfzGWeFbUak0+mznylLWqSo9hw0xz/PiDh04xsE8LRgAypLGOXHMW9TgZzNs2qGutNZ4m4byLlWpzcy2bg1Oaq6vC18MejUGwJPRRzC3QPOeiG87tnJSFgvcrIJq9n3HINEbu8w0w1h1l2D3tlAmchKWy2Y57HRpUS9G9wQRF6fRysoHakS7MyGC1xwsmu92rhzBuJbcIQItMj5eoQnEWgurHAViwfTRxhulsQ6snY96x9O5Gnl9A9gq8wX7ZabC6Y03FIqPbObMr38Q6/dB4mzrrgQZnIWS1w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.161) smtp.rcpttodomain=kernel.org smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=lt5K9UCEEcniaDhgg5NrVV/8rsRKGQ7lUBCbem2SFgE=; b=RzCEg8TDFOZnmUYL+WMO3bxUVvsJreEl62abGD3RLEjeM/wMur/nVGSqDYEgNQnGgxd2IPO2Nkl402thePYyxC/O/Z7uwBJ5uxsCKjsTxxFDGPeFpxrDO7DC9JPia1BlqV4zxKs7HD4d8FiKwCKPt/1qMQFTcVJT3CCACJIWWn50sEsGZyw8O9fo42xw/lBkWcLYO1xqurBQCbMJKz7p9CqRK9n23R7vqnEK1Ba32tVcAHaXct+01ubSe3f0bN4UhToITo3T3QFFitThCeLUac/SuMCqw9Jg6tiGTbb4Dog+B+WGQCyenDnJTBsnOZjQik2Ul3pZdi6Bv3kfxgLNTA== Received: from MN0P222CA0009.NAMP222.PROD.OUTLOOK.COM (2603:10b6:208:531::10) by DM4PR12MB6495.namprd12.prod.outlook.com (2603:10b6:8:bc::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7849.22; Fri, 16 Aug 2024 00:55:59 +0000 Received: from BL6PEPF00020E60.namprd04.prod.outlook.com (2603:10b6:208:531:cafe::67) by MN0P222CA0009.outlook.office365.com (2603:10b6:208:531::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7849.25 via Frontend Transport; Fri, 16 Aug 2024 00:55:59 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.161) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.117.161 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.161; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.161) by BL6PEPF00020E60.mail.protection.outlook.com (10.167.249.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7849.8 via Frontend Transport; Fri, 16 Aug 2024 00:55:58 +0000 Received: from rnnvmail204.nvidia.com (10.129.68.6) by mail.nvidia.com (10.129.200.67) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Thu, 15 Aug 2024 17:55:42 -0700 Received: from rnnvmail204.nvidia.com (10.129.68.6) by rnnvmail204.nvidia.com (10.129.68.6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Thu, 15 Aug 2024 17:55:42 -0700 Received: from Asurada-Nvidia.nvidia.com (10.127.8.12) by mail.nvidia.com (10.129.68.6) with Microsoft SMTP Server id 15.2.1544.4 via Frontend Transport; Thu, 15 Aug 2024 17:55:41 -0700 From: Nicolin Chen <nicolinc@nvidia.com> To: <will@kernel.org> CC: <robin.murphy@arm.com>, <joro@8bytes.org>, <jgg@nvidia.com>, <thierry.reding@gmail.com>, <vdumpa@nvidia.com>, <jonathanh@nvidia.com>, <linux-kernel@vger.kernel.org>, <iommu@lists.linux.dev>, <linux-arm-kernel@lists.infradead.org>, <linux-tegra@vger.kernel.org> Subject: [PATCH v12 04/10] iommu/arm-smmu-v3: Pass in cmdq pointer to arm_smmu_cmdq_init Date: Thu, 15 Aug 2024 17:55:25 -0700 Message-ID: <729aa3ad3473c9459df55e487f24929d6f8e2716.1723754745.git.nicolinc@nvidia.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <cover.1723754745.git.nicolinc@nvidia.com> References: <cover.1723754745.git.nicolinc@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-NV-OnPremToCloud: ExternallySecured X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BL6PEPF00020E60:EE_|DM4PR12MB6495:EE_ X-MS-Office365-Filtering-Correlation-Id: a5ca7bf2-91eb-4347-50f9-08dcbd8e315b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|1800799024|82310400026|36860700013; X-Microsoft-Antispam-Message-Info: zMc3GSlRapSfT2UfIW4Y5M5rqB/pUkMVwTwD7viMKSnrEniC+n7iUXRu0L9liWrkH4AEqrWTItHWG9xAP+38wbPqneSO26ADiCOgGh9DgenymiM+zHDLIggSGZdZTfP7ARCPzGnk2n8DwUvdX3SeQFrnhG2fs8Qjxu0jfTUTRKN5lxfI/JZS7xIQS8VLiqTcbSDqDb9m6Xc5EzMCR08gok0kKf7OVAd9v0coaZfzO6a9cvZQd1RqAeAiakj0M+Q0sQraOXZnbrzehp15fF5+A8uWhVPhAwWywFoNhuyDWzmX/GxpS63UJl/ga1alsQ1cCx7NvkjKjMVh71S752oFZpmGpaq4uwmZ3Gngo1c68kiDa/jY/GRZtesI175YRy/NfpWosuX9bCZa220fW8RsdNhofJyFZzDTIwleQCyifuWKMCFNeHY0Xb8WZZfoQwuRQ4/qEqjsO4WCY85rrz4Opb0n918sRq+oNd6KdeRL5xbn/WPAUHmbClJi3DE1qxaSitURyNvO6bvPbkCaQ7ZacfwMrDx1J5RChW/TqR6z3T63GG5T4/XCmtyo8SwiikUicvu4mqBdrYxErb4MxyEih5y093iCtH6Z5z9PLZ7bpfBF8vpFnHkjl2Luo2jLT1/jbXA/F5D6gPV72ikdlAYQSltqc47ZJuoqJUI9WiP4vY3T4Me7IgrAGv21TE3l7tfoIKvNU+KMYNhS/g6Zvd35TkhxUWmjshWu3Y13oHVrcY6F/RQj7Dv9kzzpUawQknecUbpl9eZYyVsivEHryQDiMHBnU5MuiruRMIQpKKzFTaMTgx+1igvQTZUEKetpa9iv6IlfXDofhmpnUbzt60ASf/uU+YgdaPFLZnM6ZscovQa2MPp9ywAQOCIIjmP6IqoCH1BvUhCb1nTafoLkaotk1fLlDCTUdcLajMl3i9FqQKas6RJUAZDh524IEmcVH9v7vrDwgCCL+24tevusDA4whwTtED87fzFpY8MEJ7ZsI4hdL2IDlGXgHZxmLv9gO5KiarnHFuT6nrFahh1BAseiue1XoLEqYJV5XPJ/osMZeABCbmnK73675TfnzLvWE5TFvoQgthQpKuWaYFEYwEdPySrdUc2PR4HuZUILzBYHhGPY35ik5LX8Hd1RaDFrGS+kgzkPR4cgeWMckLEVk73pVzQSN4tNSdfo/RD0oBGeblyGZPhLq7gUFwhwxpVlA8sVKGtc9SLP47XohebsP8iimYEkYbW4ssT8SOcft3Lu3tSFVDpt5BsvLTLJq+C1AS219wzAewTlLG2kpbr9XAU1nHJL9OMoKxeETleVUe3k41sNIT48R4pGDyYhdAI9AFFCCoX0j3KQ5XQDmbfosZXH6WPs836ZWuGYtgDlHEQkZ7chTcd8ynlkklWXkOO76wNALsQm019fH1D367LdiJSyX9eiPER6xI5BqaWX0bFpY2bO1q4XUkg/slkT4B5rltO+ X-Forefront-Antispam-Report: CIP:216.228.117.161;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.nvidia.com;PTR:dc6edge2.nvidia.com;CAT:NONE;SFS:(13230040)(376014)(1800799024)(82310400026)(36860700013);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Aug 2024 00:55:58.8966 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a5ca7bf2-91eb-4347-50f9-08dcbd8e315b X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a;Ip=[216.228.117.161];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BL6PEPF00020E60.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB6495 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240815_175606_708914_6E8C9A61 X-CRM114-Status: GOOD ( 11.44 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org |
Series |
Add Tegra241 (Grace) CMDQV Support (part 1/2)
|
expand
|
diff --git a/drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c b/drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c index d11362e9fc8a..e664c40b14ae 100644 --- a/drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c +++ b/drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c @@ -3555,9 +3555,9 @@ static int arm_smmu_init_one_queue(struct arm_smmu_device *smmu, return 0; } -static int arm_smmu_cmdq_init(struct arm_smmu_device *smmu) +static int arm_smmu_cmdq_init(struct arm_smmu_device *smmu, + struct arm_smmu_cmdq *cmdq) { - struct arm_smmu_cmdq *cmdq = &smmu->cmdq; unsigned int nents = 1 << cmdq->q.llq.max_n_shift; atomic_set(&cmdq->owner_prod, 0); @@ -3582,7 +3582,7 @@ static int arm_smmu_init_queues(struct arm_smmu_device *smmu) if (ret) return ret; - ret = arm_smmu_cmdq_init(smmu); + ret = arm_smmu_cmdq_init(smmu, &smmu->cmdq); if (ret) return ret;