Subject: kern/9474: bogus attachement for the modem part of a fxp cardbus card
To: None <gnats-bugs@gnats.netbsd.org>
From: Bernd Ernesti <bernd@arresum.inka.de>
List: netbsd-bugs
Date: 02/23/2000 10:02:07
>Number:         9474
>Category:       kern
>Synopsis:       bogus attachement for the modem part of a fxp cardbus card
>Confidential:   no
>Severity:       non-critical
>Priority:       high
>Responsible:    kern-bug-people (Kernel Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Feb 23 10:00:01 2000
>Last-Modified:
>Originator:     Bernd Ernesti
>Organization:
	
>Release:        NetBSD-current 23-Feb-2000 12:00UTC
>Environment:
	
System: NetBSD arresum.inka.de 1.4S NetBSD 1.4S (ARRESUM) #407: Sun Feb 13 18:44:30 MET 2000 bernd@arresum.inka.de:/home/work/obj_i386/src.i386/sys/arch/i386/compile/ARRESUM i386


>Description:
	Some changes in the past few days broke mulifuntion cardbus cards.
	Note the bogus fxp1 from the boot message:

cardbus_attach_card: cb0 start
cardbus_attach_card: Vendor 0x8086, Product 0x1229, CIS 0x20003
cardbus0: reading CIS data from BAR2
tuple: LINKTARGET len 5
  0x 0: 13 3 43 49 53
tuple: VERS_1 len 59
  0x 0: 15 39 5 0 49 4e 54 45 4c 28 52 29 0 50 52 4f
  0x10: 2f 31 30 30 20 4c 41 4e 2b 4d 4f 44 45 4d 35 36
  0x20: 20 43 41 52 44 42 55 53 20 49 49 0 4d 42 4c 41
  0x30: 33 34 35 36 0 31 2e 30 30 0 ff
tuple: Reserved len 6
  0x 0: 88 4 xx xx xx 0
tuple: Reserved len 14
  0x 0: 8a c 39 30 30 32 54 41 42 42 44 33 37 36
tuple: Reserved len 6
  0x 0: 8b 4 1 0 0 0
tuple: MANFID len 7
  0x 0: 20 5 89 0 3 11 c1
tuple: DATE len 6
  0x 0: 44 4 59 ae 9d 26
tuple: FUNCID len 4
  0x 0: 21 2 6 0
tuple: FUNCE len 10
  0x 0: 22 8 4 6 xx xx xx xx xx xx
tuple: FUNCE len 4
  0x 0: 22 2 1 2
tuple: FUNCE len 7
  0x 0: 22 5 2 80 96 98 0
tuple: FUNCE len 7
  0x 0: 22 5 2 0 e1 f5 5
tuple: DEVICE_OC len 4
  0x 0: 1c 2 2 ff
tuple: BAR len 8
  0x 0: 7 6 21 0 40 0 0 0
tuple: BAR len 8
  0x 0: 7 6 12 0 40 0 0 0
tuple: BAR len 8
  0x 0: 7 6 23 0 0 0 2 0
tuple: CONFIG_CB len 9
  0x 0: 4 7 3 2 3 1 0 0 ff
tuple: CFTABLE_ENTRY_CB len 11
  0x 0: 5 9 1 b8 4 b0 bc 8e a fb 4
tuple: CFTABLE_ENTRY_CB len 10
  0x 0: 5 8 2 b0 b0 bc 8e a fb 4
tuple: NO_LINK len 2
  0x 0: 14 0
tuple: END len 1
  0x 0: ff
fxp0 at cardbus0 dev 0 function 0: INTEL(R) PRO/100 LAN+MODEM56 CARDBUS II
entering cardbus_function_enable...  101
- cardbus_intr_establish: irq 11
fxp0: interrupting at 11
fxp0: Ethernet address xx:xx:xx:xx:xx:xx, 10/100 Mb/s
inphy0 at fxp0 phy 1: i82555 10/100 media interface, rev. 4
inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
fxp0: supplying EUI64: xx:xx:xx:ff:fe:xx:xx:xx
- pccard_intr_disestablish
entering cardbus_function_disable...  cardbus_attach_card: Vendor 0x8086, Product 0x1002, CIS 0x102
cardbus0: reading CIS data from BAR1
tuple: LINKTARGET len 5
  0x 0: 13 3 43 49 53
tuple: VERS_1 len 52
  0x 0: 15 32 5 0 49 4e 54 45 4c 28 52 29 0 50 52 4f
  0x10: 2f 31 30 30 20 4d 4f 44 45 4d 35 36 20 43 41 52
  0x20: 44 42 55 53 20 49 49 0 50 31 30 30 4d 0 31 2e
  0x30: 30 30 0 ff
tuple: MANFID len 7
  0x 0: 20 5 89 0 0 11 c1
tuple: DATE len 6
  0x 0: 44 4 0 60 11 25
tuple: FUNCID len 4
  0x 0: 21 2 2 0
tuple: FUNCE len 6
  0x 0: 22 4 0 2 f 5c
tuple: FUNCE len 14
  0x 0: 22 c 2 6 0 3f 1c 3 3 f 7 0 1 b5
tuple: FUNCE len 10
  0x 0: 22 8 13 6 0 b 0 2 0 b5
tuple: DEVICE_OC len 4
  0x 0: 1c 2 2 ff
tuple: BAR len 8
  0x 0: 7 6 11 0 8 0 0 0
tuple: BAR len 8
  0x 0: 7 6 22 0 0 2 0 0
tuple: CONFIG_CB len 9
  0x 0: 4 7 3 1 f2 0 0 0 ff
tuple: CFTABLE_ENTRY_CB len 11
  0x 0: 5 9 41 b8 2 b0 bc 8e 4 fb 4
tuple: NO_LINK len 2
  0x 0: 14 0
tuple: END len 1
  0x 0: ff
fxp1 at cardbus0 dev 0 function 1
cardbus_mem_find: expected type mem, found i/o
: INTEL(R) PRO/100 MODEM56 CARDBUS II
entering cardbus_function_enable...  102
- cardbus_intr_establish: irq 11
fxp1: interrupting at 11
fxp1: failed to detect EEPROM size
fxp1: Ethernet address 00:00:00:00:00:00, 10/100 Mb/s
fxp1: fxp_mdi_read: timed out
- pccard_intr_disestablish
entering cardbus_function_disable...

>How-To-Repeat:
	Boot a cardbus kernel with a fxp card and notice the fxp1 attachment.
	Ok, the fxp0 card still doesn't work in my notebook, due to interrupt
	problems, but I don't think that this is the cause of the problem here.
>Fix:
>Audit-Trail:
>Unformatted: