From patchwork Tue Oct 18 16:28:09 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Akhil R X-Patchwork-Id: 294 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp2049952wrs; Tue, 18 Oct 2022 09:33:10 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7Q7hOX6BW50KYRIfKH+5ww+uNHuqON7lyAWY0lXFh3F/AjfdYkCNbOsnLRj4Vc2R8J1qB7 X-Received: by 2002:a17:90b:33cc:b0:20a:7f32:9632 with SMTP id lk12-20020a17090b33cc00b0020a7f329632mr4612770pjb.149.1666110790448; Tue, 18 Oct 2022 09:33:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1666110790; cv=pass; d=google.com; s=arc-20160816; b=DlbaQTtkdZ3Vb3TFB9kVw7VitL0r8W+F8q/lCAxuYQc2rTMpTbrzLwASbbgN3XY0ak APrn6mJuhUUATG7iN9gIL/DkcQcTwB2985X6muq8dU3owuttGpAI6sqj3OHpR1YKshWn 9emhmAItH23MZSDVH0b0GSf/ticS7ht4yEx2G5b7LTNVTABpeCReqXJRSfd/ka2qAi3T YMCV+kP670PTuNv+GGpGZsEHXpT605tcI0GjDLB4ObCTBoDRDwJRL8ZKIbMtIJkKeZcb 71HQqhmq8QIvUYSVFLL1H3vim2HbqIcmX2PNEdAdFm0EVbJuN0Pkd5HwYJHhhvMwlwuN U9Ug== 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=gEylTZ+nZvtt7CtuSmVaGt1Bz1AlbWl2lhzMYhaJFCY=; b=00T8HkkFE5ha3dGRKQjBKPk9ofhCZigV/YKyDGee3RLa5zp7Dl+opCKHL3l2oLH3GF f+P3zkWK8SRViSfhebZvuc7VeHJxtGmWNW5NMsjQCj+StcImxEm6NjkpZwF+SEyHTct1 s6sImtcs4u5Ur7jP+e+uYfH8OQRpMAEYzaCvDvic1yhAbRnCsvMUB4eXqGJYXQOHh0Fq wcv87hy+RVYYTIbNCLeaUsNm5HJEkYp0gsZYIVpnzqMOgBlibMVnyQSOePPkqIychin2 21oK0l1s13AlVcLcmxt+BzDhOkcRgxJnFWgasd67Ox8KlumEagw1RkF/x/ETt8lkRWaP O1IA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=ai+7idmz; arc=pass (i=1); 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lb5-20020a17090b4a4500b0020ab4faf62dsi17717055pjb.159.2022.10.18.09.32.57; Tue, 18 Oct 2022 09:33:10 -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=ai+7idmz; arc=pass (i=1); 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 S229452AbiJRQ2v (ORCPT + 99 others); Tue, 18 Oct 2022 12:28:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55326 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229592AbiJRQ2r (ORCPT ); Tue, 18 Oct 2022 12:28:47 -0400 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2064.outbound.protection.outlook.com [40.107.93.64]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E1D20BBF31; Tue, 18 Oct 2022 09:28:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nmZU/k1TtGo9zDf7avyPKYWgWsqhJwVi4NZgdm3+ASEp2Hw1fA/hvQYuJsCVgDcMl9DKdshkde+x40y1vag2ShqAzkHemplUh95qJJKZaZOcgi/UlAdn0WYDpO6WI3987RF9tpJkLU0JRlaTpD81GTfBrWEbZATo9OsUB13tAbCkqgc11PRHsqQFBqN+/WVOHj914be3cuht71tqEMgrX/6MvwD5o78gT/ptWKWw5vKpKiLjjwu8bz/soMilJE0NOsFsUMt55xqfX7axwQ92vj75xGKuZ3ObpcHsUjbJrz1KRH905OoOCmYCl6UX9JZaI4XTTcrveJeUPEMkYmTxDg== 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=gEylTZ+nZvtt7CtuSmVaGt1Bz1AlbWl2lhzMYhaJFCY=; b=Kq2FigDcrqbkDQWUZ7luVVhaXAcnZ77hBiO4UMOPqC/y+WXNIrty36Y074yEx74toTRBDtZJEn8NF29OgFcGP3eL+9cnINqTF4Vk+VFjR5msaG3VT2WiLXF9YpWe6WcWcTCJfdta1TkkhvrsUf3m7MoiGigVLUDlieJtyk//3UvJYLSJ+5w1Rjbb05+pRmUnw7T8i1JR3tjxjMcYsccwJMEt+em9/J7br3y1Gd6IyS+hw4yeNx77EKdTQxbv770m+X+s0PBpcxNZDHKYrQAaGUTn0BX/9vfx6dhwe6OV15RO9o9y48Vz1iEvfaUQZnfgqe7wjk1EbQmW44uB7akRtA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none (sender ip is 216.228.117.161) smtp.rcpttodomain=kernel.org smtp.mailfrom=nvidia.com; dmarc=fail (p=reject sp=reject pct=100) action=oreject 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=gEylTZ+nZvtt7CtuSmVaGt1Bz1AlbWl2lhzMYhaJFCY=; b=ai+7idmzrWY91a8TtczZxyn5HWfunHdbEL+xx73HWYuyY3Gwwy1wXCafnnYsYPEcTMGLCcD1QU0ZQIav5rF5cZ6PCtaXypV86B06J+gDwihD56mbmBDaQKxakEpm79G6av+1xp5IP0C+TNwX75LKrFSvOFAQ25G1Opp6Ip7TiIXw2q4Ax6x+FUYtZ9gYsH14KlmBBUd4YHYguhe3Qpmk7RWi+yqBsatQrNv5F3FaRwpNRGYLDSBztcVAIi2QbxPPrTunSlLxrYkDwttWeC1cEJKsZM/I3NLP0SHa07RllrIQgpkkwu3qaJYfsFDZwbhnwbn7SjN9vCwzD/Ht2Pn/cg== Received: from BN0PR04CA0103.namprd04.prod.outlook.com (2603:10b6:408:ec::18) by IA0PR12MB7602.namprd12.prod.outlook.com (2603:10b6:208:43a::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5723.33; Tue, 18 Oct 2022 16:28:44 +0000 Received: from BN8NAM11FT095.eop-nam11.prod.protection.outlook.com (2603:10b6:408:ec:cafe::68) by BN0PR04CA0103.outlook.office365.com (2603:10b6:408:ec::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5723.31 via Frontend Transport; Tue, 18 Oct 2022 16:28:44 +0000 X-MS-Exchange-Authentication-Results: spf=none (sender IP is 216.228.117.161) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=fail action=oreject header.from=nvidia.com; Received-SPF: None (protection.outlook.com: nvidia.com does not designate permitted sender hosts) Received: from mail.nvidia.com (216.228.117.161) by BN8NAM11FT095.mail.protection.outlook.com (10.13.176.206) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5723.20 via Frontend Transport; Tue, 18 Oct 2022 16:28:43 +0000 Received: from rnnvmail204.nvidia.com (10.129.68.6) 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.26; Tue, 18 Oct 2022 09:28:29 -0700 Received: from rnnvmail204.nvidia.com (10.129.68.6) 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.986.29; Tue, 18 Oct 2022 09:28:29 -0700 Received: from BUILDSERVER-IO-L4T.nvidia.com (10.127.8.14) by mail.nvidia.com (10.129.68.6) with Microsoft SMTP Server id 15.2.986.29 via Frontend Transport; Tue, 18 Oct 2022 09:28:26 -0700 From: Akhil R To: , , , , , , , CC: Subject: [PATCH RESEND v2 0/3] Tegra GCPDMA: Add dma-channel-mask support Date: Tue, 18 Oct 2022 21:58:09 +0530 Message-ID: <20221018162812.69673-1-akhilrajeev@nvidia.com> X-Mailer: git-send-email 2.17.1 X-NVConfidentiality: public MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN8NAM11FT095:EE_|IA0PR12MB7602:EE_ X-MS-Office365-Filtering-Correlation-Id: 059d037b-c086-40eb-3432-08dab125d327 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: g3yVRo0s4IdZFfkWSDlcPuFj+XrQBHm3jncxFZMboFZS5Nu8gIadV6pItIJm9UbZL6rGLcMNEqdOuNjHCruMu99sqdK3oBiwuQLfVlE1D+xR21expyLiPTA9NQ/3toAGa6S3PXEQzNYB/gmms04RotFhi+r3QqPmTmk7jcDPDLd+qW80oRzpPqXNAoGjmE068eD3qe40Nl7PcHBbGIIY8WGkiAELPus3oqCPSQFFW7Yly1Sv0V4XeaGTtyzPCpRhS0N3jHTk2eNmR9GCp9WghRKs3OTtudSj+f7uAxlZLqLINQfydAsjGY7af4yPaAiqJKypc/Re/xgWS6+U+tSeZ744JpfuxdamqSXMsFmRwenOxYM9LhwAA8erTaqSWIRiVdxFgwsOkhr4RY8MtldFYj9PLxT4EEP0s5Ld2Ve6A3n2IUD4trn4iKW/Vn9cO8F1tmU6qwUK7mnPmK0Yfe846tDdSJahWON4ZNBrL6i6y5Uponqigm1LyvSmzxBQYFa4s6NVnifOKfGKX756j+5Y86EbsBjgpQ83Ja2cJUU9pTZjbO1tDQWap+pLCYEfhki7srGDB2Ui4y/SPR4zw6fD7VchTllICpdp997wIGVM0MnDIWqNSyNKOtIe+jVF7RHW75n2Kh8FsdxBpdobCmKBH1VsMpH4c+4Ekb1V0XeJrOWUxj0Gn7uS5Np1vvN+PHL1JgrYbqTRby03c5PE954vIqzTox3gvWpdYkoanCgDpSwQ7Hs2oGjknOoZt4JkEZ6hf8UBuhuhrbhLhsZjuGEXog== 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:(13230022)(4636009)(376002)(39860400002)(136003)(396003)(346002)(451199015)(36840700001)(46966006)(40470700004)(83380400001)(2616005)(336012)(2906002)(186003)(1076003)(86362001)(36756003)(40480700001)(4326008)(8676002)(7696005)(40460700003)(26005)(41300700001)(7636003)(82740400003)(356005)(82310400005)(36860700001)(316002)(426003)(47076005)(70586007)(8936002)(5660300002)(4744005)(6666004)(70206006)(107886003)(110136005)(478600001);DIR:OUT;SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Oct 2022 16:28:43.8471 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 059d037b-c086-40eb-3432-08dab125d327 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: BN8NAM11FT095.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA0PR12MB7602 X-Spam-Status: No, score=-1.4 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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747043788113587919?= X-GMAIL-MSGID: =?utf-8?q?1747043788113587919?= Read dma-channel-mask from device tree and register only the specified channels. This is useful to reserve some channels for the firmware. Also update the channel number and interrupts to include all 32 channels. The current driver was using only 31 channels as one channel was reserved for firmware. Now with this change, the driver can align more to the actual hardware. v1->v2: * Reversed the operands and used BIT macro in 'if' condition. * Fixed warning reported-by: kernel test robot Akhil R (3): dt-bindings: dmaengine: Add dma-channel-mask to Tegra GPCDMA arm64: tegra: Add dma-channel-mask in GPCDMA node dmaengine: tegra: Add support for dma-channel-mask .../bindings/dma/nvidia,tegra186-gpc-dma.yaml | 7 +++- arch/arm64/boot/dts/nvidia/tegra186.dtsi | 4 +- arch/arm64/boot/dts/nvidia/tegra194.dtsi | 4 +- arch/arm64/boot/dts/nvidia/tegra234.dtsi | 4 +- drivers/dma/tegra186-gpc-dma.c | 37 +++++++++++++++---- 5 files changed, 45 insertions(+), 11 deletions(-)