From owner-freebsd-hackers Thu Sep 6 11: 1:47 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from enterprise.spock.org (cm-24-29-85-81.nycap.rr.com [24.29.85.81]) by hub.freebsd.org (Postfix) with ESMTP id 6678137B406; Thu, 6 Sep 2001 11:01:42 -0700 (PDT) Received: (from jon@localhost) by enterprise.spock.org serial EF600Q3T-B7F; Thu, 6 Sep 2001 14:01:29 -0400 (EDT) (envelope-from jon)$ Date: Thu, 6 Sep 2001 14:01:29 -0400 From: Jonathan Chen To: Mike Smith Cc: Brooks Davis , hackers@FreeBSD.ORG Subject: Re: proposed change to pci_pci.c Message-ID: <20010906140129.A13575@enterprise.spock.org> References: <200109060137.f861bSO05433@mass.dis.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: telnet/1.1x In-Reply-To: <200109060137.f861bSO05433@mass.dis.org>; from msmith@FreeBSD.ORG on Wed, Sep 05, 2001 at 06:37:28PM -0700 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, Sep 05, 2001 at 06:37:28PM -0700, Mike Smith wrote: > > I'd be OK with this being done as a hack for now. I think the bridge > code needs to be a bit kinder about allowing "stupid" things to be done > if they're set up by the BIOS. > > > I'd like to propose committing the following change which adds a new > > undocumented option in the spirit of PCI_ENABLE_IO_MODES. The new option > > (PCI_ALLOW_UNSUPPORTED_IO_RANGE) allows me to boot my old HP Omnibook > > 4150 while docked. Since I've seen a couple other people need this fix, > > I figure it would be more useful if they just had to add a line to their > > kernel config instead of editing the source files. Any objections? The pci_pci code actually needs some other changes done. Note the comment at line 267, "If this is a 'default' allocation against this rid, we can't work out where it's coming from (we should actually never see these) so we just have to punt." The "we should actually never see these" part is not quite correct, since NEWCARD uses default allocation to automagically get an "unused" range from the pci bus. Then we have to tweak the window for the pcipci bridge to forward the new addresses if the window wasn't big enough. Not to mention, we still need to implement a way to request bus numbers properly... Bleah, hardware sucks. Give me a virtual machine. -Jon To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message