* USB Enumeration
@ 2017-10-05 12:04 Udit Kumar
2017-10-05 12:45 ` Zeng, Star
0 siblings, 1 reply; 4+ messages in thread
From: Udit Kumar @ 2017-10-05 12:04 UTC (permalink / raw)
To: edk2-devel-01
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 != ((void *) 0)
Is this expected behavior to assert, or reporting an error will be fine in such cases.
Thanks for help
Regards
Udit
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: USB Enumeration
2017-10-05 12:04 USB Enumeration Udit Kumar
@ 2017-10-05 12:45 ` Zeng, Star
2017-10-05 13:25 ` Udit Kumar
0 siblings, 1 reply; 4+ messages in thread
From: Zeng, Star @ 2017-10-05 12:45 UTC (permalink / raw)
To: Udit Kumar, edk2-devel-01; +Cc: Zeng, Star
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 <edk2-devel@lists.01.org>
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 != ((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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: USB Enumeration
2017-10-05 12:45 ` Zeng, Star
@ 2017-10-05 13:25 ` Udit Kumar
2017-10-06 5:05 ` Udit Kumar
0 siblings, 1 reply; 4+ messages in thread
From: Udit Kumar @ 2017-10-05 13:25 UTC (permalink / raw)
To: Zeng, Star; +Cc: edk2-devel-01
Thanks Star.
I will open the ticket with needed information.
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
/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 <udit.kumar@nxp.com>; edk2-devel-01 <edk2-
> devel@lists.01.org>
> Cc: Zeng, Star <star.zeng@intel.com>
> 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 <edk2-devel@lists.01.org>
> 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 != ((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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: USB Enumeration
2017-10-05 13:25 ` Udit Kumar
@ 2017-10-06 5:05 ` Udit Kumar
0 siblings, 0 replies; 4+ messages in thread
From: Udit Kumar @ 2017-10-06 5:05 UTC (permalink / raw)
To: Zeng, Star; +Cc: edk2-devel-01
Ticket
https://bugzilla.tianocore.org/show_bug.cgi?id=729 is created.
Thx
Udit
> -----Original Message-----
> From: Udit Kumar
> Sent: Thursday, October 05, 2017 6:55 PM
> To: 'Zeng, Star' <star.zeng@intel.com>
> Cc: edk2-devel-01 <edk2-devel@lists.01.org>
> Subject: RE: [edk2] USB Enumeration
>
> Thanks Star.
> I will open the ticket with needed information.
>
> 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
> /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 <udit.kumar@nxp.com>; edk2-devel-01 <edk2-
> > devel@lists.01.org>
> > Cc: Zeng, Star <star.zeng@intel.com>
> > 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 <edk2-devel@lists.01.org>
> > 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 != ((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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-10-06 5:01 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-05 12:04 USB Enumeration Udit Kumar
2017-10-05 12:45 ` Zeng, Star
2017-10-05 13:25 ` Udit Kumar
2017-10-06 5:05 ` Udit Kumar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox