Message ID | 20231016053411.3380-7-kkartik@nvidia.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7416FCDB474 for <linux-mm@archiver.kernel.org>; Mon, 16 Oct 2023 05:35:13 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 081238D004B; Mon, 16 Oct 2023 01:35:13 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 02FA08D0001; Mon, 16 Oct 2023 01:35:12 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id D76698D004B; Mon, 16 Oct 2023 01:35:12 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id C355A8D0001 for <linux-mm@kvack.org>; Mon, 16 Oct 2023 01:35:12 -0400 (EDT) Received: from smtpin24.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id A53ED1A0A8A for <linux-mm@kvack.org>; Mon, 16 Oct 2023 05:35:12 +0000 (UTC) X-FDA: 81350211264.24.7D5F0FF Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2081.outbound.protection.outlook.com [40.107.94.81]) by imf10.hostedemail.com (Postfix) with ESMTP id AD270C0008 for <linux-mm@kvack.org>; Mon, 16 Oct 2023 05:35:09 +0000 (UTC) Authentication-Results: imf10.hostedemail.com; dkim=pass header.d=Nvidia.com header.s=selector2 header.b=BGsDk4dM; spf=pass (imf10.hostedemail.com: domain of kkartik@nvidia.com designates 40.107.94.81 as permitted sender) smtp.mailfrom=kkartik@nvidia.com; dmarc=pass (policy=reject) header.from=nvidia.com; arc=pass ("microsoft.com:s=arcselector9901:i=1") ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1697434509; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=ELKSSmXMLGbNFUFnL8TV/EvgiM4XWsEshppFSZUpBQE=; b=3Uz3F67nbZBnbAxAjRRLOcwuCf7qha1A7cXO0ntJFMxtXtGJwlcZxTEuvVAQiUh50EKzjv vXjs1sYNIwR+F9KSTtlHM/dIYHGOAlpa3lsWECAcLcGU2O2WgBBRWDwIudsaLsBoUPOyWi tryPLPlPSunadcV8ruWhM85R9/LepJk= ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1697434509; a=rsa-sha256; cv=pass; b=2W2C72TpLuKDXo2AS6nRjRT1VdwQqUDGm7Fd62blRmlmrYtyUP3+UiDkkN/7hLwiTWS55p p/f77ipBqp1mPbK28QYzPs79C9Ky6dparrnuJxXl1X0VhpqI1EoqH2oNE5ADsqvjXWPVoq ZeKgZ0wvpiRLaFVayKxGZKfDrEE5bKs= ARC-Authentication-Results: i=2; imf10.hostedemail.com; dkim=pass header.d=Nvidia.com header.s=selector2 header.b=BGsDk4dM; spf=pass (imf10.hostedemail.com: domain of kkartik@nvidia.com designates 40.107.94.81 as permitted sender) smtp.mailfrom=kkartik@nvidia.com; dmarc=pass (policy=reject) header.from=nvidia.com; arc=pass ("microsoft.com:s=arcselector9901:i=1") ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=OYm+dGOAYcvPlvd6vegUM/CgjYb130iNqQw74i1931GNSXbdhQn5YJG79ZaCx+in8jeFrzHvQ9IUveB/RBWSPzoMJrQsw4vPRqrVx77AgmP1djuly/OZ//JhzkPjoOvPCCwsHhfqgQJYg4b0VwkB50ff98omh/w2r1lty5i3ureQAvtxSKvdmDm87auM5GUxWWean+GZs9YB79Tz9/MOSrvtMyXpjy5QZREnuL73k77Qk2vpTVrOHXVCCvH2cFaNvrh3+v2yu8QFoh8cuNcknOUAAnPxqLC+JW4oYYnEUQz0WD2cvMSOPEjvviHKKJ+Hnrh8K+vSetnnsvifoXT7rA== 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=ELKSSmXMLGbNFUFnL8TV/EvgiM4XWsEshppFSZUpBQE=; b=EaY4hoJdHbtVxNsIdV09KMafEmZQp/LAmqJSEle2hr2ftF8dbbwJP4rloQkqTD2PYEuSCsx/RR6ZjqJE0LOaAcuJiJC+OoRTn3pglzVbG+uB9MvmohAr4RJdimgivNuX1o6LVLE7fAEXmxXsdne4842G7oZMTG/kSph3+1mRWCiXOYhU/5Jr/qzhN59Vd4Ba2aZfMCYDV7Mf0J19xXxKVLvor5SCvhUvYLjsbfigdHG4Eg4mswPo/bV86hMZI4Qdu4ExWu2UbV8EfuGy03LEiMMepH+VwTJwTSCpEKifEJZT33lqK2CeF8+fT5AnpzevpUkbzU0kvQC/Ap9G9ydSEQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.118.233) smtp.rcpttodomain=gmail.com 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 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=ELKSSmXMLGbNFUFnL8TV/EvgiM4XWsEshppFSZUpBQE=; b=BGsDk4dMKAbSoSpv1aAWheaTnKqKMYP6AXzUCKFOiYy9PEMf797H9r2qjjJ8XC9nRPlN8kSw8WHzgRZ2QOmrPJfsVIQC6oQG0xuB/r61CqJrDdoxUyr7R/E6bQ0pp6pSwaEEsoClcmUGn7YTsuymtVc0QFhsh6PqVH4BpKryXBsoGI975Ram6UtdMYVPI90pTl6wZ1hy1uH2F/xcoqUUQAE1UMQOrXvJxQ6jYMKyXCehnrVlhsWRc+McczYRvYkhgxVDn1bilJpypS0/RGZKTbSr7giXzUBSj/X3YToIa00+EBGFIHA2WgbLCCaMnOHPSCTDHk5A47fm8EJc8g6+eA== Received: from DM6PR17CA0034.namprd17.prod.outlook.com (2603:10b6:5:1b3::47) by SA1PR12MB6847.namprd12.prod.outlook.com (2603:10b6:806:25e::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6863.45; Mon, 16 Oct 2023 05:35:06 +0000 Received: from DS1PEPF0001709A.namprd05.prod.outlook.com (2603:10b6:5:1b3:cafe::11) by DM6PR17CA0034.outlook.office365.com (2603:10b6:5:1b3::47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6886.35 via Frontend Transport; Mon, 16 Oct 2023 05:35:06 +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 DS1PEPF0001709A.mail.protection.outlook.com (10.167.18.104) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6838.22 via Frontend Transport; Mon, 16 Oct 2023 05:35:06 +0000 Received: from drhqmail203.nvidia.com (10.126.190.182) 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; Sun, 15 Oct 2023 22:34:55 -0700 Received: from drhqmail203.nvidia.com (10.126.190.182) by drhqmail203.nvidia.com (10.126.190.182) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.41; Sun, 15 Oct 2023 22:34:54 -0700 Received: from localhost.localdomain (10.127.8.10) by mail.nvidia.com (10.126.190.182) with Microsoft SMTP Server id 15.2.986.41 via Frontend Transport; Sun, 15 Oct 2023 22:34:49 -0700 From: Kartik <kkartik@nvidia.com> To: <thierry.reding@gmail.com>, <jonathanh@nvidia.com>, <keescook@chromium.org>, <andy@kernel.org>, <akpm@linux-foundation.org>, <arnd@arndb.de>, <ulf.hansson@linaro.org>, <linus.walleij@linaro.org>, <kkartik@nvidia.com>, <pshete@nvidia.com>, <petlozup@nvidia.com>, <frank.li@vivo.com>, <robh@kernel.org>, <stefank@nvidia.com>, <pdeschrijver@nvidia.com>, <linux-tegra@vger.kernel.org>, <linux-kernel@vger.kernel.org>, <linux-hardening@vger.kernel.org>, <linux-mm@kvack.org> Subject: [PATCH v5 6/8] soc/tegra: fuse: Add function to print SKU info Date: Mon, 16 Oct 2023 11:04:09 +0530 Message-ID: <20231016053411.3380-7-kkartik@nvidia.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231016053411.3380-1-kkartik@nvidia.com> References: <20231016053411.3380-1-kkartik@nvidia.com> MIME-Version: 1.0 X-NVConfidentiality: public Content-Transfer-Encoding: 8bit Content-Type: text/plain X-NV-OnPremToCloud: ExternallySecured X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS1PEPF0001709A:EE_|SA1PR12MB6847:EE_ X-MS-Office365-Filtering-Correlation-Id: 3b6025d3-7c4b-4a1f-b61e-08dbce09a7b4 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: +m2Ph9orPCiC93IPmA8nMcpflSWuAYGLzxcJOuvI3VEmVsoCGIUKYheYORx0hWzIB6jyHhJ2sfQji+N0hasGzPCnhmSn1K5jxCHU0km6ma2OEHfVVCBZjM1T32Th0HELvg1ZVFDsM0H7UoXvEdD762q3ra0gYKM0MYDp5kAcAHbsnW3iMPBzJeY8tyldFnnDGwlklI42Xrx0cJAr9Q8nNmLber4oEDRRRe4Zov12Udp0DrKseQmDJfLg3QCZYkim7Vp9b4WsWBRJ1BScjaCeBw3bV1A1o8KFXv87GN0CJ1JJZke49lYDWtnNCV1IWupE6/38IKa3NdAptJ8qmX0aZ88TUI62ft4fjO6ZBWz2L0EG0DcFojkZ/WRjh9dDGfPlAsR5d1PJdSZ3PfMLiJBlBArNEhPd/rioatB8Gz0taic4EWZ+5H3sVuFRaj4cLx5XucTGurwVQvU1OxQubBtL/B+wkq/0aMuzyuKcFS7zHywipA4B4HmbdguTY7rumjbcgrrNPeDW6aRurLj2DNSxy3wamKN62bTrJGi/HdheYbMDy9QGWdNjUMQqHaZ7aRF1NBZLhia1OrFlLNGGLOMhelZ0M93/ICcsmvUP06CLkdMMeJG83Uqthb7EsdUVHMG/aBdLuHw5nmVjBOrLJMzv086x4Q2MfV2aueDXBd2t+HIsp8oogEG7eu7cSIg0lsV53CxBYjUkMQGNPan/qZ0UTEYHOIfyixX1AiGJmj0k+jKk91oU6VKa7xFWpGVra3TsSxr7d8vg+zY8JefB9BKMJ6ldr1RLAJHRNlHSuj23GUA= 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)(4636009)(346002)(396003)(376002)(39860400002)(136003)(230922051799003)(1800799009)(451199024)(64100799003)(82310400011)(186009)(40470700004)(46966006)(36840700001)(40480700001)(40460700003)(478600001)(6666004)(110136005)(36860700001)(47076005)(82740400003)(36756003)(86362001)(921005)(7636003)(356005)(7416002)(2906002)(2616005)(426003)(336012)(26005)(1076003)(41300700001)(83380400001)(316002)(5660300002)(70206006)(8676002)(70586007)(8936002)(2101003)(83996005);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Oct 2023 05:35:06.5316 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3b6025d3-7c4b-4a1f-b61e-08dbce09a7b4 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: DS1PEPF0001709A.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR12MB6847 X-Rspamd-Queue-Id: AD270C0008 X-Rspam-User: X-Stat-Signature: w77k6gn99f3c1g3idb911ertqqk5ruzg X-Rspamd-Server: rspam03 X-HE-Tag: 1697434509-476147 X-HE-Meta: U2FsdGVkX1+Ye5uTenJhFyTCTDr7wiGQK3Njuzc4Bpehfec8WZc+t6kbHmBEoX58daxcFcv41a3jxYZajHYL2FDcIjVBBMspLEB7WmO/FR1Efc06bXyckrK6JUEuNRD1GyfOOYZJFQjlODQlSi31upa5cdxU+3n+rak3onfu4UjfqMVdUTjjzoY07W9U+iswooVyV4e3B62i1L9gjc+f1Ul0HrA134pnPmTgMWa1qLJ/LSI6p0hubr1bjn4XjGdWN8g+Jk2S8H43lzEAtEhaVrvXlvplUhsMX2Un6DjRAP6eWO97UBPNYVu50HewBK2yay/s1HjE08rEdvFcNAt03Viw5WjOmNhK5IPwimKqTVQswY5UJ/5OMMOkrkIq5BSqKaci4tlzdVdjPlmCoeBkqITUXzE6M1kr4Xm3mLjXbzG755iCrVkLvtD0HF+g3VkWDuIoYx6/VhgfJmzr2aVnBq+dJBUAZ0r02QywlpSQJFaI+c40fNQPwKnjG+ptpG5KoxQcqYwjR8qvT0NPwv37SyQhvCiMGcsB+01gypjS9IV4zVSmuDlp1NhNFDF+0mQyGH4KG8LxY+joIx26W/4qtc3IDs5kcJs3CJGEvY8L0hxw+LNLpiPuyXN3ycwkRkadyKUzqdz7wHR+p/U2Wz+ACDblmTo1+0GinYr6AQxXFlwBX57mQgapd2vr2DUXmi680SbAqCjevaGANhUrTg+DGn+y/kjhs5uQ+J4ufWGh9lYJA0syCDM/HtsULKK5dS97raO3/03CKjI4U8/k/L9ZWSbqh4E7L9Hs0Cdq6Sx2/5z9yxMpK3zE3XzdAJDmBcTgl8/gR8uB6JM0eu8MxPtcKDCQxEk1nERsMJ+AdULQLJhxh9GTXI8DFJGp+wcv2VAIk2VQDSY+q5JE0ip5igNKoGlRRNWGiZT661Eq19i8203FBM1PmTpoA0KFWThE3TY47wa291h6MQ1T15T4KdF SCPX8yLk IC8REWjx1oxtYB8LM3bTaCCkfpGfIC4syTAJZ2F1tgkRt01C6wnkLNAvT2HsBeUXl5RpI75i47UoDwduEoVEnSG6X3D7CaYXKduX1hLTFKilTNCBhb9U5KORamtuFqp+raSsKq48LmbcJWzCzUVl5lyh9UUp64fjLAFNmqR3eV5+7EZwKLZNNd1SQ2+Hmbapa7lKo9jdX27hTBqePIvrwR41EHK/EwovCHI2RdUS/+/gpXPy35D4JjvzmUYYvSP/JeBm9Qml8Wzbp89xW19PkyPZGJYK7Cyk+wrjLMYQL9IKYF1Eb8rEpAagF9qSgGuIcoRik8UEkLgPv+I7wOfdJhZ0dwg== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> |
Series |
soc/tegra: fuse: Add ACPI support
|
expand
|
diff --git a/drivers/soc/tegra/fuse/fuse-tegra.c b/drivers/soc/tegra/fuse/fuse-tegra.c index c91194612a9a..9bab758a60f2 100644 --- a/drivers/soc/tegra/fuse/fuse-tegra.c +++ b/drivers/soc/tegra/fuse/fuse-tegra.c @@ -113,6 +113,16 @@ static void tegra_fuse_restore(void *base) fuse->clk = NULL; } +static void tegra_fuse_print_sku_info(struct tegra_sku_info *tegra_sku_info) +{ + pr_info("Tegra Revision: %s SKU: %d CPU Process: %d SoC Process: %d\n", + tegra_revision_name[tegra_sku_info->revision], + tegra_sku_info->sku_id, tegra_sku_info->cpu_process_id, + tegra_sku_info->soc_process_id); + pr_debug("Tegra CPU Speedo ID %d, SoC Speedo ID %d\n", + tegra_sku_info->cpu_speedo_id, tegra_sku_info->soc_speedo_id); +} + static int tegra_fuse_add_lookups(struct tegra_fuse *fuse) { fuse->lookups = kmemdup_array(fuse->soc->lookups, sizeof(*fuse->lookups), @@ -501,12 +511,7 @@ static int __init tegra_init_fuse(void) fuse->soc->init(fuse); - pr_info("Tegra Revision: %s SKU: %d CPU Process: %d SoC Process: %d\n", - tegra_revision_name[tegra_sku_info.revision], - tegra_sku_info.sku_id, tegra_sku_info.cpu_process_id, - tegra_sku_info.soc_process_id); - pr_debug("Tegra CPU Speedo ID %d, SoC Speedo ID %d\n", - tegra_sku_info.cpu_speedo_id, tegra_sku_info.soc_speedo_id); + tegra_fuse_print_sku_info(&tegra_sku_info); err = tegra_fuse_add_lookups(fuse); if (err)
Add helper function tegra_fuse_print_sku_info() to print Tegra SKU information. So, it can be shared between tegra_fuse_init() and ACPI probe which is to be introduced later. Signed-off-by: Kartik <kkartik@nvidia.com> --- v1 -> v2: * Renamed tegra_fuse_pr_sku_info() as tegra_fuse_print_sku_info(). --- drivers/soc/tegra/fuse/fuse-tegra.c | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-)