From patchwork Tue Sep 14 08:28:13 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Harini Katakam X-Patchwork-Id: 12492319 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A398BC433F5 for ; Tue, 14 Sep 2021 08:33:03 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 7349F60EE0 for ; Tue, 14 Sep 2021 08:33:03 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 7349F60EE0 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=xilinx.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:CC :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=u0aoYXdOIMvLut94fXvo8t4tXHGR4DwljbhL9wL7stw=; b=mxbqfEGvvM4Vp6 eLt+K4lXVSZTrZpsqsTsZF5bs3nhra3+N/XXkS7nrg7uCyz7W0XR75UcSd3b7s32fW+4EhX0bnulb E05RZ/4Sw3W9hBXKS/2oUcV1VZeZ6qgtgD8zUNQaF9PvBmh+vBgHTeP5k9C1EwswpBBVLJxM2VbpL n6ngF9XzzsX6ugMlZDIvxeREFMzVJ2gNi36pinzeX0zmrsiMHIHp4AXr5R4iQPEqZyOF960c4XMC5 ZbYPVmspWygnCuaqtO9pTn8+NbVEQoMaThJeezSqf9lVE60nmCgqmAWZ+AC+mEG6DTinO8cWVoXgL /xCuWFUaFPilgPrYhmUA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mQ3nt-004g5I-MT; Tue, 14 Sep 2021 08:28:34 +0000 Received: from mail-bn1nam07on2082.outbound.protection.outlook.com ([40.107.212.82] helo=NAM02-BN1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mQ3nl-004g2H-VU for linux-arm-kernel@lists.infradead.org; Tue, 14 Sep 2021 08:28:30 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gBPiGhvhhffMLRurMvl4jpqYME57SvJEeudXRDGty0crzMVRI6XCIEfsiIqeBwLbtYs5tEX656vy/Q2sAxVhT9VaplXRM+llSO3vQkzPlU8n3jWQdXUQcL2/hSCv84+7YA+2l1ZHwtA93JSBBRjKvo/avd/nyeOHEB8rwEXapszSBp33E+Uuw48hZ8H99OSjBozbMZ/bRZCrg0w/zITT2K9XHPPKQtYy8GhpJYpUfwW8WBid+tdM4M8X3oFF7OGSTligoSC87qNK6blOmhL7NPQa+HuZMr/+S+jbaxKBSKB/3HFQzMmgpT3O89TkqUrMzw6d2Cr7Yvl5zgDHmI2Q/A== 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; bh=+pr/LF66+wyHrDlhmER87h+gocC4LDyfpLZYX47nfBw=; b=DJaYyQ8fZJuMTtpVHz45IQApWmAV/GUU0WhydDVY45WSpmXw0cw0WwwbL/+AuqaK/x1c1mtBdEo7AC10nBHyZlXdYdXiWsLtajG4kK3nEsqD6PqhtmR73suFrM6AUOT81zJDr7MFBEd/BbfCljBgMNrskh9M8ZtujHtjD7P6bgHvhY33+CdxxRxSEbzGoLwpPdu5Y+P88dhypeD+DX3VkBTL1n8N5UPsxqeLMSCXTCgAx5kY2+a3hvYOzVuFbKyEpa6+mkIDvZmuK2UoN3nBKmuTCdC9ZBNA8jovGIuFZQUtXbsxrRRgtKyIs+vLAB1zvtvTqAWNO2eN5PooFXCuqg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 149.199.62.198) smtp.rcpttodomain=kernel.org smtp.mailfrom=xilinx.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=xilinx.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector2-xilinx-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=+pr/LF66+wyHrDlhmER87h+gocC4LDyfpLZYX47nfBw=; b=qxyXGFpPWLzxIDGF2GbRK9PYRBWDjyQos3FeZmtbN71tsAyiLcAbg83dE/78uTU9hGeEPuaOx0afcyaLm874WBTSxSxh6RS6xurXvc0CX1z0RDHPV0LYmUEIBx2LldbJF1R/3ifuU7It8hQly83BPDs8pSpprHUBc0mJ8r9Jh3M= Received: from SA9PR13CA0080.namprd13.prod.outlook.com (2603:10b6:806:23::25) by DM6PR02MB6633.namprd02.prod.outlook.com (2603:10b6:5:222::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4500.14; Tue, 14 Sep 2021 08:28:22 +0000 Received: from SN1NAM02FT0051.eop-nam02.prod.protection.outlook.com (2603:10b6:806:23:cafe::bc) by SA9PR13CA0080.outlook.office365.com (2603:10b6:806:23::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4523.9 via Frontend Transport; Tue, 14 Sep 2021 08:28:22 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 149.199.62.198) smtp.mailfrom=xilinx.com; kernel.org; dkim=none (message not signed) header.d=none;kernel.org; dmarc=pass action=none header.from=xilinx.com; Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 149.199.62.198 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.62.198; helo=xsj-pvapexch02.xlnx.xilinx.com; Received: from xsj-pvapexch02.xlnx.xilinx.com (149.199.62.198) by SN1NAM02FT0051.mail.protection.outlook.com (10.97.5.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.4500.14 via Frontend Transport; Tue, 14 Sep 2021 08:28:22 +0000 Received: from xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) by xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.14; Tue, 14 Sep 2021 01:28:21 -0700 Received: from smtp.xilinx.com (172.19.127.95) by xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) with Microsoft SMTP Server id 15.1.2176.14 via Frontend Transport; Tue, 14 Sep 2021 01:28:21 -0700 Received: from [10.140.6.13] (port=35510 helo=xhdharinik40.xilinx.com) by smtp.xilinx.com with esmtp (Exim 4.90) (envelope-from ) id 1mQ3nh-00094b-3h; Tue, 14 Sep 2021 01:28:21 -0700 From: Harini Katakam To: , , , CC: , , , , , , , Subject: [PATCH 0/4] ZynqMP DMA fixes Date: Tue, 14 Sep 2021 13:58:13 +0530 Message-ID: <20210914082817.22311-1-harini.katakam@xilinx.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 9fde4a64-6c4b-47b6-e00e-08d977599d41 X-MS-TrafficTypeDiagnostic: DM6PR02MB6633: X-Microsoft-Antispam-PRVS: X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-MS-Oob-TLC-OOBClassifiers: OLM:5516; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: aSMurGS3dw1ycDVtDlf5zApqm4BXS67xQDhi6+NJIuqqWvwp21mGFlr//+MZ5nZVtvAgdPJ1IOM9o9Y0Ga5DcCqQ3j/bP8GQvF1bhg/VHTknz7eIHZ38LL3Tr86FNoTj7RHypyl/bDUsCPvR1dON9dNgku1x756x+qzZl/c2LvTbEgvQv2La9++7ipHfIwnieUCJML0d4cJSf4nj0c1SAZxaM2q2ycg/mBl3YWhGFVhx81/JXJB7KOdqr4h4joabX7hipU3JzNQPYBTJ7rEnIXaGGuWMXAWzf2xoZinvmH0f1yyVONiBmYCTB0+dGzwk2wlI455TA47qz4U0m6d//bSzu1HSF9HeKT2uOZnQFEL+BXgcqLWFFLcZ4RCVtqyx1EqqLCizccM09axYXI1NiA5fZg4biN44vJtK/dUtc8zy0AIRb3WI/U5maF8nIT/m8GCOcVqc1Oocov2eGTZjGIo9R/Y2p0718rDf/uNdVuQV/0FdyGSJkMvzxdS998TgoLjUj53APvhc6fb6urk5Uh5hRd7A+HgSH7yEED3OeFe37Qa4E5uPaHbczNc4MVoq5TjnHCCcTDWEI/0ihpaIZ96Q1sKXNYg3BHEiSkCjkHL5hRxCcaAvnknC6H20sXCirKW3Sga7dYP9BbyM1wOGWF/btgqyDuuuVgwvAIeeyFDyjkQjKhqE1wVYXvsxANGU3nas4Qeq62TGU0aSPmpdaKyGY7mR5y64bUh6vm+XzKY= X-Forefront-Antispam-Report: CIP:149.199.62.198; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:xsj-pvapexch02.xlnx.xilinx.com; PTR:unknown-62-198.xilinx.com; CAT:NONE; SFS:(4636009)(376002)(39860400002)(396003)(136003)(346002)(36840700001)(46966006)(316002)(36860700001)(110136005)(36906005)(2906002)(70206006)(7636003)(70586007)(8676002)(1076003)(8936002)(9786002)(478600001)(107886003)(83380400001)(6666004)(2616005)(36756003)(54906003)(426003)(26005)(4744005)(4326008)(186003)(336012)(7696005)(44832011)(82310400003)(5660300002)(356005)(47076005)(82740400003)(102446001); DIR:OUT; SFP:1101; X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Sep 2021 08:28:22.2970 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 9fde4a64-6c4b-47b6-e00e-08d977599d41 X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c; Ip=[149.199.62.198]; Helo=[xsj-pvapexch02.xlnx.xilinx.com] X-MS-Exchange-CrossTenant-AuthSource: SN1NAM02FT0051.eop-nam02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR02MB6633 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210914_012826_094588_5CD26387 X-CRM114-Status: UNSURE ( 5.70 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Address coverage related issues in ZynqMP DMA driver. Shravya Kumbham (4): dmaengine: zynqmp_dma: Typecast the variable to handle overflow dmaengine: zynqmp_dma: Typecast the variable with dma_addr_t to handle overflow dmaengine: zynqmp_dma: Add conditions for return value check dmaengine: zynqmp_dma: Typecast with enum to fix the coverity warning drivers/dma/xilinx/zynqmp_dma.c | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-)