From patchwork Wed Apr 3 10:00:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Akhil R X-Patchwork-Id: 1919177 Return-Path: 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=tv/Xub7A; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org (client-ip=2604:1380:4601:e00::3; helo=am.mirrors.kernel.org; envelope-from=linux-tegra+bounces-1452-incoming=patchwork.ozlabs.org@vger.kernel.org; receiver=patchwork.ozlabs.org) Received: from am.mirrors.kernel.org (am.mirrors.kernel.org [IPv6:2604:1380:4601:e00::3]) (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 4V8gJw2q8Dz23tl for ; Wed, 3 Apr 2024 21:02:08 +1100 (AEDT) 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 77A101F29EA7 for ; Wed, 3 Apr 2024 10:02:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D0FD3139574; Wed, 3 Apr 2024 10:02:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=Nvidia.com header.i=@Nvidia.com header.b="tv/Xub7A" X-Original-To: linux-tegra@vger.kernel.org Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2051.outbound.protection.outlook.com [40.107.93.51]) (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 2086D137765; Wed, 3 Apr 2024 10:02:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.93.51 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712138523; cv=fail; b=pzUPb+G9tYXVn52GIeWcB1V1by1VmHLjqSxVkTU9q9Dr4IMnIPcTCmo2fvUsmQr2M0r1QSh1hTM8peAn8hmT6GaniK8XNcksX0BiL3WlgACIxTP3/Ky2CYdjEZBFfKAEHe3LkJ7Ix5gFqJwYFIJElfhMJb4RA/kEGGfGO9exY48= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712138523; c=relaxed/simple; bh=lt92jjJlbT5xE/Uw2WAR3GCPO/H4u86jjFW8BR73cHA=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=iPm3jra48Tpyu5hzZyQqGWw5Rt035xLGSuQaGxiyn3fqgQT6Wgq1q7LixLXH7GxUHFoWZJ+TX8XRASMf6W5rrvE8rZoWfHaKadisTjf0pAw/R7/tjHtwhkiBGv9hkgP3rHwWhv8+fVQ8o0+U8IC1SnAB7Y7IoI+vh8IZBVbQVgc= 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=tv/Xub7A; arc=fail smtp.client-ip=40.107.93.51 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=arcselector9901; d=microsoft.com; cv=none; b=dF5e0Qh8F/4UJoltvULttvyrgrZhuiBPcmxnCNWlVbwR8aCR8UGgclPSAH43tlCZL/m2RtvE2ljhGZqDSQVgwBQCjzXGADfVS+9EMzarcqwh3aTAI+q1RjOC/9MmmbZnieTiX5Pk00v6/rgI1tMXfhPCUe8L0uPt8qSEf7AzJGkXQsHaf216IEfQ9wPbcWHctYMQyoz11BYqQha4/jj7M+MVeDa2rdl3BOxDvgFS+pXjHRG9F3PNSCmovv+DRU7K20elKPJsgiA0D8Vmd1de6mBo5e2p7wzSh8EYFzAY5RZjqVjPRtHS2ydZ4/qDKWLhFD5+nKdjBYPUrQbdixku6Q== 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=yfu8fInnNBhPuA4WVCxmhq7yixSV4IpD3ZmHzXMU2So=; b=eY3o+gbPqA8pNVQJmzgddFpIoTK1nRVjPGRVCURUcFlicWuFYdrY4tJkkTcObZaFai5ZtRsHCivCOCq3mlycD/AA3NIrvdEEUI3wWSTHNfA7gPaczV9Q1SgNFZtM/vNXXexR3vsGDiHV9pJaNUx9r1PyCTEZ5e6JLvORaZpVYt6b5ol0drT/b0qBOreV1gDK5tYW3nD/3jPLPWxqjxWZP+cBsd9s8zxPs/+LhrtSb2/wPv5RpBdT9ZqWoLFAHwsY7x9kcJnxiWB6GELc5CAywUCP2tNbI7kh3ZneycYDirxp5Pzn1LWmDtwuyB6mOmX246vSWwcMk/QZt429uYnVrQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.118.233) smtp.rcpttodomain=gondor.apana.org.au 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=yfu8fInnNBhPuA4WVCxmhq7yixSV4IpD3ZmHzXMU2So=; b=tv/Xub7AZGcBBwUjgRY/LtP0kv9FBXY5c8IpLJhyyMtfOJOGtpP5zbHpOHEv9Fn3+nNgtYkTTjQXO9PT9hC4DEqMl5hNvcq3zysTqDKxhQvP9uqfPixNFnmv0/bvxCgbtt0ovyiuPB6gFnfYsIWv9oebCztBYOvoqXFm7/Mew6NEcAjrfYoLxLNKXznQzSwawFRXUQ6v0QsfkYSMP98mjvbknEAJC6f+vpxd+d42+/HBI99HsXRu2VTftSTRlpdntVCHWfkuGQt7jBcmkvD1U0JHurlsxKd8nFKMcrbD832PH5DpKnQNk2E2z+3nNbz/FohcyODRAwZt3y/jh/zK+g== Received: from BLAPR03CA0179.namprd03.prod.outlook.com (2603:10b6:208:32f::33) by DS0PR12MB9059.namprd12.prod.outlook.com (2603:10b6:8:c5::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.46; Wed, 3 Apr 2024 10:01:58 +0000 Received: from BL6PEPF0001AB72.namprd02.prod.outlook.com (2603:10b6:208:32f:cafe::e8) by BLAPR03CA0179.outlook.office365.com (2603:10b6:208:32f::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7452.26 via Frontend Transport; Wed, 3 Apr 2024 10:01:58 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.118.233) 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.118.233 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.118.233; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.118.233) by BL6PEPF0001AB72.mail.protection.outlook.com (10.167.242.165) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7452.22 via Frontend Transport; Wed, 3 Apr 2024 10:01:57 +0000 Received: from drhqmail202.nvidia.com (10.126.190.181) by mail.nvidia.com (10.127.129.6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.41; Wed, 3 Apr 2024 03:01:34 -0700 Received: from drhqmail201.nvidia.com (10.126.190.180) by drhqmail202.nvidia.com (10.126.190.181) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1258.12; Wed, 3 Apr 2024 03:01:34 -0700 Received: from BUILDSERVER-IO-L4T.nvidia.com (10.127.8.14) by mail.nvidia.com (10.126.190.180) with Microsoft SMTP Server id 15.2.1258.12 via Frontend Transport; Wed, 3 Apr 2024 03:01:29 -0700 From: Akhil R To: , , , , , , , , , , , , , , , , , CC: Akhil R Subject: [PATCH v7 2/5] gpu: host1x: Add Tegra SE to SID table Date: Wed, 3 Apr 2024 15:30:36 +0530 Message-ID: <20240403100039.33146-3-akhilrajeev@nvidia.com> X-Mailer: git-send-email 2.43.2 In-Reply-To: <20240403100039.33146-1-akhilrajeev@nvidia.com> References: <20240403100039.33146-1-akhilrajeev@nvidia.com> Precedence: bulk X-Mailing-List: linux-tegra@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-NVConfidentiality: public X-NV-OnPremToCloud: ExternallySecured X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BL6PEPF0001AB72:EE_|DS0PR12MB9059:EE_ X-MS-Office365-Filtering-Correlation-Id: 0c5debf5-c54a-4805-8f10-08dc53c51986 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: oIk9FAGtYoPTy3Wwioaief4lFMCa535RNMKExTCZqHqMJ1WqcgB6rcL5KfSum+pJQRzF7wGCmcACdSXVlcM0rplI5AevYcaZ6im63ohcLE6SHxequFfEtp81aq2eDYp0QJbegsxHOz8n42VeJAtIM+aHcSYen2NuHbG2yNvRHM5CEwO5/CiuKwr2g1RiYEnAXiBJ1fEpQCYRSjaEG+nDKet1zGt6H9CWGFhStUp1SLbzzbmnmCMlqeDPg1efk/fWkrDo2YQNyDfv2meRu6ohVHaHHMz8OZhoTbcd3svKHwCzOqGingpP6Acau3ECqFdFmoLJWNL2ZvsnVh84TAh82JmrPXEMeb4lVEoqo0dcOkTYf05s6CrOa4i4tYud+PulthS6VrWds1OSx2Pi9PrSDsRiNPvwDVo37bJ1sREt6GxI0+zoPpG565TH7Z2kzJkRpthBLysOr5KnZq5aBsQ8skTd0wGY6KHpBIcdN2VfNaHyYPdVqWm3ypwWHzbnQTIfcRVhCKM1DkbngkDRrAYVFZDnqRgRhQFdKfeE1UrdZoGGk8vo0ckIw60i2gcjY/rh34kp2s3mSMb/aEeTWuCOx6gzbpqMkX+lCqKSTTi6iG2kbEx1Scv0+v2jsy/MIgzT2tVBMZ6ACWrAQwZmiAScodTnq2mwAJPXqHitmUiuE8xpFR5tlf89EP1fHkkFa/e4UfqGcHwslNrGRUELlXVKgvuM/dQXFnz5yfasYPW1ed4wYhZR5YUhHhHHnJMi0cToMN2rSONw4//Kbw6qn/eF5Q== X-Forefront-Antispam-Report: CIP:216.228.118.233;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.nvidia.com;PTR:dc7edge2.nvidia.com;CAT:NONE;SFS:(13230031)(36860700004)(1800799015)(82310400014)(376005)(7416005)(921011);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Apr 2024 10:01:57.9648 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 0c5debf5-c54a-4805-8f10-08dc53c51986 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a;Ip=[216.228.118.233];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BL6PEPF0001AB72.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR12MB9059 Add Tegra Security Engine details to the SID table in host1x driver. These entries are required to be in place to configure the stream ID for SE. Register writes to stream ID registers fail otherwise. Signed-off-by: Akhil R Acked-by: Mikko Perttunen --- drivers/gpu/host1x/dev.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/drivers/gpu/host1x/dev.c b/drivers/gpu/host1x/dev.c index 89983d7d73ca..3a0aaa68ac8d 100644 --- a/drivers/gpu/host1x/dev.c +++ b/drivers/gpu/host1x/dev.c @@ -215,6 +215,30 @@ static const struct host1x_info host1x07_info = { * and firmware stream ID in the MMIO path table. */ static const struct host1x_sid_entry tegra234_sid_table[] = { + { + /* SE2 MMIO */ + .base = 0x1658, + .offset = 0x90, + .limit = 0x90 + }, + { + /* SE4 MMIO */ + .base = 0x1660, + .offset = 0x90, + .limit = 0x90 + }, + { + /* SE2 channel */ + .base = 0x1738, + .offset = 0x90, + .limit = 0x90 + }, + { + /* SE4 channel */ + .base = 0x1740, + .offset = 0x90, + .limit = 0x90 + }, { /* VIC channel */ .base = 0x17b8,