From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753864AbYDHIV6 (ORCPT ); Tue, 8 Apr 2008 04:21:58 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754769AbYDHIVm (ORCPT ); Tue, 8 Apr 2008 04:21:42 -0400 Received: from ozlabs.org ([203.10.76.45]:56312 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754187AbYDHIVl (ORCPT ); Tue, 8 Apr 2008 04:21:41 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18427.11023.8067.795279@cargo.ozlabs.ibm.com> Date: Tue, 8 Apr 2008 18:21:35 +1000 From: Paul Mackerras To: Kamalesh Babulal Cc: kernel list , linux-next@vger.kernel.org, linuxppc-dev@ozlabs.org, Andrew Morton , Andy Whitcroft , Balbir Singh Subject: Re: [BUG] 2.6.25-rc2-git4 - Regression Kernel oops while running kernbench and tbench on powerpc In-Reply-To: <47BC40BC.3040405@linux.vnet.ibm.com> References: <47BC40BC.3040405@linux.vnet.ibm.com> X-Mailer: VM 7.19 under Emacs 22.1.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Kamalesh Babulal writes: > The Kernel oopses is seen while running the kernbench followed by tbench with 2.6.25-rc2-git4 > kernel on powerpc, this oops was reported for the 2.6.24-rc8-mm1 kernel (http://lkml.org/lkml/2008/1/18/71) > and is visible with almost all of the main line ,rc(s) and their git(s) release from then. > > This oops is visible in the linux-next-20080220 kernel also.The machine is power4+ box with four cpus and > has 30 GB RAM. Please try to replicate the oops with the patch below applied. It doesn't solve the cause of the oops but it should mean the kernel prints out more useful information about the cause of the oops. I assume you can replicate the oops easily on this machine - is that right? Paul. diff --git a/arch/powerpc/kernel/head_64.S b/arch/powerpc/kernel/head_64.S index 11b4f6d..a3ac72a 100644 --- a/arch/powerpc/kernel/head_64.S +++ b/arch/powerpc/kernel/head_64.S @@ -621,7 +621,7 @@ END_FW_FTR_SECTION_IFSET(FW_FEATURE_ISERIES) mtlr r10 andi. r10,r12,MSR_RI /* check for unrecoverable exception */ - beq- unrecov_slb + beq- 2f .machine push .machine "power4" @@ -643,6 +643,22 @@ END_FW_FTR_SECTION_IFSET(FW_FEATURE_ISERIES) rfid b . /* prevent speculative execution */ +2: +#ifdef CONFIG_PPC_ISERIES +BEGIN_FW_FTR_SECTION + b unrecov_slb +END_FW_FTR_SECTION_IFSET(FW_FEATURE_ISERIES) +#endif /* CONFIG_PPC_ISERIES */ + mfspr r11,SPRN_SRR0 + clrrdi r10,r13,32 + LOAD_HANDLER(r10,unrecov_slb) + mtspr SPRN_SRR0,r10 + mfmsr r10 + ori r10,r10,MSR_IR|MSR_DR|MSR_RI + mtspr SPRN_SRR1,r10 + rfid + b . + unrecov_slb: EXCEPTION_PROLOG_COMMON(0x4100, PACA_EXSLB) DISABLE_INTS