9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] usbuhci: port 65504 in use ?
@ 2003-12-12 21:45 Axel Belinfante
  2003-12-12 22:31 ` Axel Belinfante
  0 siblings, 1 reply; 6+ messages in thread
From: Axel Belinfante @ 2003-12-12 21:45 UTC (permalink / raw)
  To: 9fans

Eager to try my new xitel usb->audio device
(thanks for the plug a while ago :-)
I'm trying to get at the usb device of a toshiba tecra 8000 laptop.
I'm using the kernel (/386/9pcdisk) (and most other stuff)
I just updated from sources (9load I'm using will still be old, though).

While booting, I get (as before, with the old kernel):

usbuhci: port 65504 in use

What to do about that?
(I have not yet used the usb device of this laptop in any O.S.)
There seems to be no usb line in my plan9.ini .

Having looked at the source, I got the hope that
the following might be helpful for interpretation:

term% pci
0.0.0:	06.00.00 8086/7192   0
0.11.0:	06.07.00 1179/060f  11
0.11.1:	06.07.00 1179/060f  11
0.13.0:	04.80.00 123f/8888  11 0:0000ee01 256
0.4.0:	03.00.00 10c8/0005  11 0:df000008 16777216 1:ff800000 4194304 2:ff700000 1048576
0.5.0:	06.80.00 8086/7110   0
0.5.1:	01.01.80 8086/7111   0 4:0000fe61 16
0.5.2:	0c.03.00 8086/7112  11 4:0000ffe1 32
0.5.3:	06.80.00 8086/7113   0
0.9.0:	07.80.00 1179/0701  11 0:0000ff81 32
term% cat /dev/ioalloc
       0        f dma
      20       21 i8259.0
      40       43 i8253
      60       60 kbd
      61       61 i8253.cntr2c
      64       64 kbd
      70       71 rtc/nvr
      80       8f dma
      a0       a1 i8259.1
      d0       df dma
     170      177 atacmd
     180      1bf wavelan
     1f0      1f7 atacmd
     2b0      2df vga
     376      376 atactl
     378      37a lpt0
     3c0      3da vga
     3e0      3e1 i82365.0
     3f0      3f5 floppy
     3f6      3f6 atactl
     3f7      3f7 floppy
term% cat /dev/irqalloc
          3           0 debugpt
          7           0 mathemu
          8           0 doublefault
          9           0 mathover
         14           0 fault386
         16           0 matherror
         32           0 clock
         33           1 kbd
         35           3 ether0
         37           5 i82365.0
         38           6 floppy
         39           7 lpt
         44          12 kbdaux
         46          14 sdC (ata)
         47          15 sdD (ata)
term%

Feeling a bit lost,
Axel.


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

* Re: [9fans] usbuhci: port 65504 in use ?
  2003-12-12 21:45 [9fans] usbuhci: port 65504 in use ? Axel Belinfante
@ 2003-12-12 22:31 ` Axel Belinfante
  2003-12-12 23:24   ` Charles Forsyth
  2003-12-12 23:26   ` [9fans] usbuhci: port 65504 in use ? Charles Forsyth
  0 siblings, 2 replies; 6+ messages in thread
From: Axel Belinfante @ 2003-12-12 22:31 UTC (permalink / raw)
  To: 9fans

I wrote:
> While booting, I get:
>
> usbuhci: port 65504 in use
>
> What to do about that?

just accessed the usb from windows, no problems.
adding a usb0= line to plan9.ini does not seem to solve the problem
(or I added a wrong one -- tried copying numbers from
 windows' properties with seemingly no effect)

Hmmm.... for the moment out of ideas...

> Having looked at the source, I got the hope that
> the following might be helpful for interpretation:
>
> term% pci
> 0.0.0:	06.00.00 8086/7192   0
> 0.11.0:	06.07.00 1179/060f  11
> 0.11.1:	06.07.00 1179/060f  11
> 0.13.0:	04.80.00 123f/8888  11 0:0000ee01 256
> 0.4.0:	03.00.00 10c8/0005  11 0:df000008 16777216 1:ff800000 4194304 2
> :ff700000 1048576
> 0.5.0:	06.80.00 8086/7110   0
> 0.5.1:	01.01.80 8086/7111   0 4:0000fe61 16
> 0.5.2:	0c.03.00 8086/7112  11 4:0000ffe1 32
> 0.5.3:	06.80.00 8086/7113   0
> 0.9.0:	07.80.00 1179/0701  11 0:0000ff81 32
> term% cat /dev/ioalloc
>        0        f dma
>       20       21 i8259.0
>       40       43 i8253
>       60       60 kbd
>       61       61 i8253.cntr2c
>       64       64 kbd
>       70       71 rtc/nvr
>       80       8f dma
>       a0       a1 i8259.1
>       d0       df dma
>      170      177 atacmd
>      180      1bf wavelan
>      1f0      1f7 atacmd
>      2b0      2df vga
>      376      376 atactl
>      378      37a lpt0
>      3c0      3da vga
>      3e0      3e1 i82365.0
>      3f0      3f5 floppy
>      3f6      3f6 atactl
>      3f7      3f7 floppy
> term% cat /dev/irqalloc
>           3           0 debugpt
>           7           0 mathemu
>           8           0 doublefault
>           9           0 mathover
>          14           0 fault386
>          16           0 matherror
>          32           0 clock
>          33           1 kbd
>          35           3 ether0
>          37           5 i82365.0
>          38           6 floppy
>          39           7 lpt
>          44          12 kbdaux
>          46          14 sdC (ata)
>          47          15 sdD (ata)
> term%
>
> Feeling a bit lost,
> Axel.


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

* Re: [9fans] usbuhci: port 65504 in use ?
  2003-12-12 22:31 ` Axel Belinfante
@ 2003-12-12 23:24   ` Charles Forsyth
  2003-12-13 10:05     ` [9fans] fix works for: usbuhci: port 65504 in use Axel Belinfante
  2003-12-12 23:26   ` [9fans] usbuhci: port 65504 in use ? Charles Forsyth
  1 sibling, 1 reply; 6+ messages in thread
From: Charles Forsyth @ 2003-12-12 23:24 UTC (permalink / raw)
  To: 9fans

/sys/src/9/pc/devarch.c says

		// Only 64KB I/O space on the x86.
		if((port+size) >= 0x10000){

but i think the test should be > not >=
(since port address port+size isn't included in the allocation)



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

* Re: [9fans] usbuhci: port 65504 in use ?
  2003-12-12 22:31 ` Axel Belinfante
  2003-12-12 23:24   ` Charles Forsyth
@ 2003-12-12 23:26   ` Charles Forsyth
  2003-12-12 23:28     ` Charles Forsyth
  1 sibling, 1 reply; 6+ messages in thread
From: Charles Forsyth @ 2003-12-12 23:26 UTC (permalink / raw)
  To: 9fans

but then you'll need the following sorted out too...

	/*
	 * Someone needs to explain why this was here...
	 */
	ioalloc(0x0fff, 1, 0, "dummy");	// i82557 is at 0x1000, the dummy



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

* Re: [9fans] usbuhci: port 65504 in use ?
  2003-12-12 23:26   ` [9fans] usbuhci: port 65504 in use ? Charles Forsyth
@ 2003-12-12 23:28     ` Charles Forsyth
  0 siblings, 0 replies; 6+ messages in thread
From: Charles Forsyth @ 2003-12-12 23:28 UTC (permalink / raw)
  To: 9fans

[-- Attachment #1: Type: text/plain, Size: 52 bytes --]

ignore that: it's fussing about 0x1000 not 0x10000

[-- Attachment #2: Type: message/rfc822, Size: 2132 bytes --]

From: Charles Forsyth <forsyth@caldo.demon.co.uk>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] usbuhci: port 65504 in use ?
Date: Fri, 12 Dec 2003 23:26:03 0000
Message-ID: <577d9f3e88721773bfc996fe022e663a@caldo.demon.co.uk>

but then you'll need the following sorted out too...

	/*
	 * Someone needs to explain why this was here...
	 */
	ioalloc(0x0fff, 1, 0, "dummy");	// i82557 is at 0x1000, the dummy

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

* [9fans] fix works for: usbuhci: port 65504 in use
  2003-12-12 23:24   ` Charles Forsyth
@ 2003-12-13 10:05     ` Axel Belinfante
  0 siblings, 0 replies; 6+ messages in thread
From: Axel Belinfante @ 2003-12-13 10:05 UTC (permalink / raw)
  To: 9fans

Thanks, that did it!!!
Makes sense to fix on sources?

and now there is sound -- great!!
and now the question is how to control volume,
seems that low volume settings are quite negative
(-5376 for default volume setting of usbstart)
highest volume setting is 0 (or also negative?)
how does this interact with mixer etc.  ?

(and see what other things can be controlled;
I have the 'plain' xitel hifi-link)

(For the interested, /dev/audioctl gives me, after some fiddling:
speed out 44100 4990 55010
mute out 1
volume out '-1050 -1050'
channels out 2 1 2
resolution out 16 8 20
)

Forsyth wrote:

> /sys/src/9/pc/devarch.c says
>
> 		// Only 64KB I/O space on the x86.
> 		if((port+size) >= 0x10000){
>
> but i think the test should be > not >=
> (since port address port+size isn't included in the allocation)


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

end of thread, other threads:[~2003-12-13 10:05 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-12-12 21:45 [9fans] usbuhci: port 65504 in use ? Axel Belinfante
2003-12-12 22:31 ` Axel Belinfante
2003-12-12 23:24   ` Charles Forsyth
2003-12-13 10:05     ` [9fans] fix works for: usbuhci: port 65504 in use Axel Belinfante
2003-12-12 23:26   ` [9fans] usbuhci: port 65504 in use ? Charles Forsyth
2003-12-12 23:28     ` Charles Forsyth

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).