Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1033603AbdDTV2S (ORCPT ); Thu, 20 Apr 2017 17:28:18 -0400 Received: from mail-sn1nam02on0084.outbound.protection.outlook.com ([104.47.36.84]:64867 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1033541AbdDTV2O (ORCPT ); Thu, 20 Apr 2017 17:28:14 -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:28:09 -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: MWHPR08CA0057.namprd08.prod.outlook.com (10.173.236.31) To MWHPR07MB3213.namprd07.prod.outlook.com (10.172.96.147) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 3af45b88-43dd-40c9-c020-08d4883425fe X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(201703131423075)(201703031133081);SRVR:MWHPR07MB3213; X-Microsoft-Exchange-Diagnostics: 1;MWHPR07MB3213;3:fs3QCybfJEx1zCbGG8Ak1LP3mPwQ//fT6pa2cT5iW/WzN60b3m8I0oKqvLu70Ek2quX7jq+nxF41tHV7ZPaDRt/3Mg9vULKaOAtS3KHTtLp6B0XCbHj5pUuq3Q+Djux85kX8IxVhaXpc7RcmaLi9JhAThT809FN2KNbn9bYgPtJ7Jv8HYhwYBpEKJEsH06fddeDqEtuy8/vf+v6zNoCiPsl7GyudKYrf6fUcASr2rLcG4Wn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lRlWkdL7q49Btx3x7K/QDDhQ+XuGPzSR6lfLhf5dDU/MBc4dSjAHA/0Q5jwF8KkuYPAwL0G006Th1DqXrjdZdRpaaeVqAS391BMzfNGlBZqLXkH1df1peNxVJ8BY1rqEVi6uAnYIpWx63YIAl10/RWfJ7Jdd+W6bJyzSS6YdXtHunDyJkvAk8tp+zB06o7ktdCf4i1pzOKhs2GKXmArAD+A1ZnW40A+qFyPl9SAXGDb8c1KDaL5GgWflAiv2Wq+npgJATumbNzHbnT5injdULNqux3ucAOkfmVihTUXClTFEVa4vDi42py+mcJzhsH37t4Pf 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)(10201501046)(93006095)(93001095)(3002001)(6041248)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(20161123560025)(20161123555025)(20161123564025)(6072148);SRVR:MWHPR07MB3213;BCL:0;PCL:0;RULEID:;SRVR:MWHPR07MB3213; X-Microsoft-Exchange-Diagnostics: 1;MWHPR07MB3213;4:ZZdnFlfQJC5ZJfugaSrRHw84C/38velmQPEzu0RdMXBp3bmQwhkwXeGdVPPOM67xu6kDhsCsRTPq7xz3DrVkggXIbMpdXyKaBcYizTm2er9QL5dyjxFHyziUi2tCJ+kuzuWIKMNVDAUBTVqE7pCEN1L04vP16B+l1E6+EzRA9JEmtwpztY1pW4lXQVPFvCWeGBy7kyoaHeD64EiBQUE2LCa8MVtxZRpoSSktp6EPQjoSO01s17h9eK8Hg5hOu+mOQh3TiMlnVUX6FkZImvwd8h2sb7Qh66pHA58bOZ622twu98VROqp+DQ+rC+pcfkTaWuLeuio7Q9qZquF08+VoJS7AV0RNQV0n5tdz+O7IHWmJHQHUVN9v/22edPel/ILhW1pK2kSHWnt39nNpAkKD6qAEDIOS1fZWR3dGzCvCjY7eLdLcXu9250EmOr+W+bOGQ3KZ3Xi8UmdsvjT7vWMv8GZw8kDSOE+dAJPCVF6/MpF1uofchd4dBgPZt+2XWz9ynpacB/0ouwAy22lGgOiZQsYSR0c8CFPt49MDF4l96YBuMmtz6njQz+2qErvXT55JGK7ADDKP+90OpzcXEcYxLPZwlLeNDLo+TnXZRbaWIL0MaE5bo5W/bf6j9a45kEOEXO3VCQwCkHU/xi6m0W7XDcPyUaOYT5Pz4go7/ykWlFPhTyFEWY5frq+qM4ql1AbX3cTgckaKTjhk7MmJlKU+Hg== X-Forefront-PRVS: 02830F0362 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(4630300001)(6049001)(6009001)(39840400002)(39450400003)(39850400002)(39410400002)(39400400002)(377454003)(24454002)(23676002)(50466002)(5660300001)(3480700004)(6246003)(81166006)(86362001)(2906002)(8676002)(93886004)(47776003)(65806001)(31696002)(230700001)(4001350100001)(65956001)(66066001)(50986999)(6486002)(189998001)(305945005)(54906002)(53546009)(7736002)(77096006)(2950100002)(90366009)(25786009)(6116002)(33646002)(53936002)(83506001)(3846002)(4326008)(36756003)(42186005)(54356999)(38730400002)(76176999)(31686004);DIR:OUT;SFP:1101;SCL:1;SRVR:MWHPR07MB3213;H:[10.0.0.4];FPR:;SPF:None;MLV:sfv;LANG:en; X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtNV0hQUjA3TUIzMjEzOzIzOnhFTDhvd3lwblE0YVEyN1lLbGFlQ09tYUR0?= =?utf-8?B?Um1ROWtlT284QmFFRkJkd2NBcDVRcDFkSFEzajZzY01KQ1JQcGwxU0QrOEVD?= =?utf-8?B?Q2N0WkE0Z2UreVZRTnd5dWlnWVp1T29yT3ViN0tCeWwzZHh2Y2dXUE1PcC83?= =?utf-8?B?R3ArdUNzeHpLOXNMKzZxMGh2emZMYXgyYURBZGxybjJSdElZOGxtU3c2WU9B?= =?utf-8?B?N0VucGtyR0JKMm1iVGdxajZFV1pSSmZEVG53MkhwK25YTHgyb0ZuTlgrWkZD?= =?utf-8?B?NEk5d2JRM0YrVFp0QU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9GjAT7r0xbdvZBEfA484henJ2ASqp7wrz4Xd6FSLlhpx8Lut+SkcTa57Arv5nWaUew4HwHqAKbYGUGlzesLHP+eJrfcywlw==;5:AIgtzYo6260Qsswm6LQnwJEynAzZBgM2GrK69Ll+pc20GK89bZDeAotCq7l2ndl+4LTqLvTBMm9F7j7m9LbZOIFEVAkk8cVGtzMuX/eyb3lOs0Oie51H8A1bReq20mRFwtPnO5KYRl4Zvfyf6RTeUA==;24:4hCZKQU7jJztPGis8LE/1r/hSrDxOAs5GdQXVj5a05kriVnJj9CSXC4XM0SjpsnjtGB+oZ0CKuoddAwcu6PGhOA/cnz7CRTUGpyV9ND0/es= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;MWHPR07MB3213;7:4C6bY7k94adEwmh7QQPfmpc8DCCq5MGA8Yr4LZH5EpCFDyCQmeRsnHRmGMLOn4OW4NDyuh84nFYvTkRckSNRtfSY8NrFncxBkKoAKqF71gySZY3O0qpT7RA2F/8cA4xslW6zcZpt5G/DxbsYsb9cerNKExmuemnjEDZTyxVPAOQbi0ONnyfRXGbauPO2U4BoJApIwrNOO5Un665Kh3+ZE/FhQtSflidDUdpa9+NqMxKMMA5Ywj+9hk9F1FjegXBWOQXdwColBzBVGoIOfiYOCOxATH9T0emtQBObblXYD8wKxR0ZP7CgWixG88OLa1K2Uq3o2XM5px8zgLgY09UP1w== X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Apr 2017 21:28:11.8138 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR07MB3213 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 619 Lines: 15 On 04/20/2017 04:24 PM, Steven J. Hill wrote: > 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. > ...for 3 of the 4 combinations. Obviously the correct one works.