From patchwork Sun Feb 10 11:45:19 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Phileas Fogg X-Patchwork-Id: 219489 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from ozlabs.org (localhost [IPv6:::1]) by ozlabs.org (Postfix) with ESMTP id 0CAE12C03EB for ; Sun, 10 Feb 2013 22:46:00 +1100 (EST) Received: from fallback3.mail.ru (fallback3.mail.ru [94.100.176.58]) by ozlabs.org (Postfix) with ESMTP id 3DD812C0099 for ; Sun, 10 Feb 2013 22:45:34 +1100 (EST) Received: from f380.i.mail.ru (f380.i.mail.ru [185.5.136.51]) by fallback3.mail.ru (mPOP.Fallback_MX) with ESMTP id B3785D3FAB1E for ; Sun, 10 Feb 2013 15:45:29 +0400 (MSK) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mail.ru; s=mail; h=References:In-Reply-To:Content-Transfer-Encoding:Content-Type:Message-ID:Reply-To:Date:Mime-Version:Subject:Cc:To:From; bh=NwhNPhYFunKOG+Yby0p5+2nsgHyyq7VwfOoHUbyd/f0=; b=yUPxoDWuW2AwXtOcK2skv0/prrrYtDxqiVDkxF+N/csrj+FcEiq/dUIX0/U70/SyJtF6azS8J9Lj8VNUZ/jhSPNwo5TrOm77tqTaqWMljetHZgk/5jC0SdaKztldr4fH; Received: from mail by f380.i.mail.ru with local (envelope-from ) id 1U4VLT-0007Hu-Il; Sun, 10 Feb 2013 15:45:19 +0400 Received: from [46.5.23.182] by e.mail.ru with HTTP; Sun, 10 Feb 2013 15:45:19 +0400 From: =?UTF-8?B?UGhpbGVhcyBGb2dn?= To: =?UTF-8?B?QmVuamFtaW4gSGVycmVuc2NobWlkdA==?= Subject: =?UTF-8?B?UmVbMl06IFBTMyBwbGF0Zm9ybSBpcyBicm9rZW4gb24gTGludXggMy43LjA=?= Mime-Version: 1.0 X-Mailer: Mail.Ru Mailer 1.0 X-Originating-IP: [46.5.23.182] Date: Sun, 10 Feb 2013 15:45:19 +0400 X-Priority: 3 (Normal) Message-ID: <1360496719.267074236@f380.i.mail.ru> X-Spam: Not detected X-Mras: Ok In-Reply-To: <1355954017.5397.53.camel@pasglop> References: <1355488506.55692113@f147.mail.ru> <1355954017.5397.53.camel@pasglop> Cc: linuxppc-dev@lists.ozlabs.org, =?UTF-8?B?QW5lZXNoIEt1bWFyIEsuVg==?= X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: =?UTF-8?B?UGhpbGVhcyBGb2dn?= List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" >On Fri, 2012-12-14 at 16:35 +0400, Phileas Fogg wrote: >> Hi, >> >> I wanted to bring to your attention the fact that the PS3 platform is broken on Linux 3.7.0. >> >> i'm not able to boot Linux 3.7.0 on my PS3 slim. Linux 3.6.10 boots just fine but not 3.7.0 >> When i try to boot Linux 3.7.0 then my PS3 shuts down. >> >> So i cloned the Linux powerpc GIT repository and tried to find out which commits broke the PS3 platform. >> After some time I tracked it down to 2 commits: > >Aneesh, do you have any idea what might be going on there ? Can you look >at the PS3 hash code ? It's a bit different from the rest, you might >have missed an update or two... > >Michael, same deal with PACA... > >Cheers, >Ben. I debugged the issue with the panic on PACA access on PS3 arch and found out that it panics in arch/powerpc/kernel/setup_64.c -> early_setup -> udbg_early_init -> register_early_udbg_console -> console_lock -> down -> raw_spin_unlock_irqrestore It panics only if i enable lock debugging in kernel. I suggest the following patch to fix the issue: --- arch/powerpc/kernel/setup_64.c.old 2013-02-10 13:39:45.147131547 +0100 +++ arch/powerpc/kernel/setup_64.c 2013-02-10 13:40:51.697135419 +0100 @@ -186,6 +186,9 @@ initialise_paca(&boot_paca, 0); setup_paca(&boot_paca); + /* Allow percpu accesses to "work" until we setup percpu data */ + get_paca()->data_offset = 0; + /* Initialize lockdep early or else spinlocks will blow */ lockdep_init(); @@ -208,8 +211,6 @@ /* Fix up paca fields required for the boot cpu */ get_paca()->cpu_start = 1; - /* Allow percpu accesses to "work" until we setup percpu data */ - get_paca()->data_offset = 0; /* Probe the machine type */ probe_machine();