Re: [U-Boot] Compile failure encountered on latest (2017-07-20) git://git.denx.de/u-boot-usb.git branch master for target ls1021atwr_nor_defconfig

Hi Ran,
On Tue, Jul 25, 2017 at 7:01 PM, Ran Wang ran.wang_1@nxp.com wrote:
-----Original Message----- From: Bin Meng [mailto:bmeng.cn@gmail.com] Sent: Friday, July 21, 2017 8:29 PM To: Ran Wang ran.wang_1@nxp.com Cc: Marek Vasut marex@denx.de; Patrice Chotard patrice.chotard@st.com; Simon Glass sjg@chromium.org; Masahiro Yamada yamada.masahiro@socionext.com; Jiafei Pan jiafei.pan@nxp.com; u- boot@lists.denx.de Subject: Re: Compile failure encountered on latest (2017-07-20) git://git.denx.de/u-boot-usb.git branch master for target ls1021atwr_nor_defconfig
Hi Ran,
Hi Bin.
On Thu, Jul 20, 2017 at 5:47 PM, Ran Wang ran.wang_1@nxp.com wrote:
Hi All, Actually I just plan to try feature of support SS hub which just enabled this
yesterday on LS1021ATWR (I know need to enable DM_USB for 1021 first).
Should the DM_USB enablement be this patch done by Alison? https://patchwork.ozlabs.org/patch/785387/
Per your knowledge, if I revert the patches I pasted in last mail, the SS hub
support feature will be impacted or not?
Thanks.
Note the SS hub support only exists in DM USB. If you revert the dwc3-xhci patchset which converts dwc3 to DM USB, you will not get the SS hub support.
Thanks for your information, I will re-check this impact with my board. Actually I have encountered enumeration random fail issue with an USB 3.0 thumb drive (Kingston DataTraveler 3.0) after SS hub Please see attached snapshot for details. Fail rate is about 9/30. Not sure it's relevant to SS hub patch or not yet.
Can you enable the -DDEBUG and send me the log? From the last attachment, the enumeration process already failed when getting device descriptor. Any subsequent op leads to the final BUG/reset.
Regards, Bin

Hi Bin
-----Original Message----- From: Bin Meng [mailto:bmeng.cn@gmail.com] Sent: Tuesday, July 25, 2017 8:22 PM To: Ran Wang ran.wang_1@nxp.com Cc: Marek Vasut marex@denx.de; Patrice Chotard patrice.chotard@st.com; Simon Glass sjg@chromium.org; Masahiro Yamada yamada.masahiro@socionext.com; Jiafei Pan jiafei.pan@nxp.com; u- boot@lists.denx.de; Xiaobo Xie xiaobo.xie@nxp.com Subject: Re: Compile failure encountered on latest (2017-07-20) git://git.denx.de/u-boot-usb.git branch master for target ls1021atwr_nor_defconfig
Hi Ran,
On Tue, Jul 25, 2017 at 7:01 PM, Ran Wang ran.wang_1@nxp.com wrote:
-----Original Message----- From: Bin Meng [mailto:bmeng.cn@gmail.com] Sent: Friday, July 21, 2017 8:29 PM To: Ran Wang ran.wang_1@nxp.com Cc: Marek Vasut marex@denx.de; Patrice Chotard patrice.chotard@st.com; Simon Glass sjg@chromium.org; Masahiro Yamada yamada.masahiro@socionext.com; Jiafei Pan jiafei.pan@nxp.com; u- boot@lists.denx.de Subject: Re: Compile failure encountered on latest (2017-07-20) git://git.denx.de/u-boot-usb.git branch master for target ls1021atwr_nor_defconfig
Hi Ran,
Hi Bin.
On Thu, Jul 20, 2017 at 5:47 PM, Ran Wang ran.wang_1@nxp.com wrote:
Hi All, Actually I just plan to try feature of support SS hub which just enabled this
yesterday on LS1021ATWR (I know need to enable DM_USB for 1021 first).
Should the DM_USB enablement be this patch done by Alison? https://patchwork.ozlabs.org/patch/785387/
Per your knowledge, if I revert the patches I pasted in last
mail, the SS hub
support feature will be impacted or not?
Thanks.
Note the SS hub support only exists in DM USB. If you revert the dwc3-xhci patchset which converts dwc3 to DM USB, you will not get the SS
hub support.
Thanks for your information, I will re-check this impact with my board. Actually I have encountered enumeration random fail issue with an USB 3.0 thumb drive (Kingston DataTraveler 3.0) after SS hub Please see attached
snapshot for details. Fail rate is about 9/30. Not sure it's relevant to SS hub patch or not yet.
Can you enable the -DDEBUG and send me the log? From the last attachment, the enumeration process already failed when getting device descriptor. Any subsequent op leads to the final BUG/reset.
I don't know where to add -DDEBUG in U-Boot Makefile, could you show me?
Anyway I've added DEBUG in file include/common.h and got some verbose log for you (seems not much in error point), pls see attached. Any further suggestion are welcome.
Regards, Bin
BR Ran

Hi Ran,
On Wed, Jul 26, 2017 at 11:30 AM, Ran Wang ran.wang_1@nxp.com wrote:
Hi Bin
-----Original Message----- From: Bin Meng [mailto:bmeng.cn@gmail.com] Sent: Tuesday, July 25, 2017 8:22 PM To: Ran Wang ran.wang_1@nxp.com Cc: Marek Vasut marex@denx.de; Patrice Chotard patrice.chotard@st.com; Simon Glass sjg@chromium.org; Masahiro Yamada yamada.masahiro@socionext.com; Jiafei Pan jiafei.pan@nxp.com; u- boot@lists.denx.de; Xiaobo Xie xiaobo.xie@nxp.com Subject: Re: Compile failure encountered on latest (2017-07-20) git://git.denx.de/u-boot-usb.git branch master for target ls1021atwr_nor_defconfig
Hi Ran,
On Tue, Jul 25, 2017 at 7:01 PM, Ran Wang ran.wang_1@nxp.com wrote:
-----Original Message----- From: Bin Meng [mailto:bmeng.cn@gmail.com] Sent: Friday, July 21, 2017 8:29 PM To: Ran Wang ran.wang_1@nxp.com Cc: Marek Vasut marex@denx.de; Patrice Chotard patrice.chotard@st.com; Simon Glass sjg@chromium.org; Masahiro Yamada yamada.masahiro@socionext.com; Jiafei Pan jiafei.pan@nxp.com; u- boot@lists.denx.de Subject: Re: Compile failure encountered on latest (2017-07-20) git://git.denx.de/u-boot-usb.git branch master for target ls1021atwr_nor_defconfig
Hi Ran,
Hi Bin.
On Thu, Jul 20, 2017 at 5:47 PM, Ran Wang ran.wang_1@nxp.com wrote:
Hi All, Actually I just plan to try feature of support SS hub which just enabled this
yesterday on LS1021ATWR (I know need to enable DM_USB for 1021 first).
Should the DM_USB enablement be this patch done by Alison? https://patchwork.ozlabs.org/patch/785387/
Per your knowledge, if I revert the patches I pasted in last
mail, the SS hub
support feature will be impacted or not?
Thanks.
Note the SS hub support only exists in DM USB. If you revert the dwc3-xhci patchset which converts dwc3 to DM USB, you will not get the SS
hub support.
Thanks for your information, I will re-check this impact with my board. Actually I have encountered enumeration random fail issue with an USB 3.0 thumb drive (Kingston DataTraveler 3.0) after SS hub Please see attached
snapshot for details. Fail rate is about 9/30. Not sure it's relevant to SS hub patch or not yet.
Can you enable the -DDEBUG and send me the log? From the last attachment, the enumeration process already failed when getting device descriptor. Any subsequent op leads to the final BUG/reset.
I don't know where to add -DDEBUG in U-Boot Makefile, could you show me?
Anyway I've added DEBUG in file include/common.h and got some verbose log for you (seems not much in error point), pls see attached. Any further suggestion are welcome.
Thanks for the log. Can you try to do the same testing on u-boot-x86/xhci-wip branch to see if makes any difference? If no, please send the DEBUG log as well.
Regards, Bin

Hi Bin
-----Original Message----- From: Bin Meng [mailto:bmeng.cn@gmail.com] Sent: Wednesday, July 26, 2017 12:41 PM To: Ran Wang ran.wang_1@nxp.com Cc: Marek Vasut marex@denx.de; Patrice Chotard patrice.chotard@st.com; Simon Glass sjg@chromium.org; Masahiro Yamada yamada.masahiro@socionext.com; Jiafei Pan jiafei.pan@nxp.com; u- boot@lists.denx.de; Xiaobo Xie xiaobo.xie@nxp.com Subject: Re: Compile failure encountered on latest (2017-07-20) git://git.denx.de/u-boot-usb.git branch master for target ls1021atwr_nor_defconfig
Hi Ran,
On Wed, Jul 26, 2017 at 11:30 AM, Ran Wang ran.wang_1@nxp.com wrote:
Hi Bin
-----Original Message----- From: Bin Meng [mailto:bmeng.cn@gmail.com] Sent: Tuesday, July 25, 2017 8:22 PM To: Ran Wang ran.wang_1@nxp.com Cc: Marek Vasut marex@denx.de; Patrice Chotard patrice.chotard@st.com; Simon Glass sjg@chromium.org; Masahiro Yamada yamada.masahiro@socionext.com; Jiafei Pan jiafei.pan@nxp.com; u- boot@lists.denx.de; Xiaobo Xie xiaobo.xie@nxp.com Subject: Re: Compile failure encountered on latest (2017-07-20) git://git.denx.de/u-boot-usb.git branch master for target ls1021atwr_nor_defconfig
Hi Ran,
On Tue, Jul 25, 2017 at 7:01 PM, Ran Wang ran.wang_1@nxp.com wrote:
-----Original Message----- From: Bin Meng [mailto:bmeng.cn@gmail.com] Sent: Friday, July 21, 2017 8:29 PM To: Ran Wang ran.wang_1@nxp.com Cc: Marek Vasut marex@denx.de; Patrice Chotard patrice.chotard@st.com; Simon Glass sjg@chromium.org; Masahiro Yamada yamada.masahiro@socionext.com; Jiafei Pan jiafei.pan@nxp.com; u- boot@lists.denx.de Subject: Re: Compile failure encountered on latest (2017-07-20) git://git.denx.de/u-boot-usb.git branch master for target ls1021atwr_nor_defconfig
Hi Ran,
Hi Bin.
On Thu, Jul 20, 2017 at 5:47 PM, Ran Wang ran.wang_1@nxp.com
wrote:
Hi All, Actually I just plan to try feature of support SS hub which just enabled this
yesterday on LS1021ATWR (I know need to enable DM_USB for 1021 first).
Should the DM_USB enablement be this patch done by Alison? https://patchwork.ozlabs.org/patch/785387/
Per your knowledge, if I revert the patches I pasted in last
mail, the SS hub
support feature will be impacted or not?
Thanks.
Note the SS hub support only exists in DM USB. If you revert the dwc3-xhci patchset which converts dwc3 to DM USB, you will not get the SS
hub support.
Thanks for your information, I will re-check this impact with my board. Actually I have encountered enumeration random fail issue with an USB 3.0 thumb drive (Kingston DataTraveler 3.0) after SS hub Please see attached
snapshot for details. Fail rate is about 9/30. Not sure it's relevant to SS hub patch or not yet.
Can you enable the -DDEBUG and send me the log? From the last attachment, the enumeration process already failed when getting device descriptor. Any subsequent op leads to the final BUG/reset.
I don't know where to add -DDEBUG in U-Boot Makefile, could you show me?
Anyway I've added DEBUG in file include/common.h and got some verbose log for you (seems not much in error point), pls see attached. Any further suggestion are welcome.
Thanks for the log. Can you try to do the same testing on u-boot-x86/xhci-wip branch to see if makes any difference? If no, please send the DEBUG log as well.
Seems failure changed a little bit, and fail rate rise to ~100%.
Regards, Bin
BR Ran

Hi Ran,
On Wed, Jul 26, 2017 at 2:37 PM, Ran Wang ran.wang_1@nxp.com wrote:
Hi Bin
-----Original Message----- From: Bin Meng [mailto:bmeng.cn@gmail.com] Sent: Wednesday, July 26, 2017 12:41 PM To: Ran Wang ran.wang_1@nxp.com Cc: Marek Vasut marex@denx.de; Patrice Chotard patrice.chotard@st.com; Simon Glass sjg@chromium.org; Masahiro Yamada yamada.masahiro@socionext.com; Jiafei Pan jiafei.pan@nxp.com; u- boot@lists.denx.de; Xiaobo Xie xiaobo.xie@nxp.com Subject: Re: Compile failure encountered on latest (2017-07-20) git://git.denx.de/u-boot-usb.git branch master for target ls1021atwr_nor_defconfig
Hi Ran,
On Wed, Jul 26, 2017 at 11:30 AM, Ran Wang ran.wang_1@nxp.com wrote:
Hi Bin
-----Original Message----- From: Bin Meng [mailto:bmeng.cn@gmail.com] Sent: Tuesday, July 25, 2017 8:22 PM To: Ran Wang ran.wang_1@nxp.com Cc: Marek Vasut marex@denx.de; Patrice Chotard patrice.chotard@st.com; Simon Glass sjg@chromium.org; Masahiro Yamada yamada.masahiro@socionext.com; Jiafei Pan jiafei.pan@nxp.com; u- boot@lists.denx.de; Xiaobo Xie xiaobo.xie@nxp.com Subject: Re: Compile failure encountered on latest (2017-07-20) git://git.denx.de/u-boot-usb.git branch master for target ls1021atwr_nor_defconfig
Hi Ran,
On Tue, Jul 25, 2017 at 7:01 PM, Ran Wang ran.wang_1@nxp.com wrote:
-----Original Message----- From: Bin Meng [mailto:bmeng.cn@gmail.com] Sent: Friday, July 21, 2017 8:29 PM To: Ran Wang ran.wang_1@nxp.com Cc: Marek Vasut marex@denx.de; Patrice Chotard patrice.chotard@st.com; Simon Glass sjg@chromium.org; Masahiro Yamada yamada.masahiro@socionext.com; Jiafei Pan jiafei.pan@nxp.com; u- boot@lists.denx.de Subject: Re: Compile failure encountered on latest (2017-07-20) git://git.denx.de/u-boot-usb.git branch master for target ls1021atwr_nor_defconfig
Hi Ran,
Hi Bin.
On Thu, Jul 20, 2017 at 5:47 PM, Ran Wang ran.wang_1@nxp.com
wrote:
> Hi All, > Actually I just plan to try feature of support SS hub which > just enabled this yesterday on LS1021ATWR (I know need to enable DM_USB for 1021 first).
Should the DM_USB enablement be this patch done by Alison? https://patchwork.ozlabs.org/patch/785387/
> Per your knowledge, if I revert the patches I pasted in last > mail, the SS hub support feature will be impacted or not? > Thanks.
Note the SS hub support only exists in DM USB. If you revert the dwc3-xhci patchset which converts dwc3 to DM USB, you will not get the SS
hub support.
Thanks for your information, I will re-check this impact with my board. Actually I have encountered enumeration random fail issue with an USB 3.0 thumb drive (Kingston DataTraveler 3.0) after SS hub Please see attached
snapshot for details. Fail rate is about 9/30. Not sure it's relevant to SS hub patch or not yet.
Can you enable the -DDEBUG and send me the log? From the last attachment, the enumeration process already failed when getting device descriptor. Any subsequent op leads to the final BUG/reset.
I don't know where to add -DDEBUG in U-Boot Makefile, could you show me?
Anyway I've added DEBUG in file include/common.h and got some verbose log for you (seems not much in error point), pls see attached. Any further suggestion are welcome.
Thanks for the log. Can you try to do the same testing on u-boot-x86/xhci-wip branch to see if makes any difference? If no, please send the DEBUG log as well.
Seems failure changed a little bit, and fail rate rise to ~100%.
From your log, this time the failure is different. Somehow the USB
flash disk reports its speed is full speed but it should be super speed, so xHCI cannot address it. I believe the hub handling logic is still buggy in the U-Boot. Which hub are you using for testing?
Regards, Bin

Hi Bin
-----Original Message----- From: Bin Meng [mailto:bmeng.cn@gmail.com] Sent: Wednesday, July 26, 2017 3:34 PM To: Ran Wang ran.wang_1@nxp.com Cc: Marek Vasut marex@denx.de; Patrice Chotard patrice.chotard@st.com; Simon Glass sjg@chromium.org; Masahiro Yamada yamada.masahiro@socionext.com; Jiafei Pan jiafei.pan@nxp.com; u- boot@lists.denx.de; Xiaobo Xie xiaobo.xie@nxp.com Subject: Re: Compile failure encountered on latest (2017-07-20) git://git.denx.de/u-boot-usb.git branch master for target ls1021atwr_nor_defconfig
Hi Ran,
On Wed, Jul 26, 2017 at 2:37 PM, Ran Wang ran.wang_1@nxp.com wrote:
Hi Bin
-----Original Message----- From: Bin Meng [mailto:bmeng.cn@gmail.com] Sent: Wednesday, July 26, 2017 12:41 PM To: Ran Wang ran.wang_1@nxp.com Cc: Marek Vasut marex@denx.de; Patrice Chotard patrice.chotard@st.com; Simon Glass sjg@chromium.org; Masahiro Yamada yamada.masahiro@socionext.com; Jiafei Pan jiafei.pan@nxp.com; u- boot@lists.denx.de; Xiaobo Xie xiaobo.xie@nxp.com Subject: Re: Compile failure encountered on latest (2017-07-20) git://git.denx.de/u-boot-usb.git branch master for target ls1021atwr_nor_defconfig
Hi Ran,
On Wed, Jul 26, 2017 at 11:30 AM, Ran Wang ran.wang_1@nxp.com
wrote:
Hi Bin
-----Original Message----- From: Bin Meng [mailto:bmeng.cn@gmail.com] Sent: Tuesday, July 25, 2017 8:22 PM To: Ran Wang ran.wang_1@nxp.com Cc: Marek Vasut marex@denx.de; Patrice Chotard patrice.chotard@st.com; Simon Glass sjg@chromium.org; Masahiro Yamada yamada.masahiro@socionext.com; Jiafei Pan jiafei.pan@nxp.com; u- boot@lists.denx.de; Xiaobo Xie xiaobo.xie@nxp.com Subject: Re: Compile failure encountered on latest (2017-07-20) git://git.denx.de/u-boot-usb.git branch master for target ls1021atwr_nor_defconfig
Hi Ran,
On Tue, Jul 25, 2017 at 7:01 PM, Ran Wang ran.wang_1@nxp.com
wrote:
> -----Original Message----- > From: Bin Meng [mailto:bmeng.cn@gmail.com] > Sent: Friday, July 21, 2017 8:29 PM > To: Ran Wang ran.wang_1@nxp.com > Cc: Marek Vasut marex@denx.de; Patrice Chotard > patrice.chotard@st.com; Simon Glass sjg@chromium.org; > Masahiro Yamada yamada.masahiro@socionext.com; Jiafei Pan > jiafei.pan@nxp.com; u- boot@lists.denx.de > Subject: Re: Compile failure encountered on latest (2017-07-20) > git://git.denx.de/u-boot-usb.git branch master for target > ls1021atwr_nor_defconfig > > Hi Ran, Hi Bin. > > On Thu, Jul 20, 2017 at 5:47 PM, Ran Wang ran.wang_1@nxp.com
wrote:
> > Hi All, > > Actually I just plan to try feature of support SS hub > > which just enabled this > yesterday on LS1021ATWR (I know need to enable DM_USB for 1021
first).
> > Should the DM_USB enablement be this patch done by Alison? > https://patchwork.ozlabs.org/patch/785387/ > > > Per your knowledge, if I revert the patches I pasted in > > last mail, the SS hub > support feature will be impacted or not? > > Thanks. > > Note the SS hub support only exists in DM USB. If you revert > the dwc3-xhci patchset which converts dwc3 to DM USB, you will > not get the SS
hub support.
Thanks for your information, I will re-check this impact with my board. Actually I have encountered enumeration random fail issue with an USB 3.0 thumb drive (Kingston DataTraveler 3.0) after SS hub Please see attached
snapshot for details. Fail rate is about 9/30. Not sure it's relevant to SS hub patch or not yet.
>
Can you enable the -DDEBUG and send me the log? From the last attachment, the enumeration process already failed when getting device descriptor. Any subsequent op leads to the final BUG/reset.
I don't know where to add -DDEBUG in U-Boot Makefile, could you show
me?
Anyway I've added DEBUG in file include/common.h and got some verbose log for you (seems not much in error point), pls see attached. Any further suggestion are welcome.
Thanks for the log. Can you try to do the same testing on u-boot-x86/xhci-wip branch to see if makes any difference? If no, please
send the DEBUG log as well.
Seems failure changed a little bit, and fail rate rise to ~100%.
From your log, this time the failure is different. Somehow the USB flash disk reports its speed is full speed but it should be super speed, so xHCI cannot address it. I believe the hub handling logic is still buggy in the U-Boot. Which hub are you using for testing?
We are using an on-board USB 3.0 hub chip which contain a SS hub (USB5534B) and a HS hub (USB2134B). And I suspect there are difference on code base between u-boot-usb and u-boot-x86 specific branch which might lead to the result divers, I have tried them many times to confirm the difference failure is not a random failure, for your reference.
USB device tree: 1 Hub (5 Gb/s, 0mA) | U-Boot XHCI Host Controller | +-2 Hub (480 Mb/s, 0mA) | SMSC USB2134B | +-3 Hub (5 Gb/s, 0mA) | SMSC USB5534B | +-4 Mass Storage (5 Gb/s, 126mA) Kingston DataTraveler 3.0 08606E69C773BF1099650055 BR Ran

Hi Ran,
On Wed, Jul 26, 2017 at 3:46 PM, Ran Wang ran.wang_1@nxp.com wrote:
Hi Bin
-----Original Message----- From: Bin Meng [mailto:bmeng.cn@gmail.com] Sent: Wednesday, July 26, 2017 3:34 PM To: Ran Wang ran.wang_1@nxp.com Cc: Marek Vasut marex@denx.de; Patrice Chotard patrice.chotard@st.com; Simon Glass sjg@chromium.org; Masahiro Yamada yamada.masahiro@socionext.com; Jiafei Pan jiafei.pan@nxp.com; u- boot@lists.denx.de; Xiaobo Xie xiaobo.xie@nxp.com Subject: Re: Compile failure encountered on latest (2017-07-20) git://git.denx.de/u-boot-usb.git branch master for target ls1021atwr_nor_defconfig
Hi Ran,
On Wed, Jul 26, 2017 at 2:37 PM, Ran Wang ran.wang_1@nxp.com wrote:
Hi Bin
-----Original Message----- From: Bin Meng [mailto:bmeng.cn@gmail.com] Sent: Wednesday, July 26, 2017 12:41 PM To: Ran Wang ran.wang_1@nxp.com Cc: Marek Vasut marex@denx.de; Patrice Chotard patrice.chotard@st.com; Simon Glass sjg@chromium.org; Masahiro Yamada yamada.masahiro@socionext.com; Jiafei Pan jiafei.pan@nxp.com; u- boot@lists.denx.de; Xiaobo Xie xiaobo.xie@nxp.com Subject: Re: Compile failure encountered on latest (2017-07-20) git://git.denx.de/u-boot-usb.git branch master for target ls1021atwr_nor_defconfig
Hi Ran,
On Wed, Jul 26, 2017 at 11:30 AM, Ran Wang ran.wang_1@nxp.com
wrote:
Hi Bin
-----Original Message----- From: Bin Meng [mailto:bmeng.cn@gmail.com] Sent: Tuesday, July 25, 2017 8:22 PM To: Ran Wang ran.wang_1@nxp.com Cc: Marek Vasut marex@denx.de; Patrice Chotard patrice.chotard@st.com; Simon Glass sjg@chromium.org; Masahiro Yamada yamada.masahiro@socionext.com; Jiafei Pan jiafei.pan@nxp.com; u- boot@lists.denx.de; Xiaobo Xie xiaobo.xie@nxp.com Subject: Re: Compile failure encountered on latest (2017-07-20) git://git.denx.de/u-boot-usb.git branch master for target ls1021atwr_nor_defconfig
Hi Ran,
On Tue, Jul 25, 2017 at 7:01 PM, Ran Wang ran.wang_1@nxp.com
wrote:
>> -----Original Message----- >> From: Bin Meng [mailto:bmeng.cn@gmail.com] >> Sent: Friday, July 21, 2017 8:29 PM >> To: Ran Wang ran.wang_1@nxp.com >> Cc: Marek Vasut marex@denx.de; Patrice Chotard >> patrice.chotard@st.com; Simon Glass sjg@chromium.org; >> Masahiro Yamada yamada.masahiro@socionext.com; Jiafei Pan >> jiafei.pan@nxp.com; u- boot@lists.denx.de >> Subject: Re: Compile failure encountered on latest (2017-07-20) >> git://git.denx.de/u-boot-usb.git branch master for target >> ls1021atwr_nor_defconfig >> >> Hi Ran, > Hi Bin. >> >> On Thu, Jul 20, 2017 at 5:47 PM, Ran Wang ran.wang_1@nxp.com
wrote:
>> > Hi All, >> > Actually I just plan to try feature of support SS hub >> > which just enabled this >> yesterday on LS1021ATWR (I know need to enable DM_USB for 1021
first).
>> >> Should the DM_USB enablement be this patch done by Alison? >> https://patchwork.ozlabs.org/patch/785387/ >> >> > Per your knowledge, if I revert the patches I pasted in >> > last mail, the SS hub >> support feature will be impacted or not? >> > Thanks. >> >> Note the SS hub support only exists in DM USB. If you revert >> the dwc3-xhci patchset which converts dwc3 to DM USB, you will >> not get the SS hub support. > Thanks for your information, I will re-check this impact with my board. > Actually I have encountered enumeration random fail issue with > an USB > 3.0 thumb drive (Kingston DataTraveler 3.0) after SS hub Please > see attached snapshot for details. Fail rate is about 9/30. Not sure it's relevant to SS hub patch or not yet. >>
Can you enable the -DDEBUG and send me the log? From the last attachment, the enumeration process already failed when getting device descriptor. Any subsequent op leads to the final BUG/reset.
I don't know where to add -DDEBUG in U-Boot Makefile, could you show
me?
Anyway I've added DEBUG in file include/common.h and got some verbose log for you (seems not much in error point), pls see attached. Any further suggestion are welcome.
Thanks for the log. Can you try to do the same testing on u-boot-x86/xhci-wip branch to see if makes any difference? If no, please
send the DEBUG log as well.
Seems failure changed a little bit, and fail rate rise to ~100%.
From your log, this time the failure is different. Somehow the USB flash disk reports its speed is full speed but it should be super speed, so xHCI cannot address it. I believe the hub handling logic is still buggy in the U-Boot. Which hub are you using for testing?
We are using an on-board USB 3.0 hub chip which contain a SS hub (USB5534B) and a HS hub (USB2134B). And I suspect there are difference on code base between u-boot-usb and u-boot-x86 specific branch which might lead to the result divers, I have tried them many times to confirm the difference failure is not a random failure, for your reference.
USB device tree: 1 Hub (5 Gb/s, 0mA) | U-Boot XHCI Host Controller | +-2 Hub (480 Mb/s, 0mA) | SMSC USB2134B | +-3 Hub (5 Gb/s, 0mA) | SMSC USB5534B | +-4 Mass Storage (5 Gb/s, 126mA) Kingston DataTraveler 3.0 08606E69C773BF1099650055
Which board are you using for testing?
Regards, Bin

Hi Bin
-----Original Message----- From: Bin Meng [mailto:bmeng.cn@gmail.com] Sent: Wednesday, July 26, 2017 3:56 PM To: Ran Wang ran.wang_1@nxp.com Cc: Marek Vasut marex@denx.de; Patrice Chotard patrice.chotard@st.com; Simon Glass sjg@chromium.org; Masahiro Yamada yamada.masahiro@socionext.com; Jiafei Pan jiafei.pan@nxp.com; u- boot@lists.denx.de; Xiaobo Xie xiaobo.xie@nxp.com Subject: Re: Compile failure encountered on latest (2017-07-20) git://git.denx.de/u-boot-usb.git branch master for target ls1021atwr_nor_defconfig
Hi Ran,
On Wed, Jul 26, 2017 at 3:46 PM, Ran Wang ran.wang_1@nxp.com wrote:
Hi Bin
-----Original Message----- From: Bin Meng [mailto:bmeng.cn@gmail.com] Sent: Wednesday, July 26, 2017 3:34 PM To: Ran Wang ran.wang_1@nxp.com Cc: Marek Vasut marex@denx.de; Patrice Chotard patrice.chotard@st.com; Simon Glass sjg@chromium.org; Masahiro Yamada yamada.masahiro@socionext.com; Jiafei Pan jiafei.pan@nxp.com; u- boot@lists.denx.de; Xiaobo Xie xiaobo.xie@nxp.com Subject: Re: Compile failure encountered on latest (2017-07-20) git://git.denx.de/u-boot-usb.git branch master for target ls1021atwr_nor_defconfig
Hi Ran,
On Wed, Jul 26, 2017 at 2:37 PM, Ran Wang ran.wang_1@nxp.com wrote:
Hi Bin
-----Original Message----- From: Bin Meng [mailto:bmeng.cn@gmail.com] Sent: Wednesday, July 26, 2017 12:41 PM To: Ran Wang ran.wang_1@nxp.com Cc: Marek Vasut marex@denx.de; Patrice Chotard patrice.chotard@st.com; Simon Glass sjg@chromium.org; Masahiro Yamada yamada.masahiro@socionext.com; Jiafei Pan jiafei.pan@nxp.com; u- boot@lists.denx.de; Xiaobo Xie xiaobo.xie@nxp.com Subject: Re: Compile failure encountered on latest (2017-07-20) git://git.denx.de/u-boot-usb.git branch master for target ls1021atwr_nor_defconfig
Hi Ran,
On Wed, Jul 26, 2017 at 11:30 AM, Ran Wang ran.wang_1@nxp.com
wrote:
Hi Bin > -----Original Message----- > From: Bin Meng [mailto:bmeng.cn@gmail.com] > Sent: Tuesday, July 25, 2017 8:22 PM > To: Ran Wang ran.wang_1@nxp.com > Cc: Marek Vasut marex@denx.de; Patrice Chotard > patrice.chotard@st.com; Simon Glass sjg@chromium.org; > Masahiro Yamada yamada.masahiro@socionext.com; Jiafei Pan > jiafei.pan@nxp.com; u- boot@lists.denx.de; Xiaobo Xie > xiaobo.xie@nxp.com > Subject: Re: Compile failure encountered on latest (2017-07-20) > git://git.denx.de/u-boot-usb.git branch master for target > ls1021atwr_nor_defconfig > > Hi Ran, > > On Tue, Jul 25, 2017 at 7:01 PM, Ran Wang ran.wang_1@nxp.com
wrote:
> >> -----Original Message----- > >> From: Bin Meng [mailto:bmeng.cn@gmail.com] > >> Sent: Friday, July 21, 2017 8:29 PM > >> To: Ran Wang ran.wang_1@nxp.com > >> Cc: Marek Vasut marex@denx.de; Patrice Chotard > >> patrice.chotard@st.com; Simon Glass sjg@chromium.org; > >> Masahiro Yamada yamada.masahiro@socionext.com; Jiafei Pan > >> jiafei.pan@nxp.com; u- boot@lists.denx.de > >> Subject: Re: Compile failure encountered on latest > >> (2017-07-20) git://git.denx.de/u-boot-usb.git branch master > >> for target ls1021atwr_nor_defconfig > >> > >> Hi Ran, > > Hi Bin. > >> > >> On Thu, Jul 20, 2017 at 5:47 PM, Ran Wang > >> ran.wang_1@nxp.com
wrote:
> >> > Hi All, > >> > Actually I just plan to try feature of support SS hub > >> > which just enabled this > >> yesterday on LS1021ATWR (I know need to enable DM_USB for > >> 1021
first).
> >> > >> Should the DM_USB enablement be this patch done by Alison? > >> https://patchwork.ozlabs.org/patch/785387/ > >> > >> > Per your knowledge, if I revert the patches I pasted > >> > in last mail, the SS hub > >> support feature will be impacted or not? > >> > Thanks. > >> > >> Note the SS hub support only exists in DM USB. If you revert > >> the dwc3-xhci patchset which converts dwc3 to DM USB, you > >> will not get the SS > hub support. > > Thanks for your information, I will re-check this impact with my board. > > Actually I have encountered enumeration random fail issue > > with an USB > > 3.0 thumb drive (Kingston DataTraveler 3.0) after SS hub > > Please see attached > snapshot for details. Fail rate is about 9/30. Not sure it's > relevant to SS hub patch or not yet. > >> > > Can you enable the -DDEBUG and send me the log? From the last > attachment, the enumeration process already failed when getting > device descriptor. Any subsequent op leads to the final BUG/reset.
I don't know where to add -DDEBUG in U-Boot Makefile, could you show
me?
Anyway I've added DEBUG in file include/common.h and got some verbose log for you (seems not much in error point), pls see attached. Any further suggestion are welcome.
Thanks for the log. Can you try to do the same testing on u-boot-x86/xhci-wip branch to see if makes any difference? If no, please
send the DEBUG log as well.
Seems failure changed a little bit, and fail rate rise to ~100%.
From your log, this time the failure is different. Somehow the USB flash disk reports its speed is full speed but it should be super speed, so xHCI cannot address it. I believe the hub handling logic is still buggy in the U-Boot. Which hub are you using for testing?
We are using an on-board USB 3.0 hub chip which contain a SS hub (USB5534B) and a HS hub (USB2134B). And I suspect there are difference on code base between u-boot-usb and u-boot-x86 specific branch which might lead to the result divers, I have tried them many times to confirm the difference failure is not a random failure, for your reference.
USB device tree: 1 Hub (5 Gb/s, 0mA) | U-Boot XHCI Host Controller | +-2 Hub (480 Mb/s, 0mA) | SMSC USB2134B | +-3 Hub (5 Gb/s, 0mA) | SMSC USB5534B | +-4 Mass Storage (5 Gb/s, 126mA) Kingston DataTraveler 3.0 08606E69C773BF1099650055
Which board are you using for testing?
ls1021atwr
BR Ran

Hi Ran,
On Wed, Jul 26, 2017 at 3:58 PM, Ran Wang ran.wang_1@nxp.com wrote:
Hi Bin
-----Original Message----- From: Bin Meng [mailto:bmeng.cn@gmail.com] Sent: Wednesday, July 26, 2017 3:56 PM To: Ran Wang ran.wang_1@nxp.com Cc: Marek Vasut marex@denx.de; Patrice Chotard patrice.chotard@st.com; Simon Glass sjg@chromium.org; Masahiro Yamada yamada.masahiro@socionext.com; Jiafei Pan jiafei.pan@nxp.com; u- boot@lists.denx.de; Xiaobo Xie xiaobo.xie@nxp.com Subject: Re: Compile failure encountered on latest (2017-07-20) git://git.denx.de/u-boot-usb.git branch master for target ls1021atwr_nor_defconfig
Hi Ran,
On Wed, Jul 26, 2017 at 3:46 PM, Ran Wang ran.wang_1@nxp.com wrote:
Hi Bin
-----Original Message----- From: Bin Meng [mailto:bmeng.cn@gmail.com] Sent: Wednesday, July 26, 2017 3:34 PM To: Ran Wang ran.wang_1@nxp.com Cc: Marek Vasut marex@denx.de; Patrice Chotard patrice.chotard@st.com; Simon Glass sjg@chromium.org; Masahiro Yamada yamada.masahiro@socionext.com; Jiafei Pan jiafei.pan@nxp.com; u- boot@lists.denx.de; Xiaobo Xie xiaobo.xie@nxp.com Subject: Re: Compile failure encountered on latest (2017-07-20) git://git.denx.de/u-boot-usb.git branch master for target ls1021atwr_nor_defconfig
Hi Ran,
On Wed, Jul 26, 2017 at 2:37 PM, Ran Wang ran.wang_1@nxp.com wrote:
Hi Bin
-----Original Message----- From: Bin Meng [mailto:bmeng.cn@gmail.com] Sent: Wednesday, July 26, 2017 12:41 PM To: Ran Wang ran.wang_1@nxp.com Cc: Marek Vasut marex@denx.de; Patrice Chotard patrice.chotard@st.com; Simon Glass sjg@chromium.org; Masahiro Yamada yamada.masahiro@socionext.com; Jiafei Pan jiafei.pan@nxp.com; u- boot@lists.denx.de; Xiaobo Xie xiaobo.xie@nxp.com Subject: Re: Compile failure encountered on latest (2017-07-20) git://git.denx.de/u-boot-usb.git branch master for target ls1021atwr_nor_defconfig
Hi Ran,
On Wed, Jul 26, 2017 at 11:30 AM, Ran Wang ran.wang_1@nxp.com
wrote:
> Hi Bin >> -----Original Message----- >> From: Bin Meng [mailto:bmeng.cn@gmail.com] >> Sent: Tuesday, July 25, 2017 8:22 PM >> To: Ran Wang ran.wang_1@nxp.com >> Cc: Marek Vasut marex@denx.de; Patrice Chotard >> patrice.chotard@st.com; Simon Glass sjg@chromium.org; >> Masahiro Yamada yamada.masahiro@socionext.com; Jiafei Pan >> jiafei.pan@nxp.com; u- boot@lists.denx.de; Xiaobo Xie >> xiaobo.xie@nxp.com >> Subject: Re: Compile failure encountered on latest (2017-07-20) >> git://git.denx.de/u-boot-usb.git branch master for target >> ls1021atwr_nor_defconfig >> >> Hi Ran, >> >> On Tue, Jul 25, 2017 at 7:01 PM, Ran Wang ran.wang_1@nxp.com
wrote:
>> >> -----Original Message----- >> >> From: Bin Meng [mailto:bmeng.cn@gmail.com] >> >> Sent: Friday, July 21, 2017 8:29 PM >> >> To: Ran Wang ran.wang_1@nxp.com >> >> Cc: Marek Vasut marex@denx.de; Patrice Chotard >> >> patrice.chotard@st.com; Simon Glass sjg@chromium.org; >> >> Masahiro Yamada yamada.masahiro@socionext.com; Jiafei Pan >> >> jiafei.pan@nxp.com; u- boot@lists.denx.de >> >> Subject: Re: Compile failure encountered on latest >> >> (2017-07-20) git://git.denx.de/u-boot-usb.git branch master >> >> for target ls1021atwr_nor_defconfig >> >> >> >> Hi Ran, >> > Hi Bin. >> >> >> >> On Thu, Jul 20, 2017 at 5:47 PM, Ran Wang >> >> ran.wang_1@nxp.com wrote: >> >> > Hi All, >> >> > Actually I just plan to try feature of support SS hub >> >> > which just enabled this >> >> yesterday on LS1021ATWR (I know need to enable DM_USB for >> >> 1021
first).
>> >> >> >> Should the DM_USB enablement be this patch done by Alison? >> >> https://patchwork.ozlabs.org/patch/785387/ >> >> >> >> > Per your knowledge, if I revert the patches I pasted >> >> > in last mail, the SS hub >> >> support feature will be impacted or not? >> >> > Thanks. >> >> >> >> Note the SS hub support only exists in DM USB. If you revert >> >> the dwc3-xhci patchset which converts dwc3 to DM USB, you >> >> will not get the SS >> hub support. >> > Thanks for your information, I will re-check this impact with my board. >> > Actually I have encountered enumeration random fail issue >> > with an USB >> > 3.0 thumb drive (Kingston DataTraveler 3.0) after SS hub >> > Please see attached >> snapshot for details. Fail rate is about 9/30. Not sure it's >> relevant to SS hub patch or not yet. >> >> >> >> Can you enable the -DDEBUG and send me the log? From the last >> attachment, the enumeration process already failed when getting >> device descriptor. Any subsequent op leads to the final BUG/reset. > > I don't know where to add -DDEBUG in U-Boot Makefile, could you > show
me?
> > Anyway I've added DEBUG in file include/common.h and got some > verbose log for you (seems not much in error point), pls see > attached. Any further suggestion are welcome.
Thanks for the log. Can you try to do the same testing on u-boot-x86/xhci-wip branch to see if makes any difference? If no, please
send the DEBUG log as well.
Seems failure changed a little bit, and fail rate rise to ~100%.
From your log, this time the failure is different. Somehow the USB flash disk reports its speed is full speed but it should be super speed, so xHCI cannot address it. I believe the hub handling logic is still buggy in the U-Boot. Which hub are you using for testing?
We are using an on-board USB 3.0 hub chip which contain a SS hub (USB5534B) and a HS hub (USB2134B). And I suspect there are difference on code base between u-boot-usb and u-boot-x86 specific branch which might lead to the result divers, I have tried them many times to confirm the difference failure is not a random failure, for your reference.
USB device tree: 1 Hub (5 Gb/s, 0mA) | U-Boot XHCI Host Controller | +-2 Hub (480 Mb/s, 0mA) | SMSC USB2134B | +-3 Hub (5 Gb/s, 0mA) | SMSC USB5534B | +-4 Mass Storage (5 Gb/s, 126mA) Kingston DataTraveler 3.0 08606E69C773BF1099650055
Which board are you using for testing?
ls1021atwr
I cannot reproduce the 100% unstable issue on top of u-boot-x86/xhci-working on ls1021atwr board. Here is the log:
U-Boot 2017.09-00019-g7c0347d (Sep 13 2017 - 11:08:36 +0800)
CPU: Freescale LayerScape LS1021E, Version: 1.0, (0x87081110) Clock Configuration: CPU0(ARMV7):1000 MHz, Bus:300 MHz, DDR:800 MHz (1600 MT/s data rate), Reset Configuration Word (RCW): 00000000: 0608000a 00000000 00000000 00000000 00000010: 20000000 00407900 e0025a00 21046000 00000020: 00000000 00000000 00000000 00038000 00000030: 00080000 881b7540 00000000 00000000
...
=> usb start starting USB... USB0: Register 200017f NbrPorts 2 Starting the controller USB XHCI 1.00 scanning bus 0 for devices... 4 USB Device(s) found scanning usb for storage devices... 1 Storage Device(s) found => usb tree USB device tree: 1 Hub (5 Gb/s, 0mA) | U-Boot XHCI Host Controller | +-2 Hub (5 Gb/s, 0mA) | | SMSC USB5534B | | | +-4 Mass Storage (5 Gb/s, 76mA) | JetFlash Mass Storage Device 16Q6ZPH20GF3E8UQ | +-3 Hub (480 Mb/s, 0mA) SMSC USB2134B
Regards, Bin

Hi Bin
<snip>
> >> > Actually I have encountered enumeration random fail issue > >> > with an USB > >> > 3.0 thumb drive (Kingston DataTraveler 3.0) after SS hub > >> > Please see attached > >> snapshot for details. Fail rate is about 9/30. Not sure it's > >> relevant to SS hub patch or not yet. > >> >> > >> > >> Can you enable the -DDEBUG and send me the log? From the > >> last attachment, the enumeration process already failed when > >> getting device descriptor. Any subsequent op leads to the final
BUG/reset.
> > > > I don't know where to add -DDEBUG in U-Boot Makefile, could > > you show
me?
> > > > Anyway I've added DEBUG in file include/common.h and got some > > verbose log for you (seems not much in error point), pls see > > attached. Any further suggestion are welcome. > > Thanks for the log. Can you try to do the same testing on > u-boot-x86/xhci-wip branch to see if makes any difference? If > no, please
send the DEBUG log as well.
Seems failure changed a little bit, and fail rate rise to ~100%.
From your log, this time the failure is different. Somehow the USB flash disk reports its speed is full speed but it should be super speed, so xHCI cannot address it. I believe the hub handling logic is still buggy in the U-Boot. Which hub are you using for testing?
We are using an on-board USB 3.0 hub chip which contain a SS hub (USB5534B) and a HS hub (USB2134B). And I suspect there are difference on code base between u-boot-usb and u-boot-x86 specific branch which might lead to the result divers, I have tried them many times to confirm the difference failure is not a random failure, for
your reference.
USB device tree: 1 Hub (5 Gb/s, 0mA) | U-Boot XHCI Host Controller | +-2 Hub (480 Mb/s, 0mA) | SMSC USB2134B | +-3 Hub (5 Gb/s, 0mA) | SMSC USB5534B | +-4 Mass Storage (5 Gb/s, 126mA) Kingston DataTraveler 3.0 08606E69C773BF1099650055
Which board are you using for testing?
ls1021atwr
I cannot reproduce the 100% unstable issue on top of u-boot-x86/xhci-working on ls1021atwr board. Here is the log:
U-Boot 2017.09-00019-g7c0347d (Sep 13 2017 - 11:08:36 +0800)
CPU: Freescale LayerScape LS1021E, Version: 1.0, (0x87081110) Clock Configuration: CPU0(ARMV7):1000 MHz, Bus:300 MHz, DDR:800 MHz (1600 MT/s data rate), Reset Configuration Word (RCW): 00000000: 0608000a 00000000 00000000 00000000 00000010: 20000000 00407900 e0025a00 21046000 00000020: 00000000 00000000 00000000 00038000 00000030: 00080000 881b7540 00000000 00000000
...
=> usb start starting USB... USB0: Register 200017f NbrPorts 2 Starting the controller USB XHCI 1.00 scanning bus 0 for devices... 4 USB Device(s) found scanning usb for storage devices... 1 Storage Device(s) found => usb tree USB device tree: 1 Hub (5 Gb/s, 0mA) | U-Boot XHCI Host Controller | +-2 Hub (5 Gb/s, 0mA) | | SMSC USB5534B | | | +-4 Mass Storage (5 Gb/s, 76mA) | JetFlash Mass Storage Device 16Q6ZPH20GF3E8UQ | +-3 Hub (480 Mb/s, 0mA) SMSC USB2134B
Thanks for your test result share, I think this might be a USB compatible issue, which means the test results might differ with different devices I will try more devices to confirm this later. BR Ran
participants (2)
-
Bin Meng
-
Ran Wang