/openbmc/linux/drivers/power/reset/ |
H A D | reboot-mode.c | 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() 62 int reboot_mode_register(struct reboot_mode_driver *reboot) in reboot_mode_register() argument 66 struct device_node *np = reboot->dev->of_node; in reboot_mode_register() 70 INIT_LIST_HEAD(&reboot->head); in reboot_mode_register() 76 info = devm_kzalloc(reboot->dev, sizeof(*info), GFP_KERNEL); in reboot_mode_register() [all …]
|
H A D | nvmem-reboot-mode.c | 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() 52 ret = devm_reboot_mode_register(&pdev->dev, &nvmem_rbm->reboot); in nvmem_reboot_mode_probe()
|
H A D | syscon-reboot-mode.c | 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()
|
H A 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
|
/openbmc/docs/designs/ |
H A D | bmc-reboot-cause-update.md | 13 vendors to record different types of BMC reboot cause event logs. The purpose of 14 this proposal is to update the existing method, consolidating more BMC reboot 19 In the current approach, the only defined reboot causes are **WDIOF_EXTERN1** 22 cover all possible reboot causes. In this update, we will add support for 28 corresponding BMC reboot cause. 29 2. Each BMC vendor needs to record the results of the retrieved reboot cause to 31 3. Each vendor needs to ensure the accuracy of interpreting the reboot cause 33 4. New reboot cause types need to be defined to cover the requirements 34 5. Revise the definitions of certain existing reboot cause types to better 43 A[BMC reboot] --> B[Driver get the reboot cause] [all …]
|
H A D | power-systems-memory-preserving-reboot.md | 1 # Memory preserving reboot and System Dump extraction flow on POWER Systems. 12 restarted. A typical server reboot will erase the content of the main memory 16 failure. A warm reboot with preserving the main memory is needed on the POWER 18 explains the high-level flow of warm reboot and extraction of the resulting dump 48 - **Memory Preserving Reboot (MPR)**: A method of reboot with preserving the 77 BMC to initiate a memory preserving reboot. BMC starts the reboot by informing 81 memory preserved reboot. Once the system finished booting, the hypervisor 103 - BMC should inform SBE to start the memory preserving reboot and collect the 124 The flow of the memory preserving reboot and system dump offloading 125  API with klibc 25 /* if ( -1 == reboot(LINUX_REBOOT_CMD_RESTART) ) { */ 26 - if ( -1 == reboot(RB_AUTOBOOT) ) { 27 + if ( -1 == reboot(RB_AUTOBOOT, NULL) ) { 28 log_msg(lg, "Can't initiate reboot: %s", ERRMSG); 34 /* if ( -1 == reboot(LINUX_REBOOT_CMD_POWER_OFF) ) { */ 35 - if ( -1 == reboot(RB_POWER_OFF) ) { 36 + if ( -1 == reboot(RB_POWER_OFF, NULL) ) {
|
/openbmc/openbmc/meta-facebook/meta-catalina/recipes-phosphor/state/ |
H A D | phosphor-state-manager_%.bbappend | 17 # The "warm-reboot" is what does the graceful shutdown operation and the 18 # normal "reboot" is suppose to do a forced reboot. `host-shutdown` is used 20 # reboot, so remove the dependency. The `phosphor-reboot-host@.service` does 21 # continue to be in `obmc-host-reboot` requirements and it depends on 24 obmc-host-reboot@{}.target.requires/obmc-host-shutdown@{}.service \ 33 # The host-stop service is called as a side-effect of force-warm-reboot and is 35 # subsequent `obmc-host-reboot` (which calls `host-startmin`) 41 … obmc-host-warm-reboot@{}.target.requires/xyz.openbmc_project.Ipmi.Internal.SoftPowerOff.service \ 42 obmc-host-warm-reboot@{}.target.wants/pldmSoftPowerOff.service \ 43 obmc-host-warm-reboot@{}.target.requires/obmc-host-force-warm-reboot@{}.target \ [all …]
|
/openbmc/openbmc/meta-fii/meta-kudo/recipes-phosphor/state/ |
H A D | phosphor-state-manager_%.bbappend | 14 …rm "$D$systemd_system_unitdir/obmc-host-warm-reboot@0.target.requires/xyz.openbmc_project.Ipmi.Int… 15 …rm "$D$systemd_system_unitdir/obmc-host-warm-reboot@0.target.requires/obmc-host-force-warm-reboot@… 17 rm "$D$systemd_system_unitdir/obmc-host-reboot@0.target.requires/phosphor-reboot-host@0.service" 18 rm "$D$systemd_system_unitdir/obmc-host-reboot@0.target.requires/obmc-host-shutdown@0.target" 20 …rm "$D$systemd_system_unitdir/obmc-host-force-warm-reboot@0.target.requires/obmc-host-stop@0.targe… 21 …rm "$D$systemd_system_unitdir/obmc-host-force-warm-reboot@0.target.requires/phosphor-reboot-host@0…
|
/openbmc/linux/include/linux/ |
H A 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);
|
/openbmc/openbmc/meta-openembedded/meta-oe/recipes-support/reboot-mode/ |
H A D | reboot-mode_git.bb | 6 SRC_URI = "git://gitlab.com/postmarketOS/reboot-mode.git;protocol=http;branch=master" 15 ${CC} ${CFLAGS} ${LDFLAGS} ${S}/reboot-mode.c -o ${B}/reboot-mode 19 install -D -m 0755 ${B}/reboot-mode ${D}${bindir}/reboot-mode
|
/openbmc/phosphor-bmc-code-mgmt/bmc/ |
H A D | force-reboot.service.in | 2 Description=Force reboot of the BMC 3 Requires=reboot-guard-disable.service 4 After=reboot-guard-disable.service 9 ExecStart=/sbin/reboot
|
/openbmc/linux/arch/arm/boot/dts/samsung/ |
H A 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";
|
/openbmc/linux/Documentation/devicetree/bindings/arm/bcm/ |
H A 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";
|
/openbmc/openbmc/meta-openembedded/meta-python/recipes-extended/python-pykickstart/files/ |
H A D | 0003-comment-out-sections-shutdown-and-environment-in-gen.patch | 15 pykickstart/commands/reboot.py | 3 +++ 19 diff --git a/pykickstart/commands/reboot.py b/pykickstart/commands/reboot.py 21 --- a/pykickstart/commands/reboot.py 22 +++ b/pykickstart/commands/reboot.py
|
/openbmc/openbmc/meta-facebook/meta-harma/recipes-phosphor/state/ |
H A D | phosphor-state-manager_%.bbappend | 32 … obmc-host-warm-reboot@{}.target.requires/xyz.openbmc_project.Ipmi.Internal.SoftPowerOff.service \ 33 obmc-host-warm-reboot@{}.target.requires/obmc-host-force-warm-reboot@{}.target \ 34 obmc-host-force-warm-reboot@{}.target.requires/obmc-host-stop@{}.target \ 35 obmc-host-force-warm-reboot@{}.target.requires/phosphor-reboot-host@{}.service \ 39 obmc-host-warm-reboot@{}.target.wants/host-powerreset@{}.service \ 59 obmc-host-reboot@{}.target.wants/host-powercycle@{}.service \ 60 obmc-host-reboot@{}.target.requires/obmc-host-shutdown@{}.service \
|
/openbmc/qemu/docs/devel/migration/ |
H A D | CPR.rst | 8 cpr-reboot is the only available mode. 18 cpr-reboot mode 34 then the user may reboot to a new host kernel before restarting QEMU. 54 * Set the migration mode parameter to ``cpr-reboot``. 64 * Set the migration mode parameter to ``cpr-reboot``. 80 (qemu) migrate_set_parameter mode cpr-reboot 87 ### optionally update kernel and reboot 95 (qemu) migrate_set_parameter mode cpr-reboot 119 (qemu) migrate_set_parameter mode cpr-reboot 126 ### optionally update kernel and reboot [all …]
|
/openbmc/openbmc/meta-ampere/meta-common/recipes-ampere/host/ |
H A D | ampere-hostctrl.bb | 20 file://ampere-bmc-reboot-host-check@.service \ 28 ampere-bmc-reboot-host-check@.service \ 31 # append force reboot 34 HOST_WARM_REBOOT_FORCE_TGTFMT = "obmc-host-force-warm-reboot@{0}.target" 55 HOST_CHECK_BMC_REBOOT_HOSTTMPL = "ampere-bmc-reboot-host-check@.service" 56 HOST_CHECK_BMC_REBOOT_HOSTINSTMPL = "ampere-bmc-reboot-host-check@{0}.service"
|
/openbmc/phosphor-state-manager/service_files/ |
H A D | phosphor-reboot-host@.service | 13 # Since this is a part of the reboot target, call the startmin 14 # target which does the minimum required to start the host if the reboot count 16 ExecStart=/usr/libexec/phosphor-state-manager/host-reboot %i 19 WantedBy=obmc-host-reboot@%i.target
|
/openbmc/linux/arch/arm64/boot/dts/qcom/ |
H A D | pmk8550.dtsi | 12 reboot-mode { 13 compatible = "nvmem-reboot-mode"; 15 nvmem-cell-names = "reboot-mode"; 61 reboot_reason: reboot-reason@48 {
|
/openbmc/openbmc-test-automation/lib/ |
H A D | code_update_utils_serial.robot | 11 [Arguments] ${image_file_path} ${reboot} 17 # reboot If set to true, will reboot the BMC after the code 28 Run Keyword If '${reboot}' OBMC Reboot (off) stack_mode=normal
|
/openbmc/openbmc/meta-facebook/meta-greatlakes/recipes-phosphor/state/phosphor-state-manager/ |
H A D | host-powercycle | 11 host-reboot() 35 host-reboot 6 37 host-reboot 2
|