[prev in list] [next in list] [prev in thread] [next in thread]
List: openbsd-ppc
Subject: -current panics configuring wi on Blue & White G3
From: Otto Moerbeek <otto () drijf ! net>
Date: 2002-08-06 12:24:18
[Download RAW message or body]
Hi,
I've been trying to get a wireless card runnning using -current (checked
out august 6th) on my Blue & White G3.
The wireless card is a Farallon SkyLine inserted into a PCMCIA PCI
adapter. The cardbus bridge (a TI PCI1410) get configured properly.
Sadly, I get a panic when the wi device is being configured. ddb trace &
ps, dmesg and objdump of if_wi.o below.
If I disable wi, everything is fine.
Cheers, Otto
BTW: panic msg and ddb output hand typed.
[panic str]
wi0 at pcmcia function 0 "INTERSIL, HFA384x/IEEE, Version 01.02" port
0xfe000000/64panic: trap type 200 at 10c64 (wi_cmd+0x70) l3 10c8c0
[ddb output]
ddb> trace
003b6fac: pcgpool+0xe0 fp ecd33b90 nfp ecd33ba0
00173704: panic+0x130 fp ecd33ba0 nfp ecd33c80
002b780c: trap+0x670 fp ecd33c80 nfp ecd33d30
00100790: trapagain+0x4 fp ecd33d30 nfp ecd33de0
0038fffc: akbd_keydesc_fr+0x10a fp ecd33de0 nfp ecd33e10
0010c8bc: wi_reset+0x40 fp ecd33e10 nfp ecd33e30
0010b010: wi_attach+0x30 fp ecd33e30 nfp ecd33e70
0032a714: wi_pcmcia_attach+0x1ec fp ecd33e70 nfp ecd33e90
0016dd50: config_attach+0x1cc fp ecd33e90 nfp ecd33ec0
0016da60: config_found_sm+0x48 fp ecd33ec0 nfp ecd33ee0
003264b8: pcmcia_card_attach+0x184 fp ecd33ee0 nfp ecd33f10
0032384c: cardslot_event_thread+0x280 fl ecd33f10 nfp ecd33f50
0010087c: fork_trampoline+0x10 fp ecd33f50 nfp 0
ddb> ps
PID PPIP PGRP UID S FLAGS WAIT COMMAND
* 9 0 0 0 2 0x100204 cardslot0
8 0 0 0 2 0x100204 usb0
7 0 0 0 3 0x100204 crypto_wa crypto
6 0 0 0 3 0x100204 aiodoned aiodoned
5 0 0 0 2 0x100204 update
4 0 0 0 3 0x100204 cleaner cleaner
3 0 0 0 3 0x100204 reaper reaper
2 0 0 0 3 0x100204 pgdaemon pagedaemon
1 0 0 0 2 0x4 swapper
0 -1 0 0 3 0x80204 scheduler swapper
[dmesg, wi disabled]
[ using 292968 bytes of bsd ELF symbol table ]
console out [ATY,Rage128y]console in [keyboard] USB and ADB found, using
USB
: memaddr a4000000 size 4000000, : consaddr a4000000, : ioaddr a0020000,
size 20000: memtag 8000, iotag 8000: width 640 linebytes 640 height 480
depth 8
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California. All rights reserved.
Copyright (c) 1995-2002 OpenBSD. All rights reserved.
http://www.OpenBSD.org
OpenBSD 3.1-current (GENERIC) #1: Tue Aug 6 11:44:17 CEST 2002
root@power.intra.drijf.net:/usr/src/sys/arch/macppc/compile/GENERIC
real mem = 268435456 (262144K)
avail mem = 239661056 (234044K)
using 2508 buffers containing 13418496 bytes of memory
mainbus0 (root)
cpu0 at mainbus0: 750 (Revision 202): 400 MHz: 1MB backside cache
mpcpcibr0 at mainbus0: grackle, Revision 0x40
pci0 at mpcpcibr0 bus 0
pchb0 at pci0 dev 0 function 0 "Motorola MPC106 Host-PCI" rev 0x40
ppb0 at pci0 dev 13 function 0 "DEC 21154 PCI-PCI" rev 0x02
pci1 at ppb0 bus 1
vendor "Texas Instruments", unknown product 0x8000 (class serial bus,
subclass Firewire, rev 0x02) at pci1 dev 0 function 0 not configured
pciide0 at pci1 dev 1 function 0 "CMD Technology PCI0646" rev 0x07: DMA,
channel 0 configured to native-PCI, channel 1 configured to native-PCI
pciide0: using irq 26 for native-PCI interrupt
wd0 at pciide0 channel 0 drive 0: <Maxtor 91303D6>
wd0: 16-sector PIO, LBA, 12427MB, 16383 cyl, 16 head, 63 sec, 25450992
sectors
wd1 at pciide0 channel 0 drive 1: <WDC WD172AA>
wd1: 16-sector PIO, LBA, 16448MB, 16383 cyl, 16 head, 63 sec, 33687360
sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
wd1(pciide0:0:1): using PIO mode 4, Ultra-DMA mode 2
pciide0: channel 1 ignored (disabled)
vendor "V3 Semiconductor", unknown product 0x2 (class communications,
subclass multi-port serial, rev 0x24) at pci1 dev 2 function 0 not
configured
"PLX Technology I/O 9050" rev 0x01 at pci1 dev 3 function 0 not
configured
cbb0 at pci1 dev 4 function 0 "Texas Instruments PCI1410 PCI-CardBus"
rev 0x01: irq 25
macobio0 at pci1 dev 5 function 0 "Apple Paddington" rev 0x00
macintr0 at macobio0
pciide0 irq 26 level 0 fun 2ea20c arg e035b000
cbb0 irq 25 level 0 fun 2f61c0 arg e0361a00
zsc0 at macobio0: irq 15,16
zstty0 at zsc0 channel 0
zstty1 at zsc0 channel 1
awacs: matched davbus nreg 24 nintr 12
awacs0 at macobio0: irq 17,8,9 headphones
audio0 at awacs0
adb0 at macobio0 irq 18: via-cuda 0 targets
aed0 at adb0 addr 0: ADB Event device
wdc0 at macobio0 irq 13: DMA transfer
atapiscsi0 at wdc0 channel 0 drive 0
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <HP, CD-Writer+ 8200a, 1.0g> SCSI0 5/cdrom
removable
atapiscsi1 at wdc0 channel 0 drive 1
scsibus1 at atapiscsi1: 2 targets
sd0 at scsibus1 targ 0 lun 0: <IOMEGA, ZIP 100, 12.A> SCSI0 0/direct
removable
sd0: 96MB, 96 cyl, 64 head, 32 sec, 512 bytes/sec, 196608 sec total
cd0(wdc0:0:0): using BIOS timings, DMA mode 2
sd0(wdc0:0:1): using BIOS timings
bm0 at macobio0 irq 42,33: address 00:50:e4:fa:e4:72
lxtphy0 at bm0 phy 0: LXT970 10/100 media interface, rev. 1
ohci0 at pci1 dev 6 function 0 "Opti RM861HA" rev 0x10: irq 28, OHCI
version 1.0, legacy support
usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: vendor 0x0000 OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhub1 at uhub0 port 1
uhub1: Texas Instruments UT-USB41 hub, class 9/0, rev 1.00/1.00, addr 2
uhub1: 4 ports with 4 removable, self powered
uhub2 at uhub1 port 1
uhub2: NEC hub, class 9/0, rev 1.00/1.00, addr 3
uhub2: 4 ports with 4 removable, bus powered
uhidev0 at uhub2 port 1 configuration 1 interface 0
uhidev0: Alps Electric M2452, rev 1.00/1.01, addr 4, iclass 3/1
ukbd0 at uhidev0: 8 modifier keys, 6 key codes
wskbd0 at ukbd0 (mux 1 ignored for console): console keyboard
uhidev1 at uhub2 port 2 configuration 1 interface 0
uhidev1: Logitech USB-PS/2 Optical Mouse, rev 2.00/11.00, addr 5, iclass
3/1
ums0 at uhidev1: 3 buttons and Z dir.
wsmouse0 at ums0 mux 0
ulpt0 at uhub1 port 2 configuration 1 interface 0
ulpt0: Lexmark Lexmark Z42-Z43, rev 1.00/1.00, addr 6, iclass 7/1
ulpt0: using bi-directional mode
ugen0 at uhub1 port 4
ugen0: Canon CanoScan FB630U, rev 1.10/0.01, addr 7
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 28 device 0 cacheline 0x8, lattimer 0x20
pcmcia0 at cardslot0
vgafb0 at pci0 dev 16 function 0 "ATI Rage 128 GL" rev 0x00, mmio
wsdisplay0 at vgafb0: console (std, vt100 emulation), using wskbd0
bootpath: '/pci/@d/pci-ata@1/ata-4@0/disk@1/bsd'
boot device: wd1.
root on wd1a
rootdev=0x10 rrootdev=0xb10 rawdev=0xb12
"INTERSIL, HFA384x/IEEE, Version 01.02, " (manufacturer 0x156, product
0x2) at pcmcia0 function 0 not configured
[part of objdump of if_wi.o]
000015b4 <wi_cmd>:
STATIC int
wi_cmd(sc, cmd, val0, val1, val2)
struct wi_softc *sc;
int cmd;
int val0;
int val1;
int val2;
{
15b4: 94 21 ff d0 stwu r1,-48(r1)
15b8: 7c 08 02 a6 mflr r0
15bc: 93 21 00 14 stw r25,20(r1)
15c0: 93 41 00 18 stw r26,24(r1)
15c4: 93 61 00 1c stw r27,28(r1)
15c8: 93 81 00 20 stw r28,32(r1)
15cc: 93 a1 00 24 stw r29,36(r1)
15d0: 93 c1 00 28 stw r30,40(r1)
15d4: 93 e1 00 2c stw r31,44(r1)
15d8: 90 01 00 34 stw r0,52(r1)
int i, s = 0;
/* Wait for the busy bit to clear. */
for (i = 0; i < WI_TIMEOUT; i++) {
15dc: 3b a0 00 00 li r29,0
15e0: 7c 7f 1b 78 mr r31,r3
15e4: 7c 99 23 78 mr r25,r4
15e8: 7c bc 2b 78 mr r28,r5
15ec: 7c db 33 78 mr r27,r6
15f0: 7c fa 3b 78 mr r26,r7
15f4: 3b c0 00 00 li r30,0
15f8: 63 bd c3 4f ori r29,r29,49999
return CAT(in,m)((volatile CAT3(u_int,m,_t) *)(bsh + (ba))); \
}
bus_space_read(1,8)
bus_space_read(2,16)
15fc: 81 3f 01 bc lwz r9,444(r31)
1600: 81 7f 01 b8 lwz r11,440(r31)
1604: 88 09 00 08 lbz r0,8(r9)
1608: 2c 00 00 00 cmpwi r0,0
160c: 41 82 00 10 beq 161c <wi_cmd+0x68>
{
u_int16_t _v_;
u_int32_t _p_ = (u_int32_t)a;
__asm__ volatile("eieio");
1610: 7c 00 06 ac eieio
return CAT(in,m)((volatile CAT3(u_int,m,_t) *)(bsh + (ba))); \
}
bus_space_read(1,8)
bus_space_read(2,16)
1614: 7c 00 5e 2c lhbrx r0,r0,r11
1618: 48 00 00 0c b 1624 <wi_cmd+0x70>
__inw(volatile u_int16_t *a)
{
u_int16_t _v_;
__asm__ volatile("eieio");
161c: 7c 00 06 ac eieio
_v_ = *a;
1620: a0 0b 00 00 lhz r0,0(r11)
if (!(CSR_READ_2(sc, WI_COMMAND) & WI_CMD_BUSY))
1624: 70 09 80 00 andi. r9,r0,32768
1628: 41 82 00 18 beq 1640 <wi_cmd+0x8c>
break;
DELAY(10);
162c: 38 60 00 0a li r3,10
1630: 48 00 00 01 bl 1630 <wi_cmd+0x7c>
1634: 3b de 00 01 addi r30,r30,1
1638: 7c 1e e8 00 cmpw r30,r29
163c: 40 81 ff c0 ble 15fc <wi_cmd+0x48>
CAT(out,m)((volatile CAT3(u_int,m,_t) *)(bsh + (ba)), x); \
}
bus_space_write(1,8)
bus_space_write(2,16)
1640: 81 3f 01 bc lwz r9,444(r31)
1644: 80 1f 0f 9c lwz r0,3996(r31)
CAT(out,m)((volatile CAT3(u_int,m,_t) *)(bsh + (ba)), x); \
}
bus_space_write(1,8)
bus_space_write(2,16)
1648: 89 69 00 08 lbz r11,8(r9)
164c: 30 00 ff ff addic r0,r0,-1
1650: 7c 00 01 10 subfe r0,r0,r0
1654: 7c 09 00 f8 not r9,r0
1658: 55 29 07 7a rlwinm r9,r9,0,29,29
CAT(out,m)((volatile CAT3(u_int,m,_t) *)(bsh + (ba)), x); \
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic