From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=40.107.1.61; helo=eur02-he1-obe.outbound.protection.outlook.com; envelope-from=udit.kumar@nxp.com; receiver=edk2-devel@lists.01.org Received: from EUR02-HE1-obe.outbound.protection.outlook.com (mail-eopbgr10061.outbound.protection.outlook.com [40.107.1.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 929612095B065 for ; Thu, 5 Oct 2017 06:21:55 -0700 (PDT) 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=TFmT/gWjSJt9jkasWIGxOGHgmLi4OwYc59EZLE30vrs=; b=I24+SdyBu/8SHAmPyzdRZMkhXnb3Qhx/r3jn0LDkwJ0SaVJv4tb0FFgl0orxL0TL7WEzTVFYGQx+G8++S6FxwJSTEbS5Oc+HXbxcUXhYPLHORQZlhpKCKgflT7mpz0yvesia1oY0hZjb+PvQgBJvLDOve3xBwi2VadOBK6AiVJs= Received: from AM6PR0402MB3334.eurprd04.prod.outlook.com (52.133.18.151) by AM6PR0402MB3333.eurprd04.prod.outlook.com (52.133.18.150) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.77.7; Thu, 5 Oct 2017 13:25:15 +0000 Received: from AM6PR0402MB3334.eurprd04.prod.outlook.com ([fe80::4d05:6a0c:bcca:93be]) by AM6PR0402MB3334.eurprd04.prod.outlook.com ([fe80::4d05:6a0c:bcca:93be%13]) with mapi id 15.20.0077.018; Thu, 5 Oct 2017 13:25:15 +0000 From: Udit Kumar To: "Zeng, Star" CC: edk2-devel-01 Thread-Topic: [edk2] USB Enumeration Thread-Index: AdM9z7w52gGtS2phQTaTfzVs5IEMfwABl+HgAAFgrTA= Date: Thu, 5 Oct 2017 13:25:15 +0000 Message-ID: References: <0C09AFA07DD0434D9E2A0C6AEB0483103B97E87C@shsmsx102.ccr.corp.intel.com> In-Reply-To: <0C09AFA07DD0434D9E2A0C6AEB0483103B97E87C@shsmsx102.ccr.corp.intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=udit.kumar@nxp.com; x-originating-ip: [192.88.169.1] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; AM6PR0402MB3333; 6:IUjRtuJA5YtNqVuxLcnExF8yAHnjyAFTIGAjBTnHTIPvM/LHgl9uLvV9NNovdWpulO8hRpu5153EqkRXm8qfjSvM0C4xJYlgzKTMFrqg2OrKixaLyPJk/YyXBYDZMvZczIdDeNZ63Evozx4E/WTw6e4LfwawkMVxlkgiiGk/rxwH5dqb9Ecjk+iFxlbPGxGz23NzW4DQBPXSG6/Md3/QRa98HblKMOyXpEboEFnvTVhBK2bHW0RjE5SzuI8WVhJ6fDokkDqZNnK5gI/J0uW3v0nW/IvbwAXq5T4ZRp/YBflBBLd7VGKGByM78jHMuq/9IHyIzj/2xEMJN7LCJ716WA==; 5:BkKKO+6Cal+a5ibH21kejSQsRuc8tD32JWiIJQ9IIk/RzSsmGoNqAOvjZu904Aq2TP2QAfFxzBsJwegRGwKkG2LER1SWz6i4L1iJxSWdHzT2+JpctaluQfwec93KWqM8JzAv3BMn7xqFi3Qm++WafA==; 24:MVHlAhNRCZscfvUCdS37FEeoIy2wcdEDlDEaFUNLR8+e6dlNtf8ZZcKO8Qq4+4zQhZ+7ZLSV4Wrl1tDHfD48SsE1ONC2iX1+sxnCy5hoMHo=; 7:gNbGNfHbSfbzVI10pb28mJbXUnLqLvnW+P9CjZxnuHdhNUy+fEMtxheELRtNPWyJQ7v1/05a6CMVdkiHgCXTMOuPEL6b3jrUDyVPuHSPQ9zaCuUzw/p7zdFsObIiJ6i9dx8/mC9QRE+bXBsEP7vThrDmKIQ/az4YgmgO98DXUsqcjvbAAVQIDvL8Zxz66SR1TEqrK15GtWJlvTStJ+nWhcI+5wZHBP32/O2XJelrRSU= x-ms-exchange-antispam-srfa-diagnostics: SSOS; x-ms-office365-filtering-correlation-id: ae996589-e8ad-42e4-8a53-08d50bf483c2 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254152)(48565401081)(2017052603199)(201703131423075)(201703031133081)(201702281549075); SRVR:AM6PR0402MB3333; x-ms-traffictypediagnostic: AM6PR0402MB3333: x-exchange-antispam-report-test: UriScan:(20558992708506)(185117386973197)(162533806227266)(211171220733660)(228905959029699); x-microsoft-antispam-prvs: x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(8121501046)(5005006)(100000703101)(100105400095)(3002001)(10201501046)(93006095)(93001095)(6055026)(6041248)(20161123560025)(20161123558100)(20161123555025)(20161123564025)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:AM6PR0402MB3333; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:AM6PR0402MB3333; x-forefront-prvs: 04519BA941 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(6009001)(346002)(39860400002)(376002)(13464003)(199003)(69234005)(377454003)(189002)(76176999)(6916009)(2950100002)(2906002)(3660700001)(3280700002)(33656002)(81166006)(14454004)(50986999)(966005)(6506006)(478600001)(6436002)(3846002)(189998001)(8936002)(53936002)(81156014)(86362001)(6246003)(97736004)(102836003)(54356999)(5250100002)(66066001)(6116002)(316002)(8676002)(9686003)(53546010)(4326008)(7736002)(105586002)(25786009)(99286003)(2900100001)(6306002)(55016002)(305945005)(101416001)(74316002)(7696004)(229853002)(106356001)(68736007)(5660300001); DIR:OUT; SFP:1101; SCL:1; SRVR:AM6PR0402MB3333; H:AM6PR0402MB3334.eurprd04.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Oct 2017 13:25:15.2971 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR0402MB3333 Subject: Re: USB Enumeration 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: Thu, 05 Oct 2017 13:21:56 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Thanks Star.=20 I will open the ticket with needed information.=20 What looks to me when we are enabling slot again then memory for all endpoint is not allocated. Allocation is done for endpoint[0] say slot context. FYI, If I ignore this error then assert is reported in=20 /MdeModulePkg/Core/Dxe/Mem/Page.c(722) Regards Udit > -----Original Message----- > From: Zeng, Star [mailto:star.zeng@intel.com] > Sent: Thursday, October 05, 2017 6:16 PM > To: Udit Kumar ; edk2-devel-01 devel@lists.01.org> > Cc: Zeng, Star > Subject: RE: [edk2] USB Enumeration >=20 > We (I) did not see this appearance before, but the ASSERT should be unexp= ected. >=20 > Could you try to use error handling instead of ASSERT for this line of co= de and > see whether it works or not for you? >=20 > What are the models of the Host controller and USB device? > Do you have full debug log for that? > Did you meet the ASSERT before(for example, using the code base at the > beginning of this year) with the same Host controller and USB device? >=20 > Could you submit Bugzilla at https://bugzilla.tianocore.org/ with the inf= ormation > for the questions you have above? Then we can have follow up to check the > detail by the information provided (if we can produce it by ourselves, th= at will be > better). :) >=20 >=20 > Thanks, > Star > -----Original Message----- > From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of Ud= it > Kumar > Sent: Thursday, October 5, 2017 8:05 PM > To: edk2-devel-01 > Subject: [edk2] USB Enumeration >=20 > Dear Edk2 Expert, >=20 > With edk2 shell, I am doing simple copy with USB, Flow is below >=20 > Start- USB device is enumerated and given address 1. > 1. On Shell , cp a b > 2- After a while Host controller reports an error > 3- Layer above Host controller, reset the USB port > 4- and Slot is enabled again ( this time address 2 was given) > 5- Now FatIFileAccess calls FatCleanupVolume, which in turn calls > XhcBulkTransfer And assert is reported at > MdeModulePkg/Bus/Pci/XhciDxe/XhciSched.c(1800): TrsRing !=3D ((void *) 0) >=20 > Is this expected behavior to assert, or reporting an error will be fine i= n such > cases. >=20 > Thanks for help >=20 > Regards > Udit >=20 > _______________________________________________ > edk2-devel mailing list > edk2-devel@lists.01.org > https://lists.01.org/mailman/listinfo/edk2-devel