From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steven Newbury Subject: Re: PCI resources above 4GB Date: Fri, 13 Apr 2012 09:34:36 +0100 Message-ID: <1334306076.2910.10.camel@Nokia-N900> References: <1333968563.5678.19.camel@infinity> <4F84110E.3000400@snewbury.org.uk> <4F8467AA.90305@snewbury.org.uk> <4F848357.3060007@snewbury.org.uk> <4F848E10.1090703@snewbury.org.uk> <1334089568.4083.2.camel@Nokia-N900> <4F84A3EC.6030903@snewbury.org.uk> <1334229754.30606.7.camel@Nokia-N900> <1334248841.2910.6.camel@Nokia-N900> Reply-To: Steven Newbury Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: In-Reply-To: Content-ID: <1334306074.2910.9.camel@Nokia-N900> 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 On Fri, 13 Apr 2012, 09:26:55 BST, Yinghai Lu wrot= e: > On Thu, Apr 12, 2012 at 9:40 AM, Steven Newbury > wrote: > > > >=20 > > > > It would be useful to preserve as much low PCI memory address > > > > space as possible for hotplug devices (like my Radeon), but the > > > > other problem is small regions get allocated at the bottom, > > > > resulting in the inability to find large aligned regions later = on. > > > > =C2=A0I see code to default to top-down allocation was reverted= , I > > > > guess I'm going to have to dig into the archive to find out why= =2E.. >=20 > Please check attached patches that will find_resource with fit. It ma= y > leave space for your hotplug devices. >=20 >=C2=A0 =C2=A0 PCI: Should add children device res to fail list >=C2=A0 =C2=A0 PCI: Try to allocate mem64 above 4G at first >=C2=A0 =C2=A0 intel-gtt: Read 64bit for gmar_bus_addr >=C2=A0 =C2=A0 PCI: Make sure assign same align with large size resour= ce at first >=C2=A0 =C2=A0 resource: make find_resource could return just fit reso= urce >=C2=A0 =C2=A0 PCI: Don't allocate small resource in big empty space. >=C2=A0 =C2=A0 resource: only return range with needed align >=20 > You can get them from >=20 >=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =20 > git://git.kernel.org/pub/scm/linux/kernel/git/yinghai/linux-yinghai.g= it > for-pci-res-alloc >=20 Thanks Yinghai, I'll give it a spin.