Subject: Re: atabus and kernel thread for IDE
To: Manuel Bouyer <bouyer@antioche.eu.org>
From: Gary Duzan <gary@duzan.org>
List: tech-kern
Date: 10/02/2003 01:55:15
------- =_aaaaaaaaaa0
Content-Type: text/plain; charset="us-ascii"
Content-ID: <639.1065074115.1@capo.xnet.duzan.org>

In Message <20031001175756.GA1707@antioche.eu.org> ,
   Manuel Bouyer <bouyer@antioche.eu.org> wrote:

=>On Thu, Sep 25, 2003 at 07:29:47PM +0200, Manuel Bouyer wrote:
=>> Hi,
=>> A few days ago I talked about adding a atabus device, and a kernel thread 
=>> per IDE channel. I now have some code ready that I'd like to commit.
=>> 
=>> The diff is at
=>> ftp://antioche.lip6.fr/pub/bouyer/diff.atathread.gz
=>> (not posted because it's big)
=>
=>Hi,
=>I updated the diff to catch up with recent changes in current.
=>Same URL

   This seems to work ok for me, or at least as well as -current.
(Other recent changes prevent my wd1, which is the slave on the
second channel, from being configured.)  dmesg output attached.

					Gary Duzan



------- =_aaaaaaaaaa0
Content-Type: text/plain; charset="us-ascii"
Content-ID: <639.1065074115.2@capo.xnet.duzan.org>

NetBSD 1.6ZC (XCAPO) #0: Wed Oct  1 17:54:23 EDT 2003
	gary@capo:/usr2/tmp/obj/usr/tmp/src/sys/arch/i386/compile/XCAPO
total memory = 511 MB
avail memory = 439 MB
using 6144 buffers containing 52360 KB of memory
BIOS32 rev. 0 found at 0xfb390
PCI BIOS rev. 2.1 found at 0xfb3c0
pcibios: config mechanism [1][x], special cycles [1][x], last bus 2
PCI IRQ Routing Table rev. 1.0 found at 0xfdec0, size 192 bytes (10 entries)
PCI Interrupt Router at 000:00:0
PCI Exclusive IRQs: 5 11 12
pci_intr_fixup: no compatible PCI ICU found
Warning: unable to fix up PCI interrupt routing
PCI fixup examining 10de:1e0
PCI fixup examining 10de:1eb
PCI fixup examining 10de:1ee
PCI fixup examining 10de:1ed
PCI fixup examining 10de:1ec
PCI fixup examining 10de:1ef
PCI fixup examining 10de:60
PCI fixup examining 10de:64
PCI fixup examining 10de:67
PCI fixup examining 10de:67
PCI fixup examining 10de:68
PCI fixup examining 10de:6b
PCI fixup examining 10de:6a
PCI fixup examining 10de:6c
PCI fixup examining 1186:1300
PCI bridge 0: primary 0, secondary 1, subordinate 1
PCI fixup examining 10de:65
PCI fixup examining 10de:6e
PCI fixup examining 10de:1e8
PCI fixup examining 1002:5159
PCI bridge 1: primary 0, secondary 2, subordinate 2
PCI bus #2 is the last bus
[System BIOS Setting]-----------------------
  device vendor product
  register space address    size
--------------------------------------------
000:00:0 0x10de 0x01e0 
	10h mem  0xe8000000 0x04000000
		[OK]
000:00:1 0x10de 0x01eb 
		[OK]
000:00:2 0x10de 0x01ee 
		[OK]
000:00:3 0x10de 0x01ed 
		[OK]
000:00:4 0x10de 0x01ec 
		[OK]
000:00:5 0x10de 0x01ef 
		[OK]
000:01:0 0x10de 0x0060 
		[OK]
000:01:1 0x10de 0x0064 
	10h port 0x0000e400 0x00000020
		[OK]
000:02:0 0x10de 0x0067 
	10h mem  0xef085000 0x00001000
		[OK]
000:02:1 0x10de 0x0067 
	10h mem  0xef081000 0x00001000
		[OK]
000:02:2 0x10de 0x0068 
	10h mem  0xef084000 0x00000100
		[OK]
000:05:0 0x10de 0x006b 
	10h mem  0xef000000 0x00080000
		[OK]
000:06:0 0x10de 0x006a 
	10h port 0x0000e800 0x00000100
	14h port 0x0000e000 0x00000080
	18h mem  0xef080000 0x00001000
		[OK]
000:08:0 0x10de 0x006c 
		[OK]
000:09:0 0x10de 0x0065 
	20h port 0x0000f000 0x00000010
		[OK]
000:13:0 0x10de 0x006e 
	10h mem  0xef082000 0x00000800
	14h mem  0xef083000 0x00000040
		[OK]
000:30:0 0x10de 0x01e8 
		[OK]
001:08:0 0x1186 0x1300 
	10h port 0x0000c000 0x00000100
	14h mem  0xee000000 0x00000100
		[OK]
002:00:0 0x1002 0x5159 
	10h mem  0xe0000000 0x08000000
	14h port 0x0000d000 0x00000100
	18h mem  0xed000000 0x00010000
		[OK]
--------------------------[  0 devices bogus]
 Physical memory end: 0x1ffec000
 PCI memory mapped I/O space start: 0x20000000
mainbus0 (root)
cpu0 at mainbus0: (uniprocessor)
cpu0: AMD Athlon XP 2100+ (686-class), 1737.38 MHz, id 0x662
cpu0: features c3c3fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
cpu0: features c3c3fbff<PGE,MCA,CMOV,PAT,PSE36,MMXX,MMX>
cpu0: features c3c3fbff<FXSR,SSE,3DNOW2,3DNOW>
cpu0: I-cache 64 KB 64b/line 2-way, D-cache 64 KB 64b/line 2-way
cpu0: L2 cache 256 KB 64b/line 16-way
cpu0: ITLB 16 4 KB entries fully associative, 8 4 MB entries fully associative
cpu0: DTLB 32 4 KB entries fully associative, 8 4 MB entries 4-way
cpu0: 8 page colors
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
pchb0 at pci0 dev 0 function 0
pchb0: Nvidia Corporation product 0x01e0 (rev. 0xa2)
agp at pchb0 not configured
Nvidia Corporation product 0x01eb (RAM memory, revision 0xa2) at pci0 dev 0 function 1 not configured
Nvidia Corporation product 0x01ee (RAM memory, revision 0xa2) at pci0 dev 0 function 2 not configured
Nvidia Corporation product 0x01ed (RAM memory, revision 0xa2) at pci0 dev 0 function 3 not configured
Nvidia Corporation product 0x01ec (RAM memory, revision 0xa2) at pci0 dev 0 function 4 not configured
Nvidia Corporation product 0x01ef (RAM memory, revision 0xa2) at pci0 dev 0 function 5 not configured
pcib0 at pci0 dev 1 function 0
pcib0: Nvidia Corporation product 0x0060 (rev. 0xa3)
Nvidia Corporation product 0x0064 (SMBus serial bus, revision 0xa2) at pci0 dev 1 function 1 not configured
ohci0 at pci0 dev 2 function 0: Nvidia Corporation product 0x0067 (rev. 0xa3)
ohci0: interrupting at irq 12
ohci0: OHCI version 1.0, legacy support
usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: Nvidia Corporat OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 3 ports with 3 removable, self powered
ohci1 at pci0 dev 2 function 1: Nvidia Corporation product 0x0067 (rev. 0xa3)
ohci1: interrupting at irq 11
ohci1: OHCI version 1.0, legacy support
usb1 at ohci1: USB revision 1.0
uhub1 at usb1
uhub1: Nvidia Corporat OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 3 ports with 3 removable, self powered
ehci0 at pci0 dev 2 function 2: Nvidia Corporation product 0x0068 (rev. 0xa3)
ehci0: interrupting at irq 5
ehci0: EHCI version 1.0
ehci0: companion controllers, 4 ports each: ohci0 ohci1
usb2 at ehci0: USB revision 2.0
uhub2 at usb2
uhub2: Nvidia Corporat EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub2: 6 ports with 6 removable, self powered
Nvidia Corporation product 0x006b (audio multimedia, revision 0xa2) at pci0 dev 5 function 0 not configured
auich0 at pci0 dev 6 function 0: nForce2 MCP-T AC-97 Audio
auich0: interrupting at irq 11
auich0: ac97: Avance Logic ALC650 codec; 20 bit DAC, 18 bit ADC, Realtek 3D
auich0: ac97: ext id 7c7<AC97_22,AMAP,LDAC,SDAC,CDAC,SPDIF,DRA,VRA>
audio0 at auich0: full duplex, mmap, independent
ppb0 at pci0 dev 8 function 0: Nvidia Corporation product 0x006c (rev. 0xa3)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled
rtk0 at pci1 dev 8 function 0: D-Link Systems DFE 530TX+
rtk0: interrupting at irq 11
rtk0: Ethernet address 00:50:ba:60:0e:19
ukphy0 at rtk0 phy 7: Generic IEEE 802.3u media interface
ukphy0: OUI 0x000000, model 0x0000, rev. 0
ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
pciide0 at pci0 dev 9 function 0
pciide0: NVIDIA nForce2 IDE Controller (rev. 0xa2)
pciide0: bus-master DMA support present
pciide0: primary channel configured to compatibility mode
pciide0: primary channel interrupting at irq 14
atabus0 at pciide0 channel 0
pciide0: secondary channel configured to compatibility mode
pciide0: secondary channel interrupting at irq 15
atabus1 at pciide0 channel 1
fwohci0 at pci0 dev 13 function 0: Nvidia Corporation product 0x006e (rev. 0xa3)
fwohci0: interrupting at irq 12
fwohci0: OHCI 1.1, 00:30:04:00:01:02:90:a6, 400Mb/s, 2048 max_rec, 4 ir_ctx, 4 it_ctx
ppb1 at pci0 dev 30 function 0: Nvidia Corporation product 0x01e8 (rev. 0xa2)
pci2 at ppb1 bus 2
pci2: i/o space, memory space enabled
vga0 at pci2 dev 0 function 0: ATI Technologies Radeon 7000/VE (rev. 0x00)
wsdisplay0 at vga0 kbdmux 1: console (80x25, vt100 emulation)
wsmux1: connecting to wsdisplay0
isa0 at pcib0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
pckbc0 at isa0 port 0x60-0x64
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pcppi0 at isa0 port 0x61
sysbeep0 at pcppi0
npx0 at isa0 port 0xf0-0xff: using exception 16
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
apm0 at mainbus0: Power Management spec V1.2
auich0: measured ac97 link rate at 44534 Hz, will use 48000 Hz
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
fw0 at fwohci0: 00:30:04:00:01:02:90:a6:0a:02:ff:ff:f0:01:00:00
uscanner0 at uhub0 port 1
uscanner0: Hewlett-Packard HP ScanJet 5200C, rev 1.00/1.00, addr 2
wd0 at atabus0 drive 0: <ST320423A>
wd0: drive supports 32-sector PIO transfers, LBA addressing
wd0: 19536 MB, 39693 cyl, 16 head, 63 sec, 512 bytes/sect x 40011300 sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 4 (Ultra/66)
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 4 (Ultra/66) (using DMA data transfers)
atapibus0 at atabus1: 2 targets
cd0 at atapibus0 drive 0: <SONY CD-ROM CDU4821, MT1198-B Firmware, S0.Q> cdrom removable
cd0: 32-bit data port
cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA data transfers)
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs
usbd_new_device: addr=3, getting first desc failed
uhub_explore: usb_new_device failed, error=IOERROR
uhub0: device problem, disabling port 2
wsdisplay0: screen 1 added (80x25, vt100 emulation)
wsdisplay0: screen 2 added (80x25, vt100 emulation)
wsdisplay0: screen 3 added (80x25, vt100 emulation)
wsdisplay0: screen 4 added (80x25, vt100 emulation)
wsdisplay0: screen 5 added (80x25, vt100 emulation)
wsdisplay0: screen 6 added (80x25, vt100 emulation)
wsdisplay0: screen 7 added (80x25, vt100 emulation)

------- =_aaaaaaaaaa0--