Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Mar 2008 12:27:28 GMT
From:      lunarbase <lunarbase+unx@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   kern/121760: [7.0R][pccard][cardbus] an ed1 network pccard's CIS wasn't read unless a cardbus network card dc0 had been inserted
Message-ID:  <200803161227.m2GCRSut059656@www.freebsd.org>
Resent-Message-ID: <200803161240.m2GCe1Lb048979@freefall.freebsd.org>

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

>Number:         121760
>Category:       kern
>Synopsis:       [7.0R][pccard][cardbus] an ed1 network pccard's CIS wasn't read unless a cardbus network card dc0 had been inserted
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Mar 16 12:40:00 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     lunarbase
>Release:        7.0R
>Organization:
>Environment:
FreeBSD 7.0-RELEASE #9: Sun Mar  9 19:46:49 JST 2008 i386

>Description:
A file 'cardbus_cis.c' is already patched with following one because dc0 initialization always failed.
http://www.freebsd.org/cgi/query-pr.cgi?pr=115623


Inserting a network pccard (pcmcia) ed1, FreeBSD said the card's CIS wasn't read. But after inserting a CARDBUS network card, then reinserting the pccard again, the CIS was read successfully.

At insertion of the network pccard only:

Status is 0x30000411
cbb1: card inserted: event=0x00000000, state=30000411
pccard1: chip_socket_enable
cbb_pcic_socket_enable:
cbb1: cbb_power: 5V
interrupt storm detected on "irq9:"; throttling interrupt source
pccard1: read_cis
cis mem map 0xcaa4d000 (resource: 0x88000000)
pccard1: CIS tuple chain:
CISTPL_NONE
 00
unhandled CISTPL 0
[snips]
CISTPL_NONE
 00
unhandled CISTPL 0
TOO MANY CIS_NONE
unhandled CISTPL 0
unhandled CISTPL 0
[snips]
unhandled CISTPL 0
unhandled CISTPL 0
CIS is too long -- truncating
CISTPL_END
 ff
cis mem map caa4d000
CISTPL_LINKTARGET expected, code 00 observed
pccard1: check_cis_quirks
pccard1: Card has no functions!
cbb1: PC Card card activation failed

Reinsertion after insertion of a cardbus network card dc0:

Status is 0x30000411
cbb1: card inserted: event=0x00000000, state=30000411
pccard1: chip_socket_enable
cbb_pcic_socket_enable:
cbb1: cbb_power: 5V
interrupt storm detected on "irq9:"; throttling interrupt source
pccard1: read_cis
cis mem map 0xcaa66000 (resource: 0x88010000)
pccard1: CIS tuple chain:
CISTPL_DEVICE type=funcspec speed=100ns
 01 03 d4 0a ff
CISTPL_DEVICE_A type=eeprom speed=250ns
 17 03 41 00 ff
CISTPL_MANFID
 20 04 49 01 ab c1
CISTPL_VERS_1
 15 23 04 01 44 75 61 6c 20 53 70 65 65 64 00 31
 30 2f 31 30 30 20 50 43 20 43 61 72 64 00 31 2e
 30 00 20 00 ff
CISTPL_CONFIG
 1a 05 01 20 00 04 01
CISTPL_CFTABLE_ENTRY
 1b 07 d0 81 18 45 30 fc be
CISTPL_CFTABLE_ENTRY
 1b 07 01 08 ca 60 00 03 1f
CISTPL_CFTABLE_ENTRY
 1b 07 02 08 ca 60 20 03 1f
CISTPL_CFTABLE_ENTRY
 1b 07 03 08 ca 60 40 03 1f
CISTPL_CFTABLE_ENTRY
 1b 07 04 08 ca 60 80 03 1f
CISTPL_CFTABLE_ENTRY
 1b 07 05 08 ca 60 00 02 1f
CISTPL_CFTABLE_ENTRY
 1b 07 06 08 ca 60 20 02 1f
CISTPL_CFTABLE_ENTRY
 1b 07 07 08 ca 60 40 02 1f
CISTPL_FUNCID
 21 02 06 00
unhandled CISTPL 14
CISTPL_NO_LINK
 14 00
CISTPL_END
 ff
pccard1: check_cis_quirks
pccard1: CIS version PCCARD 2.0 or 2.1
pccard1: CIS info: Dual Speed, 10/100 PC Card, 1.0,  
pccard1: Manufacturer code 0x149, product 0xc1ab
pccard1: function 0: network adapter, ccr addr 400 mask 1
pccard1: function 0, config table entry 16: I/O card; irq mask befc; iomask 5, iospace 0-1f; mwait_required io16 irqlevel
pccard1: function 0, config table entry 1: I/O card; irq mask befc; iomask a, iospace 300-31f; mwait_required io16 irqlevel
pccard1: function 0, config table entry 2: I/O card; irq mask befc; iomask a, iospace 320-33f; mwait_required io16 irqlevel
pccard1: function 0, config table entry 3: I/O card; irq mask befc; iomask a, iospace 340-35f; mwait_required io16 irqlevel
pccard1: function 0, config table entry 4: I/O card; irq mask befc; iomask a, iospace 380-39f; mwait_required io16 irqlevel
pccard1: function 0, config table entry 5: I/O card; irq mask befc; iomask a, iospace 200-21f; mwait_required io16 irqlevel
pccard1: function 0, config table entry 6: I/O card; irq mask befc; iomask a, iospace 220-23f; mwait_required io16 irqlevel
pccard1: function 0, config table entry 7: I/O card; irq mask befc; iomask a, iospace 240-25f; mwait_required io16 irqlevel
pccard1: functions scanning
pccard1: Card has 1 functions. pccard_mfc is 0
pccard1: I/O rid 0 start 0 end ffffffff
cbb_pcic_socket_enable:
pccard1: ccr_res == 88002000-880023ff, base=400
pccard1: function 0 CCR at 0 offset 400: 0 0 0 0, 0 0 0 0, 0
ed1: <Dual Speed 10/100 PC Card> at port 0x100-0x11f irq 9 function 0 config 16 on pccard1
ed1: [ITHREAD]
ed1: using obsoleted if_watchdog interface
ed1: Ethernet address: xx:xx:xx:xx:xx:xx
miibus1: <MII bus> on ed1
ukphy0: <Generic IEEE 802.3u media interface> PHY 4 on miibus1
ukphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
pccard1: function 0 CCR at 0 offset 400 mask 1: 0 0 0 0, 0 0 0 0, 0

>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200803161227.m2GCRSut059656>