Date: Tue, 10 Feb 2004 02:54:07 -0500 From: Suleiman Souhlal <refugee@segfaulted.com> To: Peter Grehan <grehan@freebsd.org> Cc: freebsd-ppc@freebsd.org Subject: Re: Alu Powerbook Message-ID: <20040210025407.4171e627@zZzZ.segfaulted.com> In-Reply-To: <40288514.10807@freebsd.org> References: <20040206000245.20a84f0c@zZzZ.segfaulted.com> <40232DA3.5090508@freebsd.org> <20040206013218.4eb1cd37@zZzZ.segfaulted.com> <40235C60.9010509@freebsd.org> <20040206115743.2f6ad7af@zZzZ.segfaulted.com> <402450B7.9030106@freebsd.org> <20040208224036.6f1fb172@zZzZ.segfaulted.com> <402731BD.3070703@freebsd.org> <20040209023918.079ec9f5@zZzZ.segfaulted.com> <402740C9.1050506@freebsd.org> <20040209084040.6718d16e@zZzZ.segfaulted.com> <40279A60.4060002@freebsd.org> <20040210005302.5c59440c@zZzZ.segfaulted.com> <40288514.10807@freebsd.org>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --]
Hi
On Tue, 10 Feb 2004 17:15:32 +1000
Peter Grehan <grehan@freebsd.org> wrote:
> I think the gem driver is OK, but the irq mapping looks
> very dodgy. Would you be able to drop into OpenFirmware
> and list the properties of the gmac device and the
> parent UniN host-pci bridge ? e.g. on my emac:
The OF properties and the dmesg are attached.
Suleiman
[-- Attachment #2 --]
0 > dev enet ok
0 > .properties
vendor-id
0000106b
device-id 00000032
revision-id 00000080
class-code 00020000
interrupts 00000001
min-grant 00000040
max-latency 00000040
devsel-speed 00000002
fast-back-to-back
name ethernet
device_type network
network-type ethernet
removable network
category 6e657400
compatible gmac
built-in
address-bits 00000030
max-frame-size 000005ee
cache-line-size 00000080
reg 00007800 00000000 00000000 00000000 00000000
02007810 00000000 00000000 00000000 00020000
02007830 00000000 00000000 00000000 00010000
stats 00000002 00000002 00000041 00000000 00000000
local-mac-address 000a95c4 d7bc
assigned-addresses 82007810 00000000 f5200000 00000000 00200000
82007830 00000000 f5100000 00000000 00100000
gbit-phy
ok
0 > pwd
/pci@f4000000/ethernet@f ok
0 > dev .. ok
0 > pwd
/pci@f4000000 ok
0 > .properties
device_type pci
name pci
model AAPL,UniNorth
compatible uni-north
reg f4000000 02000000
#address-cells 00000003
#size-cells 00000002
#interrupt-cells 00000001
clock-frequency 03f940aa
built-in-names 0000e000
ATA-100
FireWire
Ethernet
write-combining
ranges 02000000 00000000 f5000000 f5000000 00000000
01000000
01000000 00000000 00000000 f4000000 00000000
00800000
bus-range 00000000 00000001
interrupts 0000002d 00000001
interrupt-parent ff96a328
interrupt-map 00006800 00000000 00000000 00000001 ff96a328 00000027
00000001 00006800 00000000 00000000 00000000 ff96a328
0000000b 00000000 00007000 00000000 00000000 00000001
ff96a328 00000028 00000001 00007800 00000000 00000000
00000001 ff96a328 00000029 00000001
interrupt-map-mask 0000f800 00000000 00000000 00000001
[-- Attachment #3 --]
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 #26: Tue Feb 10 02:05:12 EST 2004
refugee@zZzZ.segfaulted.com:/usr/obj/powerpc/usr/home/refugee/src/sys/PB
Preloaded elf kernel "/boot/kernel/kernel" at 0x485000.
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)
0x00483000 - 0x00483fff, 4096 bytes (1 pages)
0x00586000 - 0x007fffff, 2596864 bytes (634 pages)
0x00c00000 - 0x01c42fff, 17051648 bytes (4163 pages)
0x01c4d000 - 0x1f2eafff, 493477888 bytes (120478 pages)
avail memory = 511860736 (488 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 3, range 32, base b8000000, size 27, enabled
map[14]: type 4, range 32, base 00000400, size 8, port disabled
map[18]: type 1, range 32, base b0000000, size 16, enabled
found-> vendor=0x1002, dev=0x4e50, revid=0x00
bus=0, slot=16, func=0
class=03-00-00, hdrtype=0x00, mfdev=0
cmdreg=0x0006, statreg=0x02b0, cachelnsz=8 (dwords)
lattimer=0xff (7650 ns), mingnt=0x08 (2000 ns), maxlat=0x00 (0 ns)
intpin=a, irq=48
powerspec 2 supports D0 D1 D2 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 a0006000, size 13, enabled
found-> vendor=0x14e4, dev=0x4320, revid=0x03
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 a0004000, size 12, enabled
found-> vendor=0x104c, dev=0xac56, revid=0x00
bus=0, slot=19, func=0
class=06-07-00, hdrtype=0x02, mfdev=0
cmdreg=0x0007, statreg=0x0210, cachelnsz=8 (dwords)
lattimer=0x10 (480 ns), mingnt=0x40 (16000 ns), maxlat=0x04 (1000 ns)
intpin=a, irq=53
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 a0003000, 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 a0002000, 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 a0001000, 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 a0000000, 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)
pci1: <bridge, PCI-CardBus> at device 19.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 0xa0003000-0xa0003fff 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 0xa0002000-0xa0002fff 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
ohci2: <NEC uPD 9210 USB controller> mem 0xa0001000-0xa0001fff 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
pci2: <unknown> at device 13.0 (no driver attached)
pci2: <serial bus, FireWire> at device 14.0 (no driver attached)
gem0: <Apple GMAC3 Ethernet Adaptor> mem 0xf5200000-0xf53fffff irq 1 at device 15.0 on pci2
miibus0: <MII bus> on gem0
ukphy0: <Generic IEEE 802.3u media interface> on miibus0
ukphy0: OUI 0x005043, model 0x000c, rev. 1
ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
gem0: Ethernet address: 00:0a:95:c4:d7:bc, 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, terminal emulator: sc (syscons terminal)
procfs registered
Timecounters tick every 10.000 msec
lo0: bpf attached
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: CD-R 120mm data disc
Mounting root from nfs:192.168.0.1:/usr/home/refugee/pbfbsd/freebsd
setrootbyname failed
Sending DHCP Discover packet from interface gem0 (00:0a:95:c4:d7:bc)
Received DHCP Offer packet on gem0 from 192.168.0.1 (accepted) (no root path)
Sending DHCP Request packet from interface gem0 (00:0a:95:c4:d7:bc)
Received DHCP Ack packet on gem0 from 192.168.0.1 (accepted) (got root path)
gem0 at 192.168.0.12 server 192.168.0.1 boot file loader
subnet mask 255.255.255.0 router 192.168.0.1 rootfs 192.168.0.1:/usr/home/refugee/pbfbsd/freebsd hostname pbfbsd
Adjusted interface gem0
NFS ROOT: 192.168.0.1:/usr/home/refugee/pbfbsd/freebsd
start_init: trying /sbin/init
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040210025407.4171e627>
