All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: BUG report: ohci-pci ehci-pci , newer nec chip failed
       [not found] <2b564264.1963.18084f0e7a6.Coremail.yxj790222@163.com>
@ 2022-05-02 14:38 ` Alan Stern
       [not found]   ` <1582a60e.34.1808632ac75.Coremail.yxj790222@163.com>
  0 siblings, 1 reply; 3+ messages in thread
From: Alan Stern @ 2022-05-02 14:38 UTC (permalink / raw)
  To: 尤晓杰; +Cc: weissg, USB mailing list

On Mon, May 02, 2022 at 09:23:42PM +0800, 尤晓杰 wrote:
> dear friend, if I want to report bugs,how to do? where to subsribe email lists?

You should report bugs to the linux-usb@vger.kernel.org mailing list 
(CC'ed).  You can post on the mailing list without subscribing.

> the fact is I am using richo 475ii pci-card bus bridge,
> when I plug into two different version of nec cardbus usb2 cards:
> as following:
> 
> 05:06.0 CardBus bridge: Ricoh Co Ltd RL5c475 (rev 80)
> 06:00.0 USB controller: NEC Corporation OHCI USB Controller (rev 44)
> 06:00.1 USB controller: NEC Corporation uPD72010x USB 2.0 Controller (rev 05)
> this newer one panic
> 
> 06:00.0 USB controller: NEC Corporation OHCI USB Controller (rev 43)
> 06:00.1 USB controller: NEC Corporation OHCI USB Controller (rev 43)
> 06:00.2 USB controller: NEC Corporation uPD72010x USB 2.0 Controller (rev 04)
> this one ok
> so what's wrong?
> the dmesg:
> /////////////////////////////////////old version chip////////////////////////////////////////////

This is the new version of the chip, not the old version.

> [  203.672411] pcmcia_socket pcmcia_socket0: pccard: CardBus card inserted into slot 0
> [  203.672460] pci 0000:06:00.0: [1033:0035] type 00 class 0x0c0310
> [  203.672491] pci 0000:06:00.0: reg 0x10: [mem 0x00000000-0x00000fff]
> [  203.672818] pci 0000:06:00.1: [1033:00e0] type 00 class 0x0c0320
> [  203.672847] pci 0000:06:00.1: reg 0x10: [mem 0x00000000-0x000000ff]
> [  203.672957] pci 0000:06:00.1: supports D1 D2
> [  203.672963] pci 0000:06:00.1: PME# supported from D0 D1 D2 D3hot
> [  203.673146] pci 0000:06:00.0: BAR 0: assigned [mem 0xa0000000-0xa0000fff]
> [  203.673161] pci 0000:06:00.1: BAR 0: assigned [mem 0xa0001000-0xa00010ff]
> [  203.673206] pci 0000:06:00.0: enabling device (0000 -> 0002)
> [  203.713249] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
> [  203.717571] ohci-pci: OHCI PCI platform driver
> [  204.684594] pci 0000:06:00.0: OHCI: BIOS handoff failed (BIOS bug?) ffffffff
> [  204.684882] pci 0000:06:00.0: quirk_usb_early_handoff+0x0/0x740 took 987793 usecs
> [  204.685160] ohci-pci 0000:06:00.0: OHCI PCI host controller
> [  204.685178] ohci-pci 0000:06:00.0: new USB bus registered, assigned bus number 6
> [  215.022336] ohci-pci 0000:06:00.0: USB HC takeover failed!  (BIOS/SMM bug)
> [  215.022352] ohci-pci 0000:06:00.0: can't setup: -16
> [  215.022364] ohci-pci 0000:06:00.0: USB bus 6 deregistered
> [  215.022569] ohci-pci 0000:06:00.0: init 0000:06:00.0 fail, -16
> [  215.022578] ohci-pci: probe of 0000:06:00.0 failed with error -16

There is no panic.  The driver failed because the firmware (BIOS) did 
not behave the way it is supposed to.

> [  215.022620] pci 0000:06:00.1: enabling device (0000 -> 0002)
> [  215.022787] pci 0000:06:00.1: EHCI: unrecognized capability 31
> [  215.022993] ehci-pci 0000:06:00.1: enabling device (0000 -> 0002)
> [  215.023177] ehci-pci 0000:06:00.1: EHCI Host Controller
> [  215.023193] ehci-pci 0000:06:00.1: new USB bus registered, assigned bus number 6
> [  215.023270] ehci-pci 0000:06:00.1: can't setup: -19
> [  215.023278] ehci-pci 0000:06:00.1: USB bus 6 deregistered
> [  215.023435] ehci-pci 0000:06:00.1: init 0000:06:00.1 fail, -19

There is no panic.  The driver failed, because the chip has an extended 
capability bit set which the driver doesn't recognize.

If you can provide documentation (that is, the datasheet) for this new 
chip, I will try to update the driver.

> /////////////////////////////////////////////new version chip////////////////////////////////

This is the old version, not the new version.

> [  246.203555] pcmcia_socket pcmcia_socket0: pccard: card ejected from slot 0
> [  281.945950] pcmcia_socket pcmcia_socket0: pccard: CardBus card inserted into slot 0
> [  281.945991] pci 0000:06:00.0: [1033:0035] type 00 class 0x0c0310
> [  281.946022] pci 0000:06:00.0: reg 0x10: [mem 0x00000000-0x00000fff]
> [  281.946147] pci 0000:06:00.0: supports D1 D2
> [  281.946153] pci 0000:06:00.0: PME# supported from D0 D1 D2 D3hot
> [  281.946353] pci 0000:06:00.1: [1033:0035] type 00 class 0x0c0310
> [  281.946384] pci 0000:06:00.1: reg 0x10: [mem 0x00000000-0x00000fff]
> [  281.946494] pci 0000:06:00.1: supports D1 D2
> [  281.946500] pci 0000:06:00.1: PME# supported from D0 D1 D2 D3hot
> [  281.946654] pci 0000:06:00.2: [1033:00e0] type 00 class 0x0c0320
> [  281.946682] pci 0000:06:00.2: reg 0x10: [mem 0x00000000-0x000000ff]
> [  281.946791] pci 0000:06:00.2: supports D1 D2
> [  281.946797] pci 0000:06:00.2: PME# supported from D0 D1 D2 D3hot
> [  281.946940] pci 0000:06:00.0: BAR 0: assigned [mem 0xa0000000-0xa0000fff]
> [  281.946955] pci 0000:06:00.1: BAR 0: assigned [mem 0xa0001000-0xa0001fff]
> [  281.946966] pci 0000:06:00.2: BAR 0: assigned [mem 0xa0002000-0xa00020ff]
> [  281.947015] pci 0000:06:00.0: enabling device (0000 -> 0002)
> [  281.947602] ohci-pci 0000:06:00.0: OHCI PCI host controller
> [  281.947620] ohci-pci 0000:06:00.0: new USB bus registered, assigned bus number 6
> [  281.947671] ohci-pci 0000:06:00.0: irq 22, io mem 0xa0000000
> [  282.035868] usb usb6: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 5.17
> [  282.035884] usb usb6: New USB device strings: Mfr=3, Product=2, SerialNumber=1
> [  282.035890] usb usb6: Product: OHCI PCI host controller
> [  282.035894] usb usb6: Manufacturer: Linux 5.17.0-1-686-pae ohci_hcd
> [  282.035898] usb usb6: SerialNumber: 0000:06:00.0
> [  282.036770] hub 6-0:1.0: USB hub found
> [  282.036803] hub 6-0:1.0: 3 ports detected
> [  282.037202] pci 0000:06:00.1: enabling device (0000 -> 0002)
> [  282.037729] ohci-pci 0000:06:00.1: OHCI PCI host controller
> [  282.037743] ohci-pci 0000:06:00.1: new USB bus registered, assigned bus number 7
> [  282.037785] ohci-pci 0000:06:00.1: irq 22, io mem 0xa0001000
> [  282.123823] usb usb7: New USB device found, idVendor=1d6b, idProduct=0001, bcdDevice= 5.17
> [  282.123834] usb usb7: New USB device strings: Mfr=3, Product=2, SerialNumber=1
> [  282.123837] usb usb7: Product: OHCI PCI host controller
> [  282.123840] usb usb7: Manufacturer: Linux 5.17.0-1-686-pae ohci_hcd
> [  282.123843] usb usb7: SerialNumber: 0000:06:00.1
> [  282.124083] hub 7-0:1.0: USB hub found
> [  282.124097] hub 7-0:1.0: 2 ports detected
> [  282.124322] pci 0000:06:00.2: enabling device (0000 -> 0002)
> [  282.274237] ehci-pci 0000:06:00.2: EHCI Host Controller
> [  282.274264] ehci-pci 0000:06:00.2: new USB bus registered, assigned bus number 8
> [  282.274352] ehci-pci 0000:06:00.2: irq 22, io mem 0xa0002000
> [  282.289879] ehci-pci 0000:06:00.2: USB 2.0 started, EHCI 1.00
> [  282.290070] usb usb8: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.17
> [  282.290082] usb usb8: New USB device strings: Mfr=3, Product=2, SerialNumber=1
> [  282.290089] usb usb8: Product: EHCI Host Controller
> [  282.290095] usb usb8: Manufacturer: Linux 5.17.0-1-686-pae ehci_hcd
> [  282.290100] usb usb8: SerialNumber: 0000:06:00.2
> [  282.290433] hub 8-0:1.0: USB hub found
> [  282.290459] hub 8-0:1.0: 5 ports detected
> [  282.369991] hub 6-0:1.0: USB hub found
> [  282.370034] hub 6-0:1.0: 3 ports detected
> [  282.446002] hub 7-0:1.0: USB hub found
> [  282.446039] hub 7-0:1.0: 2 ports detected
> 
> 06:00.0 USB controller: NEC Corporation OHCI USB Controller (rev 44)
> 06:00.1 USB controller: NEC Corporation uPD72010x USB 2.0 Controller (rev 05)
> 
> 05:06.0 CardBus bridge: Ricoh Co Ltd RL5c475 (rev 80)
> 06:00.0 USB controller: NEC Corporation OHCI USB Controller (rev 43)
> 06:00.1 USB controller: NEC Corporation OHCI USB Controller (rev 43)
> 06:00.2 USB controller: NEC Corporation uPD72010x USB 2.0 Controller (rev 04)

What does "lspci -vv -s 6:00.1" for the new version chip show?

Alan Stern

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

* Re: Re: BUG report: ohci-pci ehci-pci , newer nec chip failed
       [not found]   ` <1582a60e.34.1808632ac75.Coremail.yxj790222@163.com>
@ 2022-05-02 19:39     ` Alan Stern
  2022-05-02 20:07       ` 尤晓杰
  0 siblings, 1 reply; 3+ messages in thread
From: Alan Stern @ 2022-05-02 19:39 UTC (permalink / raw)
  To: 尤晓杰; +Cc: USB mailing list

On Tue, May 03, 2022 at 03:15:09AM +0800, 尤晓杰 wrote:

Please use Reply-To-All so that your messages get sent to the mailing 
list as well as to me.

> [33628.797708] pci 0000:06:00.1: EHCI: unrecognized capability 95
> [33628.797713] pci 0000:06:00.1: EHCI: unrecognized capability 95
> [33628.797718] pci 0000:06:00.1: EHCI: unrecognized capability 95
> [33628.797723] pci 0000:06:00.1: EHCI: capability loop?
> [33628.798098] ehci-pci 0000:06:00.1: EHCI Host Controller
> [33628.798115] ehci-pci 0000:06:00.1: new USB bus registered, assigned bus number 6
> [33628.798195] ehci-pci 0000:06:00.1: can't setup: -19
> [33628.798203] ehci-pci 0000:06:00.1: USB bus 6 deregistered
> [33628.798358] ehci-pci 0000:06:00.1: init 0000:06:00.1 fail, -19
> 
> 
> 
> 
> each time, capability is random.

That sounds like a bug in the chip.

> allan@debian:~$ sudo lspci -vv -s 6:00.1
> 06:00.1 USB controller: NEC Corporation uPD72010x USB 2.0 Controller (rev 05) (prog-if 20 [EHCI])
>     Subsystem: NEC Corporation uPD72010x USB 2.0 Controller
>     Control: I/O- Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-

That line looks very peculiar.  Do you get the same thing for the older 
chip version?

>     Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
>     Interrupt: pin A routed to IRQ 22
>     Region 0: Memory at a0001000 (32-bit, non-prefetchable) [virtual] [size=256]
>     Capabilities: [fc] Null
>     Kernel modules: ehci_pci

Compare this with similar output on my system:

05:04.2 USB controller: VIA Technologies, Inc. USB 2.0 EHCI-Compliant Host-Controller (rev 65) (prog-if 20 [EHCI])
	Subsystem: VIA Technologies, Inc. USB 2.0 Controller
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 32, Cache Line Size: 64 bytes
	Interrupt: pin C routed to IRQ 16
	Region 0: Memory at f7c00000 (32-bit, non-prefetchable) [size=256]
	Capabilities: [80] Power Management version 2
		Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=375mA PME(D0+,D1+,D2+,D3hot+,D3cold+)
		Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
	Kernel driver in use: ehci-pci

> by the way, because I use cardbus, is it possible the fault of ricoh cardbus pci bridge's fault?

That's possible.  But then why does it work okay for the earlier version 
of the chip?

> thanks!!

Alan Stern

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

* Re:Re: Re: BUG report: ohci-pci ehci-pci , newer nec chip failed
  2022-05-02 19:39     ` Alan Stern
@ 2022-05-02 20:07       ` 尤晓杰
  0 siblings, 0 replies; 3+ messages in thread
From: 尤晓杰 @ 2022-05-02 20:07 UTC (permalink / raw)
  To: Alan Stern, linux-usb



yes, this line is strange , none i/o none mem, something wrong. only ohci.



06:00.0 USB controller: NEC Corporation OHCI USB Controller (rev 44) (prog-if 10 [OHCI])
    Subsystem: NEC Corporation USB Controller
    Control: I/O- Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
    Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
    Interrupt: pin A routed to IRQ 22
    Region 0: Memory at a0000000 (32-bit, non-prefetchable) [virtual] [size=4K]
    Capabilities: [fc] Null
    Kernel modules: ohci_pci

06:00.1 USB controller: NEC Corporation uPD72010x USB 2.0 Controller (rev 05) (prog-if 20 [EHCI])
    Subsystem: NEC Corporation uPD72010x USB 2.0 Controller
    Control: I/O- Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
    Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
    Interrupt: pin A routed to IRQ 22
    Region 0: Memory at a0001000 (32-bit, non-prefetchable) [virtual] [size=256]
    Capabilities: [fc] Null
    Kernel modules: ehci_pci



compared with old chip


06:00.0 USB controller: NEC Corporation OHCI USB Controller (rev 43) (prog-if 10 [OHCI])
    Subsystem: Adaptec OHCI USB Controller
    Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
    Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
    Latency: 64 (250ns min, 10500ns max), Cache Line Size: 32 bytes
    Interrupt: pin A routed to IRQ 22
    Region 0: Memory at a0000000 (32-bit, non-prefetchable) [size=4K]
    Capabilities: [40] Power Management version 2
        Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0+,D1+,D2+,D3hot+,D3cold-)
        Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME+
    Kernel driver in use: ohci-pci
    Kernel modules: ohci_pci

06:00.1 USB controller: NEC Corporation OHCI USB Controller (rev 43) (prog-if 10 [OHCI])
    Subsystem: Adaptec OHCI USB Controller
    Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
    Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
    Latency: 64 (250ns min, 10500ns max), Cache Line Size: 32 bytes
    Interrupt: pin B routed to IRQ 22
    Region 0: Memory at a0001000 (32-bit, non-prefetchable) [size=4K]
    Capabilities: [40] Power Management version 2
        Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0+,D1+,D2+,D3hot+,D3cold-)
        Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME+
    Kernel driver in use: ohci-pci
    Kernel modules: ohci_pci

06:00.2 USB controller: NEC Corporation uPD72010x USB 2.0 Controller (rev 04) (prog-if 20 [EHCI])
    Subsystem: Adaptec uPD72010x USB 2.0 Controller
    Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
    Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
    Latency: 68 (4000ns min, 8500ns max), Cache Line Size: 32 bytes
    Interrupt: pin C routed to IRQ 22
    Region 0: Memory at a0002000 (32-bit, non-prefetchable) [size=256]
    Capabilities: [40] Power Management version 2
        Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0+,D1+,D2+,D3hot+,D3cold-)
        Status: D0 NoSoftRst- PME-Enable- DSel=0 DScale=0 PME-
    Kernel driver in use: ehci-pci
    Kernel modules: ehci_pci


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

end of thread, other threads:[~2022-05-02 20:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <2b564264.1963.18084f0e7a6.Coremail.yxj790222@163.com>
2022-05-02 14:38 ` BUG report: ohci-pci ehci-pci , newer nec chip failed Alan Stern
     [not found]   ` <1582a60e.34.1808632ac75.Coremail.yxj790222@163.com>
2022-05-02 19:39     ` Alan Stern
2022-05-02 20:07       ` 尤晓杰

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.