From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8485525A642 for ; Sat, 3 Jan 2026 18:29:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767464969; cv=none; b=B5Rsz65KVb4KMGI8Knpcq0dpsrdyufrdIBjxrJ4UhQVqN1OgaQvkC3fMp6e5r+UvUkSEb4qPXY0gvksljitze91nBkv1Q1V29K+i4q1zScBcYR2k9LzBHxGYcxi/burZ/IgkSxnEBOYJSjOaAFHkWMSqE1RNmC/QdAxS52thXbM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767464969; c=relaxed/simple; bh=lYslUrwOggsODHkoo0dyjN2ldhHS5bj0tLyj0W6xspY=; h=Date:From:To:Cc:Subject:Message-Id:In-Reply-To:References: Mime-Version:Content-Type; b=BdSvb+b4k3qI9c4153Zb76J7N2iUawnxqRt2qi5cNGWPxMxgpMP36kJkYulNkxlTfeLCAUpey9sOY+XcCTORP3kEmuZkLb9smUkNNfEbxDhIQAVqLMsriu0I6HrsFP8tEkYBgXmLNG1qsoUF5Cv3kTeW93wiXEfBwtJkyhOlroM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b=rX+xTdNX; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="rX+xTdNX" Received: by smtp.kernel.org (Postfix) with ESMTPSA id DEB97C113D0; Sat, 3 Jan 2026 18:29:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1767464968; bh=lYslUrwOggsODHkoo0dyjN2ldhHS5bj0tLyj0W6xspY=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=rX+xTdNXOd9JLBwPpgGohY6rgXpIhv4xsrg/t93BwbOq3WGWEZq2AQAmayMXV9B0m F5bWVsZoT7fLHBF6wJq8hgfV35h8PXqBiJUGQWAMsCEWdp0xIJYpf8BUUUfLoJrevp 9MYZjYYWiha1mhwVuXThO9c0vG7P9nPmfN/jVFaM= Date: Sat, 3 Jan 2026 10:29:27 -0800 From: Andrew Morton To: Pnina Feder Cc: Petr Mladek , Sergey Senozhatsky , linux-kernel@vger.kernel.org Subject: Re: [PATCH] panic/kexec: Allow forcing panic execution on a specific CPU Message-Id: <20260103102927.7add52a51ed0623c6e8bc729@linux-foundation.org> In-Reply-To: <20260101123237.277411-1-pnina.feder@mobileye.com> References: <20260101123237.277411-1-pnina.feder@mobileye.com> X-Mailer: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Thu, 1 Jan 2026 14:32:37 +0200 Pnina Feder wrote: > Some platforms require panic handling to execute on a specific CPU > for crash dump to work reliably. This may be due to firmware, > interrupt routing, or platform-specific constraints where only one > CPU is able to safely enter the crash kernel. > > Add an optional configuration that allows redirecting panic execution > to a designated target CPU before invoking kexec into the crash kernel. > > When CONFIG_PANIC_FORCE_CPU is enabled, the initial panic CPU will > forward the panic to the configured CPU using smp_call_function_single(). > If a panic is already in progress on another CPU, redirection is > skipped and a warning is printed. Requiring a recompile/reinstall isn't very user-friendly. Is it possible to do this with a kernel boot option?