Message ID | 1512624268-13944-4-git-send-email-appanad@xilinx.com (mailing list archive) |
---|---|
State | Accepted |
Headers | show
Return-Path: <dmaengine-owner@kernel.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id D533060325 for <patchwork-dmaengine@patchwork.kernel.org>; Thu, 7 Dec 2017 05:39:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C651228BE8 for <patchwork-dmaengine@patchwork.kernel.org>; Thu, 7 Dec 2017 05:39:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B97CC2A32A; Thu, 7 Dec 2017 05:39:54 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 50B9328BE8 for <patchwork-dmaengine@patchwork.kernel.org>; Thu, 7 Dec 2017 05:39:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752310AbdLGFj0 (ORCPT <rfc822;patchwork-dmaengine@patchwork.kernel.org>); Thu, 7 Dec 2017 00:39:26 -0500 Received: from mail-sn1nam02on0061.outbound.protection.outlook.com ([104.47.36.61]:2752 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750980AbdLGFjW (ORCPT <rfc822;dmaengine@vger.kernel.org>); Thu, 7 Dec 2017 00:39:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector1-xilinx-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=EmQrxf1/AguIDZtM7BDJp0V4tXN5O+A7/RPuagXBhO8=; b=AWgSgPuA3ub0oBabUfw3uTSCz0Pnt5zjMj7CWcdOSAWpXVjnXkWdIN6okWKJ/XY+VEppbdzdKQ8GzgMy6LIjqakqeGP3DCMAsAyij7NOgfbGohCVA3A4CpDn+Idnj14Zm8wslTv51UaSpRBemcxjydLxjkyquEzCvRkTgLdvCZo= Received: from SN4PR0201CA0009.namprd02.prod.outlook.com (10.161.238.147) by CY4PR02MB3384.namprd02.prod.outlook.com (10.165.89.155) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.282.5; Thu, 7 Dec 2017 05:39:20 +0000 Received: from CY1NAM02FT014.eop-nam02.prod.protection.outlook.com (2a01:111:f400:7e45::209) by SN4PR0201CA0009.outlook.office365.com (2603:10b6:803:2b::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.302.9 via Frontend Transport; Thu, 7 Dec 2017 05:39:19 +0000 Authentication-Results: spf=pass (sender IP is 149.199.60.83) smtp.mailfrom=xilinx.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=bestguesspass action=none header.from=xilinx.com; Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 149.199.60.83 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.60.83; helo=xsj-pvapsmtpgw01; Received: from xsj-pvapsmtpgw01 (149.199.60.83) by CY1NAM02FT014.mail.protection.outlook.com (10.152.75.142) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.282.5 via Frontend Transport; Thu, 7 Dec 2017 05:39:18 +0000 Received: from unknown-38-66.xilinx.com ([149.199.38.66] helo=xsj-pvapsmtp01) by xsj-pvapsmtpgw01 with esmtp (Exim 4.63) (envelope-from <appana.durga.rao@xilinx.com>) id 1eMoty-0004Aa-IT; Wed, 06 Dec 2017 21:39:18 -0800 Received: from [127.0.0.1] (helo=localhost) by xsj-pvapsmtp01 with smtp (Exim 4.63) (envelope-from <appana.durga.rao@xilinx.com>) id 1eMoty-0004DE-FP; Wed, 06 Dec 2017 21:39:18 -0800 Received: from xsj-pvapsmtp01 (smtp3.xilinx.com [149.199.38.66]) by xsj-smtp-dlp2.xlnx.xilinx.com (8.13.8/8.13.1) with ESMTP id vB75dCnV032273; Wed, 6 Dec 2017 21:39:12 -0800 Received: from [172.23.37.82] (helo=xhdpunnaia40.xilinx.com) by xsj-pvapsmtp01 with esmtp (Exim 4.63) (envelope-from <appanad@xilinx.com>) id 1eMotr-00049j-AJ; Wed, 06 Dec 2017 21:39:11 -0800 From: Kedareswara rao Appana <appana.durga.rao@xilinx.com> To: <vinod.koul@intel.com>, <dan.j.williams@intel.com>, <michal.simek@xilinx.com>, <appanad@xilinx.com>, <sr@denx.de>, <dave.jiang@intel.com>, <kedare06@gmail.com> CC: <dmaengine@vger.kernel.org>, <linux-arm-kernel@lists.infradead.org>, <linux-kernel@vger.kernel.org> Subject: [PATCH v2 3/4] dmaengine: zynqmp_dma: Fix issues with overflow interrupt Date: Thu, 7 Dec 2017 10:54:27 +0530 Message-ID: <1512624268-13944-4-git-send-email-appanad@xilinx.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1512624268-13944-1-git-send-email-appanad@xilinx.com> References: <1512624268-13944-1-git-send-email-appanad@xilinx.com> X-RCIS-Action: ALLOW X-TM-AS-Product-Ver: IMSS-7.1.0.1224-8.1.0.1062-23512.006 X-TM-AS-User-Approved-Sender: Yes;Yes X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:149.199.60.83; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(376002)(346002)(39860400002)(2980300002)(438002)(189003)(199004)(106466001)(2201001)(2950100002)(6666003)(33646002)(39060400002)(4326008)(575784001)(316002)(48376002)(9786002)(478600001)(50466002)(305945005)(50226002)(5660300001)(16586007)(2906002)(8936002)(77096006)(36386004)(7696005)(51416003)(106002)(63266004)(36756003)(81166006)(8676002)(81156014)(76176011)(54906003)(356003)(110136005)(47776003)(107986001); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR02MB3384; H:xsj-pvapsmtpgw01; FPR:; SPF:Pass; PTR:unknown-60-83.xilinx.com; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; CY1NAM02FT014; 1:crSaaDTjeI8giUnzc95m2m2stucYMuNZFOH5fEuhKkVF3TXwIm9E4Yc60RTJHqw/DS6sdJTExkNUTaRp0cCAdfoGrHPS4NQJn4KTzKEu6BhpfWOONNvun/z4eKLy0xoX MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: df1b6562-f691-40ef-2ab8-08d53d34dcb2 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(5600026)(4604075)(4608076)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(2017052603286); SRVR:CY4PR02MB3384; X-Microsoft-Exchange-Diagnostics: 1; CY4PR02MB3384; 3:hJ6CK4VR/o8hi4jXqBdOty1UHCncZyIz5axoQpIN6/VSTwuvwbYsLt+Uiefj1Fjnt4TI7h9zrpYsLlzKh//tv+9kdI/DHlPLzUd67YYWMFuMt5BhebatDyaZqotZLUK3ukMNc6laL+xNZzXH+P/8qn9nOkZTO8CGFxHOlDYzD1n8QYJkFl0ihDZURXLvGCkg/cRSB8gKtp0a4YYL/DJ1SeoPUHeR5gNjpLmymCw3Wj2wVrSyxGEWnONJeHzbaShkYf3eRzwUdnqgrqupHsv0wcRjVb91u6l8fc1jRs5rKqZ/RTGvsnw22r+YgB1AcoqiU1TG6rtmUeVoi9QGNf/anyRQzNzc368K2n9vsgr7su0=; 25:3d5CwK5uOxoEqOALn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XXdLjAkFQbI6vf/vEuZuZkaBzfJKgJddMFGxar72HjyorEMReFU0Uv0MiDd4hn0crEy X-Microsoft-Antispam-PRVS: <CY4PR02MB3384B15D1E59C431EBE1A958DC330@CY4PR02MB3384.namprd02.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(192813158149592); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(2401047)(8121501046)(5005006)(93006095)(93004095)(3231022)(10201501046)(3002001)(6055026)(6041248)(20161123564025)(20161123562025)(20161123558100)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(6072148)(201708071742011); SRVR:CY4PR02MB3384; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:CY4PR02MB3384; X-Microsoft-Exchange-Diagnostics: 1; CY4PR02MB3384; 4:d/4P24gENdgTVjTKSFMFs59Cc85XWgoupHHemTfG5Yn5Y8MEyzbeDly50gUayDX3fVAS8ZxYRV/qc1+KIuOimaW4Wfsd4BqzQ6RbqwvYoHdkQmpk+WMss3fNIbEKY1ScfZCozuR5pdsL5x5mJgFVkyCxTHi/waKJ9nmoy8Pcl4x5FFSFyjIFEdKDsAdIBMT9/iBVcXGI+Y8kBdTXnOctleWLeubua4f3ktrJwWGP2gmTEKf0zaPa+1ytgcB4B+t1nVC+a4Efm9lzb2lIezQcRk61u8c5s84e6QF7EUW8Rs2QksSXB8cGich+C/ZE7RzH X-Forefront-PRVS: 05143A8241 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY4PR02MB3384; 23:xh18fe4dQxC+E5RwGwxsW6uJS7SsI3Q7pLnSTAGsi?= =?us-ascii?Q?Uutfo+oVBDhTude9eXrEzvGLrWipwOi6McTIBdP/YVzHm2qo66hfb2c+eElz?= =?us-ascii?Q?WWuh9XBELUBvzKHSPTxE6VOqzfD5vMFQtuqa/jI2R5RlLAtVE8Pvx9MQXjZf?= =?us-ascii?Q?Y+7V6CFkllhFzpVhBmqRjs4ltS8IP3jcUxSzpMxihYeyoHNPe3WNGDian8oS?= =?us-ascii?Q?Xgvc/Z2QILAzEc67izX/4l9rFVccsYNFGAVHxs+o3FjVQg4PhmNYXK8701K4?= =?us-ascii?Q?aR0r4awpe5/gvSMKnox43c1GoUlTmIXGgLWxJBMCd7AJTUxm/SuG4c4qENMw?= =?us-ascii?Q?a7XbZ/zSiB/cbnWeyvIBTkgLZ7jmhKJ1VsT25IS23cUQOPR3UOHNTgKgN4SD?= =?us-ascii?Q?cSm6hz1f6W4K0ayukZM1txw65GQnN+IuuUrGJlfQ/LrmBfcxkocdwNcRzRjb?= =?us-ascii?Q?4WqDLm9wVZsLZ8nhn85xudPtFe7dLYmEkD5e1vTqlxNosoZmBd7uOVp0Q4l/?= =?us-ascii?Q?e70Lk/oIcilPEIvjWLnZEB3IXtWwmcKdewhrurJWTeBvLvtB5o7giW2tSTB6?= =?us-ascii?Q?XaMTBedt34Hurtct2gV0tL13PNKiE3tound4CC/dEz6eoSr0kUru8/hxUMt/?= =?us-ascii?Q?or7v6sk9J7qZT+cQO9RVyBhodrOGppYKTEtnK+hUjZD+gK3bXuSpTXR3ilfF?= =?us-ascii?Q?yQGuaBAsotYUauwalUMZ8/hBCbas/XxYM7AL5ilb1dFgHibqRt3KK7ZHJecd?= =?us-ascii?Q?w9BVq8YIPsUl8lL+3egUzHFnfCOQoO97xQfUAjO6YTcv9bid3XefLD5gNXIR?= =?us-ascii?Q?ItckfGiIjoztVEG1vQ6YhEN+IYSRAupnv046BD8bt/J2vG2yAw3BFG4+V1j6?= =?us-ascii?Q?MLGEZ66DQzGBzj32UV3WIqX6hloXNiSYT1oWYVJljdpiQqnFSkUJp3mTH+ks?= =?us-ascii?Q?5dsR5xOkhUwZFb8qM6tGu4QF3WQwKXps49L3gty8VEz2djO2PIglU+zClPVQ?= =?us-ascii?Q?8hB+5vv/zJTbYNS/sVQqyDf?= X-Microsoft-Exchange-Diagnostics: 1; CY4PR02MB3384; 6:STy+E+gllaekC3Vsxo9pyRfFrQxXFIYEuZRc2FBoyn06nwUmLtOhd6P+w2ZIOetLhEmEre67VsbmmxwEH2yC58UO8HIvmG2YjtmqyqfUsSByrPakGJeTIyfqoJ1RTOIsI350sE3jUlz34Tph4oiOf3WqtHHZLAw2Gtm6O7aogiDvrM7n9oqSnJ3vj2elHa5X0T2H508ICe2sxWBtV1Zxi+DuZF4wXUgOC9w2fzK/Rhgw510iklwLIC55CUdB+moI6bDCcKhOj0Phi6oW8ngdIQRwI4aubPadVV/Tgz03sC5mv+UEiskGg1RzylYvZ5g6tHO/FEZCTRk9biCpSgtOhD39afWrpzko1rs4o4H3mfs=; 5:Dp7IoBYcl69vwcctz3VJIT0x08Yl4MjfDhlJ2faDf4DleVVGppU1v+8b7mU8jJdRrdIlBX50R6Cvuh07gJVYYNfKkWeC28CWTE3exGVdkAb1lLU5NQNzwcT68z26vungB0xcpcEjuyulcaFftxlsJ+xk34Iwfq+M8wbJC2lDC88=; 24:qN4J1bIo8qPbXROvE95y+xwUOeb0tMX73aXk4/KWEyYE6SHQ797/Xoeeg5IW2YGZCYI9biBaJRdobrjAAvfLfcCg29J5+gSIPvZgwDs25fc=; 7:xIFuQG49pQgdU7SQS/eazo4OWQtaB2uzicpUaom9GK9Q1MIGrp6pEeZI1HVPT1T+4LJaj6mAzyp/6CN/93TWeq0q+8djBP+X6++OQLMnFTD6TLT/uezBAJ2yKI47t71PNVVlk9Ki0yFDx23jzwo+9XFtOF/sFVuFgtxUq4RCCWPfheulaZb0HrDOC1s6JjhqDNp2iRNz4jGzv5qfh7q9eHwPh3CnCxW38oAYsNHIMAvWuqsu3OY8Fjcw54QZQIgK SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Dec 2017 05:39:18.8206 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: df1b6562-f691-40ef-2ab8-08d53d34dcb2 X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c; Ip=[149.199.60.83]; Helo=[xsj-pvapsmtpgw01] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR02MB3384 Sender: dmaengine-owner@vger.kernel.org Precedence: bulk List-ID: <dmaengine.vger.kernel.org> X-Mailing-List: dmaengine@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/dma/xilinx/zynqmp_dma.c b/drivers/dma/xilinx/zynqmp_dma.c index b9b5c0a..a297a26 100644 --- a/drivers/dma/xilinx/zynqmp_dma.c +++ b/drivers/dma/xilinx/zynqmp_dma.c @@ -48,6 +48,7 @@ #define ZYNQMP_DMA_SRC_START_MSB 0x15C #define ZYNQMP_DMA_DST_START_LSB 0x160 #define ZYNQMP_DMA_DST_START_MSB 0x164 +#define ZYNQMP_DMA_TOTAL_BYTE 0x188 #define ZYNQMP_DMA_RATE_CTRL 0x18C #define ZYNQMP_DMA_IRQ_SRC_ACCT 0x190 #define ZYNQMP_DMA_IRQ_DST_ACCT 0x194 @@ -513,6 +514,7 @@ static int zynqmp_dma_alloc_chan_resources(struct dma_chan *dchan) static void zynqmp_dma_start(struct zynqmp_dma_chan *chan) { writel(ZYNQMP_DMA_INT_EN_DEFAULT_MASK, chan->regs + ZYNQMP_DMA_IER); + writel(0, chan->regs + ZYNQMP_DMA_TOTAL_BYTE); chan->idle = false; writel(ZYNQMP_DMA_ENABLE, chan->regs + ZYNQMP_DMA_CTRL2); } @@ -524,6 +526,8 @@ static void zynqmp_dma_start(struct zynqmp_dma_chan *chan) */ static void zynqmp_dma_handle_ovfl_int(struct zynqmp_dma_chan *chan, u32 status) { + if (status & ZYNQMP_DMA_BYTE_CNT_OVRFL) + writel(0, chan->regs + ZYNQMP_DMA_TOTAL_BYTE); if (status & ZYNQMP_DMA_IRQ_DST_ACCT_ERR) readl(chan->regs + ZYNQMP_DMA_IRQ_DST_ACCT); if (status & ZYNQMP_DMA_IRQ_SRC_ACCT_ERR) @@ -724,7 +728,7 @@ static irqreturn_t zynqmp_dma_irq_handler(int irq, void *data) if (status & ZYNQMP_DMA_INT_OVRFL) { zynqmp_dma_handle_ovfl_int(chan, status); - dev_info(chan->dev, "Channel %p overflow interrupt\n", chan); + dev_dbg(chan->dev, "Channel %p overflow interrupt\n", chan); ret = IRQ_HANDLED; }
This patch fixes the below issues. --> Need to clear the channel data count register when overflow interrupts occurs. --> Reduce the log level from _info to _dbg when overflow interrupt occurs. Signed-off-by: Kedareswara rao Appana <appanad@xilinx.com> --- Changes for v2: --> None. drivers/dma/xilinx/zynqmp_dma.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)