From owner-freebsd-bugs@FreeBSD.ORG Fri Jul 13 11:40:02 2007 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 91D3E16A404 for ; Fri, 13 Jul 2007 11:40:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 7018713C461 for ; Fri, 13 Jul 2007 11:40:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.1/8.14.1) with ESMTP id l6DBe2Fx048641 for ; Fri, 13 Jul 2007 11:40:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.1/8.14.1/Submit) id l6DBe2Ht048640; Fri, 13 Jul 2007 11:40:02 GMT (envelope-from gnats) Resent-Date: Fri, 13 Jul 2007 11:40:02 GMT Resent-Message-Id: <200707131140.l6DBe2Ht048640@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Aurélien Méré Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 825CF16A405 for ; Fri, 13 Jul 2007 11:34:17 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [69.147.83.33]) by mx1.freebsd.org (Postfix) with ESMTP id 71D6613C441 for ; Fri, 13 Jul 2007 11:34:17 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.13.1/8.13.1) with ESMTP id l6DBYGSt082256 for ; Fri, 13 Jul 2007 11:34:16 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.13.1/8.13.1/Submit) id l6DBYGc3082255; Fri, 13 Jul 2007 11:34:16 GMT (envelope-from nobody) Message-Id: <200707131134.l6DBYGc3082255@www.freebsd.org> Date: Fri, 13 Jul 2007 11:34:16 GMT From: Aurélien Méré To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.0 Cc: Subject: misc/114550: Cardbus WiFi card activation problem X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Jul 2007 11:40:02 -0000 >Number: 114550 >Category: misc >Synopsis: Cardbus WiFi card activation problem >Confidential: no >Severity: serious >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Jul 13 11:40:01 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Aurélien Méré >Release: 7.0-CURRENT >Organization: >Environment: FreeBSD zubrowka.pedards.amc-os.com 7.0-CURRENT FreeBSD 7.0-CURRENT #1: Fri Jul 6 10:59:58 UTC 2007 kindman@zubrowka.pedards.amc-os.com:/mnt/da0s1a/obj/usr/src/sys/ZUBROWKA i386 >Description: Hello, I have a problem with Cardbus support : the inserted card is not correctly recognized during bootup unless a specific PCICONF command is done after. Here is the output of the boot process with cardbus debug enabled : cbb0: irq 19 at device 8.0 on pci2 cbb0: Found memory at f7801000 cbb0: Secondary bus is 0 cbb0: Setting primary bus to 2 cbb0: Secondary bus set to 3 subbus 4 cardbus0: on cbb0 pccard0: <16-bit PCCard bus> on cbb0 cbb0: [ITHREAD] Status is 0x30000820 cbb0: card inserted: event=0x00000006, state=30000820 cbb0: cbb_power: 3V cbb0: cbb_power: 0V I saw on a forum with posts of March 2007 that to active correctly the card, it is required to do something like : # pciconf -wb pci0:16:0 0x1a 8 and then, after removing and inserting the card again, everything works correctly : Status is 0x30000086 Status is 0x30000086 Status is 0x30000820 cbb0: card inserted: event=0x00000006, state=30000820 cbb0: cbb_power: 3V cardbus0: CIS pointer is 0x601 cardbus0: CIS in BAR 0x10 cardbus0: Expecting link target, got 0x0 cardbus0: Warning: Bogus CIS ignored ral0: mem 0xf7808000-0xf780ffff irq 19 at device 0.0 on cardbus0 ral0: MAC/BBP RT2661B, RF RT2527 ral0: Ethernet address: 00:0c:f6:1b:1f:1f ral0: [ITHREAD] Is there any patch available or planned to be commited in the source ? I tried using the last CURRENT release and I still get the problem. Thanks by advance, Aurélien -- Here is the output of pciconf -l and dmesg : $ pciconf -l hostb0@pci0:0:0: class=0x060000 card=0x00000000 chip=0x700c1022 rev=0x11 hdr=0x00 pcib1@pci0:1:0: class=0x060400 card=0x00000000 chip=0x700d1022 rev=0x00 hdr=0x01 isab0@pci0:7:0: class=0x060100 card=0x80441043 chip=0x74401022 rev=0x05 hdr=0x00 atapci0@pci0:7:1: class=0x01018a card=0x74411022 chip=0x74411022 rev=0x04 hdr=0x00 none0@pci0:7:3: class=0x068000 card=0x80441043 chip=0x74431022 rev=0x03 hdr=0x00 ahc0@pci0:8:0: class=0x010000 card=0xe2a09005 chip=0x00809005 rev=0x02 hdr=0x00 pcib2@pci0:16:0: class=0x060400 card=0x00000000 chip=0x74481022 rev=0x05 hdr=0x01 vgapci0@pci1:5:0: class=0x030000 card=0x00041049 chip=0x78008086 rev=0x21 hdr=0x00 re0@pci2:6:0: class=0x020000 card=0x311a1385 chip=0x816910ec rev=0x10 hdr=0x00 cbb0@pci2:8:0: class=0x060700 card=0x14101524 chip=0x14101524 rev=0x01 hdr=0x02 ral0@pci3:0:0: class=0x028000 card=0x9072182d chip=0x03011814 rev=0x00 hdr=0x00 $ dmesg Copyright (c) 1992-2007 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 is a registered trademark of The FreeBSD Foundation. FreeBSD 7.0-CURRENT #1: Fri Jul 6 10:59:58 UTC 2007 kindman@zubrowka.pedards.amc-os.com:/mnt/da0s1a/obj/usr/src/sys/ZUBROWKA ACPI APIC Table: Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: AMD Athlon(TM) MP 2000+ (1666.74-MHz 686-class CPU) Origin = "AuthenticAMD" Id = 0x662 Stepping = 2 Features=0x383fbff AMD Features=0xc0480800 real memory = 805224448 (767 MB) avail memory = 778293248 (742 MB) FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 ioapic0 irqs 0-23 on motherboard kbd1 at kbdmux0 ath_hal: 0.9.20.3 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413) acpi0: on motherboard acpi0: [ITHREAD] acpi0: Power Button (fixed) acpi0: Sleep Button (fixed) acpi0: reservation of 0, a0000 (3) failed acpi0: reservation of 100000, 2ff00000 (3) failed Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0xe408-0xe40b on acpi0 cpu0: on acpi0 cpu1: on acpi0 acpi_button0: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 agp0: on hostb0 pcib1: at device 1.0 on pci0 pci1: on pcib1 vgapci0: mem 0xfa000000-0xfaffffff,0xf9000000-0xf907ffff irq 16 at device 5.0 on pci1 isab0: at device 7.0 on pci0 isa0: on isab0 atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xd800-0xd80f at device 7.1 on pci0 ata0: on atapci0 ata0: [ITHREAD] ata1: on atapci0 ata1: [ITHREAD] pci0: at device 7.3 (no driver attached) ahc0: port 0xd400-0xd4ff mem 0xf8800000-0xf8800fff irq 20 at device 8.0 on pci0 ahc0: [ITHREAD] aic7892: Ultra160 Wide Channel A, SCSI Id=7, 32/253 SCBs pcib2: at device 16.0 on pci0 pci2: on pcib2 re0: port 0xc800-0xc8ff mem 0xf7800000-0xf78000ff irq 17 at device 6.0 on pci2 miibus0: on re0 rgephy0: PHY 1 on miibus0 rgephy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto re0: Ethernet address: 00:18:4d:79:72:65 re0: [FILTER] cbb0: irq 19 at device 8.0 on pci2 cbb0: Found memory at f7801000 cbb0: Secondary bus is 0 cbb0: Setting primary bus to 2 cbb0: Secondary bus set to 3 subbus 4 cardbus0: on cbb0 pccard0: <16-bit PCCard bus> on cbb0 cbb0: [ITHREAD] ppc0: port 0x378-0x37f,0x778-0x77f irq 7 drq 3 on acpi0 ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode ppc0: FIFO with 16/16/9 bytes threshold ppbus0: on ppc0 plip0: on ppbus0 lpt0: on ppbus0 lpt0: Interrupt-driven port ppi0: on ppbus0 ppc0: [GIANT-LOCKED] ppc0: [ITHREAD] sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 sio0: type 16550A sio0: [FILTER] sio1: <16550A-compatible COM port> port 0x2f8-0x2ff irq 3 on acpi0 sio1: type 16550A sio1: [FILTER] atkbdc0: port 0x60,0x64 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] atkbd0: [ITHREAD] pmtimer0 on isa0 orm0: at iomem 0xc0000-0xc7fff pnpid ORM0000 on isa0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 Timecounters tick every 1.000 msec ipfw2 initialized, divert enabled, rule-based forwarding disabled, default to deny, logging unlimited Waiting 5 seconds for SCSI devices to settle Status is 0x30000086 ad0: 9641MB at ata0-master UDMA33 ad1: 117800MB at ata0-slave UDMA100 da0 at ahc0 bus 0 target 0 lun 0 da0: Fixed Direct Access SCSI-3 device da0: 160.000MB/s transfers (80.000MHz DT, offset 63, 16bit) da0: Command Queueing Enabled da0: 17357MB (35548320 512 byte sectors: 255H 63S/T 2212C) da1 at ahc0 bus 0 target 1 lun 0 da1: Fixed Direct Access SCSI-3 device da1: 80.000MB/s transfers (40.000MHz, offset 31, 16bit) da1: Command Queueing Enabled da1: 8748MB (17916240 512 byte sectors: 255H 63S/T 1115C) da3 at ahc0 bus 0 target 4 lun 0 da3: Fixed Direct Access SCSI-3 device da3: 40.000MB/s transfers (20.000MHz, offset 15, 16bit) da3: Command Queueing Enabled da3: 4303MB (8813870 512 byte sectors: 255H 63S/T 548C) SMP: AP CPU #1 Launched! da2 at ahc0 bus 0 target 2 lun 0 da2: Fixed Direct Access SCSI-3 device da2: 40.000MB/s transfers (20.000MHz, offset 31, 16bit) da2: Command Queueing Enabled da2: 8748MB (17916240 512 byte sectors: 255H 63S/T 1115C) GEOM_LABEL: Label for provider da1s1 is ntfs/KW-S9A. Trying to mount root from ufs:/dev/ad0s1a re0: link state changed to UP Status is 0x30000820 cbb0: card inserted: event=0x00000006, state=30000820 cbb0: cbb_power: 3V cbb0: cbb_power: 0V -- >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: