From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=104.47.2.45; helo=eur01-db5-obe.outbound.protection.outlook.com; envelope-from=udit.kumar@nxp.com; receiver=edk2-devel@lists.01.org Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on0045.outbound.protection.outlook.com [104.47.2.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 1F95121EA15A5 for ; Thu, 5 Oct 2017 22:01:39 -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=9QGbtcxzw94oL6WKJs61cTur7+YvEwZTkTXe3NwJvik=; b=Ymd60hez50hSkPJNT2BjqRv+CQ0uQZFzqMSrLz7V0R2CuYU2ZFpUa3kp0rJMe8D8l2Ht34MkBxOOLPfv2jATipYprCdSw6y1A8UAj8rNbUJXBp4vIcF6PJFafJs1mP2S41T4bWLkkyfzySias3pXPYoRzxVuiquQZmnmW08tik8= Received: from AM6PR0402MB3334.eurprd04.prod.outlook.com (52.133.18.151) by AM6PR0402MB3334.eurprd04.prod.outlook.com (52.133.18.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.77.7; Fri, 6 Oct 2017 05:05:00 +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; Fri, 6 Oct 2017 05:05:00 +0000 From: Udit Kumar To: "Zeng, Star" CC: edk2-devel-01 Thread-Topic: [edk2] USB Enumeration Thread-Index: AdM9z7w52gGtS2phQTaTfzVs5IEMfwABl+HgAAFgrTAAIUBKcA== Date: Fri, 6 Oct 2017 05:05:00 +0000 Message-ID: References: <0C09AFA07DD0434D9E2A0C6AEB0483103B97E87C@shsmsx102.ccr.corp.intel.com> In-Reply-To: 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; AM6PR0402MB3334; 6:4XxSDGDuLZn7QeUwQvnZH0zUJ1NVh0iEBtPRbi44xlOB2EzcHz452klN9kxzmqXVg7MRLJkDQZDGa3WdrNmaCkduoNHsXBCJ60m8bPAIk2sdKAfeiyPQxsaB/ImtxxfZU2Qm5DsQROljcylVIXkwgAc9+hLDJ3YhX09224rT7jQ8qkLoBlJxpb35oROW7KsbL7yVLCAsItNpxMBEGQLaan5TeOIrK2qAgXXwIz9f4LTFlLpCRbp/fgjtanZd0Z2CQ0pjdVFO3T8GW9DlN+2A8cr6qINKGgc1xaFAYQe2nUckl002dGS/cew9i6r3tPFN1INv97+YGW0lkYABbzfgKg==; 5:nLIdj+RcpDp4F1MVxCle95hk+VbBVPxxqXPnqY/JMMqJ8y5/wJPCeJ+5SYn/+sZ4rwye7SRK2oQeKkPuJyMwSRu6z+l3+ttYeJyweKnPc7LMaDzBJ843GztlcdP9imKR+qi/EXAlsVT6xT1yzhdY0A==; 24:1bUK7C6OZJAySw83X2Niyw2jFx2/0Qor1ClAufuvjKqS0pnnkBdyRmc9c9Z6u/23JGBCg7sjfpYvRqMl6SWqdLmeFymQo8cEOlJUMm/QMb4=; 7:5v4xVuriDdpCiQXRIXs2UhaWP3lUghm+olsCC+RQzXR9vuyhuh1x9rLSatxfUI3malcMmSfivXhYfWoGaZbK63HtYnHaxfdyDHyvowzQwUnYqXwfw3Wqn02U8lsfq2G5tuWG4rr0twYLwQhBR81VBdeFPtziQlessGrhg+XrCq+DCqqupk3A4xTXOLgwKQvr3Oz3T6MVunfsrW9IMsQNAmMEMvIPER4b1IKtB2jxHnQ= x-ms-exchange-antispam-srfa-diagnostics: SSOS; x-ms-office365-filtering-correlation-id: dcb69739-e9ab-4cce-34f9-08d50c77cc07 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254152)(48565401081)(2017052603199)(201703131423075)(201703031133081)(201702281549075); SRVR:AM6PR0402MB3334; x-ms-traffictypediagnostic: AM6PR0402MB3334: 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)(3002001)(10201501046)(100000703101)(100105400095)(93006095)(93001095)(6055026)(6041248)(20161123558100)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(20161123564025)(20161123560025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:AM6PR0402MB3334; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:AM6PR0402MB3334; x-forefront-prvs: 0452022BE1 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(6009001)(346002)(39860400002)(376002)(13464003)(199003)(69234005)(189002)(377454003)(7696004)(53936002)(33656002)(4326008)(2906002)(5660300001)(66066001)(9686003)(86362001)(2900100001)(105586002)(966005)(305945005)(81156014)(189998001)(55016002)(7736002)(74316002)(478600001)(99286003)(8676002)(8936002)(229853002)(6506006)(25786009)(6436002)(5250100002)(2950100002)(81166006)(6306002)(316002)(50986999)(101416001)(14454004)(106356001)(6916009)(54356999)(102836003)(6116002)(3280700002)(3846002)(3660700001)(68736007)(6246003)(97736004)(53546010)(76176999); DIR:OUT; SFP:1101; SCL:1; SRVR:AM6PR0402MB3334; 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: 06 Oct 2017 05:05:00.5990 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR0402MB3334 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: Fri, 06 Oct 2017 05:01:40 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Ticket=20 https://bugzilla.tianocore.org/show_bug.cgi?id=3D729 is created.=20 Thx Udit > -----Original Message----- > From: Udit Kumar > Sent: Thursday, October 05, 2017 6:55 PM > To: 'Zeng, Star' > Cc: edk2-devel-01 > Subject: RE: [edk2] USB Enumeration >=20 > Thanks Star. > I will open the ticket with needed information. >=20 > What looks to me when we are enabling slot again then memory for all endp= oint > is not allocated. > Allocation is done for endpoint[0] say slot context. >=20 > FYI, If I ignore this error then assert is reported in > /MdeModulePkg/Core/Dxe/Mem/Page.c(722) >=20 > Regards > Udit >=20 > > -----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 > > > > We (I) did not see this appearance before, but the ASSERT should be > unexpected. > > > > Could you try to use error handling instead of ASSERT for this line of > > code and see whether it works or not for you? > > > > 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? > > > > Could you submit Bugzilla at https://bugzilla.tianocore.org/ with the > > information 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, that will be better). :) > > > > > > Thanks, > > Star > > -----Original Message----- > > From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of > > Udit Kumar > > Sent: Thursday, October 5, 2017 8:05 PM > > To: edk2-devel-01 > > Subject: [edk2] USB Enumeration > > > > Dear Edk2 Expert, > > > > With edk2 shell, I am doing simple copy with USB, Flow is below > > > > 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) > > > > Is this expected behavior to assert, or reporting an error will be > > fine in such cases. > > > > Thanks for help > > > > Regards > > Udit > > > > _______________________________________________ > > edk2-devel mailing list > > edk2-devel@lists.01.org > > https://lists.01.org/mailman/listinfo/edk2-devel