From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=192.55.52.93; helo=mga11.intel.com; envelope-from=hao.a.wu@intel.com; receiver=edk2-devel@lists.01.org Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) (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 B2888211CF36B for ; Sun, 3 Mar 2019 18:39:15 -0800 (PST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 03 Mar 2019 18:39:15 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.58,438,1544515200"; d="scan'208";a="279469641" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by orsmga004.jf.intel.com with ESMTP; 03 Mar 2019 18:39:14 -0800 Received: from fmsmsx117.amr.corp.intel.com (10.18.116.17) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.408.0; Sun, 3 Mar 2019 18:39:14 -0800 Received: from shsmsx105.ccr.corp.intel.com (10.239.4.158) by fmsmsx117.amr.corp.intel.com (10.18.116.17) with Microsoft SMTP Server (TLS) id 14.3.408.0; Sun, 3 Mar 2019 18:39:14 -0800 Received: from shsmsx104.ccr.corp.intel.com ([169.254.5.74]) by SHSMSX105.ccr.corp.intel.com ([169.254.11.113]) with mapi id 14.03.0415.000; Mon, 4 Mar 2019 10:39:12 +0800 From: "Wu, Hao A" To: "Cohen, Eugene" , Ashish Singhal , 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/J4CABFwY8A== Date: Mon, 4 Mar 2019 02:39:11 +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 02:39:15 -0000 Content-Language: en-US Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 SGkgRXVnZW5lLCBBc2hpc2ggYW5kIEFyZA0KDQpTb3JyeSBmb3IgdGhlIGRlbGF5ZWQgcmVzcG9u c2UsIEkgd2FzIG91dCBvZiBvZmZpY2UgaW4gdGhlIHByZXZpb3VzIHNldmVyYWwNCmRheXMuDQoN CkFjY29yZGluZyB0byB0aGUgZGlzY3Vzc2lvbiwgbXkgdW5kZXJzdGFuZGluZyBpcyB0aGF0IChx dW90ZSB0aGUgY29tbWVudHMgZnJvbQ0KQXJkKToNCg0KPiBEcml2ZXIgc2hvdWxkIG5vdCBzZXQg dGhlIEVGSV9QQ0lfSU9fQVRUUklCVVRFX0RVQUxfQUREUkVTU19DWUNMRSBhdHRyaWJ1dGUNCj4g MS4gSWYgdGhlIGRldmljZSBkb2VzIG5vdCBzdXBwb3J0IGl0Ow0KPiAyLiBJZiB0aGUgZHJpdmVy IGRvZXMgbm90IGltcGxlbWVudCB0aGUgNjQtYml0IERNQSBtb2RlIHRoYXQgdGhlIGRldmljZSBk b2VzDQo+ICAgIHN1cHBvcnQuDQoNClRodXMsIGZvciB0aGUgY3VycmVudCBpbXBsZW1lbnRhdGlv biBvZiB0aGUgU2RNbWNQY2lIY0R4ZSBkcml2ZXIgKGluY2x1ZGluZyB0aGUNClY0IEFETUEgZGVz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