/openbmc/openbmc-test-automation/lib/ |
H A D | state_manager.robot | 18 [Arguments] ${wait}=${1} 21 # wait Indicates that this keyword should wait for host running state. 27 # Does caller want to wait for status? 28 Run Keyword If '${wait}' == '${0}' Return From Keyword 30 Wait Until Keyword Succeeds 38 [Arguments] ${wait}=${1} 41 # wait Indicates that this keyword should wait for host off state. 47 # Does caller want to wait for status? 48 Run Keyword If '${wait}' == '${0}' Return From Keyword 50 ${status}= Run Keyword And Return Status Wait For PowerOff [all …]
|
H A D | utils.robot | 81 [Documentation] Wait for Host to be online. Checks every X seconds 88 # max_timeout Maximum time to wait. 91 # interval Interval to wait between status checks. 95 Wait Until Keyword Succeeds 115 ... data=xyz.openbmc_project.State.Watchdog.Action.PowerCycle 174 ... Set Variable echo ${os_password} | sudo -S reboot 197 ... Set Variable echo ${os_password} | sudo -S shutdown${time_string} 203 Set System LED State 208 # led_state LED state to be set (e.g. On, Off). 212 Write Attribute ${LED_PHYSICAL_URI}${led_name} State data=${args} [all …]
|
/openbmc/linux/kernel/sched/ |
H A D | completion.c | 1 // SPDX-License-Identifier: GPL-2.0 4 * Generic wait-for-completion handler; 7 * wait_for_completion default blocks whereas semaphore default non-block. The 20 raw_spin_lock_irqsave(&x->wait.lock, flags); in complete_with_flags() 22 if (x->done != UINT_MAX) in complete_with_flags() 23 x->done++; in complete_with_flags() 24 swake_up_locked(&x->wait, wake_flags); in complete_with_flags() 25 raw_spin_unlock_irqrestore(&x->wait.lock, flags); in complete_with_flags() 34 * complete: - signals a single thread waiting on this completion 35 * @x: holds the state of this particular completion [all …]
|
H A D | swait.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * <linux/swait.h> (simple wait queues ) implementation: 9 raw_spin_lock_init(&q->lock); in __init_swait_queue_head() 10 lockdep_set_class_and_name(&q->lock, key, name); in __init_swait_queue_head() 11 INIT_LIST_HEAD(&q->task_list); in __init_swait_queue_head() 25 if (list_empty(&q->task_list)) in swake_up_locked() 28 curr = list_first_entry(&q->task_list, typeof(*curr), task_list); in swake_up_locked() 29 try_to_wake_up(curr->task, TASK_NORMAL, wake_flags); in swake_up_locked() 30 list_del_init(&curr->task_list); in swake_up_locked() 43 while (!list_empty(&q->task_list)) in swake_up_all_locked() [all …]
|
H A D | wait.c | 1 // SPDX-License-Identifier: GPL-2.0-only 10 spin_lock_init(&wq_head->lock); in __init_waitqueue_head() 11 lockdep_set_class_and_name(&wq_head->lock, key, name); in __init_waitqueue_head() 12 INIT_LIST_HEAD(&wq_head->head); in __init_waitqueue_head() 21 wq_entry->flags &= ~WQ_FLAG_EXCLUSIVE; in add_wait_queue() 22 spin_lock_irqsave(&wq_head->lock, flags); in add_wait_queue() 24 spin_unlock_irqrestore(&wq_head->lock, flags); in add_wait_queue() 32 wq_entry->flags |= WQ_FLAG_EXCLUSIVE; in add_wait_queue_exclusive() 33 spin_lock_irqsave(&wq_head->lock, flags); in add_wait_queue_exclusive() 35 spin_unlock_irqrestore(&wq_head->lock, flags); in add_wait_queue_exclusive() [all …]
|
/openbmc/phosphor-state-manager/service_files/ |
H A D | phosphor-discover-system-state@.service | 3 Wants=mapper-wait@-xyz-openbmc_project-control-host%i-power_restore_policy.service 4 After=mapper-wait@-xyz-openbmc_project-control-host%i-power_restore_policy.service 5 Wants=mapper-wait@-xyz-openbmc_project-state-host%i.service 6 After=mapper-wait@-xyz-openbmc_project-state-host%i.service 7 Wants=mapper-wait@-xyz-openbmc_project-state-chassis%i.service 8 After=mapper-wait@-xyz-openbmc_project-state-chassis%i.service 9 Wants=mapper-wait@-xyz-openbmc_project-state-bmc0.service 10 After=mapper-wait@-xyz-openbmc_project-state-bmc0.service 11 After=phosphor-reset-chassis-on@%i.service 14 After=multi-user.target [all …]
|
H A D | xyz.openbmc_project.State.Host@.service | 2 Description=Phosphor Host%i State Manager 3 Wants=mapper-wait@-xyz-openbmc_project-control-host%i-auto_reboot.service 4 After=mapper-wait@-xyz-openbmc_project-control-host%i-auto_reboot.service 5 Wants=mapper-wait@-xyz-openbmc_project-state-chassis%i.service 6 After=mapper-wait@-xyz-openbmc_project-state-chassis%i.service 7 After=phosphor-ipmi-host.service 9 Before=obmc-host-reset@%i.target 16 ExecStart=/usr/bin/phosphor-host-state-manager --host %i 19 BusName=xyz.openbmc_project.State.Host%i 22 WantedBy=multi-user.target
|
/openbmc/openbmc-test-automation/gui/gui_test/security_and_access_menu/ |
H A D | test_policies_sub_menu.robot | 3 Documentation Test OpenBMC GUI "Policies" sub-menu of "Security and Access" menu. 19 ${xpath_bmc_ssh_toggle} //*[@data-test-id='policies-toggle-bmcShell'] 20 ... /following-sibling::label 21 ${xpath_network_ipmi_toggle} //*[@data-test-id='polices-toggle-networkIpmi'] 22 ... /following-sibling::label 23 ${xpath_host_tpm_toggle} //input[@id='host-tpm-policy'] 24 ${xpath_virtual_tpm_toggle} //*[@data-test-id='policies-toggle-vtpm'] 25 ${xpath_rtad_toggle} //*[@data-test-id='policies-toggle-rtad'] 26 ${xpath_usb_firmware_update_policy_toggle} //*[@data-test-id='policies-toggle-usbFirmwareUpdateP… 27 ${xpath_secure_version_lockin_toggle} //*[@data-test-id='policies-toggle-svle'] [all …]
|
/openbmc/openbmc-test-automation/gui/gui_test/overview_menu/ |
H A D | test_overview_menu.robot | 27 ${xpath_launch_host_console} //*[@data-test-id='overviewQuickLinks-button-solCo… 28 ${xpath_led_button} //*[@data-test-id='overviewInventory-checkbox-iden… 30 ${xpath_critical_logs_count} //dt[contains(text(),'Critical')]/following-siblin… 31 ${xpath_warning_logs_count} //dt[contains(text(),'Warning')]/following-sibling… 32 ${xpath_asset_tag} //dt[contains(text(),'Asset tag')]/following-sibli… 33 ${xpath_operating_mode} //dt[contains(text(),'Operating mode')]/following-… 34 ${xpath_machine_model} //dt[contains(text(),'Model')]/following-sibling::… 35 ${xpath_serial_number} //dt[contains(text(),'Serial number')]/following-s… 46 Wait Until Page Contains Network information timeout=10 101 Wait Until Page Contains Element ${xpath_network_heading} [all …]
|
/openbmc/openbmc-test-automation/redfish/extended/ |
H A D | test_power_restore.robot | 5 ... https://github.com/openbmc/docs/blob/master/rest-api.md 30 ... Initial Host State: 31 ... State where system should be before running the 33 ... Expected Host State: 35 ... specific state. 39 # Policy Initial Host State Expected Host State 49 # Policy Initial Host State Expected Host State 57 ... Initial Host State: 58 ... State where system should be before running the 60 ... Expected Host State: [all …]
|
/openbmc/linux/drivers/gpu/drm/i915/display/ |
H A D | intel_display_rps.c | 1 // SPDX-License-Identifier: MIT 15 struct wait_queue_entry wait; member 24 struct wait_rps_boost *wait = container_of(_wait, typeof(*wait), wait); in do_rps_boost() local 25 struct i915_request *rq = wait->request; in do_rps_boost() 36 drm_crtc_vblank_put(wait->crtc); in do_rps_boost() 38 list_del(&wait->wait.entry); in do_rps_boost() 39 kfree(wait); in do_rps_boost() 46 struct wait_rps_boost *wait; in intel_display_rps_boost_after_vblank() local 51 if (DISPLAY_VER(to_i915(crtc->dev)) < 6) in intel_display_rps_boost_after_vblank() 57 wait = kmalloc(sizeof(*wait), GFP_KERNEL); in intel_display_rps_boost_after_vblank() [all …]
|
/openbmc/openbmc-test-automation/redfish/update_service/ |
H A D | test_firmware_tftp_upload_image.robot | 9 # Enabled -> Image is installed and either functional or active. 10 # Disabled -> Image installation failed or ready for activation. 11 # Updating -> Image installation currently in progress. 70 [Documentation] Install firmware image and re-try using the same image which should fail. 96 ${state}= Get Pre Reboot State 97 Rprint Vars state 106 # Wait for image tar file to download complete. 107 ${image_id}= Wait Until Keyword Succeeds 180 sec 10 sec Get Latest Image ID 112 Check Image Update Progress State match_state='Disabled', 'Updating' image_id=${image_id} 118 Check Image Update Progress State match_state='Updating' image_id=${image_id} [all …]
|
/openbmc/linux/include/linux/ |
H A D | wait.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 5 * Linux wait queue related types and methods 12 #include <uapi/linux/wait.h> 28 * A single wait-queue entry structure: 84 wq_entry->flags = 0; in init_waitqueue_entry() 85 wq_entry->private = p; in init_waitqueue_entry() 86 wq_entry->func = default_wake_function; in init_waitqueue_entry() 92 wq_entry->flags = 0; in init_waitqueue_func_entry() 93 wq_entry->private = NULL; in init_waitqueue_func_entry() 94 wq_entry->func = func; in init_waitqueue_func_entry() [all …]
|
H A D | swait.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 8 #include <linux/wait.h> 12 * Simple waitqueues are semantically very different to regular wait queues 13 * (wait.h). The most important difference is that the simple waitqueue allows 14 * for deterministic behaviour -- IOW it has strictly bounded IRQ and lock hold 24 * - mixing INTERRUPTIBLE and UNINTERRUPTIBLE sleeps on the same waitqueue; 26 * sleeper state. 28 * - the !exclusive mode; because that leads to O(n) wakeups, everything is 31 * - custom wake callback functions; because you cannot give any guarantees 35 * As a side effect of these; the data structures are slimmer albeit more ad-hoc. [all …]
|
H A D | wait_bit.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 6 * Linux wait-bit related types and methods: 8 #include <linux/wait.h> 55 * wait_on_bit - wait for a bit to be cleared 58 * @mode: the task state to sleep in 66 * Returned value will be zero if the bit was cleared, or non-zero 82 * wait_on_bit_io - wait for a bit to be cleared 85 * @mode: the task state to sleep in 87 * Use the standard hashed waitqueue table to wait for a bit 91 * Returned value will be zero if the bit was cleared, or non-zero [all …]
|
/openbmc/openbmc-test-automation/gui/gui_test/operations_menu/ |
H A D | test_server_power_operations_sub_menu.robot | 3 Documentation Test OpenBMC GUI "Server power operations" sub-menu of "Operations". 16 ${xpath_enable_onetime_boot_checkbox} //*[contains(@class,'custom-checkbox')] 17 ${xpath_boot_option_select} //*[@id='boot-option'] 18 ${xpath_shutdown_button} //*[@data-test-id='serverPowerOperations-button-shutDown… 19 ${xpath_reboot_button} //*[@data-test-id='serverPowerOperations-button-reboot'] 20 ${xpath_poweron_button} //*[@data-test-id='serverPowerOperations-button-powerOn'] 22 ${xpath_shutdown_orderly_radio} //*[@data-test-id='serverPowerOperations-radio-shutdownO… 23 ${xpath_shutdown_immediate_radio} //*[@data-test-id='serverPowerOperations-radio-shutdownI… 25 ${xpath_current_power_state} //*[@data-test-id='powerServerOps-text-hostStatus'] 26 ${xpath_reboot_immediate_radio} //*[@data-test-id='serverPowerOperations-radio-rebootImm… [all …]
|
/openbmc/openbmc-test-automation/gui/lib/ |
H A D | resource.robot | 3 ... user-defined keywords which are available to all gui modules 88 # (e.g. https://openbmc-test.mybluemix.net/#/login). 108 Wait Until Element Is Enabled ${xpath_textbox_hostname} 113 Wait Until Element Is Enabled ${xpath_button_logout} 122 # obmc_test_setup The OpenBMC required state. 126 Log To Console Verifying the system state and stability. 129 Wait Until Page Does Not Contain Unreachable 144 ... Wait Until Keyword Succeeds 10 min 60 sec Is Host Running 155 Wait OpenBMC To Become Stable ${obmc_running_state} 164 Wait OpenBMC To Become Stable ${obmc_off_state} [all …]
|
/openbmc/linux/include/soc/qcom/ |
H A D | tcs.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * Copyright (c) 2016-2019, The Linux Foundation. All rights reserved. 12 * rpmh_state: state for the request 14 * RPMH_SLEEP_STATE: State of the resource when the processor subsystem 17 * RPMH_WAKE_ONLY_STATE: Resume resource state to the value previously 19 * RPMH_ACTIVE_ONLY_STATE: Active or AMC mode requests. Resource state 32 * @data: the resource state request 33 * @wait: ensure that this command is complete before returning. 34 * Setting "wait" here only makes sense during rpmh_write_batch() for 35 * active-only transfers, this is because: [all …]
|
/openbmc/openbmc/meta-fii/meta-kudo/recipes-phosphor/state/phosphor-state-manager/ |
H A D | xyz.openbmc_project.State.Host@.service | 2 Description=Phosphor Host%i State Manager 3 Wants=mapper-wait@-xyz-openbmc_project-control-host%i-auto_reboot.service 4 After=mapper-wait@-xyz-openbmc_project-control-host%i-auto_reboot.service 5 Wants=mapper-wait@-xyz-openbmc_project-state-chassis%i.service 6 After=mapper-wait@-xyz-openbmc_project-state-chassis%i.service 7 After=phosphor-ipmi-host.service 8 Before=obmc-host-reset@%i.target 11 ExecStart=/usr/bin/phosphor-host-state-manager --host %i 14 BusName=xyz.openbmc_project.State.Host%i 17 WantedBy=multi-user.target
|
/openbmc/openbmc/meta-fii/meta-mori/recipes-phosphor/state/phosphor-state-manager/ |
H A D | xyz.openbmc_project.State.Host@.service | 2 Description=Phosphor Host%i State Manager 3 Wants=mapper-wait@-xyz-openbmc_project-control-host%i-auto_reboot.service 4 After=mapper-wait@-xyz-openbmc_project-control-host%i-auto_reboot.service 5 Wants=mapper-wait@-xyz-openbmc_project-state-chassis%i.service 6 After=mapper-wait@-xyz-openbmc_project-state-chassis%i.service 7 After=phosphor-ipmi-host.service 8 Before=obmc-host-reset@%i.target 11 ExecStart=/usr/bin/phosphor-host-state-manager --host %i 14 BusName=xyz.openbmc_project.State.Host%i 17 WantedBy=multi-user.target
|
/openbmc/linux/drivers/mtd/chips/ |
H A D | cfi_cmdset_0020.c | 1 // SPDX-License-Identifier: GPL-2.0 9 * - completely revamped method functions so they are aware and 11 * - scalability vs code size is completely set at compile-time 13 * - optimized write buffer method 14 * 06/21/2002 Joern Engel <joern@wh.fh-wedel.de> and others 15 * - modified Intel Command Set 0x0001 to support ST Advanced Architecture 17 * - added a writev function 18 * 07/13/2005 Joern Engel <joern@wh.fh-wedel.de> 19 * - Plugged memory leak in cfi_staa_writev(). 69 printk(" Feature/Command Support: %4.4X\n", extp->FeatureSupport); in cfi_tell_features() [all …]
|
/openbmc/openbmc/meta-facebook/meta-catalina/recipes-phosphor/sensors/ |
H A D | dbus-sensors_%.bbappend | 3 inherit obmc-phosphor-dbus-service 14 …wait-host0-state-ready.conf:xyz.openbmc_project.hwmontempsensor.service.d/wait-host0-state-ready.c… 15 … wait-host0-state-ready.conf:xyz.openbmc_project.psusensor.service.d/wait-host0-state-ready.conf \
|
/openbmc/qemu/docs/spin/ |
H A D | win32-qemu-event.promela | 3 * util/qemu-thread-win32.c. 11 * spin -a docs/event.promela 12 * gcc -O2 pan.c -DSAFETY 22 #define RAW_WAIT do :: event -> break; od 28 #define WAIT RAW_WAIT 30 /* Full model: layer a userspace-only fast path on top of the RAW_* 31 * primitives. SET/RESET/WAIT have exactly the same semantics as 36 #define EV_BUSY -1 38 int state = EV_FREE; 41 #define SET if :: state != EV_SET -> \ [all …]
|
/openbmc/linux/drivers/scsi/isci/ |
H A D | phy.h | 7 * Copyright(c) 2008 - 2011 Intel Corporation. All rights reserved. 20 * Foundation, Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. 26 * Copyright(c) 2008 - 2011 Intel Corporation. All rights reserved. 63 /* This is the timeout value for the SATA phy to wait for a SIGNATURE FIS 64 * before restarting the starting state machine. Technically, the old parallel 74 * notification from the hardware that we restart the hardware OOB state 80 * isci_phy - hba local phy infrastructure 83 * @phy_index: physical index relative to the controller (0-3) 162 * struct sci_phy_properties - This structure defines the properties common to 189 * struct sci_sas_phy_properties - This structure defines the properties, [all …]
|
/openbmc/linux/drivers/net/ethernet/sfc/falcon/ |
H A D | selftest.c | 1 // SPDX-License-Identifier: GPL-2.0-only 4 * Copyright 2005-2006 Fen Systems Ltd. 5 * Copyright 2006-2012 Solarflare Communications Inc. 26 * - All IRQs may be disabled on a CPU for a *long* time by e.g. a 28 * - The PREEMPT_RT patches mostly deal with this, but also allow a 38 * The self-test should stress every RSS vector, and unfortunately 42 char pad[2]; /* Ensures ip is 4-byte aligned */ 65 [EF4_INT_MODE_MSIX] = "MSI-X", 70 STRING_TABLE_LOOKUP(efx->interrupt_mode, ef4_interrupt_mode) 73 * struct ef4_loopback_state - persistent state during a loopback selftest [all …]
|