From owner-cvs-all@FreeBSD.ORG Fri Sep 16 19:21:42 2005 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BF00316A41F; Fri, 16 Sep 2005 19:21:42 +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 3395943D45; Fri, 16 Sep 2005 19:21:42 +0000 (GMT) (envelope-from scottl@samsco.org) Received: from [192.168.254.11] (junior.samsco.home [192.168.254.11]) (authenticated bits=0) by pooker.samsco.org (8.13.4/8.13.4) with ESMTP id j8GJLe5I008409; Fri, 16 Sep 2005 13:21:40 -0600 (MDT) (envelope-from scottl@samsco.org) Message-ID: <432B1B49.2010400@samsco.org> Date: Fri, 16 Sep 2005 13:21:45 -0600 From: Scott Long User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.8) Gecko/20050615 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Warner Losh References: <200509160702.j8G72TBv063544@repoman.freebsd.org> In-Reply-To: <200509160702.j8G72TBv063544@repoman.freebsd.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.8 required=3.8 tests=ALL_TRUSTED autolearn=failed version=3.0.2 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on pooker.samsco.org Cc: cvs-src@FreeBSD.org, src-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/dev/acpica acpi_pcib_acpi.c src/sys/i386/pci pci_bus.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Sep 2005 19:21:42 -0000 Warner Losh wrote: > imp 2005-09-16 07:02:29 UTC > > FreeBSD src repository > > Modified files: > sys/dev/acpica acpi_pcib_acpi.c > sys/i386/pci pci_bus.c > Log: > Commit a workaround to a problem with resource allocation. This helps > with some Dell servers that booted w/o a problem[*] on 5.4, but failed > with 6.0-BETA. > > On the PCI bus, when we do lazy resource allocation, we narrow the > range requested as we pass through bridges to reflect how the bridges > are programmed and what addresses they pass. However, when we're > doing an allocation on a bus that's directly connected to a host > bridge, no such translation can take place. We already had a fallback > range for memory requests, but none for ioports. As such, provide a > fallback for I/O ports so we don't allocate location 0, which will > have undesired side effects when the resources are actually used. > > This fixes a problem with booting a Dell server with usb in the > kernel. However, it is an unsatisfying solution. I don't like the > hard coded value, and I think we should start narrowing the resources > returned to not be in the so-called isa alias area (where the ranage & > 0x0300 must be 0 iirc). Doing such filtering will have to wait for > another day. > > This may be a good 6 candidate, maybe after its had a chance to be > refined. > > Tested by: glebius@ > > Revision Changes Path > 1.49 +2 -0 src/sys/dev/acpica/acpi_pcib_acpi.c > 1.120 +2 -0 src/sys/i386/pci/pci_bus.c Only the ACPI side of this patch works. The legacy PCI side has no effect on the problem. Scott