Re: [TESTPATCH] xhci: custom debug patch for command mismatch

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 25 Aug 2015 14:51:56 +0300, Mathias Nyman
<mathias.nyman@xxxxxxxxxxxxxxx> wrote:
> Add extra command ring, event ring and command queue debugging
> to get more info on command mismatch error triggered by
> Vincent Pelletier on BayTrail

Thanks, applied, built and loaded on target.

> will blurt out around 500 lines when hitting a command mismatch

I'm not sure how I'll get this (I have a lot to learn about kernel
debugging).

FWIW, I gave a try at unloading and reloading just xhci_pci, and the
error did not pop up after more than 30 cycles. I wonder if this means
BIOS legacy mode would be messing with the wrong knob, or there would
be a timing issue in bios-to-kernel transition.

For reference, below are the command I used while
  tail -f /var/log/messages
was running in another terminal, and the output of one iteration.
"sleep" is just here to let the block layer time to scan for partitions.

# for INDEX in $(seq 30); do logger "TRY $INDEX" ; rmmod xhci_pci; modprobe xhci_pci; sleep 4; done

Aug 25 21:00:17 boke vincent: TRY 30
Aug 25 21:00:17 boke kernel: [12189.241047] xhci_hcd 0000:00:14.0: remove, state 4
Aug 25 21:00:17 boke kernel: [12189.241070] usb usb2: USB disconnect, device number 1
Aug 25 21:00:17 boke kernel: [12189.241077] usb 2-1: USB disconnect, device number 2
Aug 25 21:00:17 boke kernel: [12189.242468] xhci_hcd 0000:00:14.0: USB bus 2 deregistered
Aug 25 21:00:17 boke kernel: [12189.242489] xhci_hcd 0000:00:14.0: remove, state 1
Aug 25 21:00:17 boke kernel: [12189.242507] usb usb1: USB disconnect, device number 1
Aug 25 21:00:17 boke kernel: [12189.242513] usb 1-1: USB disconnect, device number 2
Aug 25 21:00:17 boke kernel: [12189.243109] usb 1-4: USB disconnect, device number 3
Aug 25 21:00:17 boke kernel: [12189.292936] xhci_hcd 0000:00:14.0: USB bus 1 deregistered
Aug 25 21:00:17 boke kernel: [12189.317727] xhci_hcd 0000:00:14.0: xHCI Host Controller
Aug 25 21:00:17 boke kernel: [12189.317744] xhci_hcd 0000:00:14.0: new USB bus registered, assigned bus number 1
Aug 25 21:00:17 boke kernel: [12189.396920] xhci_hcd 0000:00:14.0: hcc params 0x200071e1 hci version 0x100 quirks 0x00009810
Aug 25 21:00:17 boke kernel: [12189.403037] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
Aug 25 21:00:17 boke kernel: [12189.403043] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
Aug 25 21:00:17 boke kernel: [12189.403046] usb usb1: Product: xHCI Host Controller
Aug 25 21:00:17 boke kernel: [12189.403048] usb usb1: Manufacturer: Linux 4.1.4+ xhci-hcd
Aug 25 21:00:17 boke kernel: [12189.403051] usb usb1: SerialNumber: 0000:00:14.0
Aug 25 21:00:17 boke kernel: [12189.403494] hub 1-0:1.0: USB hub found
Aug 25 21:00:17 boke kernel: [12189.403513] hub 1-0:1.0: 6 ports detected
Aug 25 21:00:17 boke kernel: [12189.415715] xhci_hcd 0000:00:14.0: xHCI Host Controller
Aug 25 21:00:17 boke kernel: [12189.415734] xhci_hcd 0000:00:14.0: new USB bus registered, assigned bus number 2
Aug 25 21:00:17 boke kernel: [12189.415857] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003
Aug 25 21:00:17 boke kernel: [12189.415861] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
Aug 25 21:00:17 boke kernel: [12189.415864] usb usb2: Product: xHCI Host Controller
Aug 25 21:00:17 boke kernel: [12189.415866] usb usb2: Manufacturer: Linux 4.1.4+ xhci-hcd
Aug 25 21:00:17 boke kernel: [12189.415869] usb usb2: SerialNumber: 0000:00:14.0
Aug 25 21:00:17 boke kernel: [12189.416154] hub 2-0:1.0: USB hub found
Aug 25 21:00:17 boke kernel: [12189.416169] hub 2-0:1.0: 1 port detected
Aug 25 21:00:18 boke kernel: [12189.715846] usb 1-1: new high-speed USB device number 2 using xhci_hcd
Aug 25 21:00:18 boke kernel: [12189.727977] usb 2-1: new SuperSpeed USB device number 2 using xhci_hcd
Aug 25 21:00:18 boke kernel: [12189.746396] usb 2-1: New USB device found, idVendor=05e3, idProduct=0617
Aug 25 21:00:18 boke kernel: [12189.746404] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Aug 25 21:00:18 boke kernel: [12189.746410] usb 2-1: Product: USB3.0 Hub
Aug 25 21:00:18 boke kernel: [12189.746415] usb 2-1: Manufacturer: GenesysLogic
Aug 25 21:00:18 boke kernel: [12189.748478] hub 2-1:1.0: USB hub found
Aug 25 21:00:18 boke kernel: [12189.748749] hub 2-1:1.0: 4 ports detected
Aug 25 21:00:18 boke kernel: [12189.853414] usb 1-1: New USB device found, idVendor=05e3, idProduct=0610
Aug 25 21:00:18 boke kernel: [12189.853424] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Aug 25 21:00:18 boke kernel: [12189.853430] usb 1-1: Product: USB2.0 Hub
Aug 25 21:00:18 boke kernel: [12189.853435] usb 1-1: Manufacturer: GenesysLogic
Aug 25 21:00:18 boke kernel: [12189.854340] hub 1-1:1.0: USB hub found
Aug 25 21:00:18 boke kernel: [12189.854757] hub 1-1:1.0: 4 ports detected
Aug 25 21:00:18 boke kernel: [12190.024031] usb 1-4: new high-speed USB device number 3 using xhci_hcd
Aug 25 21:00:18 boke kernel: [12190.153360] usb 1-4: New USB device found, idVendor=1005, idProduct=b155
Aug 25 21:00:18 boke kernel: [12190.153368] usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Aug 25 21:00:18 boke kernel: [12190.153374] usb 1-4: Product: USB DISK MODULE
Aug 25 21:00:18 boke kernel: [12190.153379] usb 1-4: Manufacturer:         
Aug 25 21:00:18 boke kernel: [12190.153384] usb 1-4: SerialNumber: 190047218A9B0B32
Aug 25 21:00:18 boke kernel: [12190.153975] usb-storage 1-4:1.0: USB Mass Storage device detected
Aug 25 21:00:18 boke kernel: [12190.154153] scsi host67: usb-storage 1-4:1.0
Aug 25 21:00:19 boke kernel: [12191.153301] scsi 67:0:0:0: Direct-Access              USB DISK MODULE  PMAP PQ: 0 ANSI: 0 CCS
Aug 25 21:00:19 boke kernel: [12191.154065] sd 67:0:0:0: Attached scsi generic sg6 type 0
Aug 25 21:00:19 boke kernel: [12191.156002] sd 67:0:0:0: [sdg] 1007616 512-byte logical blocks: (515 MB/492 MiB)
Aug 25 21:00:19 boke kernel: [12191.158680] sd 67:0:0:0: [sdg] Write Protect is off
Aug 25 21:00:19 boke kernel: [12191.185604]  sdg: sdg1 sdg2
Aug 25 21:00:19 boke kernel: [12191.191764] sd 67:0:0:0: [sdg] Attached SCSI removable disk

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



[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux