Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp690812iob; Thu, 12 May 2022 02:34:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzC1jyDoFd2b5YAkLRX3YWQtZfIblRA7Cy1kjhfcuU8J2xw0H1jtJnJqvIcxGFPXJtZzYko X-Received: by 2002:a05:6a00:1943:b0:4cb:79c9:fa48 with SMTP id s3-20020a056a00194300b004cb79c9fa48mr29197862pfk.47.1652348082979; Thu, 12 May 2022 02:34:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1652348082; cv=pass; d=google.com; s=arc-20160816; b=kjIvgkjIvMDUzoRvTfO9Bfzs0hr/7DDD3GROCgkemVHO0I9w7CFXjbtvmQ1VoqcCQI R0Ogq2inWpbdO0wbX/t/ddRcVD47nskuoRzv5GBbC0ipH6CcUv9p4SHr5XmCh07H7sTy EX/kx1t4YLXxzbIk8sS1IKczlKagKhLRrpdcej4RCBoX0GHXiTeCMsmppavOR83LuSVk VvxuTO6PSicf1aQGvxTjwrr88tALX9EO0b8mNlwKPqOOS9V4Cz7QwLL3+zLBlkfCCVIf 2SM+69r+lwlfjdcaMy9tx0EsCuIfqXgMGiXl+hm19m54lM/b8bovzfj/lexubskHopXX 9wXw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :dkim-signature; bh=Iu6UZjsb6WihpYGnIFYEYP/Mb7cSztH7rf4wPghUSa4=; b=uq7Y1S5RO46qabVVr93d9yZxmL7K7zDRjEoBgf92p+c3f2oalEq60H4jSh3ZeQF/b+ jSmoTlZZPmavxTFJeeY5dVnTVrqIXBknDaj2nnFGqRzsTK8A1kAaXDWrJDrWjjdtlMDP F07Xfotb/H2uHdVSlUqAxBSBCOa9tnBcOHIgsJ5ZGYRCrwWLa7KXEgi0YWOIorrAujyn j6KNvuBX/5Te7S39Oe/UCS7BM7mtKnLIbCepcKzSamOSMyd+D2Xmpz1VFa9HNPhix/e0 ffFgtadZ1I+pzVemBOOyluKDnpD3GdA5VMY661cSZbLLgskO06PEWt6e2lJ6G+cqEkbI pP5Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=HC4yxJ54; 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::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t21-20020a170902b21500b0015875d4d0bfsi5105884plr.392.2022.05.12.02.34.29; Thu, 12 May 2022 02:34:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=HC4yxJ54; 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::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345238AbiEKURH (ORCPT + 99 others); Wed, 11 May 2022 16:17:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32988 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245071AbiEKURC (ORCPT ); Wed, 11 May 2022 16:17:02 -0400 Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1anam02on2047.outbound.protection.outlook.com [40.107.96.47]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A4B9169491; Wed, 11 May 2022 13:17:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BvWbjckRyb/cXRvT0SjSF2E5tBsUYudI0QV3Vkg46jepyCJBN26aK7Nb2GHil4k6K3G4eko6ft06cB1FRQXP3ivQpbFbWbq8KOmN9QkcEJUHgr0jDJM2s/6U8/9RoRzOIAaIh8iCHdmOpdnO6UJ9gsBJBEEmi6Lwvvgaio0+LiF+CkyoPTbvk5TrLNoJsb9kli5L3UuZNa+5Q1k9HoiItHzDXWFrZ3nq1J1bZ7eq/itU2fxRlb0Uy/Nt8A8SHoxZ4ELWRtvkga4HtwHKAASTUvpMT5TTN+y7VcvV1qLmsDUthV8sJIbxHnPWD+pscr/y77/prwE2xp6EqILyeuar9w== 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=Iu6UZjsb6WihpYGnIFYEYP/Mb7cSztH7rf4wPghUSa4=; b=eyZzs/M626wuzZOr/l86goENO6mOjhC/N3YgD12elaJO8SN+qDzz/9hM4p53L2Og4GAb8dpNReroXnndgvwrMbm3v4EjlIYSkIla/agA92/smgoN6DQg4HN7TtPthicXQkOhde1uVX3O84V2YK4i9S5dH4sRASt43ZHcIsEOX1b889FRj+i9EAGL73KB+wf2CE+YzGlao7jK5/P98USOMKp+PnJupElLs/XuPL19CVwziVPLUWvl9IypNyAv9XwzVWf3TPrmjttBg2+VvtKM6iD1exn+JBj22od8ky8E/XkD5lqPX1WiG+ny4YWBY/vC8u9OJMPOUiliHvMrcLyWjA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 12.22.5.234) 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=Iu6UZjsb6WihpYGnIFYEYP/Mb7cSztH7rf4wPghUSa4=; b=HC4yxJ540MoQIRg3zXUy7LA6GVhYrSY1k78SQR4GW3PRWDub2fXATtFWP9tnwfbcQMqod0P1BuKOGNweP0dWdvQPTRuvLxSUjmpFAN93ovLE8ograZvixuZxig2YLyds83n+KuqyQfsYhuniiw7gvdEU5SDzg51R1mUIMNS5gHcWdONb8EBrYS5kQVWP/e3U/RiLxZ6C54sdtqnGdo/tHhCXlpTy2HrblPNFTJYdNig2efLg217hie1B4HvVtHqktSH5IoUoUq7bxbCnM+VVLGvYMpkMtra/Nhu4M/wbcPjVtAzUuCcRB3N9AjeBK8YaQFnU4bAVGF8e8qFJxThVBw== Received: from MW4PR04CA0231.namprd04.prod.outlook.com (2603:10b6:303:87::26) by MN0PR12MB5788.namprd12.prod.outlook.com (2603:10b6:208:377::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5227.23; Wed, 11 May 2022 20:16:59 +0000 Received: from CO1NAM11FT053.eop-nam11.prod.protection.outlook.com (2603:10b6:303:87:cafe::17) by MW4PR04CA0231.outlook.office365.com (2603:10b6:303:87::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5227.23 via Frontend Transport; Wed, 11 May 2022 20:16:59 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 12.22.5.234) 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 12.22.5.234 as permitted sender) receiver=protection.outlook.com; client-ip=12.22.5.234; helo=mail.nvidia.com; Received: from mail.nvidia.com (12.22.5.234) by CO1NAM11FT053.mail.protection.outlook.com (10.13.175.63) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.5250.13 via Frontend Transport; Wed, 11 May 2022 20:16:59 +0000 Received: from drhqmail203.nvidia.com (10.126.190.182) by DRHQMAIL101.nvidia.com (10.27.9.10) with Microsoft SMTP Server (TLS) id 15.0.1497.32; Wed, 11 May 2022 20:16:58 +0000 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.22; Wed, 11 May 2022 13:16:58 -0700 Received: from sumitg-l4t.nvidia.com (10.127.8.10) by mail.nvidia.com (10.126.190.182) with Microsoft SMTP Server id 15.2.986.22 via Frontend Transport; Wed, 11 May 2022 13:16:55 -0700 From: Sumit Gupta To: , , , , , , CC: , , , Subject: [Patch v6 0/9] CBB driver for Tegra194, Tegra234 & Tegra-Grace Date: Thu, 12 May 2022 01:46:41 +0530 Message-ID: <20220511201651.30695-1-sumitg@nvidia.com> X-Mailer: git-send-email 2.17.1 X-NVConfidentiality: public MIME-Version: 1.0 Content-Type: text/plain X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: ae6f8438-f2bd-4541-ff92-08da338b340f X-MS-TrafficTypeDiagnostic: MN0PR12MB5788:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 08THanSWSlA5AAE25tuFX8Cv8xlrNH3jmtnBZoAdiIeZtCcpeQ6yAxcjEnzFT3cXd8OKWktBvgSLxebcmiY2JzwFQn2pAHygMMz7LvMNmeRBVWLHl5VJvjexfpislJ7ceyu+q0xLUjjihKH17r1DikWbwsL4DmGyCfK7tezLnpUkeiXn3js3H2+KcaAsMVRaKZTAJfSvhcGOJwfyUAiXCUrMfEjT+WKMbzIu+7U2OBhlZ1XFTloucANYI6nNbOcARS9u+wWHrvX6IXYdpfkpnX48Ok0YBpT/8J/dunhVC28C9x3auvcpTAKOT22OwNb0cCSCNcA+TiyFUWIWGGWhKIPnUMOqIWJln156X9i5mtY7ylkyj2Bl8JOIwF67W8H5eOj4H/EbjnHqTzmDjONohiXhNFqvgYzgQFPm8NQ66j9PFKa1JlQAWGY13uHJRd7WJRSD5GV/GLrghNPY/S5H60iwLFf8M5ET40zr5gMzdMWx5O55QchERORbpyNxWN6Bu0wLECjMBp1bHR8rqSqIIC53QvtLK6SG0sS8eMjNRQSkpFeX4uCKCOzMNpoxxpea5jeyF0+eKqWCztEPsqKTpUQMr9RV0aOyw408TzIkc8ZsCZV2Q0eeDq1z1JquJYDTez4PXvL27Sr8o3Z6lcIOQI5i6TcuEiRGZIhomXSeIzRWU8uycnUBlf2SxWxY/LAM2J3gjGMSjtlfWhGHLzWNng== X-Forefront-Antispam-Report: CIP:12.22.5.234;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.nvidia.com;PTR:InfoNoRecords;CAT:NONE;SFS:(13230001)(4636009)(46966006)(36840700001)(40470700004)(426003)(186003)(107886003)(6666004)(47076005)(336012)(2616005)(1076003)(4743002)(7696005)(2906002)(40460700003)(26005)(5660300002)(8936002)(508600001)(8676002)(36756003)(86362001)(81166007)(110136005)(316002)(83380400001)(70206006)(70586007)(4326008)(54906003)(36860700001)(82310400005)(356005)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 May 2022 20:16:59.2343 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ae6f8438-f2bd-4541-ff92-08da338b340f X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a;Ip=[12.22.5.234];Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: CO1NAM11FT053.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN0PR12MB5788 X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The patch series adds Control BackBone(CBB) error handling driver for Tegra194, Tegra234 and Tegra-Grace SOC's. Tegra194 is using CBB version 1.0. Tegra234 and Tegra-Grace are using CBB version 2.0. Both CBB1.0 and CBB2.0 have different internal architecture. So, separate drivers are required. Tegra194 and Tegra234 are using Device Tree. Tegra-Grace is using ACPI. Request to queue the patch series for 5.19. --- v5 -> v6: - Minor changes in yaml files in patch number 2 and 6. v4 -> v5: - fix warnings on diabling CONFIG_ACPI reported by kernel test robot. v3 -> v4: - rebased patches on 5.18-rc5. v2 -> v3: - fixed warnings with GCC 11.2 and W=1 reported by kernel test robot. - changed some function names to make consistent with tegra_cbb_*. v1 -> v2: - moved err-notifier-base and off-mask-erd from DT to driver. - yaml fixes by Thierry. Sumit Gupta (9): soc: tegra: set ERD bit to mask inband errors dt-bindings: arm: tegra: Add NVIDIA Tegra194 CBB1.0 binding dt-bindings: arm: tegra: Add NVIDIA Tegra194 axi2apb binding arm64: tegra: Add node for CBB1.0 in Tegra194 SOC soc: tegra: cbb: Add CBB1.0 driver for Tegra194 dt-bindings: arm: tegra: Add NVIDIA Tegra234 CBB2.0 binding arm64: tegra: Add node for CBB2.0 in Tegra234 SOC soc: tegra: cbb: Add driver for Tegra234 CBB2.0 soc: tegra: cbb: Add support for tegra-grace SOC .../arm/tegra/nvidia,tegra194-axi2apb.yaml | 40 + .../arm/tegra/nvidia,tegra194-cbb.yaml | 98 + .../arm/tegra/nvidia,tegra234-cbb.yaml | 74 + arch/arm64/boot/dts/nvidia/tegra194.dtsi | 62 +- arch/arm64/boot/dts/nvidia/tegra234.dtsi | 42 + drivers/soc/tegra/Kconfig | 9 + drivers/soc/tegra/Makefile | 1 + drivers/soc/tegra/cbb/Makefile | 9 + drivers/soc/tegra/cbb/tegra-cbb.c | 198 ++ drivers/soc/tegra/cbb/tegra194-cbb.c | 2261 +++++++++++++++++ drivers/soc/tegra/cbb/tegra234-cbb.c | 833 ++++++ drivers/soc/tegra/fuse/tegra-apbmisc.c | 29 +- include/soc/tegra/fuse.h | 6 + include/soc/tegra/tegra-cbb.h | 43 + include/soc/tegra/tegra-grace-cbb.h | 219 ++ include/soc/tegra/tegra194-cbb.h | 158 ++ include/soc/tegra/tegra234-cbb.h | 342 +++ 17 files changed, 4421 insertions(+), 3 deletions(-) create mode 100644 Documentation/devicetree/bindings/arm/tegra/nvidia,tegra194-axi2apb.yaml create mode 100644 Documentation/devicetree/bindings/arm/tegra/nvidia,tegra194-cbb.yaml create mode 100644 Documentation/devicetree/bindings/arm/tegra/nvidia,tegra234-cbb.yaml create mode 100644 drivers/soc/tegra/cbb/Makefile create mode 100644 drivers/soc/tegra/cbb/tegra-cbb.c create mode 100644 drivers/soc/tegra/cbb/tegra194-cbb.c create mode 100644 drivers/soc/tegra/cbb/tegra234-cbb.c create mode 100644 include/soc/tegra/tegra-cbb.h create mode 100644 include/soc/tegra/tegra-grace-cbb.h create mode 100644 include/soc/tegra/tegra194-cbb.h create mode 100644 include/soc/tegra/tegra234-cbb.h -- 2.17.1