Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp2396941rdg; Mon, 16 Oct 2023 03:16:09 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEHAlLrjURDhEd53omuXRj++WUBPPml1M/UfLtYT0k8eRVAIJ/bryyLLucecjcel09VTG+5 X-Received: by 2002:a05:6a00:3a08:b0:690:cae9:714d with SMTP id fj8-20020a056a003a0800b00690cae9714dmr32804030pfb.13.1697451368739; Mon, 16 Oct 2023 03:16:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1697451368; cv=pass; d=google.com; s=arc-20160816; b=HMO341kFAeWLD4w0YDcU8/iat6ylIbyn3XdiePJrlliRZnpYNEqDGhpTZ4tZZpi7PX xxzIBj7dglFynDEJ7Y9+L7JMntCtEL4UP9II4e2Ew99uGMq8jo3EquGlVIfkOOKuRoxF O0sSdKUYUdJ0cA+UsOiNWbDhsrP1gr5oNRxmw0bIVAfHxEYcV7Xif6X6PiB10t9UEVb9 nI/LXJi8Y9WqNDT/dvnSB1X0ozjBvD4ugjDPuYrOEw0vQ3ZujBAqyiEz9GMWx3nX/hkg 8n1t07lgoZomOzkGUGdPXznncQUI624PbWaSsoEfrqqS4cFebfhbrQVRHpiGbwNJEtBY y2ag== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:to:from:dkim-signature; bh=jUDn0U9Vj5mshxuMLl85ZX5Xfcf22GbNmQ8HrOCMdsU=; fh=WbbGAqTwxxTqGDtZLSrOYDkqRNeOYHUFpJWT8dEgneI=; b=VZb6FBwjKuZDB9XF8QMgzFmNKp4xUKpii2yGx/GC5hzSCY7B0WDIsh6ZottX0Uo47y PaNiaxVSIuQd7Lz0TDdfA5rJlHSwnJvMsr/APj4rsZXQT+A6ZJdULlOwjO6iDASUy8U6 t6ZhERFla4vr0R67TjbrjT05uSCvHY5M+U5Wh2B/FlQQbFevjzOCH/PTCO1XYn7IV5dF tfRHpRspRYxqfWEfwx0B1+0H4MIN7ryu8aZGEHSOq9aCMlPyaw/9/6DUZ1PI3LR1u3M6 tSdM1fpDEZJcU0+tAzh3yC74Rl6L480Ob80ols19KNPM4ydchVnNwk30oV+LKEuHIBxs EJkQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=UzInEI6y; arc=pass (i=1 spf=pass spfdomain=nvidia.com dmarc=pass fromdomain=nvidia.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=nvidia.com Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id f9-20020a056a00228900b006be199ee091si2235892pfe.295.2023.10.16.03.16.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Oct 2023 03:16:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=UzInEI6y; arc=pass (i=1 spf=pass spfdomain=nvidia.com dmarc=pass fromdomain=nvidia.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=nvidia.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id EB9318083AAD; Mon, 16 Oct 2023 03:15:35 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231508AbjJPKPP (ORCPT + 99 others); Mon, 16 Oct 2023 06:15:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58232 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229459AbjJPKPN (ORCPT ); Mon, 16 Oct 2023 06:15:13 -0400 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (mail-dm6nam11on2079.outbound.protection.outlook.com [40.107.223.79]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 238A583; Mon, 16 Oct 2023 03:15:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Ol7LijPnKdIfV81CZ4RwzPvfnh+0kXWMFpSvMAy2NaNbFvUvT1Mw9/rxuVOeBOn4EFR1mKFdCnLiQm6xUT1WUHDsWw9R5VHiVjuxKq7QIkqKHwESVdruy5YPWiu7Hbj6XPE0VUh5gEvmB9IVU+UbahZgohkSgfcmti8u5PbItl82fSiBfvTSuMUXiJINHv1AEQUM7vOofLNwn3zj1rArZQhfDNCkHHHmzraGiQNCXly7BPYXTWSSpNLoOJBt5n5rXCOK4VDstT/DCBS7hL1wAWyBi+XV5jLTpTHUQl7lI7FcweMszgAhzAmlAacqxPHIp3yMoEIQkAgzjZg0UQKESg== 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=jUDn0U9Vj5mshxuMLl85ZX5Xfcf22GbNmQ8HrOCMdsU=; b=GasdQmIA8o2U4SglhCNhmrxvNwQZFn4LZbF+k9z9I22+RUdtlDA+SwGfER/UmrirBdHMvtki+UxXxJqaUJQFbECT7JAupVZhHaJ/iBhMIU9qeglDc2hkHBke2z90EfLDw+XxQIBViBZYA2s88NnNSNFw7wao5yaytDSiL1htSEkv9nM22uBM29kk/uh8oA9HQtNbSLc6L8viOzJrGRg6xiO1PHB5eZmA5jlv4h1YLqnxijqP3RqmPpLj218qGIOHvZknhIx47Fd+4hnHQxS8DfY0RucsT9squFx2gqyivcOxXHF6a1W7txhzFGx/FeOg6+fNbORpvHb3tn6jiHLsGg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.161) 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=jUDn0U9Vj5mshxuMLl85ZX5Xfcf22GbNmQ8HrOCMdsU=; b=UzInEI6yALcYfuadAVOXLJBui28fX/HCBW+ZKDeVfLoJ/TQCcXkHZf/31NKJovfwNBLpMrOvTRanVpJvRZK0LYwnJ71e9GGQY6dhkyS18fBwahDd1H6/r9YHZu+SOcws1JUXFiG0iOLT5IyZtISLOxPz9IH7gL2blEQG4/01SWvuc3vFGIIqg8xLV/9qDJoX7Rbd+4Wwbu55dtaTC1K0LjH51WAbHC74mHGUulCVOlKIUxjapnicxOboqWEa0ewx1oMx4Ty6kfa+PD5qOTPkSwKvVPyBr2akYLGwepuzPjVv3DeBHsI76wkT/1+3zRd3Wt1ffcqAIFEbI2c1uxKZHg== Received: from PH8PR20CA0013.namprd20.prod.outlook.com (2603:10b6:510:23c::27) by SJ0PR12MB5454.namprd12.prod.outlook.com (2603:10b6:a03:304::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6863.46; Mon, 16 Oct 2023 10:15:09 +0000 Received: from SA2PEPF000015C9.namprd03.prod.outlook.com (2603:10b6:510:23c:cafe::64) by PH8PR20CA0013.outlook.office365.com (2603:10b6:510:23c::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6863.47 via Frontend Transport; Mon, 16 Oct 2023 10:15:09 +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 SA2PEPF000015C9.mail.protection.outlook.com (10.167.241.199) 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 10:15:08 +0000 Received: from rnnvmail203.nvidia.com (10.129.68.9) 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.986.41; Mon, 16 Oct 2023 03:14:48 -0700 Received: from rnnvmail202.nvidia.com (10.129.68.7) by rnnvmail203.nvidia.com (10.129.68.9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.41; Mon, 16 Oct 2023 03:14:47 -0700 Received: from localhost.localdomain (10.127.8.10) by mail.nvidia.com (10.129.68.7) with Microsoft SMTP Server id 15.2.986.41 via Frontend Transport; Mon, 16 Oct 2023 03:14:42 -0700 From: Kartik To: , , , , , , , , , , , , , , , , , , Subject: [PATCH v6 0/8] soc/tegra: fuse: Add ACPI support Date: Mon, 16 Oct 2023 15:44:28 +0530 Message-ID: <20231016101436.7146-1-kkartik@nvidia.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-NVConfidentiality: public Content-Transfer-Encoding: 8bit X-NV-OnPremToCloud: ExternallySecured X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SA2PEPF000015C9:EE_|SJ0PR12MB5454:EE_ X-MS-Office365-Filtering-Correlation-Id: 595da9c2-5ecd-43fa-2053-08dbce30c6b9 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: XoYF4S1RiNEF6dRbmZ7X3SGpTH39pTgS7BjHBFhNjZwTgMAbRqxS66OTk4lAzE/c94PAJFDm88Tp/e96jLEqLgtZ6K7oqhl3xRZQioc9hlrfb79EZBCdTl62lkmBcQOIj5IisyeUpDgHH5PBsJLddDyuIXT+OsPWoakBdzpLU+QFWoBihGM9YwWDDkQ4wX23KXctc7NarZjarmZGhzmHPdDOEKMLfgRbDJviSXP4gjNvPmE53Cl0LiQx5RR5EYXZZPCir4P2f0fN2Se2sbQanT3BG3dmY8xVaHmmGecdX4SlUXSgHfrSmUe5gaS35pvw2pvDuEoQjEBBHJkNPRpT575RpZU2TNIYpC4I9BUIak7c5AXJOfTWeJXc+txBvfrp0IP1BUzCJZLhFinHiKOPimTpbPzHmneyMF1jn7Lp3drn/7JQALpFv+HNz5w1B9IK4Y6ElbchxQE7q5G7c9rRDEsjWm0HXf+P5G2DFaeMHbf5dxn4k9mLJ4RJfGlSakU4Hsv6sTP1UmZ64sck0byk4wf1Eafj//3ngue9P4ppX+4r81rMpdc3lv0vzxkPaqZGah7IuPcHdhZJM4ZD9nz8HKsViMd8odEgGjlER2IyuV+YFPk2MarbrhqKxak56AVEqEQhGZPIsWjryeoQJXtmzxUmsUkxypwq3fMdkygdG3CSPtySCke77BOrMpuGkmGu2meMD8znfyWoLIZfV3CIkyYecCSOzWXgKfcnJ1/C17blCCceQ+l8oDLc4qS74m9m+8EK1JXJpZWN0Qzl4KnKkNH0FAs+DXeKz2dVpdhtT7hsJUWypZnLN4FrAmjeLaW7 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:(13230031)(4636009)(136003)(376002)(346002)(39860400002)(396003)(230922051799003)(451199024)(64100799003)(82310400011)(1800799009)(186009)(40470700004)(36840700001)(46966006)(40460700003)(40480700001)(6666004)(478600001)(36860700001)(82740400003)(47076005)(86362001)(36756003)(7636003)(356005)(921005)(7416002)(2906002)(83380400001)(2616005)(26005)(336012)(426003)(316002)(1076003)(110136005)(70206006)(8936002)(41300700001)(70586007)(8676002)(5660300002)(2101003)(83996005);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Oct 2023 10:15:08.9267 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 595da9c2-5ecd-43fa-2053-08dbce30c6b9 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: SA2PEPF000015C9.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR12MB5454 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Mon, 16 Oct 2023 03:15:36 -0700 (PDT) This series of patches add ACPI support for Tegra194 and Tegra234 in Tegra fuse and apbmisc drivers. It also adds support for Tegra241 which uses ACPI boot. Kartik (8): mm/util: Introduce kmemdup_array() soc/tegra: fuse: Use dev_err_probe for probe failures soc/tegra: fuse: Refactor resource mapping soc/tegra: fuse: Add tegra_acpi_init_apbmisc() soc/tegra: fuse: Add function to add lookups soc/tegra: fuse: Add function to print SKU info soc/tegra: fuse: Add ACPI support for Tegra194 and Tegra234 soc/tegra: fuse: Add support for Tegra241 drivers/soc/tegra/Kconfig | 5 ++ drivers/soc/tegra/fuse/fuse-tegra.c | 112 ++++++++++++++++++------- drivers/soc/tegra/fuse/fuse-tegra30.c | 20 +++++ drivers/soc/tegra/fuse/fuse.h | 5 ++ drivers/soc/tegra/fuse/tegra-apbmisc.c | 110 ++++++++++++++++++++---- include/linux/string.h | 1 + include/soc/tegra/fuse.h | 1 + mm/util.c | 17 ++++ 8 files changed, 227 insertions(+), 44 deletions(-) --- v3 -> v4: * Added following patch to introduce kmemdup_array: "mm/util: Introduce kmemdup_array() to duplicate an array" * Add "soc/tegra: fuse: Use dev_err_probe for probe failures". v2 -> v3: * Minor changes in following patches: soc/tegra: fuse: Add tegra_acpi_init_apbmisc() soc/tegra: fuse: Add ACPI support for Tegra194 and Tegra234 v1 -> v2: * Used '--patience' while formatting patches. * Added "soc/tegra: fuse: Refactor resource mapping" to share the common code between tegra_init_apbmisc() and tegra_acpi_init_apbmisc() functions. * Dropped "soc/tegra: fuse: Add function to register nvmem" as ACPI and device-tree boot are sharing the same probe. So, no need to refactor the code here. --- -- 2.34.1