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.65; helo=mga03.intel.com; envelope-from=star.zeng@intel.com; receiver=edk2-devel@lists.01.org Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) (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 CB42421A1099D for ; Mon, 27 Nov 2017 04:54:27 -0800 (PST) Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 27 Nov 2017 04:58:48 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.44,465,1505804400"; d="scan'208";a="178254661" Received: from fmsmsx103.amr.corp.intel.com ([10.18.124.201]) by orsmga005.jf.intel.com with ESMTP; 27 Nov 2017 04:58:48 -0800 Received: from FMSMSX109.amr.corp.intel.com (10.18.116.9) by FMSMSX103.amr.corp.intel.com (10.18.124.201) with Microsoft SMTP Server (TLS) id 14.3.319.2; Mon, 27 Nov 2017 04:58:48 -0800 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by fmsmsx109.amr.corp.intel.com (10.18.116.9) with Microsoft SMTP Server (TLS) id 14.3.319.2; Mon, 27 Nov 2017 04:58:48 -0800 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.175]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.93]) with mapi id 14.03.0319.002; Mon, 27 Nov 2017 20:58:46 +0800 From: "Zeng, Star" To: Laszlo Ersek , "Yao, Jiewen" , "Ni, Ruiyu" , Paolo Bonzini CC: "Dong, Eric" , Ard Biesheuvel , edk2-devel-01 , "Dann Frazier" , "Zeng, Star" Thread-Topic: [edk2] [PATCH] MdeModulePkg/AtaAtapiPassThru: disable only BM-DMA at ExitBootServices() Thread-Index: AQHTTnHmsNyTTWAjwEWWKz5G8qhC8KL3WQMAgCh24QCAAIqXAIAAheMAgAC054CAALZzgIAAEYUAgAAKIACABWxhAIAAjFzQ Date: Mon, 27 Nov 2017 12:58:46 +0000 Message-ID: <0C09AFA07DD0434D9E2A0C6AEB0483103B9BC7E1@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-ctpclassification: CTP_IC x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiZGI1MjVmYWQtZGMxNS00OWVlLTgwM2UtMmJlZDFlOWRkNjQ3IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjIuNS4xOCIsIlRydXN0ZWRMYWJlbEhhc2giOiJXbWVhbmFzcEJlbkZkUFJMa3VvU1ZiNzE4QmlyQlhjNG5nVDZ3SXdRdm0wSWx2N3Rkbk90Y240NkxnbitFUjNHIn0= 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 12:54:27 -0000 Content-Language: en-US Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 SXQgaXMgYSB3YXkgYWxzbyBJIGFtIHRoaW5raW5nLiBIb3BlIG5vIE9TIHRha2VzIGFueSBhc3N1 bXB0aW9uIHJlbGF0ZWQgdG8gQWhjaVJlc2V0KCkuDQoNClRoYW5rcywNClN0YXINCi0tLS0tT3Jp Z2luYWwgTWVzc2FnZS0tLS0tDQpGcm9tOiBMYXN6bG8gRXJzZWsgW21haWx0bzpsZXJzZWtAcmVk aGF0LmNvbV0gDQpTZW50OiBNb25kYXksIE5vdmVtYmVyIDI3LCAyMDE3IDg6MzAgUE0NClRvOiBZ YW8sIEppZXdlbiA8amlld2VuLnlhb0BpbnRlbC5jb20+OyBOaSwgUnVpeXUgPHJ1aXl1Lm5pQGlu dGVsLmNvbT47IFBhb2xvIEJvbnppbmkgPHBib256aW5pQHJlZGhhdC5jb20+DQpDYzogRG9uZywg RXJpYyA8ZXJpYy5kb25nQGludGVsLmNvbT47IEFyZCBCaWVzaGV1dmVsIDxhcmQuYmllc2hldXZl bEBsaW5hcm8ub3JnPjsgZWRrMi1kZXZlbC0wMSA8ZWRrMi1kZXZlbEBsaXN0cy4wMS5vcmc+OyBE YW5uIEZyYXppZXIgPGRhbm5mQHVidW50dS5jb20+OyBaZW5nLCBTdGFyIDxzdGFyLnplbmdAaW50 ZWwuY29tPg0KU3ViamVjdDogUmU6IFtlZGsyXSBbUEFUQ0hdIE1kZU1vZHVsZVBrZy9BdGFBdGFw aVBhc3NUaHJ1OiBkaXNhYmxlIG9ubHkgQk0tRE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