Message ID | 1528465490-19684-5-git-send-email-yibin.gong@nxp.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.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 27C1C601D4 for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 8 Jun 2018 05:47:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 175CD280FC for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 8 Jun 2018 05:47:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0C5D8287F8; Fri, 8 Jun 2018 05:47:46 +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=-1.0 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DATE_IN_FUTURE_06_12, DKIM_SIGNED, DKIM_VALID, MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id AB299280FC for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 8 Jun 2018 05:47:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=aqQhuvc4xW/imO3ESyHA7mpMsOYOXkqpnK3boByGuwE=; b=TN343vAEMayn+p FfwiD+tZmOMmTpKJaN4V/rzIcgZqgT6MMtDh6vRXtcDDMCzHcCRWfPuhCzJBDhInd6jq4X9zw23/m O6GL4XwJJhZAYlxRd0s/IpDt012/mp9chmJUU9nv9t+m6dXF1fcgHhRcrrrTa9BEBwMBoX/pQwOhJ +2Mmm4+8Al7Sa4S70HXeDo9kfGERoIdqvURKl/Cd5Y0JXsMSGohJsbsVzUvtVYJZfQd1Dl3zJc5ci t9142sYz0qWfpe0W3FEmpZLztrBB9gIbPKwXmX3EU21nh/6TvGIpFJghIT5EWUziu0ZoxBz1xKslc k1eyr0YQScTfvTvLiIHg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fRAFN-0005SJ-Os; Fri, 08 Jun 2018 05:47:37 +0000 Received: from mail-db5eur01on0622.outbound.protection.outlook.com ([2a01:111:f400:fe02::622] helo=EUR01-DB5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fRADy-0004Ao-2L for linux-arm-kernel@lists.infradead.org; Fri, 08 Jun 2018 05:46:19 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=t47oYiaUvB4i7kDw7KrXGOkigzx+5tPkgvKMIMHUtq4=; b=bvm+tQAGmX+ApuMxn6oPrDv/7b/NLgFowW4nvss4U3NuuUQTtFwLSaEuaWvB1cwGy3zX3QNDtTRsTZIQVTYSDpENAarj7PZ8L9kiqsLATpBvnFdvvZz+9bqf/7Yg1qP8905nHRIcalv6l8AL5Sk/U5eofwx7DKFJk0aydosapRg= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=yibin.gong@nxp.com; Received: from robin-OptiPlex-790.ap.freescale.net (119.31.174.66) by VI1PR04MB3232.eurprd04.prod.outlook.com (2603:10a6:802:6::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.820.14; Fri, 8 Jun 2018 05:45:53 +0000 From: Robin Gong <yibin.gong@nxp.com> To: vkoul@kernel.org, s.hauer@pengutronix.de, dan.j.williams@intel.com Subject: [PATCH v2 4/5] dmaengine: imx-sdma: remove the maximum limation for bd numbers Date: Fri, 8 Jun 2018 21:44:49 +0800 Message-Id: <1528465490-19684-5-git-send-email-yibin.gong@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1528465490-19684-1-git-send-email-yibin.gong@nxp.com> References: <1528465490-19684-1-git-send-email-yibin.gong@nxp.com> MIME-Version: 1.0 X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: HK2PR0401CA0014.apcprd04.prod.outlook.com (2603:1096:202:2::24) To VI1PR04MB3232.eurprd04.prod.outlook.com (2603:10a6:802:6::29) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:VI1PR04MB3232; X-Microsoft-Exchange-Diagnostics: 1; VI1PR04MB3232; 3:ScQ3hb5UdD9oQyRq63N6to6wBzLuuGfLX+fnlSY5IUvVaMA+LdzD7QLAGN9vKYy0TOuQiaQLxeCjblfc7jRvGUn8851BhoRF9mg5WP2Fxhw80woRktJJwtX/JAVMjtLRUbKYzhO5wTpkn0qONEipObCA4/KawDmA3+XoNnCkFf1I33pOPNAupIvoCg9E3SnUe9B3aySVInM2Gv30YsAxiKrAsvoCYywF/FnyBgCICmua/j5wH0yO7g2OFR7LE//L; 25:QaNIdjVuE43zU9eA2Q1a6AHdaszQ9GU3/Q/BmS1kndy7ok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RornabDPNx+tIA3Q8x9BBOBuxa+r7UikMz/lf2OuUJNpiIsfXQ4; 4:mIbih5HtIWL3QVwxJOH0gPHN6T1KHMMB8P29QPQiHN+1/c8m0I/jS/9LlvjJQ7NkYkNQGzDnPUwndKIqd37uwvO6hoiz4ijPUiZqhUm+9GtMFyRSwCvUz83IAXfXs0A7z2kr4aJpVJWza6s6QCsIwIwInlbjaNj+PDmBB+FoOxBYL0krSGIFDBBP1fKZLH3tZ1dohhbCsDqHOYSSNFRDUCftOLZOTfW89ENLal9QUQXpWi/OhR0v8YmOKLSCr0wOF3EkTHlE+o54XWQsUyCzVqsply8l5oSuL2ZSKMLfbqYg1FraO+OQWeNPO3rG6EPc X-Microsoft-Antispam-PRVS: <VI1PR04MB3232D13D9AB56E99784BBCB1897B0@VI1PR04MB3232.eurprd04.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3002001)(3231254)(944501410)(52105095)(10201501046)(93006095)(93001095)(6055026)(149027)(150027)(6041310)(20161123564045)(20161123558120)(20161123560045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011)(7699016); SRVR:VI1PR04MB3232; BCL:0; PCL:0; RULEID:; SRVR:VI1PR04MB3232; X-Forefront-PRVS: 06973FFAD3 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(396003)(366004)(376002)(39380400002)(39860400002)(346002)(199004)(189003)(11346002)(6512007)(386003)(186003)(66066001)(48376002)(2906002)(3846002)(6116002)(68736007)(16586007)(52116002)(36756003)(97736004)(53936002)(76176011)(86362001)(25786009)(51416003)(26005)(316002)(4326008)(81156014)(2616005)(956004)(446003)(476003)(50226002)(486006)(81166006)(6506007)(106356001)(7736002)(8936002)(8676002)(5660300001)(478600001)(16526019)(6486002)(47776003)(105586002)(50466002)(305945005)(6666003); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR04MB3232; H:robin-OptiPlex-790.ap.freescale.net; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; VI1PR04MB3232; 23:ib/tDRJtH/HUPb7KBKE2bXuXZr+HvblU51Cqot755?= =?us-ascii?Q?h/6pd+RyHJXAH9FB+auIIVQzYAJgWWjEejaw4GUvWghWlgnko6C0n6YkqdmK?= =?us-ascii?Q?AIf2mBKIBtVH0JVHfS6tbTrSbv7lgyzIpCH4UfQoO36aRYGjJI9/+bgCpZcx?= =?us-ascii?Q?V3FmfiLahrIZ9xJScrzSlg9Tibeu2bwVZ0OTL/UqGJ+WBIxUsVlWT/xxmGS1?= =?us-ascii?Q?NFE8bnUa59qo2jstHWKq6XNO51YyglL1IitzJsBcFLMZNL/CWh5y3uh6YET3?= =?us-ascii?Q?/OZgyFRUf9uNJ5+2sVktGL9LT3AhZdW8vX3sz8mYtV0GPYfJ/qx1e6TCewJX?= =?us-ascii?Q?vKAb3gNOOODJFUStdaS8MqK/hFKHkqinOI8XY8ismm0ml2HAQ45+/TX36bEn?= =?us-ascii?Q?ZaVkkG27jcB+UeI64ODOgChrpbc5qO55defCSvLj3ajIQfpZC4D/p4uz+y3T?= =?us-ascii?Q?pDMCSN36plxUbTLjzTfNJ6GKafWz9eYZFP3vqJ5fT4pg8DwhUgmKcdy22MM8?= =?us-ascii?Q?Q4MpeE3C12EjwHmOktAKPWeMV1rWFIym3zggS4d3tznis3iJaQgZQ5fCZzaI?= =?us-ascii?Q?beWvTUKvdqh3hmKfiPuhyMwAvcnFhB2C5mKibDJMgXH311G9WhTpM/RH7qoj?= =?us-ascii?Q?niZvJwCprpnKDOf6xi/1/4j4d71iNcczmsVQJ75OstlJy05bc1AVfDT2hwCE?= =?us-ascii?Q?/9oMWh4pY0ax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nqugbTCg9DQZ6BdECebgkkSUp+nrU1/MlEl6R13DzH8w/o3KGyIASgwMNdMLzld/ZODjztV6BrIjj/Fd1DKm4MnvqAVpKkwZx2c++C7w2GVMsKJtZjPHKkgK2MA/gN8gGf2t1VGsdTKke2L2gtwyDGqL5OuEdV9uVRc+/y5eRpUEZC+DTgokGnhOf2QGX5IhCuasFPXNbmXUo3WLcVt0g==; 5:Cze0oklqGsa2PE74sL5i834DPI9/YXKh8kW/WOh6MYhlcTTZlRcNl1LLEC8YXvkMIA6bF+hxcVKrxpZwBnJ5Ny3Ar313gUVHiYqp603rSFIn3m1MxaFL6KnqB6E4kTWdSd8tmfANdPp3rklfpXG6OiRUt3sdEtSbNKHjpnMOvg8=; 24:YIyKSWT8ABIRslGsO+l6Sq0GyN23+HRqH/T52ve7ybXsgakQ3Zbrv1SptsWfgEa0StdI0OGTwUKxfv4mm7ac3rSoHRoIDVCrl3lfgJVmt5s= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; VI1PR04MB3232; 7:pSoTDDt1MsDOHV0GAMWG0eSE4dD1wnQZkdCVa5nOp+Ogrnw+i9NBUW8BNXzp8wRR7GX/hAWNrfLhxy919Ed6FUhau/NM1A5qJb3g2s1sD0wbhooLKagGzrzpy4k/HklbjhQ7sJZOeUdk9ILKI/KQponYtqIWAzClQ0rbqJ8nB0u9Lc/midwEUR5nv99yqBvQBjkYfzs5tnZVCVnn5ES/bOLAiOUg0NFcsCFFlgeIS//VCHOhs5GJtp6Ru45a5RcI X-MS-Office365-Filtering-Correlation-Id: e21951f3-8e3a-46df-aa5e-08d5cd031a97 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Jun 2018 05:45:53.4411 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e21951f3-8e3a-46df-aa5e-08d5cd031a97 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB3232 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180607_224610_185592_285C3BAB X-CRM114-Status: GOOD ( 11.18 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-imx@nxp.com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c index 6faec89..afaee72 100644 --- a/drivers/dma/imx-sdma.c +++ b/drivers/dma/imx-sdma.c @@ -292,7 +292,6 @@ struct sdma_context_data { u32 scratch7; } __attribute__ ((packed)); -#define NUM_BD (int)(PAGE_SIZE / sizeof(struct sdma_buffer_descriptor)) struct sdma_engine; @@ -1297,13 +1296,6 @@ static struct dma_async_tx_descriptor *sdma_prep_slave_sg( if (ret) goto err_bd_out; - if (sg_len > NUM_BD) { - dev_err(sdma->dev, "SDMA channel %d: maximum number of sg exceeded: %d > %d\n", - channel, sg_len, NUM_BD); - ret = -EINVAL; - goto err_bd_out; - } - desc->chn_count = 0; for_each_sg(sgl, sg, sg_len, i) { struct sdma_buffer_descriptor *bd = &desc->bd[i]; @@ -1413,12 +1405,6 @@ static struct dma_async_tx_descriptor *sdma_prep_dma_cyclic( if (ret) goto err_bd_out; - if (num_periods > NUM_BD) { - dev_err(sdma->dev, "SDMA channel %d: maximum number of sg exceeded: %d > %d\n", - channel, num_periods, NUM_BD); - goto err_bd_out; - } - if (period_len > 0xffff) { dev_err(sdma->dev, "SDMA channel %d: maximum period size exceeded: %zu > %d\n", channel, period_len, 0xffff);
No this limitation now after virtual dma used since bd is allocated dynamically instead of static. Signed-off-by: Robin Gong <yibin.gong@nxp.com> --- drivers/dma/imx-sdma.c | 14 -------------- 1 file changed, 14 deletions(-)