From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mtaout03-winn.ispmail.ntl.com ([81.103.221.49]:11223 "EHLO mtaout03-winn.ispmail.ntl.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753016Ab2DMIfI (ORCPT ); Fri, 13 Apr 2012 04:35:08 -0400 From: Steven Newbury Reply-To: Steven Newbury To: Yinghai Lu Cc: "Barnes, Jesse" , Dave Airlie , Bjorn Helgaas , linux-pci@vger.kernel.org, DRI mailing list Subject: Re: PCI resources above 4GB 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> In-Reply-To: Content-Type: text/plain; charset=utf-8 Date: Fri, 13 Apr 2012 09:34:36 +0100 Message-Id: <1334306076.2910.10.camel@Nokia-N900> Mime-Version: 1.0 Sender: linux-pci-owner@vger.kernel.org List-ID: On Fri, 13 Apr 2012, 09:26:55 BST, Yinghai Lu wrote: > On Thu, Apr 12, 2012 at 9:40 AM, Steven Newbury > wrote: > > > > > > > > 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. > > > >  I 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... > > Please check attached patches that will find_resource with fit. It may > leave space for your hotplug devices. > >    PCI: Should add children device res to fail list >    PCI: Try to allocate mem64 above 4G at first >    intel-gtt: Read 64bit for gmar_bus_addr >    PCI: Make sure assign same align with large size resource at first >    resource: make find_resource could return just fit resource >    PCI: Don't allocate small resource in big empty space. >    resource: only return range with needed align > > You can get them from > >            > git://git.kernel.org/pub/scm/linux/kernel/git/yinghai/linux-yinghai.git > for-pci-res-alloc > Thanks Yinghai, I'll give it a spin.