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: 3736871 Return-Path: X-Original-To: patchwork-linux-pm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 63ACFBF40C for ; Thu, 27 Feb 2014 23:59:12 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9F12D20259 for ; Thu, 27 Feb 2014 23:59:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1AB8820268 for ; Thu, 27 Feb 2014 23:59:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752596AbaB0X6N (ORCPT ); Thu, 27 Feb 2014 18:58:13 -0500 Received: from mail-pd0-f175.google.com ([209.85.192.175]:47758 "EHLO mail-pd0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751224AbaB0X6K (ORCPT ); Thu, 27 Feb 2014 18:58:10 -0500 Received: by mail-pd0-f175.google.com with SMTP id x10so3095480pdj.34 for ; Thu, 27 Feb 2014 15:58:10 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=xjzlSb3bv4aXM9BbWBPhGAJH49pR3HoxEaItzSqTX48=; b=Hfo8eWegcvFdsfYyqqJcvPaLnH5ReiUPkySWDhbV+esjMcLiNpuTpG/X7E6hJ2Hvmq BpSlHATnZ4mxbmFzPdxxsqokRJ61Yv+IHiR2ldcyw3xyjPcMZQ+VR8Q6YVzxy2ai4K/v 2lUKiwK1x8Tcyyh90nsSlXXnQY40oGgomKO+aUKECBYQY7MKh0pTHrM7zWxGipi9/DO/ JGZ5sDHNMyE4OAyAFuIiDP8OA0ewkAt8qacegRfKkK2/Ir3++ZULW1oPaNzIE2GN/JFA vwHFzfisYI14wiywKapEphoEfeUmuCfwCB4elGOHQx165jaj8LIisEoXk+hVlKusJO8M RpoQ== X-Gm-Message-State: ALoCoQnkce/W5MTePKAIw6H3aZSPadoovXnBJnWuNBzEFxFoDNl4tZ2ieiDD5UO4AptIDnYXi5h5 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-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Spam-Status: No, score=-3.8 required=5.0 tests=BAYES_00,KHOP_BIG_TO_CC, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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. */