From nobody Sun Apr 5 13:12:31 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 7614B189F30 for ; Fri, 20 Feb 2026 12:47:02 +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=1771591624; cv=none; b=H+ooSUKXpx94OMbRSGj+I6GwBDHBe83pueB2WaNOJrRidtfBnR141AHbaGyphcBejTrTTJB7Jx9vvC7Rfpqa3tUWMazsEJhHUSh/bQamP9reg2Xu2NTMs7tdXWJiU1mrzuXyI5JqWxFhLygMwBK2Gt4V1m9OmDdOA2z99LGO+Ew= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771591624; c=relaxed/simple; bh=hw6LheRLfeErvXEF0OzfLTnXnH0Mf7uAz5zK76vhYAI=; h=From:Date:Subject:MIME-Version:Content-Type:Message-ID:To:Cc; b=P6+JnO4EA3ikAaTOXtjNE4Ylpa+rC5iNIidAa1TlTmX5hx5mqjW7AgLmrfOpbfIm+7EGVbZmXV3sLkvuoZ5cIsb4G3sWnf5IzZzFan6jTbkLStm+4oGArCKPJVjGgoGFUY6GXqIlD9dgXajc5DGgaPSinBz6TYD6UmBi+50Sd28= 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=MURmCgrJ; 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="MURmCgrJ" Received: from [194.37.255.9] (helo=mxout.expurgate.net) by relay.expurgate.net with smtp (Exim 4.92) (envelope-from ) id 1vtPdQ-004WaL-GN; Fri, 20 Feb 2026 13:29:28 +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 1vtPdP-004WZu-6h; Fri, 20 Feb 2026 13:29:27 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dev.tdt.de; s=z1-selector1; t=1771590566; bh=P32GunHdP6lR/7HeM54iojKpoHgeMkLGaWHjqVjJoJY=; h=From:Date:Subject:To:Cc:From; b=MURmCgrJvL1PZH8Qqr/GM8vTOdbnoeCuAUpg9n7h355NnIgSka+1P2Ya3dxPTp0nT xmhDjfkGm5Wn9utekOT9n5JHUP7UOCJpx/e8fhHotwoYHJgAhQ/L/eKvj0PP2IiAAX uIhwckrS4bHURLaneX/rtM+qiVcGJ2+oxVjTzDOKYyXXjXepfH3HehJg4PW5xpA5nv I3SAhsvpo5HtI/WkqG04TvXSrGHRymdZ4sNr7RYyTQpIynDsosc1i+Rdk+fz9I+IBa 6SBGj5apjP5xuzNnVU2eyxGcctjEitn/vDoP34YA7/1jvwK8B6Bs53hfnUDFG5uA7R mmMt/K2GbnGwA== Received: from securemail.tdt.de (localhost [127.0.0.1]) by securemail.tdt.de (Postfix) with ESMTP id 943F1240040; Fri, 20 Feb 2026 13:29:26 +0100 (CET) Received: from mail.dev.tdt.de (unknown [10.2.4.42]) by securemail.tdt.de (Postfix) with ESMTP id 83DAE240036; Fri, 20 Feb 2026 13:29:26 +0100 (CET) Received: from [127.0.1.1] (unknown [10.2.3.19]) by mail.dev.tdt.de (Postfix) with ESMTPSA id 30F0C22993; Fri, 20 Feb 2026 13:29:26 +0100 (CET) From: Martin Schiller Date: Fri, 20 Feb 2026 13:29:01 +0100 Subject: [PATCH] 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: <20260220-x86_do_kernel_restart-v1-1-a0cee49bbc80@dev.tdt.de> X-B4-Tracking: v=1; b=H4sIAIxTmGkC/x3MTQqEMAxA4atI1hbaiD94lUFKiZkxKHVIiwji3 S0uv8V7FyRW4QRjdYHyIUn2WODqCmgJ8cdG5mJAi51FtOYcOj/vfmWNvHnllINmE8hhS72jlho o7V/5K+f7/Uz3/QD+kCkGZwAAAA== 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=1771590566; l=1447; i=ms@dev.tdt.de; s=20260220; h=from:subject:message-id; bh=hw6LheRLfeErvXEF0OzfLTnXnH0Mf7uAz5zK76vhYAI=; b=uyFd++8wE4nGo6+R1Atu5KnfEEraib1khe5It1XgGaPkLnc15pROBnCKsPydko05hMveU7++X rqS2u7rIM0rDFZrN2hs6CdtsdTD/hvndNP6QywEVsdV3+3GiSrImdKS 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::1771590567-F9CC1F66-8CEA1594/0/0 SoC devices like the Intel / MaxLinear Lightning Mountain must be reset by the 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. So we must call do_kernel_restart() when a reboot is performed. This has long been common practice for other architectures. Signed-off-by: Martin Schiller --- 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