From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=104.47.0.67; helo=eur01-he1-obe.outbound.protection.outlook.com; envelope-from=meenakshi.aggarwal@nxp.com; receiver=edk2-devel@lists.01.org Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0067.outbound.protection.outlook.com [104.47.0.67]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id BC048224DCA48 for ; Thu, 8 Mar 2018 22:00:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=dztwZxMm9McmHysofpFGg4QCS1AvR10PcdJXzs4wI7I=; b=l6OtcSV+iDhBuU5lu1Q8Q8G9GxUofNVFjw8rZh+2s1ZBEszxfDVxTk7mgZv2D8hLgHdr8zgCkGDdULtvc3lGKwDJvxWeIJYhcpsu1cxkAJb77avEZKjp1zH5n+K06FnF8aMSZdBsRlu+ItQFBHfvRxN5u/A5SCYJNeRJb2U8hEk= Received: from DB5PR04MB0998.eurprd04.prod.outlook.com (10.161.199.12) by DB5PR04MB1558.eurprd04.prod.outlook.com (10.164.38.28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.548.13; Fri, 9 Mar 2018 06:06:38 +0000 Received: from DB5PR04MB0998.eurprd04.prod.outlook.com ([fe80::5b4:dfb7:891f:32ce]) by DB5PR04MB0998.eurprd04.prod.outlook.com ([fe80::5b4:dfb7:891f:32ce%13]) with mapi id 15.20.0548.016; Fri, 9 Mar 2018 06:06:38 +0000 From: Meenakshi Aggarwal To: "Carsey, Jaben" , "edk2-devel@lists.01.org" Thread-Topic: ShellPkg: reconnect command resulted in hang Thread-Index: AdO2wMDVPz7L8T7dQPy5y+iSTMsyhgAMAzUgAAA+1sAAAA5rEAAefOHQ Date: Fri, 9 Mar 2018 06:06:38 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-GB, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [103.72.10.207] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; DB5PR04MB1558; 6:6rvwrk8mbbao43Mltor8okOGeWCCUyFV4j4CLcKw5LisYSEYl6qq7uDAhpomcwKaFCCH7bQeT1FFs/RaQ1gcj8AxW1Q3IaE8zmD8OAeao2UKwgSov5tSqhrtZNKBsvvCyZwbhWi4n2lDQ1O97EfInyNgYeisbWi+28FYbq+MXmNVl9qNkeCfpuyGE4ypbi+S9Cja8vpl8UGsCFxIpS5hEJ7M2AbXo7R3uNY3Z3IhKwMd0zghmNK3i/Z7ZQ826E7V/2zo/yOlBWz8gHNx3r1ak8a9h1HaOe18G88r+9X0WHzp7sohUfomCeREIHx9+w9yTFGIMLKNUwOLJtDZfUaMd8IqrWGiD+W1iN0ZtL0YcijTaoupQt8MLoWgB3mEltht; 5:jZfa9zTi1y74ReJQJkzUAto0DAL7Km05bvSKo8Pc7N84eBe3K3yFp+hV1J+WvFdkGYSjZXd8amBXwYC3FGE0smLhzXapis6PBYkB59mn6aF9ey5uEGY2+ng0xTqizcqglna6tybQweFQrP8IfQAodrEzev4P4Q6HHDMY9OsMtr4=; 24:GfoDFAs7G1fkM3Dn6AbBx2M0AFJfA/NAAwtTx6DdxVA2cXdzkD8CcElCBI3YkXdqr97/KqOv+tCRYcvcZtTwQqbJgsTG485cmJUX72j2mwc=; 7:TrgE2o3yIOna91BtGXIvOmlPxK2h+RkQDW69gPxOM5/8u2+6OG4HOLQ5wGuVeMzx3FXUXVcRdMY78o0bGU8iM4pldfcyrnaUVEK1bjO4olMTydGdSk8HaZ/qICwCxNUAdGzvafPfK2dTNyQr6dnGIqS5z8AU7F8nIOj24Sty62efquTvtAKJv9PgJ7N6daAKhyu5ONT0IFQL25mNS34rtb6qKHNQWIUMlcJtZAIiypZ1PUp3pYvSrWlHPgnF9mbj x-ms-exchange-antispam-srfa-diagnostics: SSOS; x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 76b633e6-26ea-4fd1-ff7e-08d58583ebdd x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(3008032)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:DB5PR04MB1558; x-ms-traffictypediagnostic: DB5PR04MB1558: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(189930954265078)(185117386973197)(162533806227266)(45079756050767)(21532816269658)(228905959029699); x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(10201501046)(3002001)(93006095)(93001095)(3231220)(944501244)(52105095)(6055026)(6041310)(20161123564045)(20161123562045)(20161123560045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011); SRVR:DB5PR04MB1558; BCL:0; PCL:0; RULEID:; SRVR:DB5PR04MB1558; x-forefront-prvs: 0606BBEB39 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(346002)(39380400002)(39860400002)(396003)(376002)(366004)(53474002)(13464003)(189003)(199004)(25786009)(966005)(102836004)(105586002)(2900100001)(229853002)(99286004)(6346003)(6506007)(33656002)(7696005)(3660700001)(76176011)(26005)(53546011)(86362001)(186003)(478600001)(97736004)(81166006)(81156014)(14454004)(6246003)(110136005)(74316002)(8936002)(8676002)(2501003)(5250100002)(45080400002)(7736002)(305945005)(6436002)(5660300001)(316002)(93886005)(68736007)(6116002)(2906002)(3846002)(55016002)(2950100002)(106356001)(66066001)(53936002)(6306002)(9686003)(3280700002); DIR:OUT; SFP:1101; SCL:1; SRVR:DB5PR04MB1558; H:DB5PR04MB0998.eurprd04.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) authentication-results: spf=none (sender IP is ) smtp.mailfrom=meenakshi.aggarwal@nxp.com; x-microsoft-antispam-message-info: cv6KlDQyVv0/m4OVrK0oBwpGoRvu8WGfYuYpTy7kfswYHOKk0QxyYaxQoCATulIcvUUxuSeDIApz9v1NQGH71LeUUMkrZFwjAvyDgFt6wI2512XtpkLpnXIzQ47bw0bC6geGbMF35q8bJPHLtkfbJb5bz9BxT+xSoBDX4thk7usj+WQDG/i6v5rt76udmNfjR9y55xNKJ5P3mMLsqqfQd+kJ2WwFsQWLCNNLxBy5fU1rD+knMe/MM11NLZfUohs1lQ3o0GAvuRBucOOPxtKS/P2lHuE9DzT+m3u7JaQCW1IZ9DtGwGNZHojQMFVcJNZ7HpOl/EZLDqZfVok0aTUdXg== spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 76b633e6-26ea-4fd1-ff7e-08d58583ebdd X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Mar 2018 06:06:38.5791 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB5PR04MB1558 Subject: Re: ShellPkg: reconnect command resulted in hang X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Mar 2018 06:00:30 -0000 Content-Language: en-US Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable Thanks Jaben for your reply. It is helpful information. Regards, Meenakshi > -----Original Message----- > From: Carsey, Jaben [mailto:jaben.carsey@intel.com] > Sent: Thursday, March 08, 2018 9:07 PM > To: Meenakshi Aggarwal ; edk2- > devel@lists.01.org > Subject: RE: ShellPkg: reconnect command resulted in hang >=20 > The rest of the drivers needed for console input are not connecting. >=20 > The shell is dependent on the devices in the system table it was initiali= zed > with for console functionality. Only when everything was disconnected do= es > it know to force those to reconnect. Otherwise you have to get it right > yourself. >=20 > If you look at the connect command you see the "-c" option to force EFI > variable consoles to be reconnected properly. That doesn't exist in > reconnect, but you can get around that with a script file. You probably = want > to do something like: >=20 > Disconnect 20 > Connect 20 -c >=20 >=20 > -Jaben >=20 >=20 >=20 > > -----Original Message----- > > From: Meenakshi Aggarwal [mailto:meenakshi.aggarwal@nxp.com] > > Sent: Thursday, March 08, 2018 7:27 AM > > To: Carsey, Jaben ; edk2-devel@lists.01.org > > Subject: RE: ShellPkg: reconnect command resulted in hang > > Importance: High > > > > Yes, i am connected to the device using this serial port. > > > > > -----Original Message----- > > > From: Carsey, Jaben [mailto:jaben.carsey@intel.com] > > > Sent: Thursday, March 08, 2018 8:50 PM > > > To: Meenakshi Aggarwal ; edk2- > > > devel@lists.01.org > > > Subject: RE: ShellPkg: reconnect command resulted in hang > > > > > > Are you using this serial port? Are you connected to the device via t= his > > serial > > > port? > > > > > > > -----Original Message----- > > > > From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf > Of > > > > Meenakshi Aggarwal > > > > Sent: Thursday, March 08, 2018 1:35 AM > > > > To: edk2-devel@lists.01.org > > > > Subject: [edk2] ShellPkg: reconnect command resulted in hang > > > > Importance: High > > > > > > > > Hi, > > > > > > > > > > > > I was trying reconnect shell command with UART handle [20] > > > > > > > > 20 R - - 0 1 1 VenHw(D3987D4B-971A-435F-8CAF- > > > > 4967EB627241)/Uart(115200,8,N,1) > > > > > > > > Shell> reconnect 20 > > > > > > > > After this reconnect command, shell didnt come back, looks like a h= ang. > > > > I analyzed further and see that code has executed completely and > > reached > > > > to shell but console is not coming. > > > > > > > > > > > > In "reconnect -r" , we are calling ConnectAllConsoles() separately > > between > > > > disconnect and connect calls. > > > > > > > > Why is this so? > > > > > > > > Why only connect call is nt sufficient to bring the console up? > > > > > > > > Please help me in understanding this. > > > > > > > > > > > > Thanks, > > > > Meenakshi > > > > > > > > > > > > _______________________________________________ > > > > edk2-devel mailing list > > > > edk2-devel@lists.01.org > > > > > > > > > > https://emea01.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Flist > > > s.01.org%2Fmailman%2Flistinfo%2Fedk2- > > > > > > devel&data=3D02%7C01%7Cmeenakshi.aggarwal%40nxp.com%7C230f90d310a > > > > > > 9476a24cc08d585080ef4%7C686ea1d3bc2b4c6fa92cd99c5c301635%7C0%7C0% > > > > > > 7C636561192036205272&sdata=3D6pvDPfpdDAvpKVB%2BhD7xRov7Rq6x68NhG > > > HeL1XRZoFE%3D&reserved=3D0