From patchwork Wed Apr 8 22:26:26 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Miller X-Patchwork-Id: 25744 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by ozlabs.org (Postfix) with ESMTP id A6693DDF7B for ; Thu, 9 Apr 2009 08:26:38 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752457AbZDHW0g (ORCPT ); Wed, 8 Apr 2009 18:26:36 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752845AbZDHW0g (ORCPT ); Wed, 8 Apr 2009 18:26:36 -0400 Received: from 74-93-104-97-Washington.hfc.comcastbusiness.net ([74.93.104.97]:56213 "EHLO sunset.davemloft.net" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1752457AbZDHW0g (ORCPT ); Wed, 8 Apr 2009 18:26:36 -0400 Received: from localhost (localhost [127.0.0.1]) by sunset.davemloft.net (Postfix) with ESMTP id 54CC235C12C; Wed, 8 Apr 2009 15:26:26 -0700 (PDT) Date: Wed, 08 Apr 2009 15:26:26 -0700 (PDT) Message-Id: <20090408.152626.220030913.davem@davemloft.net> To: sam@ravnborg.org Cc: seb@frankengul.org, sparclinux@vger.kernel.org, Hermann.Lauer@iwr.uni-heidelberg.de Subject: Re: SunFire V240 hangs From: David Miller In-Reply-To: <20090408214551.GB10366@uranus.ravnborg.org> References: <20090408212950.GB10282@uranus.ravnborg.org> <20090408213620.GC1142@frankengul.org> <20090408214551.GB10366@uranus.ravnborg.org> X-Mailer: Mew version 6.2.51 on Emacs 22.1 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Sender: sparclinux-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: sparclinux@vger.kernel.org From: Sam Ravnborg Date: Wed, 8 Apr 2009 23:45:51 +0200 > The easiet is to comment out the line: > > arch_initcall(pcr_arch_init); > > In the file: arch/sparc/kernel/pcr.c It won't build since this makes pcr_arch_init() unused and sparc builds with -Werror. This patch below might work better. But even if the NMI isn't working, the NMI test should just timeout and fail if you wait for 10 or 20 seconds. --- To unsubscribe from this list: send the line "unsubscribe sparclinux" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/sparc/kernel/pcr.c b/arch/sparc/kernel/pcr.c index 1ae8cdd..62b2b9c 100644 --- a/arch/sparc/kernel/pcr.c +++ b/arch/sparc/kernel/pcr.c @@ -123,6 +123,9 @@ int __init pcr_arch_init(void) if (err) return err; +#if 1 + return -ENODEV; +#endif switch (tlb_type) { case hypervisor: