From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joerg Roedel Subject: Re: Linux 2.6.39-rc3 Date: Thu, 14 Apr 2011 11:36:12 +0200 Message-ID: <20110414093612.GE18463@8bytes.org> References: <4DA5F62F.3030504@kernel.org> <20110413193459.GL19819@8bytes.org> <4DA60C30.4060606@kernel.org> <4DA6145D.9070703@kernel.org> <4DA655E7.3000904@zytor.com> <20110414040337.GC12781@mtj.dyndns.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Content-Disposition: inline In-Reply-To: <20110414040337.GC12781@mtj.dyndns.org> Sender: linux-kernel-owner@vger.kernel.org To: Tejun Heo Cc: Linus Torvalds , "H. Peter Anvin" , Yinghai Lu , Ingo Molnar , Alex Deucher , Linux Kernel Mailing List , "dri-devel@lists.freedesktop.org" , Thomas Gleixner List-Id: dri-devel@lists.freedesktop.org On Thu, Apr 14, 2011 at 01:03:37PM +0900, Tejun Heo wrote: > Hello, >=20 > On Wed, Apr 13, 2011 at 07:33:40PM -0700, Linus Torvalds wrote: > > On Wednesday, April 13, 2011, Linus Torvalds > > wrote: > > > On Wednesday, April 13, 2011, H. Peter Anvin wrot= e: > > >> > > >> Yes. =A0However, even if we *do* revert (and the time is running= short on > > >> not reverting) I would like to understand this particular one, s= imply > > >> because I think it may very well be a problem that is manifestin= g itself > > >> in other ways on other systems. > >=20 > > sorry, fingerfart. Anyway, I agree 100%. > >=20 > > we definitely want to also understand the reason for things not > > working, even if we do revert.. >=20 > There were (and still are) places where memblock callers implemented > ad-hoc top-down allocation by stepping down start limit until > allocation succeeds. Several of them have been removed since top-dow= n > became the default behavior, so simply reverting the commit is likely > to cause subtle issues. Maybe the best approach is introducing > @topdown parameter and use it selectively for pure memory allocations= =2E Wouldn't it be better to provide a seperate memblock allocation function which operates top-down and use this one in the places that need it? This way it wouldn't break code that relies on bottom-up. Joerg