Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S947817AbdDTVYm (ORCPT ); Thu, 20 Apr 2017 17:24:42 -0400 Received: from mail-sn1nam02on0044.outbound.protection.outlook.com ([104.47.36.44]:14877 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1030773AbdDTVYg (ORCPT ); Thu, 20 Apr 2017 17:24:36 -0400 Authentication-Results: vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=none action=none header.from=cavium.com; Subject: Re: MMC block addressing mode. To: David Daney , Ulf Hansson , Jan Glauber References: Cc: linux-mmc , "linux-kernel@vger.kernel.org" From: "Steven J. Hill" Message-ID: Date: Thu, 20 Apr 2017 16:24:28 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [50.82.184.123] X-ClientProxiedBy: CO2PR04CA0082.namprd04.prod.outlook.com (10.166.88.50) To BN6PR07MB3201.namprd07.prod.outlook.com (10.172.105.147) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 260ba41f-b406-4a38-0312-08d48833a413 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(201703131423075)(201703031133081);SRVR:BN6PR07MB3201; X-Microsoft-Exchange-Diagnostics: 1;BN6PR07MB3201;3:CICc85tleoIiQGJPnnUGRzp2TleLM/CKOQINwQkT8cW+foJqvuBe0zuphponsusUQZFCQkbtjwMW0NwqXuoVAGXFu/1Fz6MoMUmjeXju9wQqvoKiN6r8F+L6A6D37WMz0YkJM8PlpjHqffBxyxpNmSIs3cKj1EC2EHMoMcyGlNSJ3rX5jPqD28efBfgKhmQVyX1BfwmfsgX0SbwnFy/afi1DItExx6zL1amFTzU0EffKJQKW5MCTqjAwLcy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SI1+PE2QKSgjsAF5Dswr/iPymaKeMsnPbeUVAZUAWnfr5A8ULDzDUCF87VYgEpEprWjCw3xXY1ctuUZKepsJNG579KQ4NjWt9OrnyyxP4yoZVzjluiY4REQsGBWujAHfb1+++N8v0pwuEYgP3U8GKm6/Hz6PXM67br+aYVW9G9aGMVyLWvaoluQtroCz5IonJyJt+8IqW0GrwzL3itpqjkffvlG+bqa0dbOGSrPc7swF4+2eiRNw0m/TYCK7hJsJ6XAQkiAfAk X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040450)(601004)(2401047)(8121501046)(5005006)(93006095)(93001095)(10201501046)(3002001)(6041248)(20161123564025)(20161123560025)(20161123562025)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(6072148);SRVR:BN6PR07MB3201;BCL:0;PCL:0;RULEID:;SRVR:BN6PR07MB3201; X-Microsoft-Exchange-Diagnostics: 1;BN6PR07MB3201;4:uSfXyoWuUQqgnrAnTuCuevAOT6sMOF1OEU79mwZbz3YaYFCTu1TfJMyRM8chp9IhcuA3T9+5BJv537UlQArdeDSD7KejyKF5cbk2C+VEJ0eDiz0vsXEyO4BrvS38RfOro39/3BaCqNy+99Q6gLoS6VAJN/kImkzgq38CyL1BQs6EFyFpXfvR3QQ4OcIl5ucckqYJxaZ1dFgvuRS66n1z9kHuNldv/oPXXE/lf5fprEkp7vSXJN8BQ2V8iNJoWN9DDNhe7+89/eObg/GAjQl51cA6tPADM71G4RsUcQ4wY9goz03qgc0yx3Mxom8LGxT6Gcu7FUEVPkb8St8Cjc78zQOIbyF/IOE5QUvTqDyiEAhOeTLdTLVpq48+ic0AfQhehcV12Nm+AkDNfNbToePwc/WbAuj7xXTpGQBEDO+9hjLv5v+Tlvw/ffZRii8Tnt5rqzBVTX4AuJfTvDgfQA9VvmUlnR4IyuRtJHPjaKJRUD8kfgBB1QfsqEAGSvhQfpWbnfzBU6lfjC26zclo1UWSZpES0R8otCRZDkCB4VcbXHGLGAxOemsrLL+jA055GHfPKx/pP+QspVp7EEOmw3B0t7cWtbVMqqzo+P2GjTX2ay9Rey6c9UqntV4PHjtWjsNW+Ynj4znrf9e5Vu1mJQcaAlhwTFBXM2vu6nwrLOoGc7Gzq/T6as4VwsvRNoVb91LB4MnkYTtDrgYFbTvhUmRCMQ== X-Forefront-PRVS: 02830F0362 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(4630300001)(6009001)(6049001)(39840400002)(39450400003)(39410400002)(39850400002)(39400400002)(24454002)(377454003)(7736002)(25786009)(2906002)(53546009)(93886004)(305945005)(230700001)(54356999)(76176999)(81166006)(50466002)(6666003)(65806001)(2950100002)(65956001)(83506001)(54906002)(66066001)(90366009)(47776003)(3480700004)(6486002)(77096006)(53936002)(50986999)(8676002)(6246003)(38730400002)(189998001)(5660300001)(31696002)(36756003)(4326008)(4001350100001)(3846002)(31686004)(6116002)(42186005)(33646002)(86362001)(23676002);DIR:OUT;SFP:1101;SCL:1;SRVR:BN6PR07MB3201;H:[10.0.0.4];FPR:;SPF:None;MLV:sfv;LANG:en; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtCTjZQUjA3TUIzMjAxOzIzOjRPNXRiaHhWMW9COHpvam1GWmR0aHlabmtF?= =?utf-8?B?UVJ1WkhPN0xhYmNQRDFTZ01MMW9Vb1BZR3hSU1Y0cG5USkI3dU5wTVNtTnNi?= =?utf-8?B?NEVaVVFTeGJGVGFORXVydWhTa1liR1FiaGV4SzVVd3FPUVJXK1NLMnFSc1ps?= =?utf-8?B?anJIaXVCdzd5cTJGSkdweHQwNC9wTE1PZURSaEROLytLd2ZLd0FpcWZQTGFP?= =?utf-8?B?ekNBRDE1UE1nNWQrVG5zM3dxRzk2azVGOEFLSDFmdjBFcWFnS2JIQU5CVjRq?= =?utf-8?B?ellTSUpVd3J3YXBmUktXM2dPMWh4VUI5M01iN2ZRdFNIb0dVMFA0OVYyQmRU?=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X+CjWtsjwfn+AK024bDvWNmDgPLa6WiPx5VjV7/EdtaUGb7pXAfJWfe+45LAQPwMg511nmAR8Q2ytmg==;5:/wURUoMGGe9C+srd6q7DkgDyvj8V7/2tEvZsFUX0I16ZCoaEsVNfzOgg4WCK2eVOUBJP9gae/zRobuwc3tOvu+Rv7wk09TWAfknnlwBRmHml3FCfRff5SSQYGaIS+euhhILvvNTBHMrTlsoD25IDVA==;24:n7JIcz0CmNyKdq+e9P+h71iOPb/qlGzoaGw7KqXL8OuTTk4h+RFcQWp9LmqoWw3CCbsUfmICa6LVuKFGSwBe+Ar81vdqQNJb4h2O4nq7bas= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;BN6PR07MB3201;7:lb0ijQZRWW5LUXUEn2SGLYxqjUkbGbBQ2/NICJUTIpeXPMinTv3dstO9DfRkPVwt89sTORchYzKtVeagAH9tHPSUsdO2QUsqGEqb1QwoEer0vd6PxWyb9bYw39GMOkgPxP4grp6S2VxCwWyz4NzUk/tD5R1qtPXOBtrf9I2rdMKX4tOXMiPKfq6ouOAqyBciIWhDO/zLfon8y8ghSogs0jwogkqf21B2HGkcJQOJCDPAs31aPsygD0epzwZglJZxh7+rltB6fXEtcnv1HZUvudqLP+euldZ91HIe542MrRsYXYlNPhPn9uJfQqBOpejR/cpqZJNTXCo5CNFyNcFAeg== X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Apr 2017 21:24:33.3593 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR07MB3201 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1786 Lines: 38 On 04/20/2017 12:12 PM, David Daney wrote: > > Steven and Jan: Can we get around this requirement by: > > - Always set MIO_EMM_DMA[MULTI] = 1; This way by SECTOR mode may be unimportant. > > - Always set MIO_EMM_DMA[SECTOR] = SUITABLE_CONSTANT. > No, this does not work. The 1.88GB card plugged into my 78xx board gives the output below. We cannot just blindly set the MULTI bit for all cards. These results are identical for all four combinations of SECTOR and MULTI values hardcoded. mmc0: host does not support reading read-only switch, assuming write-enable mmc0: new high speed SD card at address d15e mmcblk0: mmc0:d15e SD02G 1.88 GiB mmcblk0: timed out sending r/w cmd command, card status 0x400900 mmcblk0: command error, retrying timeout mmcblk0: timed out sending r/w cmd command, card status 0x400900 mmcblk0: command error, retrying timeout mmcblk0: timed out sending r/w cmd command, card status 0x400900 mmcblk0: command error, retrying timeout mmcblk0: timed out sending r/w cmd command, card status 0x400900 mmcblk0: command error, retrying timeout mmcblk0: timed out sending r/w cmd command, card status 0x400900 mmcblk0: command error, retrying timeout mmcblk0: timed out sending r/w cmd command, card status 0x400900 mmcblk0: command error, retrying timeout mmcblk0: timed out sending r/w cmd command, card status 0x400900 mmcblk0: command error, retrying timeout blk_update_request: I/O error, dev mmcblk0, sector 0 Buffer I/O error on dev mmcblk0, logical block 0, async page read mmcblk0: timed out sending r/w cmd command, card status 0x400900 mmcblk0: command error, retrying timeout mmcblk0: timed out sending r/w cmd command, card status 0x400900 mmcblk0: command error, retrying timeout mmcblk0: timed out sending r/w cmd command, card status 0x40090