9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] imac keyboard issues
@ 2014-03-04 18:37 erik quanstrom
  2014-03-05 11:02 ` Richard Miller
  0 siblings, 1 reply; 7+ messages in thread
From: erik quanstrom @ 2014-03-04 18:37 UTC (permalink / raw)
  To: 9fans

here's a detailed trace of an imac keyboard not playing nice.  setting the
address → transaction error.
	/boot/usbd: /dev/usb/ep6.0: port 3: attach setaddress: transaction error

here's the trace:

ivey# /boot/usbd: /dev/usb/ep3.0: port 2 attach sts 0x101
/dev/usb/ep3.0: h2d|cls|oth setfeat val 0|1 idx 2 cnt 0 out[8]  23 03 01 00 02 00 00 00
/dev/usb/ep3.0: h2d|cls|oth setfeat val 0|4 idx 2 cnt 0 out[8]  23 03 04 00 02 00 00 00
/boot/usbd: /dev/usb/ep3.0: port 2: attached status 0x103
/boot/usbd: opendev 0x437f90 /dev/usb/ep6.0
usb: ep6.0 debug 1
usbopen q 0x1c fid 283 omode 2
ehci: epopen ep6.0
ehci port 0xfffffe00fbb22000 frames 0xfffffffff0d54000 (1024 fr.) nintr 960 ntdintr 959 nqhintr 0 nisointr 0
	cmd 0x10031 sts 0xc000 intr 0x37 frno 14743 base 0xd54000 link 0xd55700 fr0 0xd52502
	p0 0x1005 p1 0x1000 
qh 0xfffffffff0d51500 ep 0 dev 0 hub 0 port 0 link d55702Q  clink 0x0
	nrld 0 nak 0 max 0 h high mult 0 scm 0x0 ism 0x0

	ovl 0xfffffffff0d930a0 nlink 1T alink 1T out
	d0 --h----z ss max 0 pg 0 off 0x0
	buffs: 0x0 0x0 0x0 0x0 0x0
epc 0xfffffffff0d55700 ep 0 dev 0 hub 3 port 2 link d55482Q  clink 0x0
	nrld 8 nak 0 max 64 cd full mult 1 scm 0x1c ism 0x0

	ovl 0xfffffffff0d930a0 nlink 1T alink 1T out
	d0 --h----z ss max 0 pg 0 off 0x0
	buffs: 0x0 0x0 0x0 0x0 0x0
epc 0xfffffffff0d55480 ep 0 dev 3 hub 2 port 1 link d51502Q  clink 0xd55700
	nrld 8 nak 8 max 64 d high mult 1 scm 0x1c ism 0x0

	ovl 0xfffffffff0d930a0 nlink 1T alink 11T out
	d0 -ih----- ss max 0 pg 0 off 0x758
	buffs: 0xd55 0xd56 0xd57 0xd58 0xd59
63 eds in tree
192 eds allocated = 134 in use + 58 free
ehci: epopen done
	address 6
/dev/usb/ep6.0: h2d|std|dev setaddr val 0|6 idx 0 cnt 0 out[8]  00 05 06 00 00 00 00 00
usb epctl address
/dev/usb/ep6.0: d2h|std|dev getdesc val 1|0 idx 0 cnt 64 out[8]  80 06 00 01 00 00 40 00
epread:  0x4281c0[8]: 1201100109000008
/dev/usb/ep6.0: in[8]  12 01 10 01 09 00 00 08
/boot/usbd; /dev/usb/ep3.0: port 2: maxpkt 8
usb epctl maxpkt 8
/dev/usb/ep6.0: d2h|std|dev getdesc val 1|0 idx 0 cnt 18 out[8]  80 06 00 01 00 00 12 00
epread:  0x4281ce[18]: 1201100109000008AC05...
/dev/usb/ep6.0: in[18]  12 01 10 01 09 00 00 08 ac 05 03 10 20 04 01 02 00 01
/boot/usbd: parsedev /dev/usb/ep6.0:  12 01 10 01 09 00 00 08 ac 05 03 10 20 04 01 02 00 01
/dev/usb/ep6.0: d2h|std|dev getdesc val 3|1 idx 0 cnt 256 out[8]  80 06 01 03 00 00 00 01
epread:  0x428078[34]: 22034D00690074007300...
/dev/usb/ep6.0: in[34]  22 03 4d 00 69 00 74 00 73 00 75 00 6d 00 69 00 20 00 45 00 6c 00 65 00 63 00 74 00 72 00 69 00 63 00
/dev/usb/ep6.0: d2h|std|dev getdesc val 3|1 idx 77 cnt 256 out[8]  80 06 01 03 4d 00 00 01
epread:  0x428078[34]: 22034D00690074007300...
/dev/usb/ep6.0: in[34]  22 03 4d 00 69 00 74 00 73 00 75 00 6d 00 69 00 20 00 45 00 6c 00 65 00 63 00 74 00 72 00 69 00 63 00
/dev/usb/ep6.0: d2h|std|dev getdesc val 3|2 idx 0 cnt 256 out[8]  80 06 02 03 00 00 00 01
epread:  0x428078[70]: 46034800750062002000...
/dev/usb/ep6.0: in[70]  46 03 48 00 75 00 62 00 20 00 69 00 6e 00 20 00 41 00 70 00 70 00 6c 00 65 00 20 00 45 00 78 00 74 00 65 00 6e 00 64 00 65 00 64 00 20 00 55 00 53 00 42 00 20 00 4b 00 65 00 79 00 62 00 6f 00 61 00 72 00 64 00
/dev/usb/ep6.0: d2h|std|dev getdesc val 3|2 idx 72 cnt 256 out[8]  80 06 02 03 48 00 00 01
epread:  0x428078[70]: 46034800750062002000...
/dev/usb/ep6.0: in[70]  46 03 48 00 75 00 62 00 20 00 69 00 6e 00 20 00 41 00 70 00 70 00 6c 00 65 00 20 00 45 00 78 00 74 00 65 00 6e 00 64 00 65 00 64 00 20 00 55 00 53 00 42 00 20 00 4b 00 65 00 79 00 62 00 6f 00 61 00 72 00 64 00
/dev/usb/ep6.0: d2h|std|dev getdesc val 2|0 idx 0 cnt 4096 out[8]  80 06 00 02 00 00 00 10
epread:  0x438750[25]: 09021900010100A01909...
/dev/usb/ep6.0: in[25]  09 02 19 00 01 01 00 a0 19 09 04 00 00 01 09 00 00 00 07 05 81 03 01 00 ff
/boot/usbd:	parseconf   09 02 19 00 01 01 00 a0 19
/boot/usbd:		parsedesc interface 4[9]  09 04 00 00 01 09 00 00 00
/boot/usbd:		parsedesc endpoint 5[7]  07 05 81 03 01 00 ff
/dev/usb/ep6.0: h2d|std|dev setcnf val 0|1 idx 0 cnt 0 out[8]  00 09 01 00 00 00 00 00
/boot/usbd: /dev/usb/ep6.0 csp hub.0.0 vid 0x05ac did 0x1003 refs 1
	Mitsumi ElectricC Hub in Apple Extended USB Keyboard none
	conf: cval 1 attrib a0 50 mA
		iface csp hub.0.0
		  alt 0 attr 3 ival 255
		  ep id 1 addr 129 dir in type intr itype 0 maxpkt 1 ntds 1
/boot/usbd: /dev/usb/ep3.0: port 2: configed: /dev/usb/ep6.0
usb epctl info
/dev/usb/ep6.0: d2h|cls|dev getdesc val 41|0 idx 0 cnt 128 out[8]  a0 06 00 29 00 00 80 00
epread:  0x4281a4[9]: 0929030D00163208FF
/dev/usb/ep6.0: in[9]  09 29 03 0d 00 16 32 08 ff
usb epctl hub
usb epctl info
/dev/usb/ep6.0: h2d|cls|oth setfeat val 0|8 idx 1 cnt 0 out[8]  23 03 08 00 01 00 00 00
/dev/usb/ep6.0: h2d|cls|oth setfeat val 0|8 idx 2 cnt 0 out[8]  23 03 08 00 02 00 00 00
/dev/usb/ep6.0: h2d|cls|oth setfeat val 0|8 idx 3 cnt 0 out[8]  23 03 08 00 03 00 00 00
/boot/usbd: hub 0x4399f0 allocated: ports 3 pwrms 100 max curr 50 pwrm 1 cmp 1 leds 0
usb/hub... usb: ep6.0 debug 0
/boot/usbd: /dev/usb/ep6.0 port 1: sts - 0x0 -> - 0x100
/boot/usbd: /dev/usb/ep6.0 port 2: sts - 0x0 -> - 0x100
/boot/usbd: /dev/usb/ep6.0: port 3 attach sts 0x101
/dev/usb/ep6.0: h2d|cls|oth setfeat val 0|1 idx 3 cnt 0 out[8]  23 03 01 00 03 00 00 00
/dev/usb/ep6.0: h2d|cls|oth setfeat val 0|4 idx 3 cnt 0 out[8]  23 03 04 00 03 00 00 00
/boot/usbd: /dev/usb/ep6.0: port 3: attached status 0x103
/boot/usbd: opendev 0x438750 /dev/usb/ep7.0
usb: ep7.0 debug 1
usbopen q 0x20 fid 285 omode 2
ehci: epopen ep7.0
ehci port 0xfffffe00fbb22000 frames 0xfffffffff0d54000 (1024 fr.) nintr 1010 ntdintr 1009 nqhintr 0 nisointr 0
	cmd 0x10031 sts 0xc000 intr 0x37 frno 5248 base 0xd54000 link 0xd55780 fr0 0xd52502
	p0 0x1005 p1 0x1000 
qh 0xfffffffff0d51500 ep 0 dev 0 hub 0 port 0 link d55782Q  clink 0x0
	nrld 0 nak 0 max 0 h high mult 0 scm 0x0 ism 0x0
	ovl 0xfffffffff0d930a0 nlink 1T alink 1T out
	d0 --h----z ss max 0 pg 0 off 0x0
	buffs: 0x0 0x0 0x0 0x0 0x0
epc 0xfffffffff0d55780 ep 0 dev 0 hub 6 port 3 link d55702Q  clink 0x0
	nrld 8 nak 0 max 64 cd full mult 1 scm 0x1c ism 0x0
	ovl 0xfffffffff0d930a0 nlink 1T alink 1T out
	d0 --h----z ss max 0 pg 0 off 0x0
	buffs: 0x0 0x0 0x0 0x0 0x0
epc 0xfffffffff0d55700 ep 0 dev 6 hub 3 port 2 link d55482Q  clink 0xd55780
	nrld 8 nak 8 max 8 cd full mult 1 scm 0x1c ism 0x0
	ovl 0xfffffffff0d930a0 nlink 1T alink 11T out
	d0 -ih----- ss max 0 pg 0 off 0x7d8
	buffs: 0xd55 0xd56 0xd57 0xd58 0xd59
epc 0xfffffffff0d55480 ep 0 dev 3 hub 2 port 1 link d51502Q  clink 0xd55700
	nrld 8 nak 8 max 64 d high mult 1 scm 0x1c ism 0x0
	ovl 0xfffffffff0d930a0 nlink 1T alink 11T out
	d0 -ih----- ss max 0 pg 0 off 0x758
	buffs: 0xd55 0xd56 0xd57 0xd58 0xd59
63 eds in tree
192 eds allocated = 135 in use + 57 free
ehci: epopen done
/dev/usb/ep7.0: h2d|std|dev setaddr val 0|7 idx 0 cnt 0 out[8]  00 05 07 00 00 00 00 00
qhintr: td 0xfffffffff0d55800 csw 0x88248 error 0x48 transaction error
/dev/usb/ep7.0: h2d|std|dev setaddr val 0|7 idx 0 cnt 0 out[8]  00 05 07 00 00 00 00 00
qhintr: td 0xfffffffff0d55800 csw 0x88248 error 0x48 transaction error
/dev/usb/ep7.0: h2d|std|dev setaddr val 0|7 idx 0 cnt 0 out[8]  00 05 07 00 00 00 00 00
qhintr: td 0xfffffffff0d55800 csw 0x88248 error 0x48 transaction error
/dev/usb/ep7.0: h2d|std|dev setaddr val 0|7 idx 0 cnt 0 out[8]  00 05 07 00 00 00 00 00
qhintr: td 0xfffffffff0d55800 csw 0x88248 error 0x48 transaction error
/boot/usbd: /dev/usb/ep6.0: port 3: attach setaddress: transaction error
/dev/usb/ep6.0: h2d|cls|oth clrfeat val 0|1 idx 3 cnt 0 out[8]  23 01 01 00 03 00 00 00
usb epctl detach ep7.0
/boot/usbd: closedev 0x438750 /dev/usb/ep7.0
usbclose q 0x20 fid 285 ref 2
ehci: epclose ep7.0
ehci: cancelio for qh 0xfffffffff0d55780 state idle
usb: ep7.0 0xfffffffff115c830 released
/boot/usbd: /dev/usb/ep3.0 port 2: sts p 0x101 -> ep 0x103



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

* Re: [9fans] imac keyboard issues
  2014-03-04 18:37 [9fans] imac keyboard issues erik quanstrom
@ 2014-03-05 11:02 ` Richard Miller
  2014-03-05 13:34   ` erik quanstrom
  0 siblings, 1 reply; 7+ messages in thread
From: Richard Miller @ 2014-03-05 11:02 UTC (permalink / raw)
  To: 9fans

I wouldn't spend time on this ... there are many better & cheaper choices of keyboard
to use with plan 9.




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

* Re: [9fans] imac keyboard issues
  2014-03-05 11:02 ` Richard Miller
@ 2014-03-05 13:34   ` erik quanstrom
  2014-03-05 14:51     ` Richard Miller
  0 siblings, 1 reply; 7+ messages in thread
From: erik quanstrom @ 2014-03-05 13:34 UTC (permalink / raw)
  To: 9fans

On Wed Mar  5 06:02:56 EST 2014, 9fans@hamnavoe.com wrote:
> I wouldn't spend time on this ...  there are many better & cheaper
> choices of keyboard to use with plan 9.

since it's not clear to me what the issue is, and setaddress returns a
transaction error, i was going on the assumption that there was
something slightly off about ehci setup.  is this a bad assumption?

- erik



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

* Re: [9fans] imac keyboard issues
  2014-03-05 13:34   ` erik quanstrom
@ 2014-03-05 14:51     ` Richard Miller
  2014-03-05 15:18       ` erik quanstrom
  2014-03-05 15:18       ` erik quanstrom
  0 siblings, 2 replies; 7+ messages in thread
From: Richard Miller @ 2014-03-05 14:51 UTC (permalink / raw)
  To: 9fans

> since it's not clear to me what the issue is, and setaddress returns a
> transaction error, i was going on the assumption that there was
> something slightly off about ehci setup.  is this a bad assumption?

I think it is.  Transaction error covers a multitude of sins.  If you
suspect ehci, try the same experiment with the non-ehci raspberry pi.




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

* Re: [9fans] imac keyboard issues
  2014-03-05 14:51     ` Richard Miller
@ 2014-03-05 15:18       ` erik quanstrom
  2014-03-05 15:18       ` erik quanstrom
  1 sibling, 0 replies; 7+ messages in thread
From: erik quanstrom @ 2014-03-05 15:18 UTC (permalink / raw)
  To: 9fans

> > since it's not clear to me what the issue is, and setaddress returns a
> > transaction error, i was going on the assumption that there was
> > something slightly off about ehci setup.  is this a bad assumption?
>
> I think it is.  Transaction error covers a multitude of sins.  If you
> suspect ehci, try the same experiment with the non-ehci raspberry pi.
>

this is from a pi:

/boot/usbd: /dev/usb/ep4.0: port 1 attach sts 0x101
/boot/usbd: /dev/usb/ep4.0: port 1: attached status 0x103
/boot/usbd: opendev 0x65538 /dev/usb/ep8.0
/boot/usbd; /dev/usb/ep4.0: port 1: maxpkt 8
usbotg: ep8.0 error intr 00000402
usbotg: ep8.0 error intr 00000402
usbotg: ep8.0 error intr 00000402
usbotg: ep8.0 error intr 00000402
usbotg: ep8.0 error intr 00000402
usbotg: ep8.0 error intr 00000402
usbotg: ep8.0 error intr 00000402
usbotg: ep8.0 error intr 00000402
/boot/usbd: /dev/usb/ep8.0 csp hub.0.0 vid 0x05ac did 0x1003 refs 1
	Mitsumi Electric Mitsumi Electric none
	conf: cval 1 attrib a0 50 mA
		iface csp hub.0.0
		  alt 0 attr 3 ival 255
		  ep id 1 addr 129 dir in type intr itype 0 maxpkt 1 ntds 1
/boot/usbd: /dev/usb/ep4.0: port 1: configed: /dev/usb/ep8.0
/boot/usbd: hub 0x65b98 allocated: ports 3 pwrms 100 max curr 50 pwrm 1 cmp 1 leds 0
usb/hub... /boot/usbd: /dev/usb/ep8.0 port 1: sts - 0x0 -> - 0x100
/boot/usbd: /dev/usb/ep8.0 port 2: sts - 0x0 -> - 0x100
/boot/usbd: /dev/usb/ep8.0: port 3 attach sts 0x101
/boot/usbd: /dev/usb/ep8.0: port 3: attached status 0x103
/boot/usbd: opendev 0x65c98 /dev/usb/ep9.0
usbotg: ep9.0 error intr 00000082
usbotg: ep9.0 error intr 00000082
usbotg: ep9.0 error intr 00000082
usbotg: ep9.0 error intr 00000082
/boot/usbd: /dev/usb/ep8.0: port 3: attach setaddress: i/o error
/boot/usbd: closedev 0x65c98 /dev/usb/ep9.0
/boot/usbd: /dev/usb/ep4.0 port 1: sts p 0x101 -> ep 0x103

- erik



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

* [9fans] imac keyboard issues
  2014-03-05 14:51     ` Richard Miller
  2014-03-05 15:18       ` erik quanstrom
@ 2014-03-05 15:18       ` erik quanstrom
  2014-03-05 15:25         ` Richard Miller
  1 sibling, 1 reply; 7+ messages in thread
From: erik quanstrom @ 2014-03-05 15:18 UTC (permalink / raw)


> > since it's not clear to me what the issue is, and setaddress returns a
> > transaction error, i was going on the assumption that there was
> > something slightly off about ehci setup.  is this a bad assumption?
> 
> I think it is.  Transaction error covers a multitude of sins.  If you
> suspect ehci, try the same experiment with the non-ehci raspberry pi.
> 

this is from a pi:

/boot/usbd: /dev/usb/ep4.0: port 1 attach sts 0x101
/boot/usbd: /dev/usb/ep4.0: port 1: attached status 0x103
/boot/usbd: opendev 0x65538 /dev/usb/ep8.0
/boot/usbd; /dev/usb/ep4.0: port 1: maxpkt 8
usbotg: ep8.0 error intr 00000402
usbotg: ep8.0 error intr 00000402
usbotg: ep8.0 error intr 00000402
usbotg: ep8.0 error intr 00000402
usbotg: ep8.0 error intr 00000402
usbotg: ep8.0 error intr 00000402
usbotg: ep8.0 error intr 00000402
usbotg: ep8.0 error intr 00000402
/boot/usbd: /dev/usb/ep8.0 csp hub.0.0 vid 0x05ac did 0x1003 refs 1
	Mitsumi Electric Mitsumi Electric none
	conf: cval 1 attrib a0 50 mA
		iface csp hub.0.0
		  alt 0 attr 3 ival 255
		  ep id 1 addr 129 dir in type intr itype 0 maxpkt 1 ntds 1
/boot/usbd: /dev/usb/ep4.0: port 1: configed: /dev/usb/ep8.0
/boot/usbd: hub 0x65b98 allocated: ports 3 pwrms 100 max curr 50 pwrm 1 cmp 1 leds 0
usb/hub... /boot/usbd: /dev/usb/ep8.0 port 1: sts - 0x0 -> - 0x100
/boot/usbd: /dev/usb/ep8.0 port 2: sts - 0x0 -> - 0x100
/boot/usbd: /dev/usb/ep8.0: port 3 attach sts 0x101
/boot/usbd: /dev/usb/ep8.0: port 3: attached status 0x103
/boot/usbd: opendev 0x65c98 /dev/usb/ep9.0
usbotg: ep9.0 error intr 00000082
usbotg: ep9.0 error intr 00000082
usbotg: ep9.0 error intr 00000082
usbotg: ep9.0 error intr 00000082
/boot/usbd: /dev/usb/ep8.0: port 3: attach setaddress: i/o error
/boot/usbd: closedev 0x65c98 /dev/usb/ep9.0
/boot/usbd: /dev/usb/ep4.0 port 1: sts p 0x101 -> ep 0x103

- erik



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

* Re: [9fans] imac keyboard issues
  2014-03-05 15:18       ` erik quanstrom
@ 2014-03-05 15:25         ` Richard Miller
  0 siblings, 0 replies; 7+ messages in thread
From: Richard Miller @ 2014-03-05 15:25 UTC (permalink / raw)
  To: 9fans

> usbotg: ep9.0 error intr 00000082
> /boot/usbd: /dev/usb/ep8.0: port 3: attach setaddress: i/o error

00000082 is a transaction error - so the problem wasn't in the ehci layer.




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

end of thread, other threads:[~2014-03-05 15:25 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-04 18:37 [9fans] imac keyboard issues erik quanstrom
2014-03-05 11:02 ` Richard Miller
2014-03-05 13:34   ` erik quanstrom
2014-03-05 14:51     ` Richard Miller
2014-03-05 15:18       ` erik quanstrom
2014-03-05 15:18       ` erik quanstrom
2014-03-05 15:25         ` Richard Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).