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=jiewen.yao@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 F393F220C1630 for ; Thu, 23 Nov 2017 17:36:04 -0800 (PST) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 23 Nov 2017 17:40:22 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.44,444,1505804400"; d="scan'208";a="1247810953" Received: from fmsmsx104.amr.corp.intel.com ([10.18.124.202]) by fmsmga002.fm.intel.com with ESMTP; 23 Nov 2017 17:40:21 -0800 Received: from fmsmsx126.amr.corp.intel.com (10.18.125.43) by fmsmsx104.amr.corp.intel.com (10.18.124.202) with Microsoft SMTP Server (TLS) id 14.3.319.2; Thu, 23 Nov 2017 17:40:20 -0800 Received: from shsmsx151.ccr.corp.intel.com (10.239.6.50) by FMSMSX126.amr.corp.intel.com (10.18.125.43) with Microsoft SMTP Server (TLS) id 14.3.319.2; Thu, 23 Nov 2017 17:40:20 -0800 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.175]) by SHSMSX151.ccr.corp.intel.com ([169.254.3.218]) with mapi id 14.03.0319.002; Fri, 24 Nov 2017 09:40:18 +0800 From: "Yao, Jiewen" To: "Ni, Ruiyu" , Paolo Bonzini CC: "Dong, Eric" , Ard Biesheuvel , edk2-devel-01 , "Dann Frazier" , Laszlo Ersek , "Zeng, Star" Thread-Topic: [edk2] [PATCH] MdeModulePkg/AtaAtapiPassThru: disable only BM-DMA at ExitBootServices() Thread-Index: AQHTTnH3CWCMBojpc0GFX7RcRIR9k6L3WQMAgCh24ACAAAW9AIABCr4AgAC054CAALZygIAAEYYAgACHLoA= Date: Fri, 24 Nov 2017 01:40:18 +0000 Message-ID: <74D8A39837DF1E4DA445A8C0B3885C503AA2B77C@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> In-Reply-To: <892BF6B9-3CCC-45DB-8C72-E526130502BE@intel.com> Accept-Language: zh-CN, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMGY3MTdhMjUtMzkzZS00MDI5LWJlYjYtYTI3NjBkMDZmZjk0IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjIuNS4xOCIsIlRydXN0ZWRMYWJlbEhhc2giOiJ2QmtPUDBqbTRheEpVelp3bWswS1cwK21RWENsYklDOFcyU1A5MEpTWmMyNTdTc3MreENoWXRNZWRCVWF0enZNIn0= 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: Fri, 24 Nov 2017 01:36:05 -0000 Content-Language: en-US Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: base64 TWF5YmUsIGNhbiB3ZSByZXZpc2l0IHRoZSBvcmlnaW5hbCByZXF1aXJlbWVudCBvbiB3aHkgd2Ug bmVlZCBkaXNhYmxlIEJNRSBhdCBFeGl0Qm9vdFNlcnZpY2UgZm9yIE9WTUY/DQoNCkkgcmVjYWxs IHdlIGhhdmUgbG90cyBvZiBkaXNjdXNzaW9uIGF0IFNlcHRlbWJlci4gSXQgaXMgZ29vZCB0byBy ZWZyZXNoLg0KDQo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0NCltlZGsyXSBbUEFUQ0gg MC80XSBNZGVNb2R1bGVQa2c6IHNvbWUgUENJIEhDIGRyaXZlcnM6IHVubWFwIGNvbW1vbiBidWZm ZXJzIGF0IEV4aXRCb290U2VydmljZXMoKQ0KaHR0cHM6Ly9saXN0cy4wMS5vcmcvcGlwZXJtYWls L2VkazItZGV2ZWwvMjAxNy1TZXB0ZW1iZXIvMDE0MDk5Lmh0bWwNCg0KQXQgRXhpdEJvb3RTZXJ2 aWNlcygpLCBQQ0kgYW5kIFZpcnRJbyBkcml2ZXJzIHNob3VsZCBvbmx5IGNhcmUgYWJvdXQNCmFi b3J0aW5nIHBlbmRpbmcgRE1BIG9uIHRoZSBkZXZpY2VzLiBDbGVhbmluZyB1cCBQY2lJbyBtYXBw aW5ncyAod2hpY2gNCnVsdGltYXRlbHkgYm9pbCBkb3duIHRvIElPTU1VIG1hcHBpbmdzKSBmb3Ig dGhvc2UgYWJvcnRlZCBETUEgb3BlcmF0aW9ucw0Kc2hvdWxkIGJlIHRoZSBqb2Igb2YgdGhlIElP TU1VIGRyaXZlci4NCj09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQ0KDQpJIHRoaW5rIHRo Z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