[SeaBIOS] USB timeout on ALIX.2C2 (CS5536)

Евгени Димитров evgeni.dimitrov at gmail.com
Wed Jan 11 08:23:00 CET 2017


On Tue, Jan 10, 2017 at 7:14 PM, Kevin O'Connor <kevin at koconnor.net> wrote:

> On Mon, Jan 09, 2017 at 09:31:22AM +0200, Евгени Димитров wrote:
> > On Fri, Jan 6, 2017 at 4:46 PM, Kevin O'Connor <kevin at koconnor.net>
> wrote:
> > > Are you trying to boot from the "Multimedia Card Reader" or from a
> > > regular USB flash drive?  If you're not booting from the card reader,
> > > does the patch below help?
> >
> > I was trying to boot from whatever USB devices I can get my hands on.
> > Ultimately my goal is to boot from a regular flash drive. The patch
> doesn't
> > help.
>
> I'm not sure what is happening - it looks like the controller is
> shutting down, but it's unclear why.  What do you get with the patch
> below?
>
> -Kevin
>
>
> --- a/src/hw/usb-ehci.c
> +++ b/src/hw/usb-ehci.c
> @@ -519,6 +519,9 @@ ehci_wait_td(struct ehci_pipe *pipe, struct ehci_qtd
> *td, u32 end)
>              ehci_reset_pipe(pipe);
>              struct usb_ehci_s *cntl = container_of(
>                  GET_LOWFLAT(pipe->pipe.cntl), struct usb_ehci_s, usb);
> +            if (!MODESEGMENT)
> +                dprintf(1, "ehci usbcmd=%08x usbsts=%08x\n"
> +                        , cntl->regs->usbcmd, cntl->regs->usbsts);
>              ehci_waittick(cntl);
>              return -1;
>          }
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.coreboot.org/pipermail/seabios/attachments/20170111/24f9ea64/attachment.html>
-------------- next part --------------
SeaBIOS (version rel-1.10.0-10-g9332965-dirty-20170111_091401-cactus)
init usb
Copying data 8 at 0xfffad138 to 8 at 0x00006ebc
phys_alloc zone=0x0f773ed0 size=32 align=10 ret=f7689a0 (detail=0x0f768970)
EHCI init on dev 00:0f.5 (regs=0xfe017010)
phys_alloc zone=0x0f773ed0 size=4096 align=1000 ret=f767000 (detail=0x0f768940)
/0f767000\ Start thread
|0f767000| phys_alloc zone=0x0f773edc size=4096 align=1000 ret=f7b3000 (detail=0x0f768910)
|0f767000| phys_alloc zone=0x0f773edc size=68 align=80 ret=f7b2f80 (detail=0x0f7688e0)
|0f767000| phys_alloc zone=0x0f773edc size=68 align=80 ret=f7b2f00 (detail=0x0f7688b0)
phys_alloc zone=0x0f773ed0 size=20 align=10 ret=f768890 (detail=0x0f768860)
OHCI init on dev 00:0f.4 (regs=0xfe016000)
phys_alloc zone=0x0f773ed0 size=4096 align=1000 ret=f766000 (detail=0x0f768830)
/0f766000\ Start thread
|0f766000| phys_alloc zone=0x0f773edc size=256 align=100 ret=f7b2e00 (detail=0x0f768800)
|0f766000| phys_alloc zone=0x0f773edc size=16 align=10 ret=f7b2ff0 (detail=0x0f7687d0)
|0f767000| phys_alloc zone=0x0f773ed0 size=28 align=10 ret=f7687b0 (detail=0x0f768780)
|0f767000| phys_alloc zone=0x0f773ed0 size=4096 align=1000 ret=f765000 (detail=0x0f768750)
/0f765000\ Start thread
init ps2port
phys_alloc zone=0x0f773ed0 size=4096 align=1000 ret=f764000 (detail=0x0f768720)
/0f764000\ Start thread
|0f764000| i8042_flush
|0f764000| i8042 flushed ff (status=ff)
|0f764000| i8042 flushed ff (status=ff)
|0f764000| i8042 flushed ff (status=ff)
|0f764000| i8042 flushed ff (status=ff)
|0f764000| i8042 flushed ff (status=ff)
|0f764000| i8042 flushed ff (status=ff)
|0f764000| i8042 flushed ff (status=ff)
|0f764000| i8042 flushed ff (status=ff)
|0f764000| i8042 flushed ff (status=ff)
|0f764000| i8042 flushed ff (status=ff)
|0f764000| i8042 flushed ff (status=ff)
|0f764000| i8042 flushed ff (status=ff)
|0f764000| i8042 flushed ff (status=ff)
|0f764000| i8042 flushed ff (status=ff)
|0f764000| i8042 flushed ff (status=ff)
|0f764000| i8042 flushed ff (status=ff)
|0f764000| WARNING - Timeout at i8042_flush:71!
\0f764000/ End thread
phys_free f764000 (detail=0x0f768720)
|0f767000| phys_alloc zone=0x0f773ed0 size=28 align=10 ret=f768730 (detail=0x0f768700)
|0f767000| phys_alloc zone=0x0f773ed0 size=4096 align=1000 ret=f764000 (detail=0x0f7686d0)
/0f764000\ Start thread
init floppy drives
init hard drives
phys_alloc zone=0x0f773ed8 size=20 align=10 ret=f6000 (detail=0x0f7686a0)
ATA controller 1 at 1f0/3f4/0 (irq 14 dev 7a)
phys_alloc zone=0x0f773ed0 size=4096 align=1000 ret=f763000 (detail=0x0f768670)
/0f763000\ Start thread
|0f763000| powerup iobase=1f0 st=50
|0f763000| powerup iobase=1f0 st=50
|0f763000| ata_detect ata0-0: sc=55 sn=aa dh=a0
|0f763000| ata_reset drive=0x0f763dc0
|0f766000| phys_alloc zone=0x0f773ed0 size=28 align=10 ret=f768650 (detail=0x0f768620)
|0f766000| phys_alloc zone=0x0f773ed0 size=4096 align=1000 ret=f762000 (detail=0x0f7685f0)
/0f762000\ Start thread
|0f767000| phys_alloc zone=0x0f773ed0 size=28 align=10 ret=f7685d0 (detail=0x0f7685a0)
|0f767000| phys_alloc zone=0x0f773ed0 size=4096 align=1000 ret=f761000 (detail=0x0f768570)
/0f761000\ Start thread
phys_alloc zone=0x0f773ed8 size=20 align=10 ret=f5fe0 (detail=0x0f768540)
ATA controller 2 at 170/374/0 (irq 15 dev 7a)
phys_alloc zone=0x0f773ed0 size=4096 align=1000 ret=f760000 (detail=0x0f768510)
/0f760000\ Start thread
|0f760000| powerup IDE floating
|0f760000| powerup IDE floating
|0f760000| ata_detect ata1-0: sc=ff sn=ff dh=ff
|0f760000| powerup IDE floating
|0f760000| powerup IDE floating
|0f760000| ata_detect ata1-1: sc=ff sn=ff dh=ff
\0f760000/ End thread
phys_free f760000 (detail=0x0f768510)
|0f763000| ata_reset exit status=50
|0f766000| phys_alloc zone=0x0f773ed0 size=28 align=10 ret=f768520 (detail=0x0f7684f0)
|0f766000| phys_alloc zone=0x0f773ed0 size=4096 align=1000 ret=f760000 (detail=0x0f7684c0)
/0f760000\ Start thread
|0f767000| phys_alloc zone=0x0f773ed0 size=28 align=10 ret=f7684a0 (detail=0x0f768470)
|0f767000| phys_alloc zone=0x0f773ed0 size=4096 align=1000 ret=f75f000 (detail=0x0f768440)
/0f75f000\ Start thread
init ahci
init megasas
init lpt
Found 0 lpt ports
init serial
Found 2 serial ports
|0f763000| send_cmd : read error (status=51 err=04)
|0f766000| phys_alloc zone=0x0f773ed0 size=28 align=10 ret=f768420 (detail=0x0f7683f0)
|0f766000| phys_alloc zone=0x0f773ed0 size=4096 align=1000 ret=f75e000 (detail=0x0f7683c0)
/0f75e000\ Start thread
|0f764000| set_address 0x0f7689a0
|0f766000| phys_alloc zone=0x0f773ed0 size=28 align=10 ret=f7683a0 (detail=0x0f768370)
|0f766000| phys_alloc zone=0x0f773ed0 size=4096 align=1000 ret=f75d000 (detail=0x0f768340)
/0f75d000\ Start thread
|0f764000| ehci_alloc_async_pipe 0x0f7689a0 0
|0f764000| phys_alloc zone=0x0f773ed0 size=92 align=80 ret=f768280 (detail=0x0f768310)
|0f764000| ehci_send_pipe qh=0x0f768280 dir=0 data=0x00000000 size=0
|0f764000| ehci_alloc_async_pipe 0x0f7689a0 0
|0f764000| config_usb: 0x0f7682d0
|0f764000| ehci_send_pipe qh=0x0f768280 dir=128 data=0x0f764fb6 size=8
|0f764000| device rev=0210 cls=00 sub=00 proto=00 size=64
|0f764000| ehci_alloc_async_pipe 0x0f7689a0 0
|0f764000| ehci_send_pipe qh=0x0f768280 dir=128 data=0x0f764fc8 size=9
|0f763000| phys_alloc zone=0x0f773ed8 size=44 align=10 ret=f5fb0 (detail=0x0f7682e0)
|0f763000| phys_alloc zone=0x0f773ed0 size=80 align=10 ret=f768230 (detail=0x0f768200)
|0f763000| ata0-0: STI Flash 8.0.0 ATA-0 Hard-Disk (61 MiBytes)
|0f763000| Searching bootorder for: /pci at i0cf8/*@f,2/drive at 0/disk at 0
|0f763000| phys_alloc zone=0x0f773ed0 size=24 align=10 ret=f7681e0 (detail=0x0f7681b0)
|0f763000| Registering bootable: ata0-0: STI Flash 8.0.0 ATA-0 Hard-Disk (61 MiBytes) (type:2 prio:103 data:f5fb0)
|0f763000| ata_detect resetresult=0000
|0f763000| powerup iobase=1f0 st=50
|0f763000| powerup iobase=1f0 st=0
|0f763000| ata_detect ata0-1: sc=55 sn=aa dh=b0
|0f763000| send_cmd : DRQ not set (status 00)
\0f763000/ End thread
phys_free f763000 (detail=0x0f768670)
|0f764000| phys_alloc zone=0x0f773ed0 size=32 align=10 ret=f768680 (detail=0x0f768180)
|0f764000| ehci_send_pipe qh=0x0f768280 dir=128 data=0x0f768680 size=32
|0f764000| ehci_send_pipe qh=0x0f768280 dir=0 data=0x00000000 size=0
|0f764000| ehci_alloc_async_pipe 0x0f7689a0 2
|0f764000| phys_alloc zone=0x0f773ee0 size=92 align=80 ret=ecd80 (detail=0x0f768150)
|0f764000| ehci_alloc_async_pipe 0x0f7689a0 2
|0f764000| phys_alloc zone=0x0f773ee0 size=92 align=80 ret=ecd00 (detail=0x0f768120)
|0f764000| ehci_send_pipe qh=0x0f768280 dir=128 data=0x0f764fae size=1
|0f764000| phys_alloc zone=0x0f773ed8 size=48 align=10 ret=f5f80 (detail=0x0f7680f0)
|0f764000| Searching bootorder for: /pci at i0cf8/usb at f,5/storage at 2/*@0/*@0,0
|0f764000| Searching bootorder for: /pci at i0cf8/usb at f,5/usb-*@2
|0f764000| ehci_send_pipe qh=0x000ecd00 dir=0 data=0x0f764e81 size=31
|0f764000| ehci_send_pipe qh=0x000ecd80 dir=128 data=0x0f764f4c size=36
|0f764000| ehci_send_pipe qh=0x000ecd80 dir=128 data=0x0f764e74 size=13
|0f765000| phys_free f7687b0 (detail=0x0f768780)
\0f765000/ End thread
phys_free f765000 (detail=0x0f768750)
|0f75f000| phys_free f7684a0 (detail=0x0f768470)
\0f75f000/ End thread
phys_free f75f000 (detail=0x0f768440)
|0f761000| phys_free f7685d0 (detail=0x0f7685a0)
\0f761000/ End thread
phys_free f761000 (detail=0x0f768570)
|0f75d000| phys_free f7683a0 (detail=0x0f768370)
\0f75d000/ End thread
phys_free f75d000 (detail=0x0f768340)
|0f75e000| phys_free f768420 (detail=0x0f7683f0)
\0f75e000/ End thread
phys_free f75e000 (detail=0x0f7683c0)
|0f760000| phys_free f768520 (detail=0x0f7684f0)
\0f760000/ End thread
phys_free f760000 (detail=0x0f7684c0)
|0f762000| phys_free f768650 (detail=0x0f768620)
\0f762000/ End thread
phys_free f762000 (detail=0x0f7685f0)
|0f766000| ohci_free_pipes 0x0f768890
|0f766000| phys_free f7b2e00 (detail=0x0f768800)
|0f766000| phys_free f7b2ff0 (detail=0x0f7687d0)
\0f766000/ End thread
phys_free f766000 (detail=0x0f768830)
|0f764000| WARNING - Timeout at ehci_wait_td:516!
|0f764000| ehci pipe=0x000ecd80 cur=00000000 tok=00000000 next=f764cc0 td=0x0f764cc0 status=d0d80
|0f764000| ehci usbcmd=00080031 usbsts=0000e00c
|0f764000| USB transmission failed
|0f764000| Unable to configure USB MSC drive.
|0f764000| phys_free f5f80 (detail=0x0f7680f0)
|0f764000| Unable to configure USB MSC device.
|0f764000| phys_free f768680 (detail=0x0f768180)
|0f764000| phys_free f768730 (detail=0x0f768700)
\0f764000/ End thread
phys_free f764000 (detail=0x0f7686d0)
|0f767000| ehci_free_pipes 0x0f7689a0
|0f767000| phys_free f768280 (detail=0x0f768310)
|0f767000| phys_free ecd00 (detail=0x0f768120)
|0f767000| phys_free ecd80 (detail=0x0f768150)
|0f767000| phys_free f7b3000 (detail=0x0f768910)
|0f767000| phys_free f7b2f80 (detail=0x0f7688e0)
|0f767000| phys_free f7b2f00 (detail=0x0f7688b0)
|0f767000| phys_free f7689a0 (detail=0x0f768970)
\0f767000/ End thread
phys_free f767000 (detail=0x0f768940)
All threads complete.
Scan for option roms
Attempting to init PCI bdf 00:01.0 (vd 1022:2080)
Attempting to map option rom on dev 00:01.0
Option rom sizing returned 0 0
Attempting to init PCI bdf 00:01.2 (vd 1022:2082)
Attempting to map option rom on dev 00:01.2
Option rom sizing returned 0 0
Attempting to init PCI bdf 00:09.0 (vd 1106:3053)
Attempting to map option rom on dev 00:09.0
Option rom sizing returned 0 0
Attempting to init PCI bdf 00:0b.0 (vd 1106:3053)
Attempting to map option rom on dev 00:0b.0
Option rom sizing returned 0 0
Attempting to init PCI bdf 00:0f.0 (vd 1022:2090)
Attempting to map option rom on dev 00:0f.0
Option rom sizing returned 0 0
Attempting to init PCI bdf 00:0f.2 (vd 1022:209a)
Attempting to map option rom on dev 00:0f.2
Option rom sizing returned 0 0

Press ESC for boot menu.


More information about the SeaBIOS mailing list