Message ID | 1513851098-15787-5-git-send-email-appanad@xilinx.com (mailing list archive) |
---|---|
State | Changes Requested |
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 ACDF260318 for <patchwork-dmaengine@patchwork.kernel.org>; Thu, 21 Dec 2017 10:12:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 97EDA287A4 for <patchwork-dmaengine@patchwork.kernel.org>; Thu, 21 Dec 2017 10:12:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8C9C328911; Thu, 21 Dec 2017 10:12:17 +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 F1B52287A4 for <patchwork-dmaengine@patchwork.kernel.org>; Thu, 21 Dec 2017 10:12:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752623AbdLUKMP (ORCPT <rfc822;patchwork-dmaengine@patchwork.kernel.org>); Thu, 21 Dec 2017 05:12:15 -0500 Received: from mail-by2nam03on0049.outbound.protection.outlook.com ([104.47.42.49]:21984 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752546AbdLUKMJ (ORCPT <rfc822;dmaengine@vger.kernel.org>); Thu, 21 Dec 2017 05:12:09 -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=gaIOHUeO3NgPP0DObv99I7h7hs1h7EedzXgr8LfYyy4=; b=j+6fj7PokZPn3NTVPs1cuyBa6D0SC6OtcpMKVwG/8APPjdLJHQLO5PeNhwmKBQyfNBqaITI2rbBJpZgnH/9+zLM1paSU+XnCG1b8N+Wo/88HUu6Lp9Obf03HU0r/fGNfs4nJIzp2uV9Zy5Ky+IGA0tBumZr9An0UAOHjFik5kHI= Received: from CY4PR02CA0014.namprd02.prod.outlook.com (10.169.188.24) by DM5PR02MB3274.namprd02.prod.outlook.com (10.164.148.28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.345.14; Thu, 21 Dec 2017 10:11:21 +0000 Received: from CY1NAM02FT022.eop-nam02.prod.protection.outlook.com (2a01:111:f400:7e45::201) by CY4PR02CA0014.outlook.office365.com (2603:10b6:903:18::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.345.14 via Frontend Transport; Thu, 21 Dec 2017 10:11:21 +0000 Authentication-Results: spf=pass (sender IP is 149.199.60.100) 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.100 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.60.100; helo=xsj-pvapsmtpgw02; Received: from xsj-pvapsmtpgw02 (149.199.60.100) by CY1NAM02FT022.mail.protection.outlook.com (10.152.75.185) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.302.6 via Frontend Transport; Thu, 21 Dec 2017 10:11:20 +0000 Received: from unknown-38-66.xilinx.com ([149.199.38.66]:50295 helo=xsj-pvapsmtp01) by xsj-pvapsmtpgw02 with esmtp (Exim 4.63) (envelope-from <appana.durga.rao@xilinx.com>) id 1eRxoq-0001hH-H5; Thu, 21 Dec 2017 02:11:16 -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 1eRxoq-0001jx-E4; Thu, 21 Dec 2017 02:11:16 -0800 Received: from xsj-pvapsmtp01 (mailhost.xilinx.com [149.199.38.66]) by xsj-smtp-dlp2.xlnx.xilinx.com (8.13.8/8.13.1) with ESMTP id vBLAB4Qq027376; Thu, 21 Dec 2017 02:11:05 -0800 Received: from [172.23.37.94] (helo=ubuntu.xilinx.com) by xsj-pvapsmtp01 with esmtp (Exim 4.63) (envelope-from <appanad@xilinx.com>) id 1eRxod-0001VY-Rk; Thu, 21 Dec 2017 02:11:04 -0800 From: Kedareswara rao Appana <appana.durga.rao@xilinx.com> To: <dan.j.williams@intel.com>, <vinod.koul@intel.com>, <michal.simek@xilinx.com>, <appanad@xilinx.com>, <lars@metafoo.de>, <akinobu.mita@gmail.com>, <joabreu@synopsys.com>, <mike.looijmans@topic.nl>, <kedare06@gmail.com> CC: <dmaengine@vger.kernel.org>, <linux-arm-kernel@lists.infradead.org>, <linux-kernel@vger.kernel.org>, Radhey Shyam Pandey <radheys@xilinx.com> Subject: [LINUX PATCH 4/4] dmaengine: xilinx_dma: Free BD consistent memory Date: Thu, 21 Dec 2017 15:41:38 +0530 Message-ID: <1513851098-15787-5-git-send-email-appanad@xilinx.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1513851098-15787-1-git-send-email-appanad@xilinx.com> References: <1513851098-15787-1-git-send-email-appanad@xilinx.com> X-RCIS-Action: ALLOW X-TM-AS-Product-Ver: IMSS-7.1.0.1224-8.2.0.1013-23542.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.100; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(346002)(376002)(396003)(39860400002)(39380400002)(2980300002)(438002)(199004)(189003)(316002)(48376002)(16586007)(106466001)(478600001)(8936002)(50226002)(2950100002)(6666003)(107886003)(4326008)(106002)(110136005)(54906003)(77096006)(7416002)(81166006)(63266004)(5660300001)(2201001)(47776003)(59450400001)(356003)(76176011)(305945005)(9786002)(2906002)(36756003)(39060400002)(36386004)(50466002)(8676002)(51416003)(7696005)(81156014)(107986001)(217873001)(5001870100001); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR02MB3274; H:xsj-pvapsmtpgw02; FPR:; SPF:Pass; PTR:unknown-60-100.xilinx.com,xapps1.xilinx.com; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; CY1NAM02FT022; 1:Fa4f2l1MOp+3Z9MwpsA3vh9a+fzuNx6T6eyTTwJE7rYgGVgCWP0uS3qf0/ZMFwDtixxPMKb8QbGen9Za0jR8tljTZXykyA4L1ztaRJrrX6qOXiYle1yLNvKJjKWpUbgb MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 5f727337-0896-4457-9229-08d5485b2f36 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(5600026)(4604075)(4608076)(2017052603307)(7153060); SRVR:DM5PR02MB3274; X-Microsoft-Exchange-Diagnostics: 1; DM5PR02MB3274; 3:uXwnfzoeJsiQAX8EP9mmEWfjDx1ARdAL/qf1V4NU9W/Qbk7qz8vbr0Hwj+29tQk6o9Y1UpZ9tefRLsXglgRUJj7ghNJPZcD/i/eHvsgZTZC6rrbSh2BO8xTy4nyH+XiVWpBt0B3AsUtg1bvSuaEXaCy+NJthC7FbHENw0M0rmSl72PnOm/HF14MV/VNLGx41acj3+sy7TTU2EFOYbU26lqcsf3FPV/nrrXx7WUjYPZUZ69WspJgjt2JWvoSLguP8Bp7HoQ6aqm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DNt0fU7+5k3WUwU1taYGwSNePZ3wdUrz7X/EQHRplrxVh70ryFU3QK6mLFo9JFigSIj70w7nmkTzEB6rHVDz7vs2jlrLJfpv62kVVX/QDfDGghN1Vsf0igHy/AxwcPEI/IL/MG9iMjLfJIUTq/xw2bsdTE7/ybqGFEuarZ+h0pwyYSu/F4q4tCWOzuhz2Upp X-Microsoft-Antispam-PRVS: <DM5PR02MB327430DB6E21250FDD0C0C40DC0D0@DM5PR02MB3274.namprd02.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(192813158149592); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040470)(2401047)(8121501046)(5005006)(10201501046)(3002001)(3231023)(93006095)(93004095)(6055026)(6041268)(20161123560045)(20161123562045)(20161123558120)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011); SRVR:DM5PR02MB3274; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:DM5PR02MB3274; X-Microsoft-Exchange-Diagnostics: 1; DM5PR02MB3274; 4:7CUvHILAYq/Z1N9KN5VsgUVFrLnGAA91Ggq9UBrTEBiNVFJi/NosTJV77STCb0vL2wunkVFVzo3mdGcI8kl+jtZqhr3/ejEMG0KxuO4PeOrV2K+HTCUn4BzjPH4G+fI+Qw8tJ117rLXc9+aJWjyeaJwiAxh81rvgmW7s6xqG6mYj6SH0/nuX16qLzqe/aQIQETatTGqfEuz6XJMXAUA0K9LkfubMHseP2PlImnDrb6LiwmOO19JYbVX8+eJZZYNJ/RWh9s2NDYh9iC0tzdLeptfM1o9vnq0RN+z+7bYJXPaZLTmR4KSsqh4EOdayQ9I+ X-Forefront-PRVS: 0528942FD8 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM5PR02MB3274; 23:g4qc638NKDZbkNBOalf3OmZAp5g20+Yrojzn0haMT?= =?us-ascii?Q?L8pGoWYzdwiQq5KyY0oFa/Rjen14+5WeLgFFvJU0D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jUtxe1ic/fi1LuvTkbA1V2Uy2+HC52LRfb2JRILTaHSAm4rY/06+SHYKvEkbqte1YqFtwMKsDRbA8om80UJ2 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Dec 2017 10:11:20.7403 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5f727337-0896-4457-9229-08d5485b2f36 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.100]; Helo=[xsj-pvapsmtpgw02] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR02MB3274 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/xilinx_dma.c b/drivers/dma/xilinx/xilinx_dma.c index 845e638..a9edbd8 100644 --- a/drivers/dma/xilinx/xilinx_dma.c +++ b/drivers/dma/xilinx/xilinx_dma.c @@ -764,6 +764,11 @@ static void xilinx_dma_free_chan_resources(struct dma_chan *dchan) INIT_LIST_HEAD(&chan->free_seg_list); spin_unlock_irqrestore(&chan->lock, flags); + /* Free memory that is allocated for BD */ + dma_free_coherent(chan->dev, sizeof(*chan->seg_v) * + XILINX_DMA_NUM_DESCS, chan->seg_v, + chan->seg_p); + /* Free Memory that is allocated for cyclic DMA Mode */ dma_free_coherent(chan->dev, sizeof(*chan->cyclic_seg_v), chan->cyclic_seg_v, chan->cyclic_seg_p);