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.43; helo=mga05.intel.com; envelope-from=jiewen.yao@intel.com; receiver=edk2-devel@lists.01.org Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) (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 6C17821A1099D for ; Mon, 27 Nov 2017 05:37:55 -0800 (PST) Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 27 Nov 2017 05:42:16 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.44,465,1505804400"; d="scan'208";a="178268803" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by orsmga005.jf.intel.com with ESMTP; 27 Nov 2017 05:42:16 -0800 Received: from shsmsx104.ccr.corp.intel.com (10.239.4.70) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.319.2; Mon, 27 Nov 2017 05:41:55 -0800 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.175]) by SHSMSX104.ccr.corp.intel.com ([169.254.5.152]) with mapi id 14.03.0319.002; Mon, 27 Nov 2017 21:41:29 +0800 From: "Yao, Jiewen" To: Laszlo Ersek , "Ni, Ruiyu" , "Paolo Bonzini" CC: edk2-devel-01 , Dann Frazier , "Dong, Eric" , "Zeng, Star" , "Ard Biesheuvel" Thread-Topic: [edk2] [PATCH] MdeModulePkg/AtaAtapiPassThru: disable only BM-DMA at ExitBootServices() Thread-Index: AQHTTnH3CWCMBojpc0GFX7RcRIR9k6L3WQMAgCh24ACAAAW9AIABCr4AgAC054CAALZygIAAEYYAgACHLoCABO9TAIAAmQxw Date: Mon, 27 Nov 2017 13:41:29 +0000 Message-ID: <74D8A39837DF1E4DA445A8C0B3885C503AA2E60D@shsmsx102.ccr.corp.intel.com> References: <20171026154819.20865-1-lersek@redhat.com> <734D49CCEBEEF84792F5B80ED585239D5BACC0A1@SHSMSX104.ccr.corp.intel.com> <0C09AFA07DD0434D9E2A0C6AEB0483103B9BABBA@shsmsx102.ccr.corp.intel.com> <734D49CCEBEEF84792F5B80ED585239D5BACDEC2@SHSMSX104.ccr.corp.intel.com> <831b3082-2554-8196-5f79-d018e6d4ce37@redhat.com> <892BF6B9-3CCC-45DB-8C72-E526130502BE@intel.com> <74D8A39837DF1E4DA445A8C0B3885C503AA2B77C@shsmsx102.ccr.corp.intel.com> <0236afa2-e365-af7a-9374-7fd1ad742c36@redhat.com> In-Reply-To: <0236afa2-e365-af7a-9374-7fd1ad742c36@redhat.com> Accept-Language: zh-CN, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMmNmOTY2OTgtNmVhYy00MmRjLTkzY2UtODUyZWI5NTMxYjdkIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjIuNS4xOCIsIlRydXN0ZWRMYWJlbEhhc2giOiJ2a0tmd25CbXVRaWYxcHNxZmRidWt1WVpGbEhEOXQ0cklWRWNKbnVUNzBXUGFlc3pyclFOeU5RaXBpT0k3QlRMIn0= x-ctpclassification: CTP_IC dlp-product: dlpe-windows dlp-version: 11.0.0.116 dlp-reaction: no-action x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: [PATCH] MdeModulePkg/AtaAtapiPassThru: disable only BM-DMA at ExitBootServices() X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Nov 2017 13:37:55 -0000 Content-Language: en-US Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 WWVzLCBMYXN6bG8sIHlvdSBhcmUgcmlnaHQuIEJhY2sgdG8gdGhhdCB0aW1lLCB3ZSBkaWQgbm90 IHJlYWxpemUgdGhlcmUgd2lsbCBiZSBTNCBpc3N1ZS4NCg0KTm93LCBJIGFncmVlIHdpdGggeW91 IHRoYXQgQWhjaVJlc2V0IGlzIGEgYmV0dGVyIHdheS4NCkFuZCBJIHRoaW5rIHdlIGFsc28gbmVl ZCB0ZXN0IGRpZmZlcmVudCBVRUZJIE9TIChub3JtYWwgYm9vdC9TNCkgdG8gc2VlIGlmIHRoZXJl IGlzIG90aGVyIGlzc3VlLg0KDQpIb3BlIEFoY2lSZXNldCgpIGlzIGdvb2QgZW5vdWdoLCBhbmQg d29uJ3QgYnJpbmcgY29tcGF0aWJpbGl0eSBpc3N1ZS4NCg0KDQpUaGFuayB5b3UNCllhbyBKaWV3 ZW4NCg0KDQo+IC0tLS0tT3JpZ2luYWwgTWVzc2FnZS0tLS0tDQo+IEZyb206IGVkazItZGV2ZWwg W21haWx0bzplZGsyLWRldmVsLWJvdW5jZXNAbGlzdHMuMDEub3JnXSBPbiBCZWhhbGYgT2YgTGFz emxvDQo+IEVyc2VrDQo+IFNlbnQ6IE1vbmRheSwgTm92ZW1iZXIgMjcsIDIwMTcgODozMCBQTQ0K PiBUbzogWWFvLCBKaWV3ZW4gPGppZXdlbi55YW9AaW50ZWwuY29tPjsgTmksIFJ1aXl1IDxydWl5 dS5uaUBpbnRlbC5jb20+OyBQYW9sbw0KPiBCb256aW5pIDxwYm9uemluaUByZWRoYXQuY29tPg0K PiBDYzogZWRrMi1kZXZlbC0wMSA8ZWRrMi1kZXZlbEBsaXN0cy4wMS5vcmc+OyBEYW5uIEZyYXpp ZXINCj4gP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