From owner-freebsd-current@FreeBSD.ORG Fri Sep 23 08:53:45 2005 Return-Path: X-Original-To: current@FreeBSD.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7A91A16A41F; Fri, 23 Sep 2005 08:53:45 +0000 (GMT) (envelope-from ru@ip.net.ua) Received: from tigra.ip.net.ua (tigra.ip.net.ua [82.193.96.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id DED0D43D45; Fri, 23 Sep 2005 08:53:44 +0000 (GMT) (envelope-from ru@ip.net.ua) Received: from localhost (rocky.ip.net.ua [82.193.96.2]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id j8N8rg9N086468; Fri, 23 Sep 2005 11:53:42 +0300 (EEST) (envelope-from ru@ip.net.ua) Received: from tigra.ip.net.ua ([82.193.96.10]) by localhost (rocky.ipnet [82.193.96.2]) (amavisd-new, port 10024) with LMTP id 32533-17; Fri, 23 Sep 2005 11:53:41 +0300 (EEST) Received: from heffalump.ip.net.ua (heffalump.ip.net.ua [82.193.96.213]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id j8N8rf7W086465 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 23 Sep 2005 11:53:41 +0300 (EEST) (envelope-from ru@ip.net.ua) Received: (from ru@localhost) by heffalump.ip.net.ua (8.13.3/8.13.3) id j8N8rwdV058826; Fri, 23 Sep 2005 11:53:58 +0300 (EEST) (envelope-from ru) Date: Fri, 23 Sep 2005 11:53:58 +0300 From: Ruslan Ermilov To: Warner Losh Message-ID: <20050923085358.GA58772@ip.net.ua> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="h31gzZEtNLTqOjlF" Content-Disposition: inline User-Agent: Mutt/1.5.9i X-Virus-Scanned: by amavisd-new at ip.net.ua Cc: current@FreeBSD.org Subject: Powering down 16-bit wi(4) PC Card is broken for me X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Sep 2005 08:53:45 -0000 --h31gzZEtNLTqOjlF Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Warner, This is with today's -CURRENT, but it's been happening for some time now I guess. I have two PC Cards, one 32-bit 3.3V rl(4), and one 16-bit 5V wi(4). And it looks there's a problem with powering down the wi(4) card. Ejecting/injecting rl(4) works as expected. But first time I eject wi(4), it fails (Bad Vcc requested). After this happens, I can no longer use this slot -- "Bad Vcc requested" is printed during each ejection/injection, and I get "watchdog timeout" with rl(4). Here are the probe lines: : cbb0: mem 0x50103000-0x50103fff irq 11 at dev= ice 2.0 on pci0 : cardbus0: on cbb0 : pccard0: <16-bit PCCard bus> on cbb0 : cbb1: mem 0x50102000-0x50102fff irq 11 at dev= ice 2.1 on pci0 : cardbus1: on cbb1 : pccard1: <16-bit PCCard bus> on cbb1 (hw.cbb.debug is set to "1".) Here's the log of injection/ejection of rl(4), two times in a row: Injecting rl: : Status is 0x30000920 : cbb0: card inserted: event=3D0x00000006, state=3D30000920 : cbb0: cbb_power: 3V : rl0: port 0x1000-0x10ff mem 0xd8000-0xd81ff ir= q 11 at device 0.0 on cardbus0 : miibus0: on rl0 : rlphy0: on miibus0 : rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto : rl0: Ethernet address: 00:11:6b:50:03:82 Ejecting rl: : Status is 0x30000186 : rlphy0: detached : miibus0: detached : rl0: detached : cbb0: cbb_power: 0V Injecting rl: : Status is 0x30000920 : cbb0: card inserted: event=3D0x00000006, state=3D30000920 : cbb0: cbb_power: 3V : rl0: port 0x1000-0x10ff mem 0xd8000-0xd81ff ir= q 11 at device 0.0 on cardbus0 : miibus0: on rl0 : rlphy0: on miibus0 : rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto : rl0: Ethernet address: 00:11:6b:50:03:82 Ejecting rl: : Status is 0x30000186 : rlphy0: detached : miibus0: detached : rl0: detached : cbb0: cbb_power: 0V Here's the wi(4) play. (The wi(4) driver isn't loaded, it's not important.) First injection of wi works: : Status is 0x30000510 : cbb0: card inserted: event=3D0x00000000, state=3D30000510 : cbb_pcic_socket_enable: : cbb0: cbb_power: 5V : cbb_pcic_socket_enable: : pccard0: (manufacturer=3D0x0156, product=3D0x0002, functio= n_type=3D6) at function 0 : pccard0: CIS info: Lucent Technologies, WaveLAN/IEEE, Version 01.01,= =20 Ejection of wi fails: : Status is 0x30000116 : cbb_pcic_socket_disable : cbb0: cbb_power: 0V : cbb0: Bad Vcc requested ^^^^^^^^^^^^^^^^^ And that's where the problem starts. Injecting wi again (fails): : Status is 0x30000710 : cbb0: card inserted: event=3D0x00000000, state=3D30000710 : cbb_pcic_socket_enable: : cbb0: cbb_power: 5V : cbb0: Bad Vcc requested : cbb_pcic_socket_enable: : pccard0: (manufacturer=3D0x0156, product=3D0x0002, functio= n_type=3D6) at function 0 : pccard0: CIS info: Lucent Technologies, WaveLAN/IEEE, Version 01.01,= =20 Ejecting wi: : Status is 0x30000316 : cbb_pcic_socket_disable : cbb0: cbb_power: 0V : cbb0: Bad Vcc requested Injecting/ejecting rl(4) similarly fails now. When it happens, rl(4) attaches but no longer works (watchdog timeouts). When it happens, wi(4) attaches but no longer works ("no carrier" in ifconfig(8) despite wicontrol(8) seeing the AP normally). Cheers, --=20 Ruslan Ermilov ru@FreeBSD.org FreeBSD committer --h31gzZEtNLTqOjlF Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQFDM8KmqRfpzJluFF4RAvBhAJwN5yKENMefoJEeWYKKX53a5RFhGwCfZ2ju m/INNq8J9K7zOrTWZ0bYZIY= =/KVR -----END PGP SIGNATURE----- --h31gzZEtNLTqOjlF--