From patchwork Wed Feb 26 19:38:09 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Capella X-Patchwork-Id: 25421 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ob0-f197.google.com (mail-ob0-f197.google.com [209.85.214.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 13D5120636 for ; Wed, 26 Feb 2014 19:39:05 +0000 (UTC) Received: by mail-ob0-f197.google.com with SMTP id wo20sf4628029obc.4 for ; Wed, 26 Feb 2014 11:39:05 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:subject:date:message-id :in-reply-to:references:cc:precedence:list-id:list-unsubscribe :list-archive:list-post:list-help:list-subscribe:mime-version:sender :errors-to:x-original-sender:x-original-authentication-results :mailing-list:content-type:content-transfer-encoding; bh=J9PCgNWN/MTeHz0Jp8wI3HhYlhgjkwROQV73cSwcM9g=; b=QPc39LoTs27abu8rE0d4x7QXJ1YfkHYPckufBYl8L0pzqg4OlkONqGmh79dm8yxCJ0 15C0f0d8cHmlOI7pzh41iGsDgIo7ieRcmjN/oMGWZA9Fh5HSksCCmpoYqVqmuLXitXBo d459ccj9tsKkktirQj1bJHeN16aIvCvhsqDqOpUKJejSvtCamdAPcpHagqUBnMlmj3tH 1/yn0+KysNPuyIjGs7KGd3Qo8emUxSAZWkVBgXU34HRFImYlzu/Dz2cunRioUMZpPDA2 3hvvZ6UL1vbfAa2TDoAUrP8OH0Ec+lRFFjo5hujhbQxLAqBRBQr0zJHeR82QiW76eP85 wR/A== X-Gm-Message-State: ALoCoQlGZB62OFXukn6cINLi0HYMuUSId6sBfG59WKKmzSBY73GXiJBodPcOQWwm/tpy/UTO++Mx X-Received: by 10.182.11.70 with SMTP id o6mr2167246obb.19.1393443545622; Wed, 26 Feb 2014 11:39:05 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.36.200 with SMTP id p66ls363720qgp.74.gmail; Wed, 26 Feb 2014 11:39:05 -0800 (PST) X-Received: by 10.52.35.48 with SMTP id e16mr435921vdj.51.1393443545472; Wed, 26 Feb 2014 11:39:05 -0800 (PST) Received: from mail-vc0-f180.google.com (mail-vc0-f180.google.com [209.85.220.180]) by mx.google.com with ESMTPS id l16si492939vcl.126.2014.02.26.11.39.05 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 26 Feb 2014 11:39:05 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.180 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.180; Received: by mail-vc0-f180.google.com with SMTP id ks9so1394336vcb.25 for ; Wed, 26 Feb 2014 11:39:05 -0800 (PST) X-Received: by 10.220.251.76 with SMTP id mr12mr520972vcb.39.1393443545384; Wed, 26 Feb 2014 11:39:05 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.174.196 with SMTP id u4csp50106vcz; Wed, 26 Feb 2014 11:39:04 -0800 (PST) X-Received: by 10.180.19.138 with SMTP id f10mr9429296wie.11.1393443544426; Wed, 26 Feb 2014 11:39:04 -0800 (PST) Received: from casper.infradead.org (casper.infradead.org. [2001:770:15f::2]) by mx.google.com with ESMTPS id z9si1959802wiv.52.2014.02.26.11.39.04 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 26 Feb 2014 11:39:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 2001:770:15f::2 as permitted sender) client-ip=2001:770:15f::2; Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WIkJb-0004sv-QX; Wed, 26 Feb 2014 19:38:47 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WIkJZ-0005JG-I3; Wed, 26 Feb 2014 19:38:45 +0000 Received: from mail-pd0-f174.google.com ([209.85.192.174]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WIkJX-0005IT-1W for linux-arm-kernel@lists.infradead.org; Wed, 26 Feb 2014 19:38:43 +0000 Received: by mail-pd0-f174.google.com with SMTP id y13so1368277pdi.33 for ; Wed, 26 Feb 2014 11:38:21 -0800 (PST) X-Received: by 10.66.142.233 with SMTP id rz9mr10752933pab.71.1393443501179; Wed, 26 Feb 2014 11:38:21 -0800 (PST) Received: from localhost (cpe-76-93-135-111.san.res.rr.com. [76.93.135.111]) by mx.google.com with ESMTPSA id hb10sm6063556pbd.1.2014.02.26.11.38.17 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 26 Feb 2014 11:38:18 -0800 (PST) From: Sebastian Capella To: linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linaro-kernel@lists.linaro.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v5 1/2] ARM: avoid tracers in soft_restart Date: Wed, 26 Feb 2014 11:38:09 -0800 Message-Id: <1393443490-18116-2-git-send-email-sebastian.capella@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1393443490-18116-1-git-send-email-sebastian.capella@linaro.org> References: <1393443490-18116-1-git-send-email-sebastian.capella@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140226_143843_165270_5AB30F46 X-CRM114-Status: GOOD ( 12.05 ) X-Spam-Score: 1.2 (+) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (1.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [209.85.192.174 listed in list.dnswl.org] 3.1 KHOP_BIG_TO_CC Sent to 10+ recipients instaed of Bcc or a list -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: Lorenzo Pieralisi , Russell King , Will Deacon , Robin Holt , Sebastian Capella , Andrew Morton , Thomas Gleixner X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: sebastian.capella@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.180 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 Use of tracers in local_irq_disable is causes recursive aborts when called with irqs disabled and using a temporary stack (hibernation). Replace local_irq_disable with raw_local_irq_disable instead to avoid tracers. Signed-off-by: Sebastian Capella Cc: Russell King Cc: Andrew Morton Cc: Thomas Gleixner Cc: Will Deacon Cc: Robin Holt Cc: Lorenzo Pieralisi --- arch/arm/kernel/process.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/kernel/process.c b/arch/arm/kernel/process.c index 92f7b15..f58b723 100644 --- a/arch/arm/kernel/process.c +++ b/arch/arm/kernel/process.c @@ -100,7 +100,7 @@ void soft_restart(unsigned long addr) u64 *stack = soft_restart_stack + ARRAY_SIZE(soft_restart_stack); /* Disable interrupts first */ - local_irq_disable(); + raw_local_irq_disable(); local_fiq_disable(); /* Disable the L2 if we're the last man standing. */