From nobody Sun Apr 5 13:12:28 2026 Received: from mxout70.expurgate.net (mxout70.expurgate.net [91.198.224.70]) (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 112D72D0620 for ; Wed, 25 Feb 2026 07:47:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.198.224.70 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772005623; cv=none; b=rploQVb+6GAaiokP7hjxse3GpIbsoN5NAzCTS3TubZejaY5/dafqjnBDd84D1VETdZHy1wpy/39m18LdJmTG+vwSTUYJ8i8cO3D1chkaLSHU0aypeXojREI70gKP24+OguJm4ArUMSAMbVzbQwKb3VdI3NruIM/Bjdz4SD7FXK8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772005623; c=relaxed/simple; bh=rDZqvLFEOfLRIa8GZ2xpESuf/SKkshBNgCKm1K/lAfI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-ID:To:Cc; b=cxE2cDZUHyLPzMS0H1Ked0A/CNj48oJd7smlHZu2nJqLmhSfUFa/foul4m53vsoCgDxQL9KBf26ZgeWkoPkRwBw5PJnzGavPBGmM4fl5ssBPYIKo+Qz97dkDf5XBgAhiURoMZNMMk7g0R6tnCXq5cU4GYUw7RmacCpWepi1yAj8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=dev.tdt.de; spf=pass smtp.mailfrom=dev.tdt.de; dkim=temperror (0-bit key) header.d=dev.tdt.de header.i=@dev.tdt.de header.b=hzjMErA3; arc=none smtp.client-ip=91.198.224.70 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=dev.tdt.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=dev.tdt.de Authentication-Results: smtp.subspace.kernel.org; dkim=temperror (0-bit key) header.d=dev.tdt.de header.i=@dev.tdt.de header.b="hzjMErA3" Received: from [194.37.255.9] (helo=mxout.expurgate.net) by relay.expurgate.net with smtp (Exim 4.92) (envelope-from ) id 1vv9bb-00DnID-9T; Wed, 25 Feb 2026 08:46:47 +0100 Received: from [195.243.126.94] (helo=securemail.tdt.de) by relay.expurgate.net with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1vv9bZ-003jCk-Tp; Wed, 25 Feb 2026 08:46:45 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dev.tdt.de; s=z1-selector1; t=1772005605; bh=RjstOGfgAlSqpNoagycorbXGImaE15pFDVt6UKHrCfo=; h=From:Date:Subject:To:Cc:From; b=hzjMErA3WIBgVccYZST2Xltd5gqE85wIP9ltPN9KLtVVDw6T3J8xXEUD5FS4PjeqQ Jo7OH6P5ZYCmxKKcWFxo2qQEWKHqpJYOUEdNTCMQBYbm4Y1jeLlRkvI8sGvpMYhKHA 6JWNWZ4yC19XXpAuopHhMr1+HSdouV3ApcjBT555/LOWBz/FJKCX14g9fgqX5gx9Cp 6tkVpL0pzvcxKH9keRRH5JiXaeOg23YpjGyo5zxvwXQqgfKuf+zWNBxJYO7SIlMy+1 jBkCSX6auJH+cchFuwLGbdHRo264jcLxCEZaWPRRlTdXv2mzy0xRH8Rou1Zwmy6Km5 kreJEmRHFgicg== Received: from securemail.tdt.de (localhost [127.0.0.1]) by securemail.tdt.de (Postfix) with ESMTP id 653D0240040; Wed, 25 Feb 2026 08:46:45 +0100 (CET) Received: from mail.dev.tdt.de (unknown [10.2.4.42]) by securemail.tdt.de (Postfix) with ESMTP id 5DF10240036; Wed, 25 Feb 2026 08:46:45 +0100 (CET) Received: from [127.0.1.1] (unknown [172.16.15.17]) by mail.dev.tdt.de (Postfix) with ESMTPSA id 3102322F8B; Wed, 25 Feb 2026 08:46:45 +0100 (CET) From: Martin Schiller Date: Wed, 25 Feb 2026 08:46:09 +0100 Subject: [PATCH v2] x86/reboot: Add call to do_kernel_restart() 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="utf-8" Content-Transfer-Encoding: quoted-printable Message-ID: <20260225-x86_do_kernel_restart-v2-1-81396cf3d44c@dev.tdt.de> X-B4-Tracking: v=1; b=H4sIAMConmkC/4WNQQ6CMBBFr0JmbUlbBZGV9zCElOkojaaYadNgS O9u5QIu30v++xsEYkcB+moDpuSCW3wBfagAZ+MfJJwtDFrqVmotxdq1o13GJ7Gn18gUouEoDCr d4Flhg0co2zfT3a179zYUnl2IC3/2m6R+9l8xKaGEkUh0ukwTdvJqKdXRxtoSDDnnL8eMn0i7A AAA X-Change-ID: 20260220-x86_do_kernel_restart-ac125c71c5c3 To: Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" Cc: linux-kernel@vger.kernel.org, Florian Eckert , Martin Schiller X-Mailer: b4 0.14.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1772005605; l=1631; i=ms@dev.tdt.de; s=20260220; h=from:subject:message-id; bh=rDZqvLFEOfLRIa8GZ2xpESuf/SKkshBNgCKm1K/lAfI=; b=DLa2fzaYO/N9DuUa3xv9w97X4WqnUquwcXHmNS/2/L3VfzRXuG16X4mUemPXqANup26Jw+S5q gzEQa1Ts5vnClw5HJnPRsfnmNW8S7nEnGBvtEu4qBrr1pAX2FkR/7HY X-Developer-Key: i=ms@dev.tdt.de; a=ed25519; pk=MAojd7D5IafMnqCYSFC7hY/u/jppX58CLIEhsEsSOYE= X-purgate-type: clean X-purgate: clean X-purgate-ID: 151534::1772005606-2353ECD0-305620C1/0/0 SoC devices like the Intel / MaxLinear Lightning Mountain must be reset by the Reset Control Unit (RCU) instead of using "normal" x86 mechanisms like ACPI, BIOS, KBD, etc. Therefore, the RCU driver (reset-intel-gw) registers a restart handler which triggers the global reset signal. Unfortunately, this is of no use as long as the restart chain is not processed during reboot on x86 systems. That's why do_kernel_restart() must be called when a reboot is performed. This has long been common practice for other architectures. Signed-off-by: Martin Schiller --- Changes in v2: - Updated the commit message. - Link to v1: https://lore.kernel.org/r/20260220-x86_do_kernel_restart-v1-1= -a0cee49bbc80@dev.tdt.de --- arch/x86/kernel/reboot.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/arch/x86/kernel/reboot.c b/arch/x86/kernel/reboot.c index 6032fa9ec753ce938b1b523a7eab76370ee802de..ddff25a1efbe71171ca22ec21f5= 0541517c1a464 100644 --- a/arch/x86/kernel/reboot.c +++ b/arch/x86/kernel/reboot.c @@ -773,12 +773,15 @@ static void __machine_emergency_restart(int emergency) machine_ops.emergency_restart(); } =20 -static void native_machine_restart(char *__unused) +static void native_machine_restart(char *command) { pr_notice("machine restart\n"); =20 if (!reboot_force) machine_shutdown(); + + do_kernel_restart(command); + __machine_emergency_restart(0); } =20 --- base-commit: 05f7e89ab9731565d8a62e3b5d1ec206485eeb0b change-id: 20260220-x86_do_kernel_restart-ac125c71c5c3 Best regards, --=20 Martin Schiller