Message ID | e11a3c0bde172c9652c2946f12bc2ceed4c3a355.1724970714.git.nicolinc@nvidia.com |
---|---|
State | Handled Elsewhere |
Headers | show
Return-Path: <linux-tegra+bounces-3563-incoming=patchwork.ozlabs.org@vger.kernel.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=Nvidia.com header.i=@Nvidia.com header.a=rsa-sha256 header.s=selector2 header.b=KuHAB+Ep; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=147.75.199.223; helo=ny.mirrors.kernel.org; envelope-from=linux-tegra+bounces-3563-incoming=patchwork.ozlabs.org@vger.kernel.org; receiver=patchwork.ozlabs.org) Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org [147.75.199.223]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Wvx1Z5hCVz1ydy for <incoming@patchwork.ozlabs.org>; Fri, 30 Aug 2024 08:35:14 +1000 (AEST) Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id B5C701C20FC5 for <incoming@patchwork.ozlabs.org>; Thu, 29 Aug 2024 22:35:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C890F1BC07F; Thu, 29 Aug 2024 22:35:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=Nvidia.com header.i=@Nvidia.com header.b="KuHAB+Ep" X-Original-To: linux-tegra@vger.kernel.org Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2066.outbound.protection.outlook.com [40.107.92.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C76581BBBE7; Thu, 29 Aug 2024 22:35:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.92.66 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724970911; cv=fail; b=gs5w/oZsN4BoMPfG8hXldro70cKpd3kKomP+m+Y6va0OSU+LGNYoQOS6M4eYeX/O3wE7peq08OTDYmE2pgfpxpvsAMHSvdPkR2YJ5HfZPq/Mw2ShByoeHk0dQeXlu3iTDTeEvKhIa8CwdYxBoCwOBVRnwSYBdoefHBW6heY479I= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724970911; c=relaxed/simple; bh=nNhekSTZAhhd8A5TVum0peg+CsU3pE+sBh1hJmgVSnk=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=BvFAdy1YyvqQAWZVMJFWWGNJ7xFoA6mvsDgum3fEGGisfqdq3CCDLRhQyMh8PH5BS1li/3Xg61a8dmFXPuvqNXUkdMek24VPgp4ocYtjhjMseYzp5BeQpg6IqqKwhp/L6Pa9Gm5HIyJS/XeBezTYzrak3r/QOkOgKdE9llvL5VM= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=nvidia.com; spf=fail smtp.mailfrom=nvidia.com; dkim=pass (2048-bit key) header.d=Nvidia.com header.i=@Nvidia.com header.b=KuHAB+Ep; arc=fail smtp.client-ip=40.107.92.66 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=nvidia.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=nvidia.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=BRUJdXQNB2NMSL4/hjdGiYQo07DKzebd+uI36C9Ic5kePi+NhxKeBRJiB4zIiVAzv0yd9ziMzcPaykeswRG3mAEYWVvBJEKBA1X4bljnJrlngrWSswAty5c15wGTnAZ/Mo6pqv15G85jDZU/5+HqjV7H68yvLyrgry36GKucsfztuD57vDd4gShAT4Et7aLE20hYAyk+nyMVggGYP5apCXP034OX8uXPo/dvHuAN4Elci/nV8jkCtDzHamS3mLlJZyhBn+E4S8tCufng6BKzRz0R66EfqfAHdJIAFUXrCkke8V21ryEbwlmTNeza5QXt+jxDTIPfospEK0rk64uzHA== 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=b9j2y4igiyHvwDhs8TTMfjgD8za7Epa1F90z5Gvfuwk=; b=QT1sKreORM4rGaWJHuKyWh7Y5JeZe9UoBZ9YC8ExMnHlCkhkGlmEznu9AXcGVB0Wy1ldHuWrwgM0TNAoj1LkMdeEX/mfHuCfuMj8BG+o17FVk3ZR1w2N5mptktxB0vn5fVnuOhkuoGRnLHU6o1lbegDwExBd3J823qf1ACQEIp9YppQ5IzrTyrffinyMgyX/wt6ECJw3ikQ9GN7vC59cFh4H2NnR9bWPH00LOzviMkJhouTU7cucIazuWU4PcBADgNOTpTt8yQKMe9asn/Od0yqE4vz+uVAU4/v0uPC1AxwTOV69/iMMxsbWpKf/maHXGwFwd6v3HJFU3OUnWzQQuQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) 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=b9j2y4igiyHvwDhs8TTMfjgD8za7Epa1F90z5Gvfuwk=; b=KuHAB+Ep3yk77xYtLC1e+puD2CgzVUqhgbCiKhrfUKE3EicryKOD5Ns3N8eMPqd53Q3ju4x69KoOxOmln6TlU4PmFrDiy371oy23XBu0SUKfh9EdyIfYcB/Z5PDS683qFMUxF4Wqt/A9qCJLtsUSFFavyuw6iJxSxJTVXme1IZsYq7Y7oEQRrvXK494R9U7gfe29in9eckhr0L9kl6hakpNu8dKwaMrQUcrhyuC7WfUfZ3AsjysXhTAj0G4YA1+udnZhF2a5tteJKkzNG/rVV9KRVu+yx2L33Gb4y5wl+9rGcjLo4V7jQoDL6UBLEv51fxHQCahI9vyF6MaerDnKWg== Received: from SA0PR11CA0200.namprd11.prod.outlook.com (2603:10b6:806:1bc::25) by MW4PR12MB6754.namprd12.prod.outlook.com (2603:10b6:303:1eb::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7897.25; Thu, 29 Aug 2024 22:35:03 +0000 Received: from SN1PEPF000397B3.namprd05.prod.outlook.com (2603:10b6:806:1bc:cafe::6) by SA0PR11CA0200.outlook.office365.com (2603:10b6:806:1bc::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.20 via Frontend Transport; Thu, 29 Aug 2024 22:35:02 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.160) 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.160 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.160; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.160) by SN1PEPF000397B3.mail.protection.outlook.com (10.167.248.57) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7918.13 via Frontend Transport; Thu, 29 Aug 2024 22:35:02 +0000 Received: from rnnvmail204.nvidia.com (10.129.68.6) by mail.nvidia.com (10.129.200.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Thu, 29 Aug 2024 15:34:46 -0700 Received: from rnnvmail202.nvidia.com (10.129.68.7) 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, 29 Aug 2024 15:34:46 -0700 Received: from Asurada-Nvidia.nvidia.com (10.127.8.13) by mail.nvidia.com (10.129.68.7) with Microsoft SMTP Server id 15.2.1544.4 via Frontend Transport; Thu, 29 Aug 2024 15:34:45 -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 v14 03/10] iommu/arm-smmu-v3: Pass in cmdq pointer to arm_smmu_cmdq_init Date: Thu, 29 Aug 2024 15:34:32 -0700 Message-ID: <e11a3c0bde172c9652c2946f12bc2ceed4c3a355.1724970714.git.nicolinc@nvidia.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <cover.1724970714.git.nicolinc@nvidia.com> References: <cover.1724970714.git.nicolinc@nvidia.com> Precedence: bulk X-Mailing-List: linux-tegra@vger.kernel.org List-Id: <linux-tegra.vger.kernel.org> List-Subscribe: <mailto:linux-tegra+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-tegra+unsubscribe@vger.kernel.org> 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: SN1PEPF000397B3:EE_|MW4PR12MB6754:EE_ X-MS-Office365-Filtering-Correlation-Id: c97d52e6-fb9e-454e-7b4e-08dcc87ad2c1 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|36860700013|376014|82310400026; X-Microsoft-Antispam-Message-Info: o9vcSMFNHyrAJzdqfeygMpFsq2OV+NW/6NbEPtNW9inGkhoJr4UISk3u9PivBs1zCTgfvPP9icRpPtkOHug7GRqvDwmwMift+x6pYTdW/13kum7D9i3L0YjIBc2KYmOYd7LDdBT0zjB2sUmUw9pHMlKvBadhrbfI6xGvCV4DMvQJll5At2nz2l4Nzk6Bwc9lwhKE4zQltVLlk8dCtOcVqF2EOn5+/FgqDPWh+LEH/ribIAre3nTcyFpkP+JJ5YIelDubCg/5QYIZKFzx7wbIMj2Owz8upjf0Lazq4TUWZoz0eqnWh3XYOnnusD68mMZ0Kn5jD7MXwxRjhlUb2DEgulWkqlOHx8L4WWTqV6o7HM0g0+P315USRK408fjnLJpjuhNsKfYqhnRRYKX5YkkvX1uBXFvCTIHaaZcnJISyyLiu3JHSSgjYB4ELSV8B255wyC1bQvuDbYuFZR1SE/C1+HGFVvOjDH7txSPrzCnI53iLUbR6iFskfBgIPBpnzUOV10K38y78gow51yUZ0LV5H3/ZvQvGVmgA9UIuV1qSUwuJLbRVSzPhxivqLW/FD+zZFKnDZsd3ozlgI2i01a79zvFFq6/+oHhLKTxo1BNltC3rURvppqVvSSaasWm7IeFH8HFD7mhQm3xhdOZOyBJ4V5b6wRcTrFQmyi4eSSW+XY0xeDEJk4b9TFqhenxbE4Vp8i8KHVlB8A+cFwAv96KYyNMy3CY+VYkITs/P4A2uoafWQGHgBdpGPvHO1g8qo17SabgMbL4C0two0JmaD8b9u+7us2Y6ShXZKPDuSX4NEx5sSWemi+SLPiCvnvQyaB7/eoaHr3gL1Ner+fL0oFkllFtYX3L+2rlOqL1SzL58dkD3oB3qovVCIAowfHFhvhwbwqiBa13Se1e7sr8RWFy5S+gmUA8ZihC/OTQU2EJqmK5J2FZGnRgq/RUi5yZP7SdyaiiKs/u0eHssDnSnL04fjThNut9it9DewnGajS3DPfgBO4SPmj0C2dY5VPbNjpYFLGW/Xv6qq9OCP2THg2YXpwQNAv8ajF4Y5gfdMXHWGU5TUd1EWfWg3n0vSMu5w2tlfcDBbMR47uxlGbBSdQuh7gj/wEZMiAzo7Zu0+nZZ7GPaM2nElKY0FJTjEMw5eHvMi2IDO/XSDMbZ5oSYjbhRRbDzDqZMzIIyG103mMei6L7Z2ZseNa9QucWNMuIpGGUitT0IN3O4p+7gyK8eo34pBhw1NAUuG3BvINOxqyFaHkzcAJi1eQyhpTuf27FnmJNvkAJMDiiEduG1nsKsC4W7SZUgUSMExwVZeSrfV5bz0GUOGoKuDfsnA5eqQV8V47lg6+w2d4fsMDRTVptgNQQGue8Ojci1iGJu2X6QP3y9fZwRGjIB3FnIHHjlRUtFsiQLwzpkCE3eK19URZdRAR16waG4x09/9pewDLD3Hu5OlV6aRyTE2k23CRHgpczvIrvt X-Forefront-Antispam-Report: CIP:216.228.117.160;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.nvidia.com;PTR:dc6edge1.nvidia.com;CAT:NONE;SFS:(13230040)(1800799024)(36860700013)(376014)(82310400026);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Aug 2024 22:35:02.5822 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c97d52e6-fb9e-454e-7b4e-08dcc87ad2c1 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.160];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: SN1PEPF000397B3.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW4PR12MB6754 |
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 4a28cd2dc47a..22578d1aa268 100644 --- a/drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c +++ b/drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c @@ -3564,9 +3564,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); @@ -3591,7 +3591,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;