> Date: Tue, 23 Jun 2015 23:16:05 +0000 > From: "Anbazhagan, Baraneedharan" <[email protected]> > Subject: [edk2] XHCI question > To: "[email protected]" > <[email protected]>, "Tian, Feng" > <[email protected]> > Message-ID: > <[email protected] > as.hpqcorp.net> > > Content-Type: text/plain; charset="us-ascii" > > Whether XhcCheckUrbResult returns correct error status in case of failure? > XhcCheckUrbResult function header indicates it should report URB transfer > state - Urb->Finished (seems to align with EhciDxe) but the implementation > is trying to return EFI_STATUS and it doesn't get updated based on EvtTrb- > >Completecode. With a failing drive, XhcExecTransfer returns EFI_SUCCESS in > case of transaction error. > Looking at the source code for XhcCheckUrbResult, if you pass in a URB Pointer, the Urb->Result is updated with the completion code from the event. Look for the switch on EvtTrb->Completecode. In the case where Urb is passed in, CheckedUrb == Urb. EFI_STATUS that is returned indicates if the function actually checked any new events.
Regards, Eric ------------------------------------------------------------------------------ Monitor 25 network devices or servers for free with OpManager! OpManager is web-based network management software that monitors network devices and physical & virtual servers, alerts via email & sms for fault. Monitor 25 devices for free with no restriction. Download now http://ad.doubleclick.net/ddm/clk/292181274;119417398;o _______________________________________________ edk2-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/edk2-devel
