linux/Documentation
Ahmad Fatoum e016173f65 reboot: add support for configuring emergency hardware protection action
We currently leave the decision of whether to shutdown or reboot to
protect hardware in an emergency situation to the individual drivers.

This works out in some cases, where the driver detecting the critical
failure has inside knowledge: It binds to the system management controller
for example or is guided by hardware description that defines what to do.

In the general case, however, the driver detecting the issue can't know
what the appropriate course of action is and shouldn't be dictating the
policy of dealing with it.

Therefore, add a global hw_protection toggle that allows the user to
specify whether shutdown or reboot should be the default action when the
driver doesn't set policy.

This introduces no functional change yet as hw_protection_trigger() has no
callers, but these will be added in subsequent commits.

[arnd@arndb.de: hide unused hw_protection_attr]
  Link: https://lkml.kernel.org/r/20250224141849.1546019-1-arnd@kernel.org
Link: https://lkml.kernel.org/r/20250217-hw_protection-reboot-v3-7-e1c09b090c0c@pengutronix.de
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Reviewed-by: Tzung-Bi Shih <tzungbi@kernel.org>
Cc: Benson Leung <bleung@chromium.org>
Cc: Daniel Lezcano <daniel.lezcano@linaro.org>
Cc: Fabio Estevam <festevam@denx.de>
Cc: Guenter Roeck <groeck@chromium.org>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Liam Girdwood <lgirdwood@gmail.com>
Cc: Lukasz Luba <lukasz.luba@arm.com>
Cc: Mark Brown <broonie@kernel.org>
Cc: Matteo Croce <teknoraver@meta.com>
Cc: Matti Vaittinen <mazziesaccount@gmail.com>
Cc: "Rafael J. Wysocki" <rafael@kernel.org>
Cc: Rob Herring (Arm) <robh@kernel.org>
Cc: Rui Zhang <rui.zhang@intel.com>
Cc: Sascha Hauer <kernel@pengutronix.de>
Cc: "Serge E. Hallyn" <serge@hallyn.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2025-03-16 23:24:14 -07:00
..
ABI reboot: add support for configuring emergency hardware protection action 2025-03-16 23:24:14 -07:00
accel
accounting Mainly individually changelogged singleton patches. The patch series in 2025-01-26 17:50:53 -08:00
admin-guide reboot: add support for configuring emergency hardware protection action 2025-03-16 23:24:14 -07:00
arch powerpc fix for 6.14 #4 2025-02-25 20:06:15 -08:00
block Documentation: ublk: Drop Stefan Hajnoczi's message footnote 2025-01-28 15:02:17 -07:00
bpf
cdrom
core-api Mainly individually changelogged singleton patches. The patch series in 2025-01-26 17:50:53 -08:00
cpu-freq
crypto
dev-tools
devicetree Char/Misc/IIO driver fixes for 6.14-rc6 2025-03-09 09:07:54 -10:00
doc-guide
driver-api docs: thermal: sync hardware protection doc with code 2025-03-16 23:24:13 -07:00
fault-injection
fb
features
filesystems docs,procfs: document /proc/PID/* access permission checks 2025-03-16 22:30:47 -07:00
firmware_class
firmware-guide
fpga
gpu drm: xlnx: zynqmp_dpsub: Fix kernel doc 2025-01-16 12:45:16 +01:00
hid HID: THC: Add documentation 2025-01-09 10:14:14 +01:00
hwmon hwmon updates for v6.14-rc1 2025-01-22 10:16:48 -08:00
i2c
iio iio: light: Add support for TI OPT4060 color sensor 2024-12-28 14:28:13 +00:00
images
infiniband
input
isdn
kbuild Kbuild updates for v6.14 2025-01-31 12:07:07 -08:00
kernel-hacking
leds Documentation:leds: Add leds-st1202.rst 2025-01-09 10:30:23 +00:00
litmus-tests
livepatch
locking
maintainer
mhi
misc-devices
mm The various patchsets are summarized below. Plus of course many 2025-01-26 18:36:23 -08:00
netlabel
netlink net: ethtool: tsconfig: Fix netlink type of hwtstamp flags 2025-02-06 16:35:21 -08:00
networking BPF fixes: 2025-02-20 15:37:17 -08:00
nvdimm
nvme Documentation: Document the NVMe PCI endpoint target driver 2025-01-10 19:30:49 -08:00
PCI pci-v6.14-changes 2025-01-25 16:03:40 -08:00
pcmcia
peci
power Two fixes for footnote-related warnings that appeared with Sphinx 8.x. 2025-01-30 10:57:19 -08:00
process MAINTAINERS: update Nick's contact info 2025-02-17 22:40:04 -08:00
RCU
rust
scheduler sched/rt: Update limit of sched_rt sysctl in documentation 2025-03-06 10:21:31 +01:00
scsi scsi: documentation: Corrections for struct updates 2025-01-10 15:15:30 -05:00
security
sound Merge branch 'for-linus' into for-next 2025-01-20 09:25:33 +01:00
sphinx
sphinx-static
spi
staging
sunrpc/xdr nfsd: rename NFS4_SHARE_WANT_* constants to OPEN4_SHARE_ACCESS_WANT_* 2025-01-21 15:30:01 -05:00
target
tee
timers
tools
trace tracing updates for v6.14: 2025-01-23 17:51:16 -08:00
translations MAINTAINERS: update Nick's contact info 2025-02-17 22:40:04 -08:00
usb
userspace-api landlock: Minor typo and grammar fixes in IPC scoping documentation 2025-02-14 09:23:08 +01:00
virt KVM: s390: fake memslot for ucontrol VMs 2025-01-31 12:03:52 +01:00
w1
watchdog
wmi docs: platform/x86: wmi: mention tool for invoking WMI methods 2025-01-09 13:38:39 +02:00
.gitignore
atomic_bitops.txt
atomic_t.txt
Changes
CodingStyle
conf.py
docutils.conf
index.rst
Kconfig
Makefile tools: ynl: move python code to separate sub-directory 2025-01-09 12:53:27 -08:00
memory-barriers.txt
SubmittingPatches
subsystem-apis.rst Documentation: Document the NVMe PCI endpoint target driver 2025-01-10 19:30:49 -08:00