From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) (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 67DB621E2DA4A for ; Tue, 15 Aug 2017 19:19:45 -0700 (PDT) Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga105.jf.intel.com with ESMTP; 15 Aug 2017 19:22:10 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.41,380,1498546800"; d="scan'208";a="140132711" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by fmsmga005.fm.intel.com with ESMTP; 15 Aug 2017 19:22:10 -0700 Received: from fmsmsx125.amr.corp.intel.com (10.18.125.40) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.319.2; Tue, 15 Aug 2017 19:22:10 -0700 Received: from shsmsx101.ccr.corp.intel.com (10.239.4.153) by FMSMSX125.amr.corp.intel.com (10.18.125.40) with Microsoft SMTP Server (TLS) id 14.3.319.2; Tue, 15 Aug 2017 19:22:09 -0700 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.183]) by SHSMSX101.ccr.corp.intel.com ([169.254.1.128]) with mapi id 14.03.0319.002; Wed, 16 Aug 2017 10:22:08 +0800 From: "Zeng, Star" To: Laszlo Ersek , "Kinney, Michael D" , "edk2-devel@lists.01.org" CC: "Ni, Ruiyu" , Heyi Guo , "Ard Biesheuvel" , "Zeng, Star" Thread-Topic: [edk2] [PATCH] MdeModulePkg SerialDxe: Process timeout consistently in SerialRead Thread-Index: AQHTDPvN3Byx3yphxkaF5cqSQ//BT6KFnOMAgAAIAACAACJnAIAAizwA Date: Wed, 16 Aug 2017 02:22:07 +0000 Message-ID: <0C09AFA07DD0434D9E2A0C6AEB0483103B919406@shsmsx102.ccr.corp.intel.com> References: <1501835363-61956-1-git-send-email-star.zeng@intel.com> <49b59f2c-6e0d-57af-e72e-7de0a7470d16@redhat.com> In-Reply-To: <49b59f2c-6e0d-57af-e72e-7de0a7470d16@redhat.com> 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 SerialDxe: Process timeout consistently in SerialRead 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: Wed, 16 Aug 2017 02:19:45 -0000 Content-Language: en-US Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 ICAqQ29udHJvbCA9IDA7DQogIGlmICghU2VyaWFsUG9ydFBvbGwgKCkpIHsNCiAgICAqQ29udHJv bCA9IEVGSV9TRVJJQUxfSU5QVVRfQlVGRkVSX0VNUFRZOw0KICB9DQogIHJldHVybiBSRVRVUk5f U1VDQ0VTUzsNCg0KQXMgZXhhbXBsZSwgdGhlIGNvZGUgYWJvdmUgKGluIE92bWZQa2dcTGlicmFy eVxYZW5Db25zb2xlU2VyaWFsUG9ydExpYlxYZW5Db25zb2xlU2VyaWFsUG9ydExpYi5jKSBjYW4g YmUgc2ltcGx5IHVzZWQgaW4gU2VyaWFsUG9ydEdldENvbnRyb2woKS4NCg0KDQpUaGFua3MsDQpT dGFyDQotLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KRnJvbTogTGFzemxvIEVyc2VrIFttYWls dG86bGVyc2VrQHJlZGhhdC5jb21dIA0KU2VudDogV2VkbmVzZGF5LCBBdWd1c3QgMTYsIDIwMTcg MTA6MDIgQU0NClRvOiBLaW5uZXksIE1pY2hhZWwgRCA8bWljaGFlbC5kLmtpbm5leUBpbnRlbC5j b20+OyBaZW5nLCBTdGFyIDxzdGFyLnplbmdAaW50ZWwuY29tPjsgZWRrMi1kZXZlbEBsaXN0cy4w MS5vcmcNCkNjOi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