From owner-freebsd-stable@FreeBSD.ORG Mon Oct 31 17:42:41 2005 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 A732716A41F for ; Mon, 31 Oct 2005 17:42:41 +0000 (GMT) (envelope-from scottl@samsco.org) Received: from pooker.samsco.org (pooker.samsco.org [168.103.85.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id AE99F43D48 for ; Mon, 31 Oct 2005 17:42:36 +0000 (GMT) (envelope-from scottl@samsco.org) Received: from [192.168.254.21] (rat.samsco.home [192.168.254.21]) (authenticated bits=0) by pooker.samsco.org (8.13.4/8.13.4) with ESMTP id j9VHgWh9054528; Mon, 31 Oct 2005 10:42:33 -0700 (MST) (envelope-from scottl@samsco.org) Message-ID: <43665788.4070807@samsco.org> Date: Mon, 31 Oct 2005 10:42:32 -0700 From: Scott Long User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.7.5) Gecko/20050321 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Warner Losh References: <20051031151809.GA83253@stack.nl> <43663A0A.4040608@samsco.org> <20051031160150.GB87483@stack.nl> <20051031.103408.71093019.imp@bsdimp.com> In-Reply-To: <20051031.103408.71093019.imp@bsdimp.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.4 required=3.8 tests=ALL_TRUSTED autolearn=failed version=3.1.0 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on pooker.samsco.org Cc: marcolz@stack.nl, stable@freebsd.org Subject: Re: HEADS UP! 6.0-RELEASE coming 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: Mon, 31 Oct 2005 17:42:41 -0000 Warner Losh wrote: >>>The ACPI+sio problem is known. I have a motherboard with a similar >>>problem, though a different brand than yours. I solved it by removing >>>the ACPI attachment from the sio code. The better solution is to allow >>>loader hints to override ACPI hints. I tried talking to John Baldwin >>>about this but didn't get much of a response. >> >>I've tried all suggestions so far, but to no avail on most servers. Too >>many broken ACPI implementations I fear... Too bad motherboard vendors >>don't take the time to push proper software in their flash. > > > Right now acpi tells us there's a device, and we use it. Loader hints > should be used to map locations to device instances. It is more > general than just ACPI, however. People want to bind sio to a > specific port that comes out the back. People also want to bind rl0 > to the card in slot 3. > > Consider my system: > sio0 pnpinfo _HID=PNP0501 _UID=1 at handle=\_SB_.PCI0.SBRG.UAR1 > sio1 pnpinfo _HID=PNP0501 _UID=2 at handle=\_SB_.PCI0.SBRG.UAR2 > > On this system, UAR1 is the port that comes out the back, so I have > what I want. However, I'd like to be able to say: > > hint.sio.0.at="acpi" > hint.sio.0.location="\_SB_.PCI0.SBRG.UAR2" > > or > > hint.sio.0.at="acpi" > hint.sio.0.location="UAR2" > > or > > hint.fxp.0.at="pci" > hint.fxp.0.location="bus=2 slot=3 function=0" > hint.fxp.1.at="pci" > hint.fxp.1.location="pci2:2:0" > > Since we really want to map the devices in some arbitrary ACPI tree to > instances in the system, rather than mapping devices that happen to > live at a specific resource address to specific instances in the tree. > > However, there are a number of issues in doing this generically and > with error cases. How does one deal with the different syntaxes? > What extensions to the newbus system are there? etc. > > Warner Well, in my case at least, what ACPI says about the sio resources is simply wrong, and I'm not smart enough to figure out how to correct the ASL or get it loaded correctly on boot. It would be easier if the sio-acpi attachment honored the hints that already exist for the purpose of describing the sio resources. Last I checked, neither Windows nor Linux nor Solaris required users to read the ACPI 2.0 spec to get their comms ports working. Having the flexibility to do what you describe above would be nice, but allowing mortal users to get their hardware working would be ever nicer. Scott