From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D787FC433E0 for ; Mon, 22 Feb 2021 10:08:31 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8BC5464DEC for ; Mon, 22 Feb 2021 10:08:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230460AbhBVKHu (ORCPT ); Mon, 22 Feb 2021 05:07:50 -0500 Received: from jabberwock.ucw.cz ([46.255.230.98]:56066 "EHLO jabberwock.ucw.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230435AbhBVKE3 (ORCPT ); Mon, 22 Feb 2021 05:04:29 -0500 Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id E25AC1C0B76; Mon, 22 Feb 2021 11:03:25 +0100 (CET) Date: Mon, 22 Feb 2021 11:03:25 +0100 From: Pavel Machek To: Matteo Croce Cc: linux-kernel@vger.kernel.org, Mike Rapoport , Guenter Roeck , Arnd Bergmann , Petr Mladek , Pavel Tatashin , Kees Cook , Andrew Morton , Tyler Hicks Subject: Re: [PATCH v4] reboot: allow to specify reboot mode via sysfs Message-ID: <20210222100325.GA14587@amd> References: <20201110202746.9690-1-mcroce@linux.microsoft.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="W/nzBZO5zC0uMSeA" Content-Disposition: inline In-Reply-To: <20201110202746.9690-1-mcroce@linux.microsoft.com> User-Agent: Mutt/1.5.23 (2014-03-12) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --W/nzBZO5zC0uMSeA Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue 2020-11-10 21:27:46, Matteo Croce wrote: > From: Matteo Croce >=20 > The kernel cmdline reboot=3D option offers some sort of control > on how the reboot is issued. > Add handles in sysfs to allow setting these reboot options, so they > can be changed when the system is booted, other than at boot time. We already have a reboot syscall, do we need sysfs interface, too? > +What: /sys/kernel/reboot/mode > +Date: November 2020 > +KernelVersion: 5.11 > +Contact: Matteo Croce > +Description: Reboot mode. Valid values are: cold warm hard soft gpio > +What: /sys/kernel/reboot/type > +Date: November 2020 > +KernelVersion: 5.11 > +Contact: Matteo Croce > +Description: Reboot type. Valid values are: bios acpi kbd triple efi pci what is difference between mode and type? What is difference between cold and hard for example? WTF is gpio? > +What: /sys/kernel/reboot/cpu > +Date: November 2020 > +KernelVersion: 5.11 > +Contact: Matteo Croce > +Description: CPU number to use to reboot. Why should user care about this? --=20 http://www.livejournal.com/~pavelmachek --W/nzBZO5zC0uMSeA Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAmAzgW0ACgkQMOfwapXb+vLtxACguGpb6W0A79OaDxEhEh+8cC39 HncAniijxQbLlu/Vi/12nYkf21xNAQ29 =D5yD -----END PGP SIGNATURE----- --W/nzBZO5zC0uMSeA--