From owner-freebsd-current@FreeBSD.ORG Tue Jun 3 22:16:06 2003 Return-Path: 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 C7D2E37B401 for ; Tue, 3 Jun 2003 22:16:06 -0700 (PDT) Received: from postfix4-1.free.fr (postfix4-1.free.fr [213.228.0.62]) by mx1.FreeBSD.org (Postfix) with ESMTP id 31A2143F93 for ; Tue, 3 Jun 2003 22:16:06 -0700 (PDT) (envelope-from nsouch@free.fr) Received: from armor.fastether (nas-cbv-7-62-147-154-166.dial.proxad.net [62.147.154.166]) by postfix4-1.free.fr (Postfix) with SMTP id D76D03BF97 for ; Wed, 4 Jun 2003 07:15:57 +0200 (CEST) Received: (qmail 34195 invoked by uid 1001); 4 Jun 2003 07:29:31 -0000 Date: Wed, 4 Jun 2003 07:29:31 +0000 From: Nicolas Souchu To: "David P. Reese Jr." Message-ID: <20030604072931.E33869@armor.free.fr> References: <20030602222009.A16160@armor.free.fr> <20030603175430.GA4039@tombstone.localnet.gomerbud.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20030603175430.GA4039@tombstone.localnet.gomerbud.com>; from daver@gomerbud.com on Tue, Jun 03, 2003 at 10:54:30AM -0700 cc: current@freebsd.org Subject: Re: viapropm doesnt like sys/dev/pci.c rev 1.214 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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: Wed, 04 Jun 2003 05:16:07 -0000 On Tue, Jun 03, 2003 at 10:54:30AM -0700, David P. Reese Jr. wrote: [...] > : The datasheet states that the command bits are RW but "fixed at 0". > > A snip of code from sys/dev/pci/pci.c:pci_enable_io_method(): > > pci_set_command_bit(dev, child, bit); > command = PCI_READ_CONFIG(dev, child, PCIR_COMMAND, 2); > if (command & bit) > return (0); > device_printf(child, "failed to enable %s mapping!\n", error); > return (ENXIO); > > Because the viapropm's command register bits will always read as zero, > this code will always fail when trying to enable port mapping. > > Whatever problems viapropm may have, it is the new pci code that prevents it > from attaching. It is not the fault of anything in sys/pci/viapm.c. And I personally don't know how to fix it except by an option with an ifdef to workaround it. -- Nicholas Souchu - nsouch@free.fr - nsouch@FreeBSD.org