/openbmc/docs/designs/ |
H A D | state-management-and-external-interfaces.md | 23 [phoshor-state-manager][2] implements the xyz.openbmc_project.State.\* 28 the appropriate xyz.openbmc_project.State.\* D-Bus interface. 35 Currently phosphor-state-manager supports the following: 37 - Chassis: On/Off 38 - Host: On/Off/Reboot 60 "ForceOff": "Turn off the unit immediately (non-graceful shutdown).", 62 "ForceRestart": "Shut down immediately and non-gracefully and restart 64 "GracefulRestart": "Shut down gracefully and restart the system.", 65 "GracefulShutdown": "Shut down gracefully and power off.", 84 …------------------------------ | -----------------------------------------------------------------… [all …]
|
/openbmc/qemu/tests/qemu-iotests/ |
H A D | 225 | 42 # This tests vmdk-specific low-level functionality 52 _make_test_img -b "$TEST_IMG.base" -F $IMGFMT 60 if [ -z "$backing" ]; then 66 echo "{ 'node-name': '$node_name', 79 not_vmdk_opts="{ 'node-name': 'backing', 'driver': 'null-co' }" 86 _launch_qemu -blockdev "$base_opts" -blockdev "$overlay_opts" 89 _send_qemu_cmd $QEMU_HANDLE 'qemu-io overlay "read 0 512"' 'ops' 99 _launch_qemu -blockdev "$not_base_opts" -blockdev "$overlay_opts" 101 # Should fail (gracefully) 102 _send_qemu_cmd $QEMU_HANDLE 'qemu-io overlay "read 0 512"' 'failed' [all …]
|
H A D | 194 | 21 # Non-shared storage migration test using NBD server and drive-mirror 36 iotests.qemu_img_create('-f', iotests.imgfmt, source_img_path, img_size) 37 iotests.qemu_img_create('-f', iotests.imgfmt, dest_img_path, img_size) 46 source_vm.qmp_log('block-dirty-bitmap-add', node='drive0', name='bitmap0') 49 …iotests.log(dest_vm.qmp('nbd-server-start', addr={'type': 'unix', 'data': {'path': nbd_sock_path}}… 50 iotests.log(dest_vm.qmp('nbd-server-add', device='drive0', writable=True)) 52 iotests.log('Starting `drive-mirror` on source...') 54 'drive-mirror', 60 job_id='mirror-job0')) 62 iotests.log('Waiting for `drive-mirror` to complete...') [all …]
|
/openbmc/linux/arch/ia64/mm/ |
H A D | fault.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (C) 1998-2002 Hewlett-Packard Co 6 * David Mosberger-Tang <davidm@hpl.hp.com> 70 struct mm_struct *mm = current->mm; in ia64_do_page_fault() 79 prefetchw(&mm->mmap_lock); in ia64_do_page_fault() 107 * find_vma_prev() returns vma such that address < vma->vm_end or NULL in ia64_do_page_fault() 111 * this case vma will be null, but prev_vma will ne non-null in ia64_do_page_fault() 113 if (( !vma && prev_vma ) || (address < vma->vm_start) ) { in ia64_do_page_fault() 128 if (((isr >> IA64_ISR_R_BIT) & 1UL) && (!(vma->vm_flags & (VM_READ | VM_WRITE)))) in ia64_do_page_fault() 131 if ((vma->vm_flags & mask) != mask) in ia64_do_page_fault() [all …]
|
/openbmc/phosphor-dbus-interfaces/yaml/xyz/openbmc_project/State/ |
H A D | Drive.interface.yaml | 5 - name: Rebuilding 10 - name: RequestedDriveTransition 15 - name: CurrentDriveState 19 The current state of the Drive and is a read-only property. 21 - readonly 22 - name: LastRebootTime 30 - readonly 33 - name: Transition 37 - name: "Reboot" 40 - name: "HardReboot" [all …]
|
H A D | BMC.interface.yaml | 8 - name: RequestedBMCTransition 14 - xyz.openbmc_project.Common.Error.Unavailable 16 - name: CurrentBMCState 19 The current state of the BMC and is a read-only property. 21 - name: LastRebootTime 27 - name: LastRebootCause 34 - name: Transition 38 - name: "Reboot" 41 - name: "HardReboot" 43 BMC system should be non-gracefully rebooted. [all …]
|
/openbmc/linux/Documentation/ABI/testing/ |
H A D | dev-kmsg | 30 first message in the buffer; there is no kernel-internal 36 used -EAGAIN returned. 42 the device is kept open, the next read() will return -EPIPE, 67 Because of the non-standard behavior also the error values are 68 non-standard. -ESPIPE is returned for non-zero offset. -EINVAL 80 gracefully ignored. 85 all non-printable characters and '\' itself in the log message 86 are escaped by "\x00" C-style hex encoding. 95 7,160,424069,-;pci_root PNP0A03:00: host bridge window [io 0x0000-0x0cf7] (ignored) 98 6,339,5140900,-;NET: Registered protocol family 10 [all …]
|
/openbmc/qemu/hw/misc/ |
H A D | imx7_snvs.c | 2 * IMX7 Secure Non-Volatile Storage 9 * See the COPYING file in the top-level directory. 12 * down linux guest gracefully. 44 return s->tick_offset + ticks; in imx7_snvs_get_count() 60 ret = s->lpcr; in imx7_snvs_read() 73 s->lpcr = 0; in imx7_snvs_reset() 97 s->lpcr = v; in imx7_snvs_write() 109 s->tick_offset += new_value - snvs_count; in imx7_snvs_write() 136 memory_region_init_io(&s->mmio, obj, &imx7_snvs_ops, s, in imx7_snvs_init() 139 sysbus_init_mmio(sd, &s->mmio); in imx7_snvs_init() [all …]
|
/openbmc/qemu/docs/system/i386/ |
H A D | sgx.rst | 5 -------- 16 ----------- 36 require -maxmem as EPC is not treated as {cold,hot}plugged memory. 43 The following QEMU snippet creates two EPC sections, with 64M pre-allocated 46 -object memory-backend-epc,id=mem1,size=64M,prealloc=on \ 47 -object memory-backend-epc,id=mem2,size=28M \ 48 -M sgx-epc.0.memdev=mem1,sgx-epc.1.memdev=mem2 70 SGX keys being changed, and handle gracefully. For instance, when ERESUME fails 71 with #PF.SGX, guest software can gracefully detect it and recreate enclaves; 79 in any of QEMU's built-in CPU configuration. To expose SGX (and SGX Launch [all …]
|
H A D | microvm.rst | 8 designed for short-lived guests. microvm also establishes a baseline 14 ----------------- 18 - ISA bus 19 - i8259 PIC (optional) 20 - i8254 PIT (optional) 21 - MC146818 RTC (optional) 22 - One ISA serial port (optional) 23 - LAPIC 24 - IOAPIC (with kernel-irqchip=split by default) 25 - kvmclock (if using KVM) [all …]
|
/openbmc/linux/arch/parisc/mm/ |
H A D | fault.c | 39 * parisc_acctyp(unsigned int inst) -- 40 * Given a PA-RISC memory access instruction, determine if the 81 * older PA-RISC platforms. The case where a block in parisc_acctyp() 89 * 01 Graphics flush write (IO space -> VM) in parisc_acctyp() 90 * 10 Graphics flush read (VM -> IO space) in parisc_acctyp() 91 * 11 Graphics flush read/write (VM <-> IO space) in parisc_acctyp() 127 * not, but I want it committed to CVS so I don't lose it :-) 130 if (tree->vm_start > addr) { 131 tree = tree->vm_avl_left; 134 if (prev->vm_next == NULL) [all …]
|
/openbmc/linux/arch/openrisc/mm/ |
H A D | fault.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 11 * Copyright (C) 2010-2011 Jonas Bonn <jonas@southpole.se> 27 #define TLB_OFFSET(add) (((add) >> PAGE_SHIFT) & (NUM_TLB_ENTRIES-1)) 29 /* __PHX__ :: - check the vmalloc_fault in do_page_fault() 30 * - also look into include/asm/mmu_context.h 59 * We fault-in kernel-space virtual memory on-demand. The in do_page_fault() 92 if (regs->sr && (SPR_SR_IEE | SPR_SR_TEE)) in do_page_fault() 96 mm = tsk->mm; in do_page_fault() 116 if (vma->vm_start <= address) in do_page_fault() 119 if (!(vma->vm_flags & VM_GROWSDOWN)) in do_page_fault() [all …]
|
/openbmc/linux/drivers/gpu/drm/i915/ |
H A D | Kconfig.profile | 35 that complements the runtime-pm autosuspend and provides a lower 46 check the health of the GPU and undertake regular house-keeping of 98 take a non-negligible time to setup, we do a short spin first to 110 int "How long to wait for an engine to quiesce gracefully before reset (ms)"
|
/openbmc/linux/include/rdma/ |
H A D | iw_cm.h | 1 /* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */ 36 * iw_cm_handler - Function to be called by the IW CM when delivering events 46 * iw_event_handler - Function called by the provider when delivering provider 48 * or -errno if the event could not be processed. 97 * iw_create_cm_id - Create an IW CM identifier. 108 * iw_destroy_cm_id - Destroy an IW CM identifier. 118 * iw_cm_listen - Listen for incoming connection requests on the 122 * @backlog: The maximum number of outstanding un-accepted inbound listen 131 * iw_cm_accept - Called to accept an incoming connect request. 140 * the return of this function. If this function returns a non-zero value, the [all …]
|
/openbmc/linux/include/uapi/linux/surface_aggregator/ |
H A D | dtx.h | 1 /* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */ 3 * Surface DTX (clipboard detachment system driver) user-space interface. 6 * device allows user-space to control the clipboard detachment process on 9 * Copyright (C) 2020-2021 Maximilian Luz <luzmaximilian@gmail.com> 42 /* Runtime errors (non-critical) */ 62 * enum sdtx_device_mode - Mode describing how (and if) the clipboard is 81 * struct sdtx_event - Event provided by reading from the DTX device file. 95 * enum sdtx_event_code - Code describing the type of an event. 104 * gracefully handle unknown events, i.e. by simply skipping them. 106 * Consult the DTX user-space interface documentation for details regarding [all …]
|
/openbmc/qemu/qapi/ |
H A D | control.json | 1 # -*- Mode: Python -*- 19 # .. qmp-example:: 21 # -> { "execute": "qmp_capabilities", 23 # <- { "return": {} } 28 # :doc:`/interop/qmp-spec`) 38 'allow-preconfig': true } 46 # @oob: QMP ability to support out-of-band requests. (Please refer to 47 # qmp-spec.rst for more information on OOB) 57 # A three-part version number. 82 # Downstream versions of QEMU should set this to a non-empty [all …]
|
/openbmc/qemu/python/qemu/machine/ |
H A D | machine.py | 8 # Copyright (C) 2015-2016 Red Hat Inc. 15 # the COPYING file in the top-level directory. 83 def __str__(self) -> str: 121 # pylint: disable=too-many-instance-attributes, too-many-public-methods 140 @param name: prefix for socket and log file names (default: qemu-PID) 149 # pylint: disable=too-many-arguments 195 def __enter__(self: _T) -> _T: 201 exc_tb: Optional[TracebackType]) -> None: 204 def add_monitor_null(self) -> None: 208 self._args.append('-monitor') [all …]
|
/openbmc/linux/include/linux/ |
H A D | kfence.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * Kernel Electric-Fence (KFENCE). Public interface for allocator and fault 4 * handler integration. For more info see Documentation/dev-tools/kfence.rst. 34 * is_kfence_address() - check if an address belongs to KFENCE pool 46 * Note: This function may be used in fast-paths, and is performance critical. 56 * the slow-path after the range-check! in is_kfence_address() 58 return unlikely((unsigned long)((char *)addr - __kfence_pool) < KFENCE_POOL_SIZE && __kfence_pool); in is_kfence_address() 62 * kfence_alloc_pool_and_metadata() - allocate the KFENCE pool and KFENCE 68 * kfence_init() - perform KFENCE initialization at boot time 76 * kfence_shutdown_cache() - handle shutdown_cache() for KFENCE objects [all …]
|
/openbmc/qemu/docs/interop/ |
H A D | live-block-operations.rst | 5 later. See the COPYING file in the top-level directory. 14 live block device jobs -- stream, commit, mirror, and backup. These can 19 to another target image; and point-in-time (and incremental) backups of 21 primitives, and some (non-exhaustive list of) examples to illustrate 25 The file ``qapi/block-core.json`` in the QEMU source tree has the 35 --------------------------------- 38 ``blockdev-snapshot-sync``, or offline via ``qemu-img``):: 45 [A] <----- [B] 59 block-core.json.) 74 ------------------------------------------- [all …]
|
/openbmc/linux/arch/x86/kernel/ |
H A D | process_32.c | 9 * This file handles the architecture-dependent parts of process handling.. 71 log_lvl, regs->ax, regs->bx, regs->cx, regs->dx); in __show_regs() 73 log_lvl, regs->si, regs->di, regs->bp, regs->sp); in __show_regs() 75 log_lvl, (u16)regs->ds, (u16)regs->es, (u16)regs->fs, gs, regs->ss, regs->flags); in __show_regs() 94 /* Only print out debug registers if they are in their non-default state. */ in __show_regs() 107 BUG_ON(dead_task->mm); in release_thread() 115 regs->fs = 0; in start_thread() 116 regs->ds = __USER_DS; in start_thread() 117 regs->es = __USER_DS; in start_thread() 118 regs->ss = __USER_DS; in start_thread() [all …]
|
/openbmc/linux/include/drm/ |
H A D | gpu_scheduler.h | 28 #include <linux/dma-fence.h> 36 * DRM_SCHED_FENCE_DONT_PIPELINE - Prefent dependency pipelining 45 * DRM_SCHED_FENCE_FLAG_HAS_DEADLINE_BIT - A fence deadline hint has been set 81 * struct drm_sched_entity - A wrapper around a job queue (typically 244 * struct drm_sched_rq - queue of entities to be scheduled. 265 * struct drm_sched_fence - fences corresponding to the scheduling of a job. 316 * struct drm_sched_job - A job to be run by an entity. 379 return s_job && atomic_inc_return(&s_job->karma) > threshold; in drm_sched_invalidate_job() 389 * struct drm_sched_backend_ops - Define the backend operations 428 * 2. Try to gracefully stop non-faulty jobs (optional) [all …]
|
/openbmc/linux/arch/powerpc/mm/ |
H A D | fault.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 * Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org) 58 * be caught by the assembly which will restore the non-volatile in __bad_area_nosemaphore() 76 struct mm_struct *mm = current->mm; in __bad_area() 90 struct mm_struct *mm = current->mm; in bad_access_pkey() 116 * be caught by the assembly which will restore the non-volatile in bad_access_pkey() 138 current->thread.trap_nr = BUS_ADRERR; in do_sigbus() 144 current->comm, current->pid, address); in do_sigbus() 174 * made us unable to handle the page fault gracefully. in mm_fault_error() 198 pr_crit_ratelimited("kernel tried to execute %s page (%lx) - exploit attempt? (uid: %d)\n", in bad_kernel_fault() [all …]
|
/openbmc/ipmitool/control/ |
H A D | ipmitool.spec.in | 2 Summary: ipmitool - Utility for IPMI control 8 Source: %{name}-%{version}.tar.gz 9 Buildroot: /var/tmp/ipmitool-root 16 This utility can communicate with IPMI-enabled devices through either a 19 communications and remote Serial-over-LAN functionality. 28 rm -rf $RPM_BUILD_ROOT 34 ./configure --with-kerneldir \ 35 --with-rpm-distro=@DISTRO@ \ 36 --prefix=%{_prefix} \ 37 --bindir=%{_bindir} \ [all …]
|
/openbmc/openbmc-test-automation/lib/ |
H A D | fan_utils.robot | 80 [Documentation] Set the fan state, either functional or non-functional. 85 # fan_state The state to set, 1 for functional, 2 for non-functional. 122 ... fan's clockwise blade, and the speed of the counter-clockwise blade. 123 # Each fan unit has two counter-rotating fan blades 137 # Get the counter-clockwise blade speed. 171 ${cmd}= Catenate systemctl ${state} phosphor-fan-control@0.service 215 ${cmd}= Catenate systemctl list-units | grep phosphor-fan | wc -l 222 ... Fail msg=No phosphor-fan monitors found at power on. 226 ... Fail msg=Phosphor-fan monitors found at power off. 277 ${min_limit}= Evaluate ${target_speed}-${tolerance_value} [all …]
|
/openbmc/linux/arch/arm64/kvm/ |
H A D | reset.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 2012,2013 - ARM Ltd 7 * Copyright (C) 2012 - Virtual Open Systems and Columbia University 79 return -EINVAL; in kvm_vcpu_enable_sve() 81 vcpu->arch.sve_max_vl = kvm_sve_max_vl; in kvm_vcpu_enable_sve() 95 * vcpu->arch.sve_state as necessary. 104 vl = vcpu->arch.sve_max_vl; in kvm_vcpu_finalize_sve() 109 * set_sve_vls(). Double-check here just to be sure: in kvm_vcpu_finalize_sve() 113 return -EIO; in kvm_vcpu_finalize_sve() 118 return -ENOMEM; in kvm_vcpu_finalize_sve() [all …]
|