Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Apr 1999 02:18:45 +0200 (CEST)
From:      Martin Blapp <blapp@attic.ch>
To:        freebsd-current@freebsd.org
Subject:   ed0: device timeout
Message-ID:  <Pine.BSF.4.02.9904210134550.15205-100000@bastian.attic.ch>

next in thread | raw e-mail | index | archive | help

Hi,

Maybe current is not the right one to send my problem to - but I'm not
subscribed on freebsd.mobile.

Recently I bought a new laptop and my ed0-pccard stopped working. This
happened before the newconfig stuff came in. I first thought there were
some irq-related problems, but I wasn't able to figure out where the
problems are. The pccard-controller is now on irq 3 (SIO1 is disabled). I
also tried to put it on irq 9 or 10 with set machdep.pccard.pcic_irq,
after I disabled the soundcard. That worked, but the result was the same.
Is suppose that the irq's aren't as free they should be. I tried other
io-settings, other irq's, the result was the same. 

Curious: A 2.2.8 PA0 system worked on this Laptop without problems,
the card gets recognized and no timeouts appeared at all.  

Any help is welcome. I've no idea what my problem could be.

some dmsg-output from fresh kernel:
-----------------------------------

chip0: <Intel 82439TX System Controller (MTXC)> at device 0.0 on pci0
isab0: <Intel 82371AB PCI to ISA bridge> at device 1.0 on pci0
ide_pci0: <Intel PIIX4 Bus-master IDE controller> at device 1.1 on pci0
uhci0: <Intel 82371AB/EB (PIIX4) USB Host Controller> at device 1.2 on  pci0
usb0: <Intel 82371AB/EB (PIIX4) USB Host Controller> on uhci0 
chip1: <Intel 82371AB Power management controller> at device 1.3 on pci0
chip2: <PCI to CardBus bridge (vendor=104c device=ac16)> at device 3.0 on pci0
chip3: <PCI to CardBus bridge (vendor=104c device=ac16)> at device 3.1 on pci0 

....

PC-Card VLSI 82C146 (5 mem & 2 I/O windows)
pcic: controller irq 3
Initializing PC-card drivers: ed 

....

Card inserted, slot 0
ed0: address 00:c0:f0:1c:b8:20, type NE2000 (16 bit) 
ed0: device timeout
ed0: device timeout
ed0: device timeout
ed0: device timeout 

dmesg | grep irq:
-----------------

uhci0: interrupting at irq 11
fdc0: interrupting at irq 6
fdc0: <NEC 72065B or clone> at port 0x3f0-0x3f7 irq 6 drq 2 on isa0
wdc0 at port 0x1f0-0x1f7 irq 14 on isa0
wdc0: interrupting at irq 14
wdc1 at port 0x170-0x177 irq 15 on isa0
wdc1: interrupting at irq 15
atkbd0: interrupting at irq 1
psm0: interrupting at irq 12
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: interrupting at irq 4
ppc0 at port 0x378 irq 7 on isa0
ppc0: interrupting at irq 7
pcic: controller irq 3        

cat /dev/sndstat :
-----------------

OPL-2/OPL-3 FM at 0x388
SoundPort at 0x534 irq 5 drq 1,3
MPU-401 (UART) at 0x320 irq 9     

/etc/pccard.conf :
------------------

# Generally available IO ports
io 0x280 - 0x2F0 0x300 - 0x360
# Generally available IRQs (Built-in sound-card owners remove 5)
irq     5 9 10
# Available memory slots
memory  0xd4000 96k
memory  0xc4000 32k 

# Kingston Ethernet card
        card "Kingston" "KNE-PC2"
        config  0x22 "ed0" 10
        insert  echo "Kingston card inserted"
        insert  /etc/pccard_home ed0
        remove  echo "Kingston card removed"
        remove  /sbin/ifconfig ed0 delete  

kernel-konfig:
--------------

# PCCARD (PCMCIA) support
controller      card0
device          pcic0 at card?
device          pcic1 at card? 
device ed0 

altern. kernel-konfig:
----------------------
controller      card0
device          pcic0 at card?
device          pcic1 at card? 
device ed0 at isa? port 0x340 net irq 10 iomem 0xd8000

pccardc dumpcis:
----------------

Configuration data for card in slot 0
Tuple #1, code = 0x1 (Common memory descriptor), length = 2
    000:  00 ff
        Common memory device information:
                Device number 1, type No device, WPS = OFF
                Speed = No speed, Memory block size = reserved, 32 units
Tuple #2, code = 0x17 (Attribute memory descriptor), length = 3
    000:  49 00 ff
        Attribute memory device information:
                Device number 1, type EEPROM, WPS = ON
                Speed = 250nS, Memory block size = 512b, 1 units
Tuple #3, code = 0x20 (Manufacturer ID), length = 4
    000:  86 01 00 01
        PCMCIA ID = 0x186, OEM ID = 0x100
Tuple #4, code = 0x21 (Functional ID), length = 2
    000:  06 00
        Network/LAN adapter                        

Tuple #5, code = 0x15 (Version 1 info), length = 21
    000:  04 01 4b 69 6e 67 73 74 6f 6e 00 4b 4e 45 2d 50
    010:  43 32 00 00 ff
        Version = 4.1, Manuf = [Kingston],card vers = [KNE-PC2]
        Addit. info = []
Tuple #6, code = 0x1a (Configuration map), length = 5
    000:  01 23 f8 03 03
        Reg len = 2, config register addr = 0x3f8, last config = 0x23
        Registers: XX------
Tuple #7, code = 0x1b (Configuration entry), length = 21
    000:  e0 81 1d 3f 55 4d 5d 06 86 46 26 fc 24 c5 60 00
    010:  03 1f 30 b8 9e
        Config index = 0x20(default)
        Interface byte = 0x81 (I/O)  wait signal supported
        Vcc pwr:
                Nominal operating supply voltage: 5 x 1V
                Minimum operating supply voltage: 4.5 x 1V
                Maximum operating supply voltage: 5.5 x 1V
                Continuous supply current: 1 x 100mA
                Max current average over 1 second: 1 x 100mA, ext = 0x46
                Max current average over 10 ms: 2 x 100mA
        Wait scale Speed = 1.5 x 10 us
        Card decodes 4 address lines, 8 Bit I/O only
                IRQ modes: Level
                IRQ level = 4
Tuple #8, code = 0x1b (Configuration entry), length = 7
    000:  20 08 c5 60 00 02 1f
        Config index = 0x20
        Card decodes 5 address lines, limited 8/16 Bit I/O
                I/O address # 1: block start = 0x200 block length = 0x20
Tuple #9, code = 0x1b (Configuration entry), length = 7
    000:  20 08 c5 60 20 02 1f
        Config index = 0x20
        Card decodes 5 address lines, limited 8/16 Bit I/O
                I/O address # 1: block start = 0x220 block length = 0x20
Tuple #10, code = 0x1b (Configuration entry), length = 7
    000:  20 08 c5 60 40 02 1f
        Config index = 0x20
        Card decodes 5 address lines, limited 8/16 Bit I/O
                I/O address # 1: block start = 0x240 block length = 0x20
Tuple #11, code = 0x1b (Configuration entry), length = 7
    000:  20 08 c5 60 60 02 1f
        Config index = 0x20
        Card decodes 5 address lines, limited 8/16 Bit I/O
                I/O address # 1: block start = 0x260 block length = 0x20
Tuple #12, code = 0x1b (Configuration entry), length = 7
   000:  20 08 c5 60 80 02 1f
        Config index = 0x20
        Card decodes 5 address lines, limited 8/16 Bit I/O
                I/O address # 1: block start = 0x280 block length = 0x20
Tuple #13, code = 0x1b (Configuration entry), length = 7
    000:  20 08 c5 60 a0 02 1f
        Config index = 0x20
        Card decodes 5 address lines, limited 8/16 Bit I/O
                I/O address # 1: block start = 0x2a0 block length = 0x20
Tuple #14, code = 0x1b (Configuration entry), length = 7
    000:  20 08 c5 60 c0 02 1f
        Config index = 0x20
        Card decodes 5 address lines, limited 8/16 Bit I/O
                I/O address # 1: block start = 0x2c0 block length = 0x20
Tuple #15, code = 0x1b (Configuration entry), length = 7
    000:  20 08 c5 60 e0 02 1f
        Config index = 0x20
        Card decodes 5 address lines, limited 8/16 Bit I/O
                I/O address # 1: block start = 0x2e0 block length = 0x20
Tuple #16, code = 0x1b (Configuration entry), length = 7
    000:  21 08 c5 60 20 03 1f
        Config index = 0x21
        Card decodes 5 address lines, limited 8/16 Bit I/O
                I/O address # 1: block start = 0x320 block length = 0x20
Tuple #17, code = 0x1b (Configuration entry), length = 7
    000:  22 08 c5 60 40 03 1f
        Config index = 0x22
        Card decodes 5 address lines, limited 8/16 Bit I/O
                I/O address # 1: block start = 0x340 block length = 0x20
Tuple #18, code = 0x1b (Configuration entry), length = 7
    000:  20 08 c5 60 80 03 1f
        Config index = 0x20
        Card decodes 5 address lines, limited 8/16 Bit I/O
                I/O address # 1: block start = 0x380 block length = 0x20
Tuple #19, code = 0x1b (Configuration entry), length = 7
    000:  20 08 c5 60 a0 03 1f
        Config index = 0x20
        Card decodes 5 address lines, limited 8/16 Bit I/O
                I/O address # 1: block start = 0x3a0 block length = 0x20
Tuple #20, code = 0x1b (Configuration entry), length = 7
    000:  23 08 c5 60 60 03 1f
        Config index = 0x23
        Card decodes 5 address lines, limited 8/16 Bit I/O
                I/O address # 1: block start = 0x360 block length = 0x20
Tuple #21, code = 0xff (Terminator), length = 0
2 slots found 

pccardc rdmap
-------------

Mem 0: flags 0x000 host 0x0 card 0000 size 0 bytes
Mem 1: flags 0x000 host 0x0 card 0000 size 0 bytes
Mem 2: flags 0x000 host 0x0 card 0000 size 0 bytes
Mem 3: flags 0x000 host 0x0 card 0000 size 0 bytes
Mem 4: flags 0x000 host 0x0 card 0000 size 0 bytes
I/O 0: flags 0x015 port 0x340 size 32 bytes  
I/O 1: flags 0x000 port 0x  0 size 0 bytes 



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.02.9904210134550.15205-100000>