Message ID | 20180730104228.28b58bd0@xhacker.debian (mailing list archive) |
---|---|
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-2.web.codeaurora.org (Postfix) with ESMTP id 9C4C514BC for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 30 Jul 2018 02:46:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8A7622948E for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 30 Jul 2018 02:46:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7E12C294A3; Mon, 30 Jul 2018 02:46:01 +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=-2.9 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, 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 285002948E for <patchwork-linux-arm@patchwork.kernel.org>; Mon, 30 Jul 2018 02:46:00 +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:Message-ID:Subject:To:From :Date: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=fuhqyunanxjFqS2mMrx17fJKqhkix35FN7GxLqW245E=; b=aS2qgkUt9ywgNP w2NPkyDYM3sJzCfAkgVnWyiHUfHaOrHhwgigiuHgerq8HkjDrncEgtuEPeYNFOfvNQN8PwZkgTefq PU8bEJY4xfXR/PziNcgKq5G6sK3BseQAbIw62KWEoooYLW4gFHvC+U+gPLhbQv+BvSysmOArKnnCN v4V+Cj/jY43XaQjVtm3pU7kEfoHKdrpRDEwf5aKowjW2rYJOv/gH2VOeHE3eyU3NNp94eaN61ZOXt nYDiGgLCM3qscHbsXcWKLx5/YAbL2BLYl1rWSYRDkfND3e8+qwcw7t9TojwuKYYE8znoUuZVU1HOn cVL3/VuOyUrwbyxAW5Lw==; 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 1fjyC6-0003xY-7j; Mon, 30 Jul 2018 02:45:58 +0000 Received: from mail-cys01nam02on0044.outbound.protection.outlook.com ([104.47.37.44] helo=NAM02-CY1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fjyC2-0002fZ-Sz for linux-arm-kernel@lists.infradead.org; Mon, 30 Jul 2018 02:45:56 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Synaptics.onmicrosoft.com; s=selector1-synaptics-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Ag0sO7GhFanVPdPoiiE8JctHsWhlnU6zp5wE/Nd4VVI=; b=xRj+sWg7fJTEyS2oRI7oh5qUbAwvkzLduatSiq56hH+UnRa1vRvjCOhiUK4bhX6Cz1KkKXwEdEbwUFzVgz30QYi9ejp4VeamW2iQhALbguUMaYhUTIbVSFsQFuNqQNor100xRDvsOAPmAYhO3ggI7QRhUcr4gge+sS8Nv22Zhq8= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jisheng.Zhang@synaptics.com; Received: from xhacker.debian (124.74.246.114) by BLUPR0301MB1570.namprd03.prod.outlook.com (2a01:111:e400:52a9::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.995.16; Mon, 30 Jul 2018 02:44:58 +0000 Date: Mon, 30 Jul 2018 10:42:28 +0800 From: Jisheng Zhang <Jisheng.Zhang@synaptics.com> To: Adrian Hunter <adrian.hunter@intel.com>, Ulf Hansson <ulf.hansson@linaro.org> Subject: [PATCH mmc-next v3 0/3] solve SDHCI DWC MSHC 128MB DMA boundary limitation Message-ID: <20180730104228.28b58bd0@xhacker.debian> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 X-Originating-IP: [124.74.246.114] X-ClientProxiedBy: HK0PR04CA0019.apcprd04.prod.outlook.com (2603:1096:203:36::31) To BLUPR0301MB1570.namprd03.prod.outlook.com (2a01:111:e400:52a9::16) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 73c60931-f0fd-4d40-62c7-08d5f5c67159 X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989117)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(2017052603328)(7153060)(7193020); SRVR:BLUPR0301MB1570; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0301MB1570; 3:TlvbDBqh2qqJtYRyYL6T6RDKBjLCvpZ9n8gEdiAevABROnixFtwUZQTaO07x951+/eUkYCYJ5S4mJNfE2aMFTIvd8TsCzAFj/N9eo5Bx2eePXE/HWmTDCItntvd3tOwX+1SUpoWn2GgPSLCJGPWtJpXwY2e9VC0gxL7cW8Rz17tEyGf+J7kq3hgwzvCmRJVk8z6Canay+t+2t1NHr+gmAAN7MdsrXSPN83PevFcJhVbyme5YJcOJl7Owoy1qz9UV; 25:SBq4spQgqTCL7n6+831Rp6sy2pta+tTF0SI9YT+XyEQb59ewQ/AEtR0F/QAS9XQBIbn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DrQb/GORpnpIai0vcSS0WW9XJnI; 4:40wxViXlumjTbVZ650mMWAqKbs+PncoZWl5caHTOQJokL+wdrw8Mi4cFcJMNDCjwiGnT6S+uFtkLVZBsztJilA2IgdLE+Ig3se68HZsi4jNWJsYHAGfDCZyg0zGP4J0xyAIAgfNviAVtBEuGg9uHJyOWeYmv50jDYvfCWsZWgBPd99f0QVuEuosUAPJRKd6Yyb1aXuGLCGzo90NN8ecjNmU1WHqbx0oABVUm2EZOPGWEJt/fhR+ozHZzYaztZ2QVp5JG0lOr5991bmocI+fXtw== X-Microsoft-Antispam-PRVS: <BLUPR0301MB1570B20DF837920A2008C9E0ED2F0@BLUPR0301MB1570.namprd03.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040522)(2401047)(5005006)(8121501046)(3002001)(10201501046)(93006095)(93001095)(3231311)(944501410)(52105095)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123562045)(20161123558120)(20161123560045)(6072148)(201708071742011)(7699016); SRVR:BLUPR0301MB1570; BCL:0; PCL:0; RULEID:; SRVR:BLUPR0301MB1570; X-Forefront-PRVS: 0749DC2CE6 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(346002)(376002)(136003)(39850400004)(366004)(396003)(199004)(189003)(50226002)(8936002)(105586002)(66066001)(106356001)(4326008)(47776003)(478600001)(86362001)(25786009)(72206003)(2906002)(7696005)(52116002)(6116002)(6506007)(386003)(110136005)(9686003)(1076002)(97736004)(50466002)(5660300001)(230700001)(217873002)(23726003)(6666003)(3846002)(14444005)(476003)(486006)(68736007)(956004)(316002)(26005)(81166006)(81156014)(55016002)(16526019)(186003)(8676002)(7736002)(53936002)(33896004)(305945005)(39210200001); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR0301MB1570; H:xhacker.debian; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: synaptics.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR0301MB1570; 23:1/TS0SelPztvxyXQe+0xdwReMGUiUOzSXe/n5sa?= mSn7wKQiY6KQ9xv4I7M0uWndrs//5C37fOA6XlABM8DUFFocMcP9SVgQ26AL8VCXsXw6bLG818AEPtwu94oLDsyjBM0nItD7B0QqK3RSdbT3jskhUejcL4HdjNfOyKuqMLWRYDSX3L2MOUcBpuSBiOkvywCNTfT+QnwqILxqAy2kltjEVujYYVQsqO3V0C9fDG9cTdSyRTGSQOT7Tgu/yBekY3SFL/LBHch1SXUlq34VzQu7KL/qcQIfr6SYOdnyIgsLk3BiA2IzzJQ1TsexVi7j2VGKQ2ukY3poucIeCL7r11TY/U+h+vQ6Li2UKaufvUbalsdLxARRZlu2VsS4tOCPU9P3Yokb+etKKMWDpsaIvHHFieOpqVZyxJAgY51f3nH4LaV6EJVoRKQi4FkXuYcRmEnxmvuIEJmXkt+Gj9KjMkE3t0bDlsVWoLro5G4/Khy38vWqf4CicSJSDF2jc0KFrofkXMgOFnEy7kufWxpINOBVaktxdgYkym1cPU5/yQWxgze1Zs63UCdErNfiLQ1UoPzvs/yUkmn6hcevk6797xFec1wfnweKuKciSzIH/LNGEaxgaIYQMlbOYcfJa72b+r6GsM0li0n0h3B7rGb/ztauLo02FLPadKBW3t3PobDZqaT7LwT9WPyl0AUvF7zWlwlZk+EtwsAYsqH72JttB37L5KhzXiYNjsEFqmol+9ojhWh0mpyABIBQ4fUnkXJ2Ap+OwZp8l08VOSLCoAEVS6dzsFh/hACz5J0Kb65EWBcVRUoDW0MTnqyFsSBqk9D/KZ3lZA6LAyuqSJ+6pNw8SJOlH7RVxwnHSi/fvAQrUPxi7TONZE/EA9cUPX9Ip8RDRTfgGk4UT67GGA3G6LuCA1LqCXnQ4c7mFpmyBETEXzdMziKf2zd2hkTGdKlxp/u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5/Jkz1zvWW7HQOkP/pdqqUohrVgVsl8HFbeZ5euG30L/wIahIqghDGu0f6nqgw4BTw1ob0KzpwRHA==; 5:ZKhdtSutW/0XZBdux5dmq15071GnH/eNJ9pHYFFZMkSlI9CHhbKrAEjOQFmsBLFPcry04t5dQ7eLmVrN5huawyp+jNUD+rKdJal1rL9MnQ8RMp9wQNI8PnH6NVbuKBbnSC56XfeZivGRjvhkZuUMkE/C32IWUxOF3LyHeiTWviE=; 7:ohRvfS7CxX7LE8/OBWPEwuQsDPvHk4stcKas7SdY/wkfOqsDRG2NDUBGnIxzyhsyxSWHdNRlvD2tFcLPWYA5Edy/VqmUizqx4+tCcjekgyDayeMhQklF9yQBQtEnIP6nguWG5eaOl87/lC0RVu3x11ZwVVYOw2fB07ONLLarzhxQ+ab6CbjOQaZi/uvnotuNr6HfmVb/vXZplrh9tGIVn7RcgJCFyZQUUWUt6UaSDmFyxcwMAPydXJaD4WBTg4p0 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: synaptics.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Jul 2018 02:44:58.0711 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 73c60931-f0fd-4d40-62c7-08d5f5c67159 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 335d1fbc-2124-4173-9863-17e7051a2a0e X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR0301MB1570 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180729_194554_967709_74FF96A7 X-CRM114-Status: UNSURE ( 6.17 ) X-CRM114-Notice: Please train this message. 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: linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org 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 |
Series |
solve SDHCI DWC MSHC 128MB DMA boundary limitation
|
expand
|
Hi Adrian, Ulf, could you please review these patches? Any comments are welcome. Thanks in advance, Jisheng On Mon, 30 Jul 2018 10:42:28 +0800 Jisheng Zhang wrote: > When using DMA, if the DMA addr spans 128MB boundary, we have to split > the DMA transfer into two so that each one doesn't exceed the boundary. > > patch1 adds adma_table_num to struct sdhci_host so that driver can > control the ADMA table number. > patch2 introduces adma_write_desc() hook to struct sdhci_ops so that > driver can override it. > patch3 finally solves the 128MB boundary limitation. > > since v2: > - make use of "likely" to check (!len || BOUNDARY_OK(addr, len)) > - explictly include <linux/sizes.h> for SZ_128M > > since v1: > - fix BOUNDARY_OK macro if addr+len is aligned to 128MB > - use DIV_ROUND_UP to cal extra desc num > - fix !len for dwcmshc_adma_write_desc() > > Jisheng Zhang (3): > mmc: sdhci: add adma_table_num member to struct sdhci_host > mmc: sdhci: introduce adma_write_desc() hook to struct sdhci_ops > mmc: sdhci-of-dwcmshc: solve 128MB DMA boundary limitation > > drivers/mmc/host/sdhci-of-dwcmshc.c | 43 ++++++++++++++++++++++++++ > drivers/mmc/host/sdhci.c | 48 +++++++++++++++++++---------- > drivers/mmc/host/sdhci.h | 8 +++++ > 3 files changed, 83 insertions(+), 16 deletions(-) >