From patchwork Wed Mar 5 10:50:04 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Capella X-Patchwork-Id: 3772651 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 9E120BF13A for ; Wed, 5 Mar 2014 10:50:59 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C68B62024F for ; Wed, 5 Mar 2014 10:50:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D93462024C for ; Wed, 5 Mar 2014 10:50:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754865AbaCEKuj (ORCPT ); Wed, 5 Mar 2014 05:50:39 -0500 Received: from mail-pb0-f50.google.com ([209.85.160.50]:34289 "EHLO mail-pb0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753553AbaCEKuh (ORCPT ); Wed, 5 Mar 2014 05:50:37 -0500 Received: by mail-pb0-f50.google.com with SMTP id md12so926559pbc.9 for ; Wed, 05 Mar 2014 02:50:36 -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=71GBg/IFQrXE92lVGJdj7TpNjmCm18f4sKqF4T8qN+0=; b=l0+T1vHCENlaoBeebev563qbnFF6Wfp0nFoIngqwWLrn7H3hLg77MaooZHhR+OXr74 kh5hkT4ixkPiH4R4zHLxJEhEqfVVdN2Pzvw6DGu6ovXVRUsg4akZm09V8buXRLlE2Rdy VDH+ebbMrx7tLoMxGHywF6809M8w5DWpKr2QVBxlbweXGoIjIYAdojZtTXBvjjEsgjwQ CRUjfIz3VIYaeXpC5L2rhniwEmxYnV0Jplqv0uhcvx402bJfd69Z/SzvTZZsoHlLZICD yuA73Nw5j9RtgY1LVTYhXm656ySpC37DN91X0a1AzQ9xi3lmgOylBeeitoKAB6J6SwDU pRIw== X-Gm-Message-State: ALoCoQnIsHXtvCk1KWtFbd1+ke1GOt646kZKFu6oF16UDFh9p++IrHsUDr8nz9ESiNEQIGfajvz1 X-Received: by 10.68.125.164 with SMTP id mr4mr5958134pbb.27.1394016636469; Wed, 05 Mar 2014 02:50:36 -0800 (PST) Received: from localhost (z88l218.static.ctm.net. [202.175.88.218]) by mx.google.com with ESMTPSA id db3sm6842733pbb.10.2014.03.05.02.50.26 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 05 Mar 2014 02:50:35 -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 , Konstantin Khlebnikov , Steven Capper , Stephen Warren , Tejun Heo Subject: [PATCH v7 1/2] ARM: avoid tracers in soft_restart Date: Wed, 5 Mar 2014 02:50:04 -0800 Message-Id: <1394016605-24120-2-git-send-email-sebastian.capella@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1394016605-24120-1-git-send-email-sebastian.capella@linaro.org> References: <1394016605-24120-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.9 required=5.0 tests=BAYES_00,KHOP_BIG_TO_CC, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham 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 Cc: Konstantin Khlebnikov Cc: Steven Capper Cc: Stephen Warren Cc: Tejun Heo --- 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. */