another kauai ata kernel to test...

Peter Larkowski peter at larkowski.net
Mon Feb 9 17:39:42 PST 2004


Peter:

Thanks for the new kernel and all your work.  I think we (you) are 
making progress :)

This kernel gets to the mountroot prompt every time (5 out of 5), so 
that's good.  Also, I can actually run init (for reference, as there 
are a few people soft of keeping up with all this, 12" 1Ghz Alum. 
pbook, netbooted) and get to /bin/sh.  Thanks for the debugging work 
done on this Suleiman!

As for the Kauai controller, here's boot -v...  Any idea why the CPU 
speed is 768Mhz?  I know the cpu can be slowed down, and I'm guessing 
freebsd doesn't have any support for switching.  Is it actually being 
run in the slower mode, or is this a probe issue, and it's actually 
running at 1Ghz?  Just curious.

Copyright (c) 1992-2004 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
	The Regents of the University of California. All rights reserved.
FreeBSD 5.2-CURRENT #74: Tue Feb 10 00:33:40 EST 2004
     grehan@:/usr/obj/powerpc/usr/home/grehan/freebsd/dev/src/sys/GENERIC
Preloaded elf kernel "/boot/kernel/kernel" at 0x4d3000.
Timecounter "decrementer" frequency 18432000 Hz quality 0
cpu0: Motorola PowerPC 7457 revision 1.1, 767.99 MHz
cpu0: 256KB L2 cache
cpu0: HID0 8450c09c<EMCP,TBEN,NAP,DPM,ICE,DCE,SGE,LRSTK,FOLD,BHT>
real memory  = 532676608 (508 MB)
Physical memory chunk(s):
0x0004f000 - 0x000fffff, 724992 bytes (177 pages)
0x004d1000 - 0x004d1fff, 4096 bytes (1 pages)
0x005d4000 - 0x007fffff, 2277376 bytes (556 pages)
0x00c00000 - 0x01c42fff, 17051648 bytes (4163 pages)
0x01c4d000 - 0x1f2eafff, 493477888 bytes (120478 pages)
avail memory = 511586304 (487 MB)
null: <null device, zero device>
random: <entropy source>
nexus0: <OpenFirmware Nexus device>
openpic0: <OpenPIC Interrupt Controller> on nexus0
nexus0: <cpus>, type (unknown) (no driver attached)
nexus0: <chosen>, type (unknown) (no driver attached)
nexus0: <memory>, type memory (no driver attached)
nexus0: <openprom>, type BootROM (no driver attached)
nexus0: <rom>, type (unknown) (no driver attached)
nexus0: <options>, type (unknown) (no driver attached)
nexus0: <aliases>, type (unknown) (no driver attached)
nexus0: <packages>, type (unknown) (no driver attached)
nexus0: <firewire-disk-mode>, type (unknown) (no driver attached)
nexus0: <pseudo-hid>, type (unknown) (no driver attached)
nexus0: <pseudo-sound>, type (unknown) (no driver attached)
nexus0: <multiboot>, type (unknown) (no driver attached)
nexus0: <diagnostics>, type (unknown) (no driver attached)
nexus0: <nvram>, type nvram (no driver attached)
unin0: <Apple UniNorth System Controller> on nexus0
unin0: Version 210
pcib0: <Apple UniNorth Host-PCI bridge> on nexus0
pci0: <PCI bus> on pcib0
pci0: physical bus=0
found->	vendor=0x106b, dev=0x0034, revid=0x00
	bus=0, slot=11, func=0
	class=06-00-00, hdrtype=0x00, mfdev=0
	cmdreg=0x0016, statreg=0x02b0, cachelnsz=8 (dwords)
	lattimer=0x10 (480 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns)
	map[10]: type 1, range 32, base 91000000, size 24, enabled
	map[14]: type 3, range 32, base a0000000, size 27, enabled
found->	vendor=0x10de, dev=0x0329, revid=0xa1
	bus=0, slot=16, func=0
	class=03-00-00, hdrtype=0x00, mfdev=0
	cmdreg=0x0006, statreg=0x02b0, cachelnsz=0 (dwords)
	lattimer=0xf8 (7440 ns), mingnt=0x05 (1250 ns), maxlat=0x01 (250 ns)
	intpin=a, irq=48
	powerspec 2  supports D0 D3  current D0
pci0: <display, VGA> at device 16.0 (no driver attached)
pcib1: <Apple UniNorth Host-PCI bridge> on nexus0
pci1: <PCI bus> on pcib1
pci1: physical bus=0
found->	vendor=0x106b, dev=0x0035, revid=0x00
	bus=0, slot=11, func=0
	class=06-00-00, hdrtype=0x00, mfdev=0
	cmdreg=0x0016, statreg=0x22a0, cachelnsz=8 (dwords)
	lattimer=0x10 (480 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns)
	map[10]: type 1, range 32, base 80084000, size 13, enabled
found->	vendor=0x14e4, dev=0x4320, revid=0x02
	bus=0, slot=18, func=0
	class=02-80-00, hdrtype=0x00, mfdev=0
	cmdreg=0x0006, statreg=0x0010, cachelnsz=0 (dwords)
	lattimer=0x10 (480 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns)
	intpin=a, irq=52
	powerspec 2  supports D0 D1 D2 D3  current D0
	map[10]: type 1, range 32, base 80000000, size 19, enabled
found->	vendor=0x106b, dev=0x003e, revid=0x00
	bus=0, slot=23, func=0
	class=ff-00-00, hdrtype=0x00, mfdev=0
	cmdreg=0x0006, statreg=0x0200, cachelnsz=8 (dwords)
	lattimer=0x10 (480 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns)
found->	vendor=0x106b, dev=0x003f, revid=0x00
	bus=0, slot=24, func=0
	class=0c-03-10, hdrtype=0x00, mfdev=0
	cmdreg=0x0000, statreg=0x0200, cachelnsz=0 (dwords)
	lattimer=0x00 (0 ns), mingnt=0x03 (750 ns), maxlat=0x56 (21500 ns)
	intpin=a, irq=0
found->	vendor=0x106b, dev=0x003f, revid=0x00
	bus=0, slot=25, func=0
	class=0c-03-10, hdrtype=0x00, mfdev=0
	cmdreg=0x0000, statreg=0x0200, cachelnsz=0 (dwords)
	lattimer=0x00 (0 ns), mingnt=0x03 (750 ns), maxlat=0x56 (21500 ns)
	intpin=a, irq=0
	map[10]: type 1, range 32, base 80083000, size 12, enabled
found->	vendor=0x106b, dev=0x003f, revid=0x00
	bus=0, slot=26, func=0
	class=0c-03-10, hdrtype=0x00, mfdev=0
	cmdreg=0x0006, statreg=0x0200, cachelnsz=8 (dwords)
	lattimer=0x10 (480 ns), mingnt=0x03 (750 ns), maxlat=0x56 (21500 ns)
	intpin=a, irq=29
	map[10]: type 1, range 32, base 80082000, size 12, enabled
found->	vendor=0x1033, dev=0x0035, revid=0x43
	bus=0, slot=27, func=0
	class=0c-03-10, hdrtype=0x00, mfdev=1
	cmdreg=0x0006, statreg=0x0210, cachelnsz=8 (dwords)
	lattimer=0x10 (480 ns), mingnt=0x01 (250 ns), maxlat=0x2a (10500 ns)
	intpin=a, irq=63
	powerspec 2  supports D0 D1 D2 D3  current D0
	map[10]: type 1, range 32, base 80081000, size 12, enabled
found->	vendor=0x1033, dev=0x0035, revid=0x43
	bus=0, slot=27, func=1
	class=0c-03-10, hdrtype=0x00, mfdev=0
	cmdreg=0x0006, statreg=0x0210, cachelnsz=8 (dwords)
	lattimer=0x10 (480 ns), mingnt=0x01 (250 ns), maxlat=0x2a (10500 ns)
	intpin=b, irq=63
	powerspec 2  supports D0 D1 D2 D3  current D0
	map[10]: type 1, range 32, base 80080000, size  8, enabled
found->	vendor=0x1033, dev=0x00e0, revid=0x04
	bus=0, slot=27, func=2
	class=0c-03-20, hdrtype=0x00, mfdev=0
	cmdreg=0x0006, statreg=0x0210, cachelnsz=8 (dwords)
	lattimer=0x10 (480 ns), mingnt=0x10 (4000 ns), maxlat=0x22 (8500 ns)
	intpin=c, irq=63
	powerspec 2  supports D0 D1 D2 D3  current D0
pci1: <network> at device 18.0 (no driver attached)
macio0: <Intrepid I/O Controller> mem 0x80000000-0x8007ffff at device 
23.0 on pci1
openpicmacio0: <OpenPIC MacIO interrupt cell> mem 0x40000-0x7ffff on 
macio0
openpic0: Version 1.2, supports 4 CPUs and 64 irqs
macio0: <gpio, gpio> mem 0x50-0x7f (no driver attached)
zs0: <Zilog Z8530> mem 
0x8700-0x87ff,0x8600-0x86ff,0x8500-0x85ff,0x8400-0x84ff,0x13000-0x13fff 
irq 23,22 on macio0
zs0: [FAST]
zs0: [FAST]
zstty0: <ttya> on zs0
zstty1: <ttyb> on zs0
macio0: <i2s, i2s> mem 
0x8300-0x83ff,0x8200-0x82ff,0x8100-0x81ff,0x8000-0x80ff,0x10000-0x10fff 
(no driver attached)
macio0: <via-pmu, via-pmu> mem 0x16000-0x17fff irq 25 (no driver 
attached)
macio0: <battery, battery> (no driver attached)
macio0: <backlight, backlight> (no driver attached)
macio0: <i2c, i2c> mem 0x18000-0x18fff irq 26 (no driver attached)
ata0: reset tp1 mask=03 ostat0=00 ostat1=00
ata0-master: stat=0x00 err=0x01 lsb=0x14 msb=0xeb
ata0-slave:  stat=0x00 err=0x00 lsb=0x00 msb=0x00
ata0: reset tp2 mask=03 stat0=00 stat1=00 devices=0x4<ATAPI_MASTER>
ata0 mem 0x8800-0x88ff,0x20000-0x20fff irq 24 on macio0
ata0: [MPSAFE]
ohci0: <OHCI (generic) USB controller> irq 0 at device 24.0 on pci1
ohci0: Could not map memory
device_probe_and_attach: ohci0 attach returned 6
ohci0: <OHCI (generic) USB controller> irq 0 at device 25.0 on pci1
ohci0: Could not map memory
device_probe_and_attach: ohci0 attach returned 6
ohci0: <OHCI (generic) USB controller> mem 0x80083000-0x80083fff irq 29 
at device 26.0 on pci1
usb0: OHCI version 1.0, legacy support
usb0: <OHCI (generic) USB controller> on ohci0
usb0: USB revision 1.0
uhub0: Apple OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
ugen0: Apple Computer product 0x8203, rev 1.10/5.26, addr 2
ohci1: <NEC uPD 9210 USB controller> mem 0x80082000-0x80082fff irq 63 
at device 27.0 on pci1
usb1: OHCI version 1.0
usb1: <NEC uPD 9210 USB controller> on ohci1
usb1: USB revision 1.0
uhub1: NEC OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 3 ports with 3 removable, self powered
ukbd0: Tangtop Generic USBPS2, rev 1.10/0.01, addr 2, iclass 3/1
kbd0: ukbd0, generic (0), config:0x0, flags:0x1d0000
ums0: Tangtop Generic USBPS2, rev 1.10/0.01, addr 2, iclass 3/1
ums0: 3 buttons and Z dir.
ohci2: <NEC uPD 9210 USB controller> mem 0x80081000-0x80081fff irq 63 
at device 27.1 on pci1
usb2: OHCI version 1.0
usb2: <NEC uPD 9210 USB controller> on ohci2
usb2: USB revision 1.0
uhub2: NEC OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
pci1: <serial bus, USB> at device 27.2 (no driver attached)
pcib2: <Apple UniNorth Host-PCI bridge> on nexus0
pci2: <PCI bus> on pcib2
pci2: physical bus=0
found->	vendor=0x106b, dev=0x0036, revid=0x00
	bus=0, slot=11, func=0
	class=06-00-00, hdrtype=0x00, mfdev=0
	cmdreg=0x0016, statreg=0x02a0, cachelnsz=8 (dwords)
	lattimer=0x10 (480 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns)
	map[10]: type 1, range 32, base f5004000, size 14, enabled
found->	vendor=0x106b, dev=0x003b, revid=0x00
	bus=0, slot=13, func=0
	class=ff-00-00, hdrtype=0x00, mfdev=0
	cmdreg=0x0006, statreg=0x0200, cachelnsz=8 (dwords)
	lattimer=0x20 (960 ns), mingnt=0x00 (0 ns), maxlat=0x00 (0 ns)
	map[10]: type 1, range 32, base f5000000, size 12, enabled
found->	vendor=0x106b, dev=0x0031, revid=0x81
	bus=0, slot=14, func=0
	class=0c-00-10, hdrtype=0x00, mfdev=0
	cmdreg=0x0006, statreg=0x0290, cachelnsz=8 (dwords)
	lattimer=0x40 (1920 ns), mingnt=0x0c (3000 ns), maxlat=0x18 (6000 ns)
	intpin=a, irq=1
	powerspec 2  supports D0 D1 D2 D3  current D0
	map[10]: type 1, range 32, base f5200000, size 21, enabled
found->	vendor=0x106b, dev=0x0032, revid=0x80
	bus=0, slot=15, func=0
	class=02-00-00, hdrtype=0x00, mfdev=0
	cmdreg=0x0006, statreg=0x84a0, cachelnsz=32 (dwords)
	lattimer=0x20 (960 ns), mingnt=0x40 (16000 ns), maxlat=0x40 (16000 ns)
	intpin=a, irq=1
kauai irq not set!
pci2: <unknown> at device 13.0 (no driver attached)
fwohci0: <Apple UniNorth> mem 0xf5000000-0xf5000fff irq 1 at device 
14.0 on pci2
fwohci0: latency timer 64 -> 64.
fwohci0: cache size 8 -> 8.
fwohci0: OHCI version 1.10 (ROM=0)
fwohci0: No. of Isochronous channel is 8.
fwohci0: EUI64 00:0a:95:ff:fe:cd:09:d6
fwohci0: resetting OHCI...done (loop=0)
fwohci0: phy read failed(2).
fwohci0: fwphy_rddata: 0x2 loop=1, retry=1
fwohci0: fwphy_rddata: 0x3 loop=1, retry=0
fwohci0: Phy 1394a available S400, 1 ports.
fwohci0: fwphy_rddata: 0x5 loop=1, retry=0
fwohci0: Enable 1394a Enhancements
fwohci0: fwphy_rddata: 0x5 loop=1, retry=0
fwohci0: fwphy_rddata: 0x2 loop=1, retry=0
fwohci0: fwphy_rddata: 0x4 loop=1, retry=0
fwohci0: fwphy_rddata: 0x4 loop=1, retry=0
fwohci0: fwphy_rddata: 0x4 loop=1, retry=0
fwohci0: Link S400, max_rec 2048 bytes.
fwohci0: BUS_OPT 0xa082 -> 0xf800a082
fwohci0: fwohci_set_intr: 1
firewire0: <IEEE1394(FireWire) bus> on fwohci0
fwe0: <Ethernet over FireWire> on firewire0
if_fwe0: Fake Ethernet address: 02:0a:95:cd:09:d6
fwe0: bpf attached
sbp0: <SBP-2/SCSI over FireWire> on firewire0
sbp_attach (cold=1)
fwohci0: Initiate bus reset
fwohci0: fwphy_rddata: 0x1 loop=1, retry=0
fwohci0: fwphy_rddata: 0x1 loop=1, retry=0
fwohci0: BUS reset
sbp_post_busreset
fwohci0: node_id=0xc800ffc0, gen=2, CYCLEMASTER mode
firewire0: 1 nodes, maxhop <= 0, cable IRM = 0 (me)
fwohci0: fw_set_bus_manager: 0->0 (loop=0)
firewire0: bus manager 0 (me)
send phy_config root_node=-1 gap_count=5
fwohci0: maxdesc: 2
fwohci0: start AT DMA status=0
gem0: <Apple GMAC3 Ethernet Adaptor> mem 0xf5200000-0xf53fffff irq 1 at 
device 15.0 on pci2
miibus0: <MII bus> on gem0
bmtphy0: <BCM5221 10/100baseTX PHY> on miibus0
bmtphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
gem0: Ethernet address: 00:0a:95:cd:09:d6, 10KB RX fifo, 4KB TX fifo
gem0: bpf attached
nexus0: <vsp>, type vsp (no driver attached)
sc0: <System console> on nexus0
sc0: Unknown <16 virtual consoles, flags=0x300>
sc0: fb0, kbd0, terminal emulator: sc (syscons terminal)
procfs registered
Timecounters tick every 10.000 msec
lo0: bpf attached
Current DB 0
ch = 0
  Current OP   KEY INT BR   len     Addr   Depend Stat: Cnt
00746000 OUTL ST2 ALL ALL    12 00000000 00746080 8411:76bc RUN,ACTIVE, 
ack complete(11)
0x000000e0 0x00450000 0xffbaffff 0x00000000
bus_explore done
sbp_post_explore (sbp_cold=2)
ata0-master: pio=0x0c wdma=0x22 udma=0x44 cable=80pin
acd0: <MATSHITADVD-R UJ-816/DXJ3> DVDR drive at ata0 as master
acd0: read 4134KB/s (4134KB/s) write 2755KB/s (2755KB/s), 2048KB 
buffer, BIOSPIO
acd0: Reads: CDR, CDRW, CDDA stream, DVDR, packet
acd0: Writes: CDR, CDRW, DVDR, test write, burnproof
acd0: Audio: play, 256 volume levels
acd0: Mechanism: ejectable tray, unlocked
acd0: Medium: no/blank disc
(probe0:sbp0:0:0:0): error 22
(probe0:sbp0:0:0:0): Unretryable Error
(probe1:sbp0:0:1:0): error 22
(probe1:sbp0:0:1:0): Unretryable Error
(probe2:sbp0:0:2:0): error 22
(probe2:sbp0:0:2:0): Unretryable Error
(probe3:sbp0:0:3:0): error 22
(probe3:sbp0:0:3:0): Unretryable Error
(probe4:sbp0:0:4:0): error 22
(probe4:sbp0:0:4:0): Unretryable Error
(probe5:sbp0:0:5:0): error 22
(probe5:sbp0:0:5:0): Unretryable Error
(probe6:sbp0:0:6:0): error 22
(probe6:sbp0:0:6:0): Unretryable Error

Manual root filesystem specification:
   <fstype>:<device>  Mount <device> using filesystem <fstype>
                        eg. ufs:/dev/da0a
   ?                  List valid disk boot devices
   <empty line>       Abort manual input

mountroot> nfs
Mounting root from nfs
NFS ROOT: 192.168.1.69:/tmp/freebsd-ppc
start_init: trying /sbin/init


On Feb 9, 2004, at 10:03 AM, Peter Grehan wrote:

> I've put up another kernel at
>
>  www.freebsd.org/~grehan/kernel.kauai
>
> which contains an updated kauai/ata driver. The source for
> this is ata_kauai.c in the same dir as above. With some
> luck this should probe correctly.
>
>  I included Suleiman's intr_machdep.c workaround in the kernel
> in case that was the issue with machines not getting to init.
>
> later,
>
> Peter.
  



More information about the freebsd-ppc mailing list