From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756701Ab2I1Ki0 (ORCPT ); Fri, 28 Sep 2012 06:38:26 -0400 Received: from moutng.kundenserver.de ([212.227.17.8]:60426 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751294Ab2I1KiZ (ORCPT ); Fri, 28 Sep 2012 06:38:25 -0400 Date: Fri, 28 Sep 2012 12:38:15 +0200 From: Thierry Reding To: Mel Gorman Cc: Peter Ujfalusi , Minchan Kim , Andrew Morton , Marek Szyprowski , Michal Nazarewicz , linux-kernel@vger.kernel.org, linux-mm@kvack.org, Bartlomiej Zolnierkiewicz , Kyungmin Park , Mark Brown Subject: Re: CMA broken in next-20120926 Message-ID: <20120928103815.GA15219@avionic-0098.mockup.avionic-design.de> References: <20120927112911.GA25959@avionic-0098.mockup.avionic-design.de> <20120927151159.4427fc8f.akpm@linux-foundation.org> <20120928054330.GA27594@bbox> <20120928083722.GM3429@suse.de> <50656459.70309@ti.com> <20120928102728.GN3429@suse.de> <20120928103207.GA22811@avionic-0098.mockup.avionic-design.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="AhhlLboLdkugWU4S" Content-Disposition: inline In-Reply-To: <20120928103207.GA22811@avionic-0098.mockup.avionic-design.de> User-Agent: Mutt/1.5.21 (2010-09-15) X-Provags-ID: V02:K0:GbpxnR/fuMXnCc5u4ecYvWio9PjIHDsfxxBarVIxQi0 ORCRYejc5mqda39Golo+ua82xa5y7uTlkI2sDfftFjvZVg9QOw SRK3OLKgDEYone1CKlST9njpUuoFerOuEHdW8CqqyPeV2HJyzu hGrobmKFpE0QdeWCpionLhoddlgTZy9RinedbqkG6mCpHXl7GL o/4iAxz/XLcwq99k5S2PHngfS9fqPLGz826Y0V/llP573o5jBA 2nmzZSMzbcxPhuwMLI3v4i+mxabJjOqVfSVAW8VzDsurM0MQ3D K4IXwMmWDeEOILN6xH5dxmdcogYnEl6xh435oXebq8jZDQ0/y3 +6yQoYPBgBhnq7UWPMP4FPHyNGVvqx7MVni42tS8rca9Dvi5vE QdkGu48PrnfZ5HygZ8yuMP4lgMP7HJQkBo= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --AhhlLboLdkugWU4S Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Sep 28, 2012 at 12:32:07PM +0200, Thierry Reding wrote: > On Fri, Sep 28, 2012 at 11:27:28AM +0100, Mel Gorman wrote: > > On Fri, Sep 28, 2012 at 11:48:25AM +0300, Peter Ujfalusi wrote: > > > Hi, > > >=20 > > > On 09/28/2012 11:37 AM, Mel Gorman wrote: > > > >> I hope this patch fixes the bug. If this patch fixes the problem > > > >> but has some problem about description or someone has better idea, > > > >> feel free to modify and resend to akpm, Please. > > > >> > > > >=20 > > > > A full revert is overkill. Can the following patch be tested as a > > > > potential replacement please? > > > >=20 > > > > ---8<--- > > > > mm: compaction: Iron out isolate_freepages_block() and isolate_free= pages_range() -fix1 > > > >=20 > > > > CMA is reported to be broken in next-20120926. Minchan Kim pointed = out > > > > that this was due to nr_scanned !=3D total_isolated in the case of = CMA > > > > because PageBuddy pages are one scan but many isolations in CMA. Th= is > > > > patch should address the problem. > > > >=20 > > > > This patch is a fix for > > > > mm-compaction-acquire-the-zone-lock-as-late-as-possible-fix-2.patch > > > >=20 > > > > Signed-off-by: Mel Gorman > > >=20 > > > linux-next + this patch alone also works for me. > > >=20 > > > Tested-by: Peter Ujfalusi > >=20 > > Thanks Peter. I expect it also works for Thierry as I expect you were > > suffering the same problem but obviously confirmation of that would be = nice. >=20 > I've been running a few tests and indeed this solves the obvious problem > that the coherent pool cannot be created at boot (which in turn caused > the ethernet adapter to fail on Tegra). >=20 > However I've been working on the Tegra DRM driver, which uses CMA to > allocate large chunks of framebuffer memory and these are now failing. > I'll need to check if Minchan's patch solves that problem as well. Indeed, with Minchan's patch the DRM can allocate the framebuffer without a problem. Something else must be wrong then. Thierry --AhhlLboLdkugWU4S Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) iQIcBAEBAgAGBQJQZX4XAAoJEN0jrNd/PrOhi9AQAIaZuZREkYgC9l4CZdt/vwhX zDaW9mGsgx7WNlX3sJcQ+xu4N5jhf/WJKuH6wE09ei50PeMAQAPm7uLsDugLJUvq OglKZmeKAn9BbWXmWWlUmGAcfjhemnX9IuvjG3EZiFX10x9SALnU79deo2Yl0rWJ 4mnK/97NOOEWQJHWU9xnH/PB/Oh50ysNqOnYaOUUgvrUcWjE1Z9Sy9bnaSbfllwP ZX4Cr7hLS5k6nQpCur3XbuZlLB+hpmDNj8f2A0dzJkoRyk+xIwwLVo/n1Nhqvi5M tYUhLia048214+D013cRHWxjM5iJcyLz91FToyc8JetkCprKRKAMaVr/1K4VBzRU ZeiwatTEs/3tSSqtCjNlcJsPz+vY7BOTD3AOnSLXZybKfXN3Z8ErFq4kCnUb6WLn jjGm9K7Q7nsLOdJmf0cB+gXW5LpVZpMjxpJjQ+KO7XqK9fmaRyzPwGltddixwr9q DYLunbNrdJUNXd/WFnrTxPMrE/mtJvY0cqrv64W2kaNJ1/FZ80q1gxEkLg78DgHt T6ZW2FaMuZLiH/3HqLx+DGPQBOgkcmoBGwf/3xwRi6jHfOadQMuviXJ3TfwRbRNe 5Z1D9TS4FFPDC/3Zy63hh+IJpjuLFMCtEsVsnI90tCYx07rQS8/UnJV2EnZytvpR UrP6bCYFGvHx7ZfhCZRY =3emU -----END PGP SIGNATURE----- --AhhlLboLdkugWU4S--