All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] ppce500 usb-ehci-pci issue on last uboot
@ 2017-09-25 19:10 luigi burdo
  2017-09-27 11:34 ` Gerd Hoffmann
  0 siblings, 1 reply; 7+ messages in thread
From: luigi burdo @ 2017-09-25 19:10 UTC (permalink / raw)
  To: qemu-ppc, qemu-devel

Hi all,

the last uboot git mainstream gave the opportunity to made usb ehci-pci work and gave to the vm the opportunity to load from

usb pendrive files, configurations, use a use mouse and keyboard.

i build the uboot with qemu-ppce500_defconfig  machine this feature was configured without problem and uboot build without issue.

just adding to the  .config

CONFIG_CMD_USB=y

CONFIG_USB=y

CONFIG_USB_EHCI_HCD=y

CONFIG_USB_EHCI_PCI=y




here the new uboot console working on ppce500 -cpu e5500

U-Boot 2017.09-00322-g1f6049e (Sep 25 2017 - 20:50:48 +0200)


BusDevFun  VendorId   DeviceId   Device Class       Sub-Class
_____________________________________________________________
00.01.00   0x8086     0x24cd     Serial bus controller   0x03
00.02.00   0x8086     0x2922     Mass storage controller 0x06
00.03.00   0x1234     0x1111     Display controller      0x00
00.06.00   0x1af4     0x1000     Network controller      0x00


when i  run the command usb start inside the uboot console:

=> usb start
starting USB...
USB0:   EHCI fail to reset
lowlevel init failed
USB error: all controllers failed lowlevel init


I been meet uboot developers and after one afternoon in drilling inside the code of uboot they assume the issue was come in qemu and not in uboot.


from an uboot dev:
"actually, I tried it yesterday and it seems to be a bug in qemu in case you reset the EHCI controller, it doesn't come out of reset for whatever reason ... so you probably want to talk to the qemu guys, it's when U-Boot sets USBCMD RESET bit and then does handshake, the controller is stuck with reset bit asserted"


i ask if possible to fix it?

here some past&bin of drilling inside uboot

https://pastebin.com/93DRFGcM

https://pastebin.com/g5j2XN6R

https://pastebin.com/KDMCU7C5

https://pastebin.com/ndLtNQxS<https://pastebin.com/i3TkejfT>


Thanks

Luigi

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2017-11-14 13:33 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-25 19:10 [Qemu-devel] ppce500 usb-ehci-pci issue on last uboot luigi burdo
2017-09-27 11:34 ` Gerd Hoffmann
2017-09-27 12:21   ` luigi burdo
2017-09-28  7:27     ` luigi burdo
2017-09-28  8:07       ` Gerd Hoffmann
2017-09-28  8:28         ` luigi burdo
2017-11-14 13:33           ` Gerd Hoffmann

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.