Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3475960imm; Sun, 29 Jul 2018 20:15:10 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdXabs2TDQoUPbvlf4ix++XRk5fDOW02be+Gg59yebpe1wZ61WKwrTtYiscnqtxnLqIisMx X-Received: by 2002:a63:b705:: with SMTP id t5-v6mr14969987pgf.45.1532920510673; Sun, 29 Jul 2018 20:15:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532920510; cv=none; d=google.com; s=arc-20160816; b=xUg/6szs88TsYm+QWp5K2SeLJxyINEvjVL1xCs3QoDzzNaSkHE+sqQaJ2oqQNbo8SA uwARdOhdukimLEyQQSBGuUbaKxxGHy2PAN7NBGijHe8M/HzUQexyfob1Osgp4EffJ7Au mPlmbg69huhEwioNZm3ICUcbPdrDfvOqVy6TEsS5OPQW1ShG4q+OGpOOPr6gz6s9voSd b/+f3phMUn2ZjiQuqPmUGurQJ+5Isr6yW1MRerjoP/dZUHRMAEl1SzYn6VMH1ixZK2fX pAZBAuovZdRJlDrEgVA02XvY3xYOFZ4ymU//Pa0OPwSuJ/g6ybGFsm1XPxboJx/p9C7R oTuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature:arc-authentication-results; bh=EQHAGk0Dl72HK4/Cati9fI6MnTATcPa0GmwVnMKDPKc=; b=CVpZsccpyWaZJIvkgWl5OECih6t1cLPM4JXr5Z4W5ZXvxSO9uJ2/Ekd2l3WVDjAZAk LzeVPrX1PL0cKZhFAcnUDZqAid/rDv6GzED9kYTpvrQnJQGg3ugsyKUYvLLf5SLGKb69 Ec4r+Cd4RzIFWcnlkjsr0W3YY+lJFQc8T2zmGtD8V97K9hkSwuG16hyaPinGwybejKMa kv4xmqIXZKGL5YXleUsnYlRFMi8fgAZZicmdpwid07VYR5IfH7vU3yh05F//r+oZCeZE ZIJG5GEa3VU/G2F41oWyMU7NpRdQ83OD5RizfQZ0kVvKVRoWppcxajb9qKy4755CsE3A znMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@Synaptics.onmicrosoft.com header.s=selector1-synaptics-com header.b="xHH9/Yvz"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j24-v6si9651262pfn.363.2018.07.29.20.14.55; Sun, 29 Jul 2018 20:15:10 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@Synaptics.onmicrosoft.com header.s=selector1-synaptics-com header.b="xHH9/Yvz"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726094AbeG3Eqw (ORCPT + 99 others); Mon, 30 Jul 2018 00:46:52 -0400 Received: from mail-by2nam01on0048.outbound.protection.outlook.com ([104.47.34.48]:31824 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725825AbeG3Eqw (ORCPT ); Mon, 30 Jul 2018 00:46:52 -0400 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=EQHAGk0Dl72HK4/Cati9fI6MnTATcPa0GmwVnMKDPKc=; b=xHH9/YvzEB3GNV8nlqVGRMN6UDk8hqIROMGvL9mFL2W6web2EkERmKOyo6VF4clmXeGWtjVIFGmO8REzWzNjl1WVA7OqVU8w4+wq/MfZC/dqyboboQpeaQO+rtanOyieaWeKZLMNutY7yBAOUZaMdFTzKjIQZfgH8mUxxaTLdzk= Received: from xhacker.debian (124.74.246.114) by SN1PR0301MB1582.namprd03.prod.outlook.com (2a01:111:e400:5232::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.995.17; Mon, 30 Jul 2018 03:13:55 +0000 Date: Mon, 30 Jul 2018 11:11:33 +0800 From: Jisheng Zhang To: Matthew Leon Cc: Adrian Hunter , Ulf Hansson , linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH mmc-next v3 3/3] mmc: sdhci-of-dwcmshc: solve 128MB DMA boundary limitation Message-ID: <20180730111133.0b4e8b2d@xhacker.debian> In-Reply-To: <01010164e92bcc1a-c3ac69eb-f6e5-4420-ac87-de1a0ffd0ac5-000000@us-west-2.amazonses.com> References: <20180730104228.28b58bd0@xhacker.debian> <20180730104636.1a3e6c81@xhacker.debian> <01010164e91d7bda-aa616cbf-7bb2-4fe4-85e5-a18e16433fde-000000@us-west-2.amazonses.com> <20180730105954.6c365a7b@xhacker.debian> <01010164e92bcc1a-c3ac69eb-f6e5-4420-ac87-de1a0ffd0ac5-000000@us-west-2.amazonses.com> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Originating-IP: [124.74.246.114] X-ClientProxiedBy: TYAPR01CA0135.jpnprd01.prod.outlook.com (2603:1096:404:2d::27) To SN1PR0301MB1582.namprd03.prod.outlook.com (2a01:111:e400:5232::16) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: b35a8809-0ef5-4597-aa8a-08d5f5ca7ce5 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989117)(5600074)(711020)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(2017052603328)(7153060)(7193020);SRVR:SN1PR0301MB1582; X-Microsoft-Exchange-Diagnostics: 1;SN1PR0301MB1582;3:vgGj1m1JJHYaWYmFizBrimTjdSrspHvHBzEDiNluWcNNc6z9Thtl4FAt4t+3qkESYThnzg4VY/AudNUx+ZXLKrx+zZZ2HqQ7FS553EGITqcKgVLOJzknFqDHHX1m653uHglSqW/rnPJQ8dh1o4oYJF3i2Z/cxHFYg4QyTUWeR3JQ4VtsfuJPvM4W9TWCoU+G0upXApx/vhXKJ2EB3Rh91xSdUIetbVK4Nrj33J0TSx0N5YzvRVZVHlcrMKGnHHHG;25:J8QfOFujYNC+UWo2Nmql0aNPC6l0NwB/oT6eMytwzMpNUaTtTDuYMSnHfPylFipY16g8uYyUsCuQQF9NlHtiaj3yvhbo+A+5tsnnXoJau8pd96GPAv6Zq0jtkPw17gm5l/+xAZGg122AyaWzn2MR8jC9hD09R9atXkjQmAfISNyhuwXmhDq3fXciv3bnDqC14mNBrgApN3uB0MZENdNBZmUgnV+2QiUBmgBnRjWdPQXT0iwtsaNA2xYZn0JK1akdEWDNIq1kcMRtvOeCGRMncd8QnJnNJucdV9Su/44qpuvJ0YuOLmPG5TcF2nrZmYecKBL5o5AJ2qYz0Yas9x+MkA==;31:I7KsxzDBLdB0qgUnOMbmxAaT3YFYmpMRDi4nfQddh3W1n+BOAL5sXyPEiV2OtI8VBYmpRbG9m07jIVC/WMx0sudUkMhzXebd8fth2cDMr86d0KNWbghQLOv5MOzWvL6llMEilR7yU5kGuBg9CqU82MfESzsjCzYaHnYI5lD4uGEgit/qAKrfqC1dFjKEdwzBWwv3+vX2c56ahEt71CtuPtF/sgjn1R4nepDYpfKT+8k= X-MS-TrafficTypeDiagnostic: SN1PR0301MB1582: Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jisheng.Zhang@synaptics.com; X-Microsoft-Exchange-Diagnostics: 1;SN1PR0301MB1582;20:4SQROwZ27Do7zp1auc4ed4sbUkKKcZZnCdqxIkyz1dW/YosPrp+XvmgaKSU+bNpjbQu0Hbavg+DK53HnHzemyAAnuGMRXhm0crT6gkgRA+wOvujAV0AhkEMQ1n3LNaUUBpLP4aCihmJvF1gRFgUuWL+95gZDe8MSqT/ObDnz/jaVTmlQl/6bEN/qyrQEWEn5jUa7tqaFe3x3UD1GsynubnliC2iELMztUx8hE+ezXybopE3ju2Qv8xRESw6VPoN21qrWmmdvZXwZ+FWFzeFoYYGQBnoJlaTvzsJyIuv2zQg/g2QVio76/rRf72KZ/Go3jtCH+GmzuWIXjSfS+HCyrglbnKZ+7pJtsS0HZV5PqSim8zoO2nR41RA5Flo/C6sjwLM/z9VM20mjo6ugWiDyc+TNhf8yxPfXD8IqZu7gushSMFwgkubzzQSSiyNaxWIyiwoY63N2UA7b3jyTefoUo1+skGu3ZgzLnPP0QFMNX1xcclNFaRRLX69guuXLZaN7;4:wno4g9ZEXhnEF+YdwLyHtQoi/I21mbW1kdRhg0E69HfRxDeqE5X1WENh2qaWmMYLFfy+NNRWBmxzqO3b4UPWJQcuviVh9YykhP4eaGz5z6O7lkI5bs81nX+tKm9tePv8FtonUgZNGPNbL9+Nvy/eGDDvTp+bwqYbIME1HL5UFrrnrGeAaGApgfJY7oDQFuwpthdkmXDDBc3jui1ByVxyU7Ayg2yidliM+RO/1B37dRakAK3kl7a9qjn8/50jE/hh0C5aHFVdG3Xm7PSEJfilfQ== X-Microsoft-Antispam-PRVS: 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)(3231311)(944501410)(52105095)(93006095)(93001095)(3002001)(10201501046)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123562045)(20161123558120)(6072148)(201708071742011)(7699016);SRVR:SN1PR0301MB1582;BCL:0;PCL:0;RULEID:;SRVR:SN1PR0301MB1582; X-Forefront-PRVS: 0749DC2CE6 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(346002)(136003)(376002)(366004)(396003)(39850400004)(199004)(189003)(33896004)(7736002)(476003)(50466002)(52116002)(7696005)(305945005)(93886005)(86362001)(9686003)(4326008)(55016002)(54906003)(53936002)(76176011)(81156014)(81166006)(6246003)(6506007)(386003)(486006)(97736004)(8676002)(6916009)(446003)(11346002)(23726003)(72206003)(1076002)(229853002)(478600001)(16526019)(8936002)(68736007)(186003)(2906002)(6666003)(47776003)(956004)(50226002)(106356001)(26005)(230700001)(105586002)(6116002)(3846002)(25786009)(5660300001)(66066001)(316002)(133343001)(39210200001);DIR:OUT;SFP:1101;SCL:1;SRVR:SN1PR0301MB1582;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;SN1PR0301MB1582;23:oAaEB98p4W4/2NjzUYBmGZ5/StJfm0XoIQ2cpLy?= =?us-ascii?Q?YyxAFq60iCse/rbQ11jRC8KKGDKsAldW2sIXLdt3kXCikUxBpCF464U11Lm0?= =?us-ascii?Q?zklDF+Ih+UEA1gon8Z74WGo7dQAhUGPu/NELNB1FhUWTNBGU8hCyUJMtd4fT?= =?us-ascii?Q?1nMtOvv2LVbnERtXsf8ZJTeM/CYWgEC6tcGyXTewlxynpkFgc1wTowIrkrXI?= =?us-ascii?Q?G3K18KwpoizLzN/YMA2H6AtlC/srp0tLAxRdZEVvXVU5Gh6W2zWReTgtfEDS?= =?us-ascii?Q?pkJzg4gSjRLx96XSBQcH19pAWR+YPjmKcGrjebD/1ZLMP167OmDQqd41Dyhe?= =?us-ascii?Q?w9eYfDyxPzGRQvmx4niPUYHQR/zhYDfZAkiO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Z9twct5jcl/8RFGcZXafTWEHDFh9lIPXA/vr/fKl1k7VqRvL8j8lqAxubqpNn38ETd/Tmw8HvOudDESCG+hs=;7:SLw04jGzx8oD3JG2tOpJwUyKSBSVI+PgyZXxMbsqPet7r8+bU3ZbX54fiyyRWOfNHe3H7LPXEz+sQKqdUrQcxu3btwWGC4kmUZ2FueAAQegzX9L64EID4WweRWWW6G1QNXUa9FEnEamIakunjiCRpSKnbAmBe3BYlx8t2n6G8skZFsYgo3irwTgVt23KbqHxkfCXWEJSGSOwsTqhXxGuP06nBYi1eYjCX7gvObwr8VqKy22wMU4Unq2wfXb1VwI1 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: synaptics.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Jul 2018 03:13:55.4167 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b35a8809-0ef5-4597-aa8a-08d5f5ca7ce5 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 335d1fbc-2124-4173-9863-17e7051a2a0e X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR0301MB1582 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 30 Jul 2018 03:11:59 +0000 Matthew Leon wrote: > >> Hey Jisheng, > > >Hi, > > >> > > >In LKML, we'd better not top post. > > Noted. My apologies. > > >> Shouldn't we be splitting until all DMA blocks are less than 128M > boundary? > >> I am a noob, but I think we should be prepared for boundaries that when > >> split in two, will still be greater than 128M. Feel free to disagree but > >> please explain why I may be wrong. Thank-you. > > >the limitation is "DMA addr can't span 128MB boundary" rather than "must be > >less than 128MB", they are different. > > >And the max transfer size of one DMA desc is 64KB. > > >thanks > > I have misspoken. What if the DMA transfer size is 1024M? If we split in > two, then we have 2 transfers, each of which span 512M. So wouldn't we need > to split again to have 4 transfers, each of which span 128M? > the max transfer size of each desc is 64KB, how could it be 1024MB?