Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762269AbXH3Bmb (ORCPT ); Wed, 29 Aug 2007 21:42:31 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755774AbXH3BmY (ORCPT ); Wed, 29 Aug 2007 21:42:24 -0400 Received: from rgminet01.oracle.com ([148.87.113.118]:20967 "EHLO rgminet01.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754959AbXH3BmX (ORCPT ); Wed, 29 Aug 2007 21:42:23 -0400 Date: Wed, 29 Aug 2007 18:38:42 -0700 From: Randy Dunlap To: pete@bluelane.com Cc: Jason Wessel , Andrew Morton , kgdb-bugreport@lists.sourceforge.net, amitkale@linsyssoft.com, linux-kernel@vger.kernel.org, linuxppc-dev@ozlabs.org, Mariusz Kozlowski , Paul Mackerras Subject: Re: [Kgdb-bugreport] 2.6.23-rc3-mm1: kgdb build failure on powerpc Message-Id: <20070829183842.5954b038.randy.dunlap@oracle.com> In-Reply-To: <46D61B21.1010703@bluelane.com> References: <20070822020648.5ea3a612.akpm@linux-foundation.org> <200708222104.29432.m.kozlowski@tuxland.pl> <20070822124743.fc316963.akpm@linux-foundation.org> <46CCBC3C.7010307@windriver.com> <20070822165318.b82da13c.akpm@linux-foundation.org> <46CCFE2C.4050306@windriver.com> <46D604BF.7090905@bluelane.com> <46D61B21.1010703@bluelane.com> Organization: Oracle Linux Eng. X-Mailer: Sylpheed 2.4.2 (GTK+ 2.8.10; x86_64-unknown-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Brightmail-Tracker: AAAAAQAAAAI= X-Brightmail-Tracker: AAAAAQAAAAI= X-Whitelist: TRUE X-Whitelist: TRUE Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3944 Lines: 117 On Wed, 29 Aug 2007 18:19:29 -0700 Pete/Piet Delaney wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Pete/Piet Delaney wrote: > > Jason Wessel wrote: > >> Andrew Morton wrote: > >>> On Wed, 22 Aug 2007 17:44:12 -0500 > >>> Jason Wessel wrote: > >>> > >>> > >>>> + while (!atomic_read(&debugger_active)); > >>>> > >>> eek. We're in the process of hunting down and eliminating exactly this > >>> construct. There have been cases where the compiler cached the > >>> atomic_read() result in a register, turning the above into an infinite > >>> loop. > >>> > >>> Plus we should never add power-burners like that into the kernel > >>> anyway. That loop should have a cpu_relax() in it. Which will also > >>> fix the > >>> compiler problem described above. > >>> > >>> > >> Agreed, and fixed with a cpu_relax. > > > >>> Thirdly, please always add a newline when coding statements like that: > >>> > >>> while (expr()) > >>> ; > >>> > >> The other instances I found of the same problem in the kgdb core are > >> fixed too. > > > >> I merged all the changes into the for_mm branch in the kgdb git tree. > > > > Where is the kgdb git tree? > > Why am I getting this when I do: > > git clone > http://master.kernel.org/pub/scm/linux/kernel/git/jwessel/linux-2.6-kgdb.git > > - > ---------------------------------------------------------------------------- > error: Couldn't get > http://master.kernel.org/pub/scm/linux/kernel/git/jwessel/linux-2.6-kgdb.git/refs/tags/v2.6.11 > for tags/v2.6.11 > The requested URL returned error: 404 > error: Could not interpret tags/v2.6.11 as something to pull > rm: cannot remove directory > `/nethome/piet/Src/linux/git/jwessel/linux-2.6-kgdb/.git/clone-tmp': > Directory not empty > /nethome/piet/Src/linux/git/jwessel$ > - > ---------------------------------------------------------------------------- See the URLs at the top of http://git.kernel.org/?p=linux/kernel/git/jwessel/linux-2.6-kgdb.git;a=summary and try one of those (the git one preferably). > We are getting a problem with VMware where kernel text is the schedler > is getting wacked with four null bytes into the code. Thought I'd use > the current linux-2.6-kgdb.git tree and possible the CONFIG_DEBUG_RODATA > patch to make kernel text readonly: > > https://www.x86-64.org/pipermail/patches/2007-March/003666.html > > I thought the kernel text was RO and gdb had to disable it to > insert a breakpoint. > > - -piet > > > > > -piet > > > >> Thanks, > >> Jason. > >> - > >> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in > >> the body of a message to majordomo@vger.kernel.org > >> More majordomo info at http://vger.kernel.org/majordomo-info.html > >> Please read the FAQ at http://www.tux.org/lkml/ > > > > > - - > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > Please read the FAQ at http://www.tux.org/lkml/ > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.7 (GNU/Linux) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > iD8DBQFG1hshJICwm/rv3hoRAhTGAJ46pq69zYHqRmT+yTmRx+RVh8aBtgCfdyFM > gl91xCFTy0NJxHalVXpd9Os= > =c8FZ > -----END PGP SIGNATURE----- > - > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > Please read the FAQ at http://www.tux.org/lkml/ > --- ~Randy *** Remember to use Documentation/SubmitChecklist when testing your code *** - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/