From patchwork Wed Dec 16 17:08:05 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Thompson X-Patchwork-Id: 7863971 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 29DE8BEEE1 for ; Wed, 16 Dec 2015 17:10:35 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 45985202F8 for ; Wed, 16 Dec 2015 17:10:34 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 75A4A201EC for ; Wed, 16 Dec 2015 17:10:33 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1a9FZm-0004yI-SH; Wed, 16 Dec 2015 17:09:18 +0000 Received: from mail-wm0-x22c.google.com ([2a00:1450:400c:c09::22c]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1a9FZJ-0004WQ-C0 for linux-arm-kernel@lists.infradead.org; Wed, 16 Dec 2015 17:08:52 +0000 Received: by mail-wm0-x22c.google.com with SMTP id p187so10243886wmp.1 for ; Wed, 16 Dec 2015 09:08:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Qg++wD3XLYd9qHuQIrJpCfjReIm1IPy3GCfKyntVapg=; b=Veeh4SEAN0JvIvoESKUHsy8reT3pTC6QYeTF3TVmlA6nkm0KKAk2d0BekC00gtUfrb DxvZp7lZbeENaAUr4BMWa8R3QN1djwHol3VhMlHDq4/L4cfcW795ps1IaxPH+r+YZDVY 1cUgDdAJ3CWNsyq22v1lArKMYn5/+ZkMrhtB8= 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=Qg++wD3XLYd9qHuQIrJpCfjReIm1IPy3GCfKyntVapg=; b=lCB7CNLUn1OWhTc+Z44/bpPW1PWwORTghutwvvwkPxRvpsBBFi/VKZDmc8T1+co1qw SQUmDiO+UIoqrO+lo0tj9sMCbc2vXxz9Gzm3+9wD2cz868ZoNJ9QNNpBkfWgmF+XM34V ISSiNV2UEIzWUGEMUpg+3ijCvM380FoG/V2BE1h3OpsxH1I0dVWui1aq3qhPkQ46Ijg7 aiUdiingjYYKi+2U0dPs+Uk6Z7lk3B47IEa2iSQszPKDwejUQoUQP4/3NK3nvnplFFfw 86kssJAtUrPFuLGJCz3ea/wLCQRRk0YlKMAFFYB2aHrixeoHxF9EkvTBpMdItjDX3bSn 4d8Q== X-Gm-Message-State: ALoCoQkZAe25+3A7sGhQFi24tldT7WGGgUllF+v56NKrIey/+squTnE82YBZTAWM35JNrmdZEUQy22J+bSVvlSfwckcIAhqq3Q== X-Received: by 10.194.92.229 with SMTP id cp5mr52580115wjb.163.1450285706078; Wed, 16 Dec 2015 09:08:26 -0800 (PST) Received: from wychelm.lan (cpc4-aztw19-0-0-cust71.18-1.cable.virginm.net. [82.33.25.72]) by smtp.gmail.com with ESMTPSA id 186sm8228936wmv.9.2015.12.16.09.08.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 16 Dec 2015 09:08:25 -0800 (PST) From: Daniel Thompson To: Russell King Subject: [PATCH 1/2] arm: Fix "NMI" backtrace for Inforce IFC6410 Date: Wed, 16 Dec 2015 17:08:05 +0000 Message-Id: <1450285686-844-2-git-send-email-daniel.thompson@linaro.org> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1450285686-844-1-git-send-email-daniel.thompson@linaro.org> References: <1450285686-844-1-git-send-email-daniel.thompson@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20151216_090849_716443_BDDA2085 X-CRM114-Status: GOOD ( 15.04 ) X-Spam-Score: -2.7 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Daniel Thompson , linaro-kernel@lists.linaro.org, Jason Cooper , patches@linaro.org, Marc Zyngier , linux-kernel@vger.kernel.org, Thomas Gleixner , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, T_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 SysRq-L does not generate a backtrace from all CPUs when I test it on my Inforce IFC6410 platform (Snapdragon 600). The stack dump code, triggered by IPI_CPU_BACKTRACE, never runs on the other CPUs. Eventually we hit the 10 second timeout and a subset of the expected stack dumps on are shown on the console. It is likely this is because SGI IDs 14 and 15 have been reserved for use by secure world on this platform. For IFC6410 platform the code works as expected when IPI_CPU_BACKTRACE is set to any value in the interval 9..13. Signed-off-by: Daniel Thompson --- arch/arm/kernel/smp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/kernel/smp.c b/arch/arm/kernel/smp.c index b26361355dae..78205927fcd4 100644 --- a/arch/arm/kernel/smp.c +++ b/arch/arm/kernel/smp.c @@ -73,7 +73,8 @@ enum ipi_msg_type { IPI_CPU_STOP, IPI_IRQ_WORK, IPI_COMPLETION, - IPI_CPU_BACKTRACE = 15, + IPI_CPU_BACKTRACE = 13, + /* 14 and 15 are reserved; they do not work on some Krait CPUs */ }; static DECLARE_COMPLETION(cpu_running);