/Linux-v5.15/drivers/power/reset/ |
D | reboot-mode.c | 11 #include <linux/reboot.h> 12 #include <linux/reboot-mode.h> 22 static unsigned int get_reboot_mode_magic(struct reboot_mode_driver *reboot, in get_reboot_mode_magic() argument 32 list_for_each_entry(info, &reboot->head, list) { in get_reboot_mode_magic() 45 struct reboot_mode_driver *reboot; in reboot_mode_notify() local 48 reboot = container_of(this, struct reboot_mode_driver, reboot_notifier); in reboot_mode_notify() 49 magic = get_reboot_mode_magic(reboot, cmd); in reboot_mode_notify() 51 reboot->write(reboot, magic); in reboot_mode_notify() 57 * reboot_mode_register - register a reboot mode driver 58 * @reboot: reboot mode driver [all …]
|
D | nvmem-reboot-mode.c | 12 #include <linux/reboot-mode.h> 15 struct reboot_mode_driver reboot; member 19 static int nvmem_reboot_mode_write(struct reboot_mode_driver *reboot, in nvmem_reboot_mode_write() argument 25 nvmem_rbm = container_of(reboot, struct nvmem_reboot_mode, reboot); in nvmem_reboot_mode_write() 29 dev_err(reboot->dev, "update reboot mode bits failed\n"); in nvmem_reboot_mode_write() 43 nvmem_rbm->reboot.dev = &pdev->dev; in nvmem_reboot_mode_probe() 44 nvmem_rbm->reboot.write = nvmem_reboot_mode_write; in nvmem_reboot_mode_probe() 46 nvmem_rbm->cell = devm_nvmem_cell_get(&pdev->dev, "reboot-mode"); in nvmem_reboot_mode_probe() 48 dev_err(&pdev->dev, "failed to get the nvmem cell reboot-mode\n"); in nvmem_reboot_mode_probe() 52 ret = devm_reboot_mode_register(&pdev->dev, &nvmem_rbm->reboot); in nvmem_reboot_mode_probe() [all …]
|
D | syscon-reboot-mode.c | 11 #include <linux/reboot.h> 14 #include <linux/reboot-mode.h> 18 struct reboot_mode_driver reboot; member 23 static int syscon_reboot_mode_write(struct reboot_mode_driver *reboot, in syscon_reboot_mode_write() argument 29 syscon_rbm = container_of(reboot, struct syscon_reboot_mode, reboot); in syscon_reboot_mode_write() 34 dev_err(reboot->dev, "update reboot mode bits failed\n"); in syscon_reboot_mode_write() 48 syscon_rbm->reboot.dev = &pdev->dev; in syscon_reboot_mode_probe() 49 syscon_rbm->reboot.write = syscon_reboot_mode_write; in syscon_reboot_mode_probe() 62 ret = devm_reboot_mode_register(&pdev->dev, &syscon_rbm->reboot); in syscon_reboot_mode_probe() 64 dev_err(&pdev->dev, "can't register reboot mode\n"); in syscon_reboot_mode_probe() [all …]
|
D | Kconfig | 107 Reboot support for Hisilicon boards. 134 power-on and reboot reason, Say Y. 214 bool "ARM Versatile family reboot driver" 234 Reboot support for the APM SoC X-Gene Eval boards. 242 Reboot support for the KEYSTONE SoCs. 250 Reboot support for generic SYSCON mapped register reset. 265 Reboot support for Renesas R-Mobile and SH-Mobile SoCs. 271 tristate "Generic SYSCON regmap reboot mode driver" 276 Say y here will enable reboot mode driver. This will 277 get reboot mode arguments and store it in SYSCON mapped [all …]
|
D | Makefile | 9 obj-$(CONFIG_POWER_RESET_BRCMSTB) += brcmstb-reboot.o 13 obj-$(CONFIG_POWER_RESET_HISI) += hisi-reboot.o 27 obj-$(CONFIG_POWER_RESET_VERSATILE) += arm-versatile-reboot.o 29 obj-$(CONFIG_POWER_RESET_XGENE) += xgene-reboot.o 31 obj-$(CONFIG_POWER_RESET_SYSCON) += syscon-reboot.o 34 obj-$(CONFIG_REBOOT_MODE) += reboot-mode.o 35 obj-$(CONFIG_SYSCON_REBOOT_MODE) += syscon-reboot-mode.o 37 obj-$(CONFIG_NVMEM_REBOOT_MODE) += nvmem-reboot-mode.o
|
D | xgene-reboot.c | 3 * AppliedMicro X-Gene SoC Reboot Driver 9 * This driver provides system reboot functionality for APM X-Gene SoC. 19 #include <linux/reboot.h> 37 /* Issue the reboot */ in xgene_restart_handler() 79 { .compatible = "apm,xgene-reboot" }, 86 .name = "xgene-reboot",
|
D | qcom-pon.c | 11 #include <linux/reboot.h> 12 #include <linux/reboot-mode.h> 28 static int pm8916_reboot_mode_write(struct reboot_mode_driver *reboot, in pm8916_reboot_mode_write() argument 32 (reboot, struct pm8916_pon, reboot_mode); in pm8916_reboot_mode_write() 40 dev_err(pon->dev, "update reboot mode bits failed\n"); in pm8916_reboot_mode_write() 72 dev_err(&pdev->dev, "can't register reboot mode\n"); in pm8916_pon_probe()
|
/Linux-v5.15/Documentation/devicetree/bindings/power/reset/ |
D | nvmem-reboot-mode.txt | 1 NVMEM reboot mode driver 3 This driver gets reboot mode magic value from reboot-mode driver 4 and stores it in a NVMEM cell named "reboot-mode". Then the bootloader 9 - compatible: should be "nvmem-reboot-mode". 10 - nvmem-cells: A phandle to the reboot mode provided by a nvmem device. 11 - nvmem-cell-names: Should be "reboot-mode". 13 The rest of the properties should follow the generic reboot-mode description 14 found in reboot-mode.txt 17 reboot-mode { 18 compatible = "nvmem-reboot-mode"; [all …]
|
D | syscon-reboot.yaml | 4 $id: http://devicetree.org/schemas/power/reset/syscon-reboot.yaml# 16 mask defined in the reboot node. Default will be little endian mode, 32 bit 18 parental dt-node. So the SYSCON reboot node should be represented as a 24 const: syscon-reboot 32 description: Offset in the register map for the reboot register (in bytes). 39 the syscon-reboot node been a child of a system controller node. 43 description: The reset value written to the reboot register (32 bit access). 62 reboot { 63 compatible = "syscon-reboot";
|
D | syscon-reboot-mode.yaml | 4 $id: http://devicetree.org/schemas/power/reset/syscon-reboot-mode.yaml# 7 title: Generic SYSCON reboot mode driver 13 This driver gets reboot mode magic value from reboot-mode driver 17 parental dt-node plus the offset. So the SYSCON reboot-mode node 22 const: syscon-reboot-mode 47 reboot-mode { 48 compatible = "syscon-reboot-mode";
|
D | reboot-mode.yaml | 4 $id: http://devicetree.org/schemas/power/reset/reboot-mode.yaml# 7 title: Generic reboot mode core map 13 This driver get reboot mode arguments and call the write 23 - normal: Normal reboot mode, system reboot with command "reboot". 33 Default value to set on a reboot if no command was provided. 43 reboot-mode {
|
/Linux-v5.15/Documentation/ABI/testing/ |
D | sysfs-kernel-reboot | 1 What: /sys/kernel/reboot 5 Description: Interface to set the kernel reboot behavior, similarly to 6 what can be done via the reboot= cmdline option. 9 What: /sys/kernel/reboot/mode 13 Description: Reboot mode. Valid values are: cold warm hard soft gpio 15 What: /sys/kernel/reboot/type 19 Description: Reboot type. Valid values are: bios acpi kbd triple efi pci 21 What: /sys/kernel/reboot/cpu 25 Description: CPU number to use to reboot. 27 What: /sys/kernel/reboot/force [all …]
|
D | sysfs-class-chromeos | 15 What: /sys/class/chromeos/<ec-device-name>/reboot 19 Tell the EC to reboot in various ways. Options are: 21 - "cancel": Cancel a pending reboot. 24 - "cold": Cold reboot. 25 - "disable-jump": Disable jump until next reboot. 27 - "at-shutdown": Reboot after an AP shutdown.
|
/Linux-v5.15/kernel/ |
D | reboot.c | 3 * linux/kernel/reboot.c 8 #define pr_fmt(fmt) "reboot: " fmt 16 #include <linux/reboot.h> 23 * this indicates whether you can reboot with ctrl-alt-del: the default is yes 40 * reboot_type is still set to its default value (i.e., reboot= hasn't 42 * suppress DMI scanning for reboot quirks. Without it, it's 43 * impossible to override a faulty reboot quirk without recompiling. 58 * emergency_restart - reboot the system 61 * reboot the system. This is called when we know we are in 62 * trouble so this is our best effort to reboot. This is [all …]
|
/Linux-v5.15/tools/power/pm-graph/ |
D | bootgraph.8 | 89 \fB-reboot\fR 90 Reboot the machine and generate a new timeline automatically. Works in 4 steps. 92 2. installs a cron job which re-runs the tool after reboot 99 2. reboot the system 134 \f(CW$ sudo bootgraph -reboot -addlogs -o "latest-{hostname)"\fR 138 \f(CW$ sudo bootgraph -reboot -f\fR 142 \f(CW$ sudo bootgraph -reboot -callgraph -mincg 5\fR 146 \f(CW$ sudo bootgraph -reboot -callgraph -func "acpi_ps_parse_aml,msleep"\fR 148 Capture a brand new boot timeline with manual reboot. 154 \f(CW$ sudo reboot # reboot the machine\fR [all …]
|
/Linux-v5.15/tools/testing/ktest/examples/include/ |
D | defaults.conf | 66 # have directory for the scripts to reboot and power cycle the boxes 81 # and ktest will use that kernel to reboot into. 113 # by setting the variable REBOOT to: none, error, fail or 114 # something else, ktest will power cycle or reboot the target box 117 # REBOOT := none 120 # REBOOT := error 121 # Reboot the box if ktest detects an error 123 # REBOOT := fail 130 DEFAULTS IF ${REBOOT} == none 136 DEFAULTS ELSE IF ${REBOOT} == error [all …]
|
/Linux-v5.15/Documentation/x86/x86_64/ |
D | boot-options.rst | 47 in a reboot. On Intel systems it is enabled by default. 129 reboot=b[ios] | t[riple] | k[bd] | a[cpi] | e[fi] | p[ci] [, [w]arm | [c]old] 131 Use the CPU reboot vector for warm reset 133 Don't set the cold reboot flag 135 Set the cold reboot flag 142 the ACPI reset does not work, the reboot path attempts the reset 146 the EFI reset does not work, the reboot path attempts the reset using 149 Use a write to the PCI config space register 0xcf9 to trigger reboot. 154 on reboot so there may be boot problems on some systems. 156 reboot=force [all …]
|
/Linux-v5.15/include/linux/ |
D | reboot-mode.h | 8 int (*write)(struct reboot_mode_driver *reboot, unsigned int magic); 12 int reboot_mode_register(struct reboot_mode_driver *reboot); 13 int reboot_mode_unregister(struct reboot_mode_driver *reboot); 15 struct reboot_mode_driver *reboot); 17 struct reboot_mode_driver *reboot);
|
/Linux-v5.15/arch/x86/kernel/ |
D | reboot.c | 5 #include <linux/reboot.h> 15 #include <acpi/reboot.h> 23 #include <asm/reboot.h> 53 * Reboot options and system auto-detection code provided by 58 * Some machines require the "reboot=a" commandline options 71 * Some machines require the "reboot=b" or "reboot=k" commandline options, 85 * Some machines don't handle the default ACPI reboot method and 86 * require the EFI reboot method: 92 pr_info("%s series board detected. Selecting EFI-method for reboot.\n", d->ident); in set_efi_reboot() 103 * routine will recognize as telling it to do a proper reboot. (Well in machine_real_restart() [all …]
|
/Linux-v5.15/Documentation/devicetree/bindings/mfd/ |
D | canaan,k210-sysctl.yaml | 54 syscon-reboot: 57 $ref: "../power/reset/syscon-reboot.yaml" 59 Reboot method for the SoC. This child node definition 61 Documentation/devicetree/bindings/power/reset/syscon-reboot.yaml. 102 reboot: syscon-reboot { 103 compatible = "syscon-reboot";
|
/Linux-v5.15/Documentation/devicetree/bindings/arm/bcm/ |
D | brcm,bcm63138.txt | 54 reboot 56 Two nodes are required for software reboot: a timer node and a syscon-reboot node. 63 Syscon reboot node: 65 See Documentation/devicetree/bindings/power/reset/syscon-reboot.yaml for the 80 reboot { 81 compatible = "syscon-reboot";
|
/Linux-v5.15/drivers/watchdog/ |
D | softdog.c | 26 #include <linux/reboot.h> 47 "Softdog action, set to 1 to ignore reboots, 0 to reboot (default=0)"); 52 "Softdog action, set to 1 to panic, 0 to reboot (default=0)"); 57 "Set reboot command. Emergency reboot takes place if unset"); 84 pr_crit("Triggered - Reboot ignored\n"); in softdog_fire() 89 pr_crit("Initiating system reboot\n"); in softdog_fire() 102 * After request the reboot, restart the timer to in softdog_fire() 103 * schedule an 'emergency_restart' reboot after in softdog_fire() 118 pr_crit("Reboot didn't ?????\n"); in softdog_fire()
|
/Linux-v5.15/arch/arm/boot/dts/ |
D | exynos-syscon-restart.dtsi | 3 * Samsung's Exynos SoC syscon reboot/poweroff nodes common definition. 14 reboot: syscon-reboot { label 15 compatible = "syscon-reboot";
|
/Linux-v5.15/arch/arm/mach-zynq/ |
D | slcr.c | 9 #include <linux/reboot.h> 20 #define SLCR_REBOOT_STATUS_OFFSET 0x258 /* PS Reboot Status */ 91 * @action: Reboot mode (unused) 100 u32 reboot; in zynq_slcr_system_restart() local 103 * Clear 0x0F000000 bits of reboot status register to workaround in zynq_slcr_system_restart() 104 * the FSBL not loading the bitstream after soft-reboot in zynq_slcr_system_restart() 107 zynq_slcr_read(&reboot, SLCR_REBOOT_STATUS_OFFSET); in zynq_slcr_system_restart() 108 zynq_slcr_write(reboot & 0xF0FFFFFF, SLCR_REBOOT_STATUS_OFFSET); in zynq_slcr_system_restart()
|
/Linux-v5.15/Documentation/watchdog/ |
D | wdt.rst | 14 to within a timeout or the machine will reboot. Each write delays the reboot 16 reboot will depend on the state of the machines and interrupts. The hardware 18 will reboot from almost anything. 47 Reboot Timer X X 48 External Reboot X X
|