From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steven Newbury Subject: Re: PCI resources above 4GB Date: Mon, 16 Apr 2012 08:01:46 +0100 Message-ID: <4F8BC3DA.1090003@snewbury.org.uk> References: <1333968563.5678.19.camel@infinity> <1334089568.4083.2.camel@Nokia-N900> <4F84A3EC.6030903@snewbury.org.uk> <1334229754.30606.7.camel@Nokia-N900> <1334248841.2910.6.camel@Nokia-N900> <4F89B5E8.3040906@snewbury.org.uk> <4F89BC84.50308@snewbury.org.uk> <4F89C513.3000006@snewbury.org.uk> <4F89CB16.2000908@snewbury.org.uk> <4F89CE43.7040200@snewbury.org.uk> <4F8AA0DC.6010902@snewbury.org.uk> <4F8AB312.7060606@snewbury.org.uk> <4F8B04A4.4070507@snewbury.org.uk> <4F8B0609.8010603@snewbury.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Sender: linux-pci-owner@vger.kernel.org To: Yinghai Lu Cc: "Barnes, Jesse" , Dave Airlie , Bjorn Helgaas , linux-pci@vger.kernel.org, DRI mailing list List-Id: dri-devel@lists.freedesktop.org -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 16/04/12 07:54, Yinghai Lu wrote: > On Sun, Apr 15, 2012 at 1:06 PM, Yinghai Lu > wrote: >>> 3. use pci_bus_allocate_resource in drm/radeon driver ... ===> >>> but that could fail. so could hack it like a. disable bar 0x10 >>> and steal BAR address, then set 0x30 to that address then copy >>> ROM to ram. after that, disable rom again and set back address >>> to 0x10. You try to update radeon_get_bios() to achieve that. > > patches for solution 3: map_rom.patch will try to borrow mem or mem > pref bar for ROM copying > > and You still need to use pci=norom > I've tested solution 2 so far and it works well. I'll test your patches for 1 and 3 later today. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk+Lw9oACgkQGcb56gMuC621nwCeM+6rJo8BQhKrbUNzDCJkhVsu 1sQAoJVf/8XNBsro2tyhHxj1giNrVZ6e =w3sG -----END PGP SIGNATURE-----