/openbmc/linux/include/uapi/linux/ |
H A D | atmmpc.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 44 __u16 mpc_p1; /* Shortcut-Setup Frame Count */ 45 __u16 mpc_p2; /* Shortcut-Setup Frame Time */ 46 __u8 mpc_p3[8]; /* Flow-detection Protocols */ 47 __u16 mpc_p4; /* MPC Initial Retry Time */ 48 __u16 mpc_p5; /* MPC Retry Time Maximum */ 49 __u16 mpc_p6; /* Hold Down Time */ 85 #define MPC_P1 10 /* Shortcut-Setup Frame Count */ 86 #define MPC_P2 1 /* Shortcut-Setup Frame Time */ 87 #define MPC_P3 0 /* Flow-detection Protocols */ [all …]
|
/openbmc/openbmc/meta-google/recipes-google/networking/gbmc-net-common/ |
H A D | gbmc-net-lib.sh | 8 # http://www.apache.org/licenses/LICENSE-2.0 16 [ -n "${gbmc_net_lib_init-}" ] && return 19 local retry=0 21 (( retry = retry + 1 )) 22 (( retry <= 3 )) || return 1 23 # sleep 3s if not first time 24 (( retry == 1 )) || sleep 3 25 if [ "$(systemctl is-active systemd-networkd)" != 'inactive' ]; then 26 echo "Reloading networkd + reconfiguring ($*) from $(caller 0), time $retry" >&2
|
/openbmc/openbmc-test-automation/lib/ |
H A D | os_utils_keywords.py | 14 import time 17 def run_until_keyword_fails(retry, retry_interval, name, *args): argument 24 retry Max timeout time in hour(s). 25 retry_interval Time interval in minute(s) for looping. 30 # Convert the retry time in seconds 31 retry_seconds = DateTime.convert_time(retry) 32 timeout = time.time() + int(retry_seconds) 34 # Convert the interval time in seconds 48 # Return if retry timeout as success. 49 elif time.time() > timeout > 0: [all …]
|
H A D | code_update_utils.py | 12 import time 96 BuiltIn().fail("Did not find any non-running BMC images.") 130 retry = 0 133 while retry < 60: 145 time.sleep(10) 150 time.sleep(10) 151 retry += 1 171 + "; stat -c '%Y %n' * |" 172 + " sort -k1,1nr | head -n 1" 174 return stdout.split(" ")[-1] [all …]
|
/openbmc/u-boot/doc/ |
H A D | README.i2c | 4 While I2C supports multi-master buses this is difficult to get right. 6 Clock-stretching and the arbitrary time that an I2C transaction can take 8 When one or more masters can be reset independently part-way through a 11 U-Boot provides a scheme based on two 'claim' GPIOs, one driven by the 18 Since U-Boot runs on the AP, the terminology used is 'our' claim GPIO, 23 i2c-arb-gpio-challenge for the implementation. 28 - AP_CLAIM: output from AP, signalling to the EC that the AP wants the bus 29 - EC_CLAIM: output from EC, signalling to the AP that the EC wants the bus 38 2. Waits a little bit for the other side to notice (slew time) 41 4. Otherwise, wait for a few milliseconds (retry time) and see if EC_CLAIM is [all …]
|
H A D | README.autoboot | 1 SPDX-License-Identifier: GPL-2.0+ 12 U-Boot README. See it for details. They are: 23 ------------- 27 any commands. If any key is pressed before the boot delay time 28 expires, U-Boot stops the autoboot process, gives a U-Boot prompt 34 U-Boot pressed a key before the system had time to boot. It's even 37 character at the wrong time and the system hangs, with no clue as to 43 time) U-Boot will patiently wait forever for it to finish. 46 boots when it should, but still allows access to U-Boot. 49 ------------ [all …]
|
/openbmc/pldm/requester/ |
H A D | request.hpp | 11 #include <phosphor-logging/lg2.hpp> 27 * The abstract base class for implementing the PLDM request retry logic. This 29 * response is not received and the time to wait between each retry. It 44 * @param[in] event - reference to PLDM daemon's main event loop 45 * @param[in] numRetries - number of request retries 46 * @param[in] timeout - time to wait between each retry in milliseconds 77 error("Failed to start the request timer, error - {ERROR}", "ERROR", in start() 100 timeout; //!< time to wait between each retry in milliseconds 112 if (numRetries--) in callback() 129 * time to wait between each retry. It provides APIs to start and stop the [all …]
|
/openbmc/qemu/pc-bios/s390-ccw/ |
H A D | menu.c | 8 * your option) any later version. See the COPYING file in the top-level 16 #include "s390-ccw.h" 18 #include "s390-time.h" 61 static inline void set_clock_comparator(uint64_t time) in set_clock_comparator() argument 63 asm volatile("sckc %0" : : "Q" (time)); in set_clock_comparator() 79 uint64_t time; in read_prompt() local 82 time = get_clock() + timeout * TOD_CLOCK_MILLISECOND; in read_prompt() 83 set_clock_comparator(time); in read_prompt() 90 sclp_read(inp, 1); /* Process only one character at a time */ in read_prompt() 98 buf[--idx] = 0; in read_prompt() [all …]
|
/openbmc/linux/drivers/rtc/ |
H A D | rtc-sun4v.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* rtc-sun4v.c: Hypervisor based RTC for SUN4V systems. 21 unsigned long ret, time; in hypervisor_get_time() local 24 retry: in hypervisor_get_time() 25 ret = sun4v_tod_get(&time); in hypervisor_get_time() 27 return time; in hypervisor_get_time() 29 if (--retries > 0) { in hypervisor_get_time() 31 goto retry; in hypervisor_get_time() 51 retry: in hypervisor_set_time() 56 if (--retries > 0) { in hypervisor_set_time() [all …]
|
/openbmc/phosphor-hwmon/ |
H A D | hwmonio.hpp | 38 * however, could in theory support non-sysfs handling of hwmon IO. 62 * device drivers can be unbound at any time; the program 78 * @param[in] path - hwmon instance root - eg: 91 * For possibly transient errors will retry up to 94 * @param[in] type - The hwmon type (ex. temp). 95 * @param[in] id - The hwmon id (ex. 1). 96 * @param[in] sensor - The hwmon sensor (ex. input). 97 * @param[in] retries - The number of times to retry. 98 * @param[in] delay - The time to sleep between retry attempts. 100 * @return val - The read value. [all …]
|
/openbmc/linux/Documentation/admin-guide/ |
H A D | xfs.rst | 1 .. SPDX-License-Identifier: GPL-2.0 8 on the SGI IRIX platform. It is completely multi-threaded, can 15 for further details. This implementation is on-disk compatible 25 Sets the buffered I/O end-of-file preallocation size when 28 through to 1GiB, inclusive, in power-of-2 increments. 30 The default behaviour is for dynamic end-of-file 40 on-disk. When the new form is used for the first time when 42 attributes) the on-disk superblock feature bit field will be 45 The default behaviour is determined by the on-disk feature 116 Set the number of in-memory log buffers. Valid numbers [all …]
|
/openbmc/phosphor-net-ipmid/sol/ |
H A D | sol_manager.hpp | 23 constexpr char CONSOLE_SOCKET_PATH[] = "\0obmc-console.default"; 24 constexpr size_t CONSOLE_SOCKET_PATH_LEN = sizeof(CONSOLE_SOCKET_PATH) - 1; 107 * console at the time the payload is activated. The default is force 133 * This sets the typical amount of time that the BMC will wait before 139 * Character Accumulate Interval is 5 ms increments, 1-based value. The 159 /** @brief Retry Count 161 * 1-based. 0 = no retries after packet is transmitted. Packet will be 162 * dropped if no ACK/NACK received by time retries expire. The maximum 163 * value for retry count is 7. This parameter can be modified by the 168 /** @brief Retry Interval [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/i2c/ |
H A D | i2c-arb-gpio-challenge.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 4 $id: http://devicetree.org/schemas/i2c/i2c-arb-gpio-challenge.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: GPIO-based I2C Arbitration Using a Challenge & Response Mechanism 10 - Doug Anderson <dianders@chromium.org> 11 - Peter Rosin <peda@axentia.se> 18 standard I2C multi-master rules. Using GPIOs is generally useful in the case 30 others can see. These are all active low with pull-ups enabled. We'll 41 2. Waits a little bit for the other sides to notice (slew time, say 10 [all …]
|
/openbmc/openbmc/poky/meta/lib/oeqa/runtime/cases/ |
H A D | ssh.py | 4 # SPDX-License-Identifier: MIT 7 import time 17 @OEHasPackage(['dropbear', 'openssh-sshd']) 20 status, output = self.target.run("uname -a", timeout=30) 23 elif status == 255 or status == -signal.SIGTERM: 27 # here. However, let's keep it simple and just retry for 29 # give it time for the port to open. 30 # We sometimes see -15 (SIGTERM) on slow emulation machines too, likely 31 # from boot/init not being 100% complete, retry for these too. 32 time.sleep(5)
|
/openbmc/linux/arch/x86/kernel/ |
H A D | tsc_sync.c | 1 // SPDX-License-Identifier: GPL-2.0 8 * print a warning if not and turn off the TSC clock-source. 10 * The warp-check is point-to-point between two CPUs, the CPU 14 * Only two CPUs may participate - they can enter in any order. 63 if (!resume && time_before(jiffies, adj->nextcheck)) in tsc_verify_tsc_adjust() 66 adj->nextcheck = jiffies + HZ; in tsc_verify_tsc_adjust() 69 if (adj->adjusted == curval) in tsc_verify_tsc_adjust() 73 wrmsrl(MSR_IA32_TSC_ADJUST, adj->adjusted); in tsc_verify_tsc_adjust() 75 if (!adj->warned || resume) { in tsc_verify_tsc_adjust() 76 pr_warn(FW_BUG "TSC ADJUST differs: CPU%u %lld --> %lld. Restoring\n", in tsc_verify_tsc_adjust() [all …]
|
/openbmc/phosphor-logging/extensions/openpower-pels/ |
H A D | host_notifier.hpp | 24 * Some PELs do not need to be sent - see enqueueRequired() and 30 * - The command response is asynchronous. 35 * PLDM command to the PLDM daemon, who makes a D-Bus method 44 * PLDM daemon to call HostReject D-Bus method on this daemon instead 47 * a timer set to retry again later. 61 * @param[in] repo - The PEL repository object 62 * @param[in] dataIface - The data interface object 63 * @param[in] hostIface - The host interface object 78 * @return size_t - The queue size 90 * - Already acked by the host (or they didn't like it) [all …]
|
/openbmc/openbmc/meta-openembedded/meta-python/recipes-extended/python-pykickstart/files/ |
H A D | 0004-load.py-retry-to-invoke-request-with-timeout.patch | 4 Subject: [PATCH] load.py: retry to invoke request with timeout 7 network, it failed and wait 300s to break, we should retry 11 Upstream-Status: Inappropriate [oe specific] 13 Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> 14 --- 18 diff --git a/pykickstart/load.py b/pykickstart/load.py 20 --- a/pykickstart/load.py 22 @@ -20,12 +20,16 @@ 26 +import time 39 @@ -71,6 +75,29 @@ def load_to_file(location, destination): [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/ipmi/ |
H A D | ipmi-ipmb.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/ipmi/ipmi-ipmb.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 12 - Corey Minyard <cminyard@mvista.com> 17 - ipmi-ipmb 21 - const: ipmi 30 retry-time: 33 Time between retries of sends, in milliseconds. Defaults to 250. 35 max-retries: [all …]
|
/openbmc/u-boot/drivers/power/regulator/ |
H A D | tps65090_regulator.c | 1 // SPDX-License-Identifier: GPL-2.0+ 19 uc_pdata->type = REGULATOR_TYPE_OTHER; in tps65090_fet_probe() 20 uc_pdata->mode_count = 0; in tps65090_fet_probe() 30 fet_id = dev->driver_data; in tps65090_fet_get_enable() 46 * @return -EIO if we got a comms error, -EAGAIN if the FET failed to 51 int retry; in tps65090_fet_set() local 60 return -EIO; in tps65090_fet_set() 63 for (retry = 0; retry < MAX_CTRL_READ_TRIES; retry++) { in tps65090_fet_set() 82 return -EAGAIN; in tps65090_fet_set() 92 fet_id = dev->driver_data; in tps65090_fet_set_enable() [all …]
|
/openbmc/linux/include/scsi/ |
H A D | scsi_status.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 26 INITIATE_RECOVERY = 0x0f, /* SCSI-II only */ 27 RELEASE_RECOVERY = 0x10, /* SCSI-II only */ 28 TERMINATE_IO_PROC = 0x11, /* SCSI-II only */ 47 DID_BUS_BUSY = 0x02, /* BUS stayed busy through time out period */ 55 DID_PASSTHROUGH = 0x0a, /* Force command past mid-layer */ 56 DID_SOFT_ERROR = 0x0b, /* The low level driver just wish a retry */ 57 DID_IMM_RETRY = 0x0c, /* Retry without decrementing retry count */ 58 DID_REQUEUE = 0x0d, /* Requeue command (no immediate retry) also 59 * without decrementing the retry count */ [all …]
|
/openbmc/openbmc/meta-arm/meta-arm/lib/oeqa/runtime/cases/ |
H A D | fvp_devices.py | 4 from time import sleep 8 def run_cmd(self, cmd, check=True, retry=3): argument 12 * Allows the "run" behavior to be overridden in sub-classes 13 * Has a retry mechanism when SSH returns 255 19 while status == 255 and retry > 0: 21 retry -= 1 22 # In case the status is 255, delay the next retry to give time to 28 self.fail("Command '%s' returned non-zero exit " 35 cmd = f'find "/sys/class/{cls}" -type l -maxdepth 1' 82 ' -name "cpu@*" -maxdepth 1 | wc -l') [all …]
|
/openbmc/linux/Documentation/locking/ |
H A D | seqlock.rst | 8 Sequence counters are a reader-writer consistency mechanism with 9 lockless readers (read-only retry loops), and no writer starvation. They 10 are used for data that's rarely written to (e.g. system time), where the 11 reader wants a consistent set of information and is willing to retry if 19 the reader must retry. 30 interrupted writer. If that reader belongs to a real-time scheduling 53 requirements of writer serialization and non-preemptibility, use 76 /* ... [[write-side critical section]] ... */ 85 /* ... [[read-side critical section]] ... */ 93 ----------------------------------------------------------------- [all …]
|
/openbmc/linux/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_amdkfd_gfx_v7.c | 53 mutex_lock(&adev->srbm_mutex); in lock_srbm() 60 mutex_unlock(&adev->srbm_mutex); in unlock_srbm() 66 uint32_t mec = (pipe_id / adev->gfx.mec.num_pipe_per_mec) + 1; in acquire_queue() 67 uint32_t pipe = (pipe_id % adev->gfx.mec.num_pipe_per_mec); in acquire_queue() 123 mec = (pipe_id / adev->gfx.mec.num_pipe_per_mec) + 1; in kgd_init_interrupts() 124 pipe = (pipe_id % adev->gfx.mec.num_pipe_per_mec); in kgd_init_interrupts() 140 retval = m->sdma_engine_id * SDMA1_REGISTER_OFFSET + in get_sdma_rlc_reg_offset() 141 m->sdma_queue_id * KFD_CIK_SDMA_QUEUE_OFFSET; in get_sdma_rlc_reg_offset() 144 m->sdma_engine_id, m->sdma_queue_id, retval); in get_sdma_rlc_reg_offset() 174 mqd_hqd = &m->cp_mqd_base_addr_lo; in kgd_hqd_load() [all …]
|
/openbmc/u-boot/drivers/rtc/ |
H A D | max6900.c | 1 // SPDX-License-Identifier: GPL-2.0+ 8 * Date & Time support for MAXIM MAX6900 RTC 22 /* ------------------------------------------------------------------------- */ 35 /* ------------------------------------------------------------------------- */ 40 int retry = 1; in rtc_get() local 55 retry = 0; in rtc_get() 57 } while (retry); in rtc_get() 64 tmp->tm_sec = bcd2bin (sec & 0x7F); in rtc_get() 65 tmp->tm_min = bcd2bin (min & 0x7F); in rtc_get() 66 tmp->tm_hour = bcd2bin (hour & 0x3F); in rtc_get() [all …]
|
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | stacktrace_build_id_nmi.c | 1 // SPDX-License-Identifier: GPL-2.0 19 int i, retry = 1; in test_stacktrace_build_id_nmi() local 23 retry: in test_stacktrace_build_id_nmi() 29 bpf_program__set_type(skel->progs.oncpu, BPF_PROG_TYPE_PERF_EVENT); in test_stacktrace_build_id_nmi() 35 pmu_fd = syscall(__NR_perf_event_open, &attr, -1 /* pid */, in test_stacktrace_build_id_nmi() 36 0 /* cpu 0 */, -1 /* group id */, in test_stacktrace_build_id_nmi() 47 skel->links.oncpu = bpf_program__attach_perf_event(skel->progs.oncpu, in test_stacktrace_build_id_nmi() 49 if (!ASSERT_OK_PTR(skel->links.oncpu, "attach_perf_event")) { in test_stacktrace_build_id_nmi() 55 control_map_fd = bpf_map__fd(skel->maps.control_map); in test_stacktrace_build_id_nmi() 56 stackid_hmap_fd = bpf_map__fd(skel->maps.stackid_hmap); in test_stacktrace_build_id_nmi() [all …]
|