From owner-freebsd-hackers@FreeBSD.ORG Tue Feb 11 19:49:42 2014 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 96FAFF2 for ; Tue, 11 Feb 2014 19:49:42 +0000 (UTC) Received: from bigwig.baldwin.cx (bigwig.baldwin.cx [IPv6:2001:470:1f11:75::1]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 6FE82199C for ; Tue, 11 Feb 2014 19:49:42 +0000 (UTC) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 81049B94B; Tue, 11 Feb 2014 14:49:41 -0500 (EST) From: John Baldwin To: freebsd-hackers@freebsd.org Subject: Re: Atom Board ACPI API MOPNV10J failing since 9.1 Date: Tue, 11 Feb 2014 13:19:14 -0500 User-Agent: KMail/1.13.5 (FreeBSD/8.4-CBSD-20130906; KDE/4.5.5; amd64; ; ) References: <52CF850A.9060906@erdgeist.org> <201401211215.22021.jhb@freebsd.org> <52DED060.4070800@yahoo.com> In-Reply-To: <52DED060.4070800@yahoo.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201402111319.14546.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Tue, 11 Feb 2014 14:49:41 -0500 (EST) Cc: David Shane Holden X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Feb 2014 19:49:42 -0000 On Tuesday, January 21, 2014 2:54:08 pm David Shane Holden wrote: > On 01/21/14 12:15, John Baldwin wrote: > > > > Hmm, I think I see the issue, and I might have a fix for it in the > > works already. The problem is that we haven't reserved pcib1's > > windows when agp probes, so agp0 steals a resource that is already > > in use. The change I have that might fix this isn't trivial though, > > so I don't have a patch I can just give you to test right now. :( > > Also, this isn't a BIOS issue per se. > > > > I came to the same conclusion a few days ago when I started digging into > it more. The agp driver requests some memory and the resource manager > gives it a chunk which should be reserved for the bridge. I couldn't > find an elegant solution; the best I could come up with was to add the > bridge devices first in pci_add_children() to ensure they got attached > before anything else. Which worked, but seems like a hack. Feel free > to ping me if you have something that needs testing. The patch I have in mind is a more general version of this that would have the same effect. I haven't tested it in quite a while, but if you are brave you can test it. http://people.freebsd.org/~jhb/patches/multipass.patch -- John Baldwin