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: 58511 Delivered-To: patches@linaro.org Received: by 10.112.89.199 with SMTP id bq7csp837826lbb; Wed, 16 Dec 2015 09:08:31 -0800 (PST) X-Received: by 10.28.107.26 with SMTP id g26mr13214246wmc.34.1450285707988; Wed, 16 Dec 2015 09:08:27 -0800 (PST) Return-Path: Received: from mail-wm0-x230.google.com (mail-wm0-x230.google.com. [2a00:1450:400c:c09::230]) by mx.google.com with ESMTPS id xu5si10956566wjc.5.2015.12.16.09.08.27 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 16 Dec 2015 09:08:27 -0800 (PST) Received-SPF: pass (google.com: domain of daniel.thompson@linaro.org designates 2a00:1450:400c:c09::230 as permitted sender) client-ip=2a00:1450:400c:c09::230; Authentication-Results: mx.google.com; spf=pass (google.com: domain of daniel.thompson@linaro.org designates 2a00:1450:400c:c09::230 as permitted sender) smtp.mailfrom=daniel.thompson@linaro.org; dkim=pass header.i=@linaro.org Received: by mail-wm0-x230.google.com with SMTP id p187so10243885wmp.1 for ; Wed, 16 Dec 2015 09:08:27 -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=AE8euoKvU3YsUNuW9/RiFRGpfxw1S4ePE61QaOYofJPupHtkbjkd52pJQXrbWwejFI RrnCMzR0j0bqdicEIBq+8Nx2W9+vwZGa0jjmVstljtc9ah8YS7/J+j/3Wd4iuDjQ5PHv qbSxBy7eH6aw+T/QYF6RqAfez2kHaYmjZHNTkBLH9jwx/155ehXqgBezoHirCztKmJqj lP/Jeo5iyPG+F8+qM8wEv5BBgm71/ZovOhAQLRSTrECXJ3bwxATywlLJbO3hyrcuiz/9 sEYKSAl0FUUReZoBuWIPwKGVK9bcSe7YwNXWJhvyYU76+2F0IBsRgttPyyxslPMTp/eF 70eQ== X-Gm-Message-State: ALoCoQk1ASw253iJonWzSSFytghifsxJMXHVtou21/Cqgv99n0+I9XoX4wHOc3RiiPpuVQVITvGu1qogYw06E8A5GhZ+cNZWbg== X-Received: by 10.194.92.229 with SMTP id cp5mr52580115wjb.163.1450285706078; Wed, 16 Dec 2015 09:08:26 -0800 (PST) Return-Path: 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 Cc: Daniel Thompson , Marc Zyngier , Thomas Gleixner , Jason Cooper , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, patches@linaro.org, linaro-kernel@lists.linaro.org 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> 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(-) -- 2.5.0 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);