NetBSD-Bugs archive

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

Re: kern/11018 (VIA VT83C572 UHCI USB controller does not work)



The following reply was made to PR kern/11018; it has been noted by GNATS.

From: Izumi Tsutsui <tsutsui%ceres.dti.ne.jp@localhost>
To: skrll%netbsd.org@localhost
Cc: gnats-bugs%NetBSD.org@localhost, tsutsui%ceres.dti.ne.jp@localhost
Subject: Re: kern/11018 (VIA VT83C572 UHCI USB controller does not work)
Date: Sat, 19 Oct 2013 11:40:05 +0900

 > Can you change uhci_debug to 16, add a call to uhci_dump in 
 > uhci_check_intr just before the
 > 
 >                  /* If the last TD is not marked active we can complete */
 > 
 > comment and send the output, please?
 
 It seems debug printf mangles interrupt (causes infinite loop):
 
 ---
 vmmask 5f000000 schedmask 7f000000 highmask 7f000000
 scsibus0: waiting 2 seconds for devices to settle...
 uhci_open: pipe=0x3ecdc08, addr=0, endpt=0 (0)
 uhci_root_ctrl_control type=0x80 request=06
 uhci_root_ctrl_control wValue=0x0100
 uhci_root_ctrl_control type=0x00 request=05
 uhci_root_ctrl_close
 uhci_open: pipe=0x3ecdc08, addr=1, endpt=0 (1)
 uhci_root_ctrl_control type=0x80 request=06
 uhci_root_ctrl_control wValue=0x0100
 uhci_root_ctrl_control type=0x80 request=06
 uhci_root_ctrl_control wValue=0x0300
 uhci_root_ctrl_control type=0x80 request=06
 uhci_root_ctrl_control wValue=0x0300
 uhci_root_ctrl_control type=0x80 request=06
 uhci_root_ctrl_control wValue=0x0301
 uhci_root_ctrl_control type=0x80 request=06
 uhci_root_ctrl_control wValue=0x0301
 uhci_root_ctrl_control type=0x80 request=06
 uhci_root_ctrl_control wValue=0x0302
 uhci_root_ctrl_control type=0x80 request=06
 uhci_root_ctrl_control wValue=0x0302
 uhub_match, uaa=0xbbedf8
 uhub0 at usb0uhub_attach
 uhci_root_ctrl_control type=0x80 request=06
 uhci_root_ctrl_control wValue=0x0301
 uhci_root_ctrl_control type=0x80 request=06
 uhci_root_ctrl_control wValue=0x0301
 uhci_root_ctrl_control type=0x80 request=06
 uhci_root_ctrl_control wValue=0x0302
 uhci_root_ctrl_control type=0x80 request=06
 uhci_root_ctrl_control wValue=0x0302
 : VIA Technologies UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
 uhci_root_ctrl_control type=0x80 request=06
 uhci_root_ctrl_control wValue=0x0200
 uhci_root_ctrl_control type=0x80 request=06
 uhci_root_ctrl_control wValue=0x0200
 uhci_root_ctrl_control type=0x00 request=09
 uhub_attach: getting hub descriptor
 uhci_root_ctrl_control type=0xa0 request=06
 uhci_open: pipe=0x3ecdb88, addr=1, endpt=129 (1)
 uhci_root_intr_start: xfer=0x3df7ea0 len=1 flags=132
 uhub_intr: sc=0x3e9f0c8
 uhci_root_ctrl_control type=0x23 request=03
 usb_init_port: turn on port 1 power
 uhci_root_ctrl_control type=0x23 request=03
 usb_init_port: turn on port 2 power
 uhub_intr: sc=0x3e9f0c8
 adbkbd0 at nadb0 addr 2: extended keyboard
 wskbd0 at adbkbd0 mux 1
 wsmouse0 at adbkbd0 mux 0
 adbms0 at nadb0 addr 3: 1-button, 100 dpi mouse
 wsmouse1 at adbms0 mux 0
 uhub_intr: sc=0x3e9f0c8
 uhub_explore dev=0x3ecdc88 addr=1
 uhci_root_ctrl_control type=0xa0 request=00
 uhci_root_ctrl_control type=0xa3 request=00
 uhub_explore: C_PORT_ENABLED
 uhci_root_ctrl_control type=0x23 request=01
 uhci_root_ctrl_control: UR_CLEAR_PORT_FEATURE port=1 feature=17
 uhub_explore: status change hub=1 port=1
 uhci_root_ctrl_control type=0x23 request=01
 uhci_root_ctrl_control: UR_CLEAR_PORT_FEATURE port=1 feature=16
 uhub_intr: sc=0x3e9f0c8
 uhci_root_ctrl_control type=0x23 request=03
 uhub_intr: sc=0x3e9f0c8
 uhci port 1 reset, status0 = 0x038a
 uhci port 1 reset, status1 = 0x01ab
 uhci port 1 iteration 9, status = 0x01af
 uhub_intr: sc=0x3e9f0c8
 uhci port 1 iteration 8, status = 0x01a5
 uhci port 1 reset, status2 = 0x01a5
 uhci_root_ctrl_control type=0xa3 request=00
 uhci_root_ctrl_control type=0x23 request=01
 uhci_root_ctrl_control: UR_CLEAR_PORT_FEATURE port=1 feature=20
 uhub_intr: sc=0x3e9f0c8
 uhci_root_ctrl_control type=0xa3 request=00
 uhci_open: pipe=0x3ecd788, addr=0, endpt=0 (1)
 uhci_device_control type=0x80, request=0x06, wValue=0x0100, wIndex=0x0000 
len=64, addr=0, endpt=0
 uhci_alloc_std_chain: addr=0 endpt=0 len=64 speed=1 flags=0x6
 uhci_alloc_std_chain: maxp=8 ntd=8
 uhci_alloc_std_chain: nexttog=1
 uhci_device_request: before transfer
 TD(0xba67a0) at 00ba67a0 = link=0x00ba65f0 status=0x1c800000 token=0x00e0002d 
buffer=0x00bdbf80
   0xba65f0> 0x1c800000<ACTIVE,LS>,errcnt=3,actlen=1 
pid=2d,addr=0,endpt=0,D=0,maxlen=8
 TD(0xba65f0) at 00ba65f0 = link=0x00ba6620 status=0x3c8003ff token=0x00e80069 
buffer=0x00bdbf40
   0xba6620> 0x3c8003ff<ACTIVE,LS,SPD>,errcnt=3,actlen=0 
pid=69,addr=0,endpt=0,D=1,maxlen=8
 TD(0xba6620) at 00ba6620 = link=0x00ba6650 status=0x3c8003ff token=0x00e00069 
buffer=0x00bdbf48
   0xba6650> 0x3c8003ff<ACTIVE,LS,SPD>,errcnt=3,actlen=0 
pid=69,addr=0,endpt=0,D=0,maxlen=8
 TD(0xba6650) at 00ba6650 = link=0x00ba6680 status=0x3c8003ff token=0x00e80069 
buffer=0x00bdbf50
   0xba6680> 0x3c8003ff<ACTIVE,LS,SPD>,errcnt=3,actlen=0 
pid=69,addr=0,endpt=0,D=1,maxlen=8
 TD(0xba6680) at 00ba6680 = link=0x00ba66b0 status=0x3c8003ff token=0x00e00069 
buffer=0x00bdbf58
   0xba66b0> 0x3c8003ff<ACTIVE,LS,SPD>,errcnt=3,actlen=0 
pid=69,addr=0,endpt=0,D=0,maxlen=8
 TD(0xba66b0) at 00ba66b0 = link=0x00ba66e0 status=0x3c8003ff token=0x00e80069 
buffer=0x00bdbf60
   0xba66e0> 0x3c8003ff<ACTIVE,LS,SPD>,errcnt=3,actlen=0 
pid=69,addr=0,endpt=0,D=1,maxlen=8
 TD(0xba66e0) at 00ba66e0 = link=0x00ba6710 status=0x3c8003ff token=0x00e00069 
buffer=0x00bdbf68
   0xba6710> 0x3c8003ff<ACTIVE,LS,SPD>,errcnt=3,actlen=0 
pid=69,addr=0,endpt=0,D=0,maxlen=8
 TD(0xba6710) at 00ba6710 = link=0x00ba6740 status=0x3c8003ff token=0x00e80069 
buffer=0x00bdbf70
   0xba6740> 0x3c8003ff<ACTIVE,LS,SPD>,errcnt=3,actlen=0 
pid=69,addr=0,endpt=0,D=1,maxlen=8
 TD(0xba6740) at 00ba6740 = link=0x00ba6770 status=0x3c8003ff token=0x00e00069 
buffer=0x00bdbf78
   0xba6770> 0x3c8003ff<ACTIVE,LS,SPD>,errcnt=3,actlen=0 
pid=69,addr=0,endpt=0,D=0,maxlen=8
 TD(0xba6770) at 00ba6770 = link=0x00000001 status=0x1d800000 token=0xffe800e1 
buffer=0x00000000
   0x1<T> 0x1d800000<ACTIVE,IOC,LS>,errcnt=3,actlen=1 
pid=e1,addr=0,endpt=0,D=1,maxlen=0
 uhci_add_ls_ctrl: sqh=0xba4710
 uhci_enter_ctl_q: follow from [0]
 uhci0: uhci_intr1
 uhci0 regs: cmd=0081, sts=0001, intr=000f, frnum=03c7, flbase=00b9e000, 
sof=0040, portsc1=01a5, portsc2=008a
 uhci0: uhci_intr: exit
 uhci0: uhci_intr1
 uhci0 regs: cmd=0081, sts=0001, intr=000f, frnum=03ef, flbase=00b9e000, 
sof=0040, portsc1=01a5, portsc2=008a
 uhci0: uhci_intr: exit
 uhci0: uhci_intr1
 uhci0 regs: cmd=0081, sts=0001, intr=000f, frnum=0417, flbase=00b9e000, 
sof=0040, portsc1=01a5, portsc2=008a
 uhci0: uhci_intr: exit
 uhci0: uhci_intr1
 uhci0 regs: cmd=0081, sts=0001, intr=000f, frnum=043f, flbase=00b9e000, 
sof=0040, portsc1=01a5, portsc2=008a
 uhci0: uhci_intr: exit
  :
 [ repeat forever ]
 ---
 
 Needs some conditional around debug dump?
 
 ---
 Izumi Tsutsui
 


Home | Main Index | Thread Index | Old Index