From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=134.134.136.20; helo=mga02.intel.com; envelope-from=hao.a.wu@intel.com; receiver=edk2-devel@lists.01.org Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 06FCB211CD627 for ; Sun, 3 Mar 2019 20:26:23 -0800 (PST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 Mar 2019 20:26:22 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.58,438,1544515200"; d="scan'208";a="155816984" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by orsmga001.jf.intel.com with ESMTP; 03 Mar 2019 20:26:22 -0800 Received: from shsmsx151.ccr.corp.intel.com (10.239.6.50) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.408.0; Sun, 3 Mar 2019 20:26:21 -0800 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.74]) by SHSMSX151.ccr.corp.intel.com ([169.254.3.26]) with mapi id 14.03.0415.000; Mon, 4 Mar 2019 12:26:19 +0800 From: "Wu, Hao A" To: Ashish Singhal , "Cohen, Eugene" , Ard Biesheuvel CC: "edk2-devel@lists.01.org" , "Kim, Sangwoo (??? SW1Lab.)" Thread-Topic: [PATCH] MdeModulePkg/SdMmcPciHcDxe: Fix DMA on SDHC v3 64-bit systems Thread-Index: AQHU0B06Wzb52pxFK06p642PytiQQqX2IGGAgAA/J4CABFwY8P//m58AgACM7oA= Date: Mon, 4 Mar 2019 04:26:19 +0000 Message-ID: References: In-Reply-To: Accept-Language: zh-CN, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: [PATCH] MdeModulePkg/SdMmcPciHcDxe: Fix DMA on SDHC v3 64-bit systems X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Mar 2019 04:26:24 -0000 Content-Language: en-US Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 PiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPiBGcm9tOiBBc2hpc2ggU2luZ2hhbCBbbWFp bHRvOmFzaGlzaHNpbmdoYUBudmlkaWEuY29tXQ0KPiBTZW50OiBNb25kYXksIE1hcmNoIDA0LCAy MDE5IDEyOjAwIFBNDQo+IFRvOiBXdSwgSGFvIEE7IENvaGVuLCBFdWdlbmU7IEFyZCBCaWVzaGV1 dmVsDQo+IENjOiBlZGsyLWRldmVsQGxpc3RzLjAxLm9yZzsgS2ltLCBTYW5nd29vICg/Pz8gU1cx TGFiLikNCj4gU3ViamVjdDogUkU6IFtQQVRDSF0gTWRlTW9kdWxlUGtnL1NkTW1jUGNpSGNEeGU6 IEZpeCBETUEgb24gU0RIQyB2Mw0KPiA2NC1iaXQgc3lzdGVtcw0KPiANCj4gSGkgSGFvLA0KPiAN Cj4gSSBhZ3JlZSB0aGF0IHRoZXJlIGhhcyBiZWVuIGEgYnVnIGFsbCBhbG9uZyB3aGljaCBnb3Qg ZXhwb3NlZCBqdXN0IG5vdy4gV2UNCj4gc2hvdWxkIHN1Ym1pdCB0aGUgcGF0Y2ggYXMgcHJvcG9z ZWQgYnkgRXVnZW5lLg0KDQpZZXMuIEkgd2lsbCBjby13b3JrIHdpdGggRXVnZW5lIHRvIGFkZHJl c3MgdGhpcyBzb29uLg0KDQo+IA0KPiBBbHNvLCBJIGhhdmUgc3VibWl0dGVkIHRoZSBwYXRjaCBm b3IgZ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