From owner-freebsd-stable@FreeBSD.ORG Sat Jan 21 07:44:31 2006 Return-Path: X-Original-To: stable@freebsd.org Delivered-To: freebsd-stable@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8B5D616A41F for ; Sat, 21 Jan 2006 07:44:31 +0000 (GMT) (envelope-from freebsdpcic@oldach.net) Received: from rigel.oldach.net (rigel.oldach.net [194.8.96.250]) by mx1.FreeBSD.org (Postfix) with ESMTP id B586F43D46 for ; Sat, 21 Jan 2006 07:44:30 +0000 (GMT) (envelope-from freebsdpcic@oldach.net) Received: from sep.oldach.net (p548F94D4.dip0.t-ipconnect.de [84.143.148.212]) by rigel.oldach.net (8.13.4/8.13.4/hmo30jul04) with ESMTP id k0L7iRb3004294 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sat, 21 Jan 2006 08:44:28 +0100 (CET) (envelope-from freebsdpcic@oldach.net) Received: from sep.oldach.net (localhost [127.0.0.1]) by sep.oldach.net (8.13.4/8.13.4/hmo26jun05) with ESMTP id k0L7iQ8g020900 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sat, 21 Jan 2006 08:44:26 +0100 (CET) (envelope-from freebsdpcic@oldach.net) Received: (from hmo@localhost) by sep.oldach.net (8.13.4/8.13.4/Submit/hmo26jun05) id k0L7iQnN020899 for stable@freebsd.org; Sat, 21 Jan 2006 08:44:26 +0100 (CET) (envelope-from freebsdpcic@oldach.net) Message-Id: <200601210744.k0L7iQnN020899@sep.oldach.net> To: stable@freebsd.org Date: Sat, 21 Jan 2006 08:44:26 +0100 (CET) From: freebsdpcic@oldach.net (Helge Oldach) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.88/1246/Thu Jan 19 22:44:42 2006 on rigel.oldach.net X-Virus-Scanned: ClamAV version 0.88, clamav-milter version 0.87 on sep.oldach.net X-Virus-Status: Clean X-Spam-Flag: NO X-Scanned-By: milter-spamc/0.25.321 (rigel.oldach.net [194.8.96.250]); Sat, 21 Jan 2006 08:44:29 +0100 X-Spam-Status: NO, hits=3.30 required=5.00 X-Spam-Level: *** Cc: Subject: OLDCARD vs. NEWCARD revisited X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Jan 2006 07:44:31 -0000 Folks, I own an LG Electronics LW1100P wireless LAN PCI board, consisting of a Texas Instruments TI-1211 PCI-CardBus bridge and a wi(4)-compatible PCCARD. This card is recognized with an OLDCARD kernel but not with a(n almost) GENERIC kernel. I've spotted two oddities with this card and made it work with two rather trivial patches that essentially align NEWCARD a bit more to the OLDCARD behaviour: 1) The card (or the PCI/CardBus bridge?) seems to announce that it runs on 2V or 3.3V voltage. But it is actually lying about 2V support. It just doesn't work @ 2V - which is a rather pointless thing for a PCI card anyway. The delta between OLDCARD and NEWCARD is that OLDCARD did apply power starting with 5V, then 3.3V, then 2V, then 1V, but NEWCARD is doing it the other way 'round. Hence this card ends up with 2V supply and doesn't work. I've filed PR i386/91919 for this which contains a trivial patch reverting the voltage supply order. This might not be the preferred solution but it solves the issue. 2) The CIS on the card does not announce an IRQ preference at all. Hence the default IRQ mask of 0x0 applies and device_attach doesn't see an IRQ. But this is an I/O card which clearly needs an IRQ. I've filed PR i386/92070 for this which contains a trivial patch making 0xffff the default IRQ mask instead of 0x0. Maybe some kind soul might have a look at the PRs? Actually I think that some OLDCARD/NEWCARD issues that have been reported might be caused by these two oddities. BTW, The PR's relate to 5.4-STABLE but apply to 6.0-STABLE as well. Regards, Helge