From patchwork Thu Feb 27 23:57:57 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Capella X-Patchwork-Id: 25493 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qg0-f71.google.com (mail-qg0-f71.google.com [209.85.192.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id C253720543 for ; Thu, 27 Feb 2014 23:58:54 +0000 (UTC) Received: by mail-qg0-f71.google.com with SMTP id f51sf6103108qge.2 for ; Thu, 27 Feb 2014 15:58:54 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=EVhGjr8qdSVkDdluc+FA5gg+uRquSwIrxWrINAwDnoY=; b=mQUaqYWiAlguyt1h1VJxm54fBQZPImcp3/nrsKRgjuqMbp5Gxl2hTiAtyIMJ4DIBEH CF7svtDOvmFH8HjPl13zJh/VbwzRrpRkwecAeZ1Tkf72+2Bqsb2YTqItF2GNfXGS4cDw AiRVQu/GTFeFeMlQfAXVgisoDkKCBv7TRp9S/SYIzVO2xnSRl9ApU8mYYdG2d96Ta6G3 j3v1ph36mEtrMxPb32n9VSxd2OrMcbz3LltRy3RDoFbtyqvOGSwqFS+xw7OoeWZ/4nme V/9/CfUtxqpDYLFG7Zz5rIh2LHHSawgG/ElL3XI62OiAiG7yJXSgyQOv+fjtZA2F23Z7 Qrhw== X-Gm-Message-State: ALoCoQn5d4fQ6wxOIjI0QE+11kCwWfvRu8CWKiLxX2vbYMKN126b1krnbZd/T3l0FAy8/ZFbOVe+ X-Received: by 10.59.11.65 with SMTP id eg1mr6719993ved.11.1393545534279; Thu, 27 Feb 2014 15:58:54 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.108.100 with SMTP id i91ls835399qgf.23.gmail; Thu, 27 Feb 2014 15:58:54 -0800 (PST) X-Received: by 10.52.242.167 with SMTP id wr7mr11021971vdc.32.1393545534193; Thu, 27 Feb 2014 15:58:54 -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 ov9si2219281vcb.121.2014.02.27.15.58.54 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 27 Feb 2014 15:58:54 -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 ks9so3233712vcb.39 for ; Thu, 27 Feb 2014 15:58:54 -0800 (PST) X-Received: by 10.220.95.139 with SMTP id d11mr13024277vcn.21.1393545534110; Thu, 27 Feb 2014 15:58:54 -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.130.193 with SMTP id u1csp14297vcs; Thu, 27 Feb 2014 15:58:53 -0800 (PST) X-Received: by 10.66.136.131 with SMTP id qa3mr17833767pab.77.1393545533135; Thu, 27 Feb 2014 15:58:53 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id zj6si882425pac.59.2014.02.27.15.58.52; Thu, 27 Feb 2014 15:58:52 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752755AbaB0X6Q (ORCPT + 26 others); Thu, 27 Feb 2014 18:58:16 -0500 Received: from mail-pd0-f169.google.com ([209.85.192.169]:55062 "EHLO mail-pd0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751232AbaB0X6L (ORCPT ); Thu, 27 Feb 2014 18:58:11 -0500 Received: by mail-pd0-f169.google.com with SMTP id fp1so2047226pdb.28 for ; Thu, 27 Feb 2014 15:58:10 -0800 (PST) X-Received: by 10.68.137.136 with SMTP id qi8mr16213150pbb.79.1393545490265; Thu, 27 Feb 2014 15:58:10 -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 ns7sm17470517pbc.32.2014.02.27.15.58.07 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 27 Feb 2014 15:58:09 -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 Cc: Sebastian Capella , Russell King , Andrew Morton , Thomas Gleixner , Will Deacon , Robin Holt , Lorenzo Pieralisi Subject: [PATCH v6 1/2] ARM: avoid tracers in soft_restart Date: Thu, 27 Feb 2014 15:57:57 -0800 Message-Id: <1393545478-14908-2-git-send-email-sebastian.capella@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1393545478-14908-1-git-send-email-sebastian.capella@linaro.org> References: <1393545478-14908-1-git-send-email-sebastian.capella@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.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 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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. */