Re: [Bug 103461] i.MX USB runtime power management breaks the boot

2015-09-09 Thread Peter Chen
On Mon, Aug 31, 2015 at 10:11:20AM +0200, Vincent Stehlé wrote:
> On 08/28/2015 10:29 AM, Peter Chen wrote:
> ..
> > Would you supply below:
> > 1. The u-boot.bin which you use to reproduce it
> 
> Hi Peter,
> 
> Thank you for looking into this issue.
> 
> I attached u-boot.imx to the ticket for you [1].
> 
> Due to the environment boot paths being tuned to my setup I can only
> recommend that you start from sources instead.
> 
> > 2. The application used to load u-boot.bin from pc, and related
> > script
> 
> The binaries are now attached to the ticket for your convenience [3].
> 
> I fear they will incur additional issues of setting LD_LIBRARY_PATH, due
> to absolute paths in the binaries. I therefore recommend that you start
> from the sources mentioned in the ticket, in
> comment #5 [2].
> 
> > 3. Instruction how to use the tool to reproduce the failure 
> 
> This is what I do:
> 
> 1. Edit the mx6_usb_work.conf config file.
> 2. Connect the boart debug UART and USB OTG to the PC USB.
> 3. Reset the board.
> 4. Run:
> 
>   $ sudo ./output/host/usr/bin/imx_usb
> --configdir=./output/host/etc/imx-loader.d/
> 
> (You will need to adapt the paths.)
> 
> ..
> > Would you please enable chipidea debug at kernel configuration, and
> > add 'debug' at your u-boot command line to run it again, I would
> > like to see the log if possible?
> 
> Sure. I updated the log in the ticket [4].
> 
> Sadly, it seems to make the issue only worse, as the boot is now stuck
> even earlier.
> 
> Best regards,
> 
> V.
> 
> [1] https://bugzilla.kernel.org/attachment.cgi?id=186281
> [2] https://bugzilla.kernel.org/show_bug.cgi?id=103461#c5
> [3] https://bugzilla.kernel.org/attachment.cgi?id=186291
> [4] https://bugzilla.kernel.org/attachment.cgi?id=186271
> 
> 

Hi Vincent, sorry for late, I can't to reproduce it with your u-boot
and v4.2-rc6, and track the activities at bugzilla, let's close it
here, and go on debugging this problem at bugzilla.

-- 

Best Regards,
Peter Chen
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [Bug 103461] i.MX USB runtime power management breaks the boot

2015-08-31 Thread Vincent Stehlé
On 08/28/2015 10:29 AM, Peter Chen wrote:
..
> Would you supply below:
> 1. The u-boot.bin which you use to reproduce it

Hi Peter,

Thank you for looking into this issue.

I attached u-boot.imx to the ticket for you [1].

Due to the environment boot paths being tuned to my setup I can only
recommend that you start from sources instead.

> 2. The application used to load u-boot.bin from pc, and related
> script

The binaries are now attached to the ticket for your convenience [3].

I fear they will incur additional issues of setting LD_LIBRARY_PATH, due
to absolute paths in the binaries. I therefore recommend that you start
from the sources mentioned in the ticket, in
comment #5 [2].

> 3. Instruction how to use the tool to reproduce the failure 

This is what I do:

1. Edit the mx6_usb_work.conf config file.
2. Connect the boart debug UART and USB OTG to the PC USB.
3. Reset the board.
4. Run:

  $ sudo ./output/host/usr/bin/imx_usb
--configdir=./output/host/etc/imx-loader.d/

(You will need to adapt the paths.)

..
> Would you please enable chipidea debug at kernel configuration, and
> add 'debug' at your u-boot command line to run it again, I would
> like to see the log if possible?

Sure. I updated the log in the ticket [4].

Sadly, it seems to make the issue only worse, as the boot is now stuck
even earlier.

Best regards,

V.

[1] https://bugzilla.kernel.org/attachment.cgi?id=186281
[2] https://bugzilla.kernel.org/show_bug.cgi?id=103461#c5
[3] https://bugzilla.kernel.org/attachment.cgi?id=186291
[4] https://bugzilla.kernel.org/attachment.cgi?id=186271


--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [Bug 103461] i.MX USB runtime power management breaks the boot

2015-08-28 Thread Peter Chen
On Wed, Aug 26, 2015 at 11:49:14AM +0200, Vincent Stehlé wrote:
 On 08/26/2015 06:41 AM, Peter Chen wrote:
 ..
  Vincent, would you supply related u-boot and pc tools for me?
  Then, I can reproduce it. 
 
 Hi Peter,
 
 Thanks for your concern!
 
 I have updated the bugzilla Bug 103461 with more details, to spare the
 list. Do not hesitate to let me know if you need any additional details.
 

Hi Vincent,

Since I can't find the app running at linux pc at bugzilla, I use
Freescale's Mfgtool to have a try, but can't reproduce it.

Would you supply below:

1. The u-boot.bin which you use to reproduce it
2. The application used to load u-boot.bin from pc, and related
script
3. Instruction how to use the tool to reproduce the failure 

Meanwhile,

Would you please enable chipidea debug at kernel configuration, and
add 'debug' at your u-boot command line to run it again, I would
like to see the log if possible?

   Device Drivers  ---  
[*] USB support  ---
 *   ChipIdea Highspeed Dual Role Controller
[*] ChipIdea driver debug 
-- 

Best Regards,
Peter Chen
--
To unsubscribe from this list: send the line unsubscribe linux-usb in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [Bug 103461] i.MX USB runtime power management breaks the boot

2015-08-26 Thread Vincent Stehlé
On 08/26/2015 06:41 AM, Peter Chen wrote:
..
 Vincent, would you supply related u-boot and pc tools for me?
 Then, I can reproduce it. 

Hi Peter,

Thanks for your concern!

I have updated the bugzilla Bug 103461 with more details, to spare the
list. Do not hesitate to let me know if you need any additional details.

Best regards,

V.

--
To unsubscribe from this list: send the line unsubscribe linux-usb in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [Bug 103461] i.MX USB runtime power management breaks the boot

2015-08-25 Thread Fabio Estevam
On Tue, Aug 25, 2015 at 1:07 PM, Vincent Stehlé
vincent.ste...@freescale.com wrote:
 Hi,

 I have encountered a bug related to the USB runtime pm in a specific
 boot configuration.

 The issue happens on an i.MX6 SabreSD platform with recent kernel
 versions (e.g. v4.2-rc8) and imx_v6_v7_defconfig, when booting u-boot by
 USB and the kernel by ethernet.

 I have bisected to a specific commit. More details and logs related to
 this bug are captured in the kernel bugzilla there :
 https://bugzilla.kernel.org/show_bug.cgi?id=103461

 Thank you for your help and comments.

Adding Peter Chen on Cc.
--
To unsubscribe from this list: send the line unsubscribe linux-usb in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Fwd: [Bug 103461] i.MX USB runtime power management breaks the boot

2015-08-25 Thread Vincent Stehlé
Hi,

I have encountered a bug related to the USB runtime pm in a specific
boot configuration.

The issue happens on an i.MX6 SabreSD platform with recent kernel
versions (e.g. v4.2-rc8) and imx_v6_v7_defconfig, when booting u-boot by
USB and the kernel by ethernet.

I have bisected to a specific commit. More details and logs related to
this bug are captured in the kernel bugzilla there :
https://bugzilla.kernel.org/show_bug.cgi?id=103461

Thank you for your help and comments.

Best regards,

V.
--
To unsubscribe from this list: send the line unsubscribe linux-usb in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [Bug 103461] i.MX USB runtime power management breaks the boot

2015-08-25 Thread Peter Chen
On Tue, Aug 25, 2015 at 02:37:45PM -0300, Fabio Estevam wrote:
 On Tue, Aug 25, 2015 at 1:07 PM, Vincent Stehlé
 vincent.ste...@freescale.com wrote:
  Hi,
 
  I have encountered a bug related to the USB runtime pm in a specific
  boot configuration.
 
  The issue happens on an i.MX6 SabreSD platform with recent kernel
  versions (e.g. v4.2-rc8) and imx_v6_v7_defconfig, when booting u-boot by
  USB and the kernel by ethernet.
 
  I have bisected to a specific commit. More details and logs related to
  this bug are captured in the kernel bugzilla there :
  https://bugzilla.kernel.org/show_bug.cgi?id=103461
 
  Thank you for your help and comments.
 
 Adding Peter Chen on Cc.

Vincent, would you supply related u-boot and pc tools for me?
Then, I can reproduce it. 

This issue should be due to access register without clock, normal
kernel boot can't reproduce it.

-- 

Best Regards,
Peter Chen
--
To unsubscribe from this list: send the line unsubscribe linux-usb in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html