From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from web63002.mail.re1.yahoo.com (web63002.mail.re1.yahoo.com [69.147.96.213]) by ozlabs.org (Postfix) with SMTP id C6284B7D60 for ; Sun, 2 May 2010 20:27:15 +1000 (EST) Message-ID: <832265.7605.qm@web63002.mail.re1.yahoo.com> Date: Sun, 2 May 2010 03:27:12 -0700 (PDT) From: Maindoor Subject: Re: [PATCH] Fix DEBUG_PAGEALLOC on 603/e300 To: Xianghua Xiao , Benjamin Herrenschmidt In-Reply-To: <1272493790.24542.109.camel@pasglop> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1324963604-1272796032=:7605" Cc: linuxppc-dev List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , --0-1324963604-1272796032=:7605 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Any updates on this ? I need something similar. Thanks, Maindoor. --- On Thu, 4/29/10, Benjamin Herrenschmidt wrot= e: From: Benjamin Herrenschmidt Subject: Re: [PATCH] Fix DEBUG_PAGEALLOC on 603/e300 To: "Xianghua Xiao" Cc: "linuxppc-dev" Date: Thursday, April 29, 2010, 3:59 AM On Wed, 2010-04-28 at 14:15 -0500, Xianghua Xiao wrote: > This change works me on a 834x(e300) platform, tested with lmbench and > a production-ready application with 2.6.33.3. But have you tested that DEBUG_PAGEALLOC actually works ? :-) A way to do that is to =A0=A0=A0 - get_free_pages a page =A0=A0=A0 - read from it =A0=A0=A0 - free it =A0=A0=A0 - write to it It should oops on the write, and I suspect that without my patch it doesn't. Cheers, Ben. _______________________________________________ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev =0A=0A=0A --0-1324963604-1272796032=:7605 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable
=0A=0A --0-1324963604-1272796032=:7605--
Any updates on this ? I need something simila= r.

Thanks,
Maindoor.

--- On Thu, 4/29/10, Benjamin Herr= enschmidt <benh@kernel.crashing.org> wrote:

From: Benjamin Herrenschmidt <benh@kernel.crashing.org= >
Subject: Re: [PATCH] Fix DEBUG_PAGEALLOC on 603/e300
To: "Xiangh= ua Xiao" <xiaoxianghua@gmail.com>
Cc: "linuxppc-dev" <linuxppc-= dev@lists.ozlabs.org>
Date: Thursday, April 29, 2010, 3:59 AM

=
On Wed, 2010-04-28 at 14:15 -0500, Xianghua Xiao w= rote:
> This change works me on a 834x(e300) platform, tested with lm= bench and
> a production-ready application with 2.6.33.3.

But = have you tested that DEBUG_PAGEALLOC actually works ? :-)

A way to d= o that is to

    - get_free_pages a page
  &nb= sp; - read from it
    - free it
    - = write to it

It should oops on the write, and I suspect that without = my patch it
doesn't.

Cheers,
Ben.


_________________= ______________________________
Linuxppc-dev mailing list
Linuxppc-dev@lists.ozlabs.org
https://lists= .ozlabs.org/listinfo/linuxppc-dev