| /linux/tools/testing/selftests/liveupdate/ |
| H A D | luo_kexec_simple.c | 21 /* Stage 1: Executed before the kexec reboot. */ 26 ksft_print_msg("[STAGE 1] Starting pre-kexec setup...\n"); in run_stage_1() 28 ksft_print_msg("[STAGE 1] Creating state file for next stage (2)...\n"); in run_stage_1() 31 ksft_print_msg("[STAGE 1] Creating session '%s' and preserving memfd...\n", in run_stage_1() 47 /* Stage 2: Executed after the kexec reboot. */ 50 int session_fd, mfd, stage; in run_stage_2() local 52 ksft_print_msg("[STAGE 2] Starting post-kexec verification...\n"); in run_stage_2() 54 restore_and_read_stage(state_session_fd, STATE_MEMFD_TOKEN, &stage); in run_stage_2() 55 if (stage != 2) in run_stage_2() 56 fail_exit("Expected stage 2, but state file contains %d", stage); in run_stage_2() [all …]
|
| H A D | luo_multi_session.c | 30 /* Stage 1: Executed before the kexec reboot. */ 35 ksft_print_msg("[STAGE 1] Starting pre-kexec setup for multi-session test...\n"); in run_stage_1() 37 ksft_print_msg("[STAGE 1] Creating state file for next stage (2)...\n"); in run_stage_1() 40 ksft_print_msg("[STAGE 1] Creating empty sessions '%s' and '%s'...\n", in run_stage_1() 50 ksft_print_msg("[STAGE 1] Creating session '%s' with one memfd...\n", in run_stage_1() 61 ksft_print_msg("[STAGE 1] Creating session '%s' with two memfds...\n", in run_stage_1() 80 /* Stage 2: Executed after the kexec reboot. */ 84 int mfd1, mfd2, mfd3, stage; in run_stage_2() local 86 ksft_print_msg("[STAGE 2] Starting post-kexec verification...\n"); in run_stage_2() 88 restore_and_read_stage(state_session_fd, STATE_MEMFD_TOKEN, &stage); in run_stage_2() [all …]
|
| H A D | luo_test_utils.c | 156 void restore_and_read_stage(int state_session_fd, int token, int *stage) in restore_and_read_stage() argument 168 *stage = atoi(buf); in restore_and_read_stage() 177 ksft_print_msg("[STAGE 1] Forking persistent child to hold sessions...\n"); in daemonize_and_wait() 184 ksft_print_msg("[STAGE 1] Child PID: %d. Resources are pinned.\n", pid); in daemonize_and_wait() 185 ksft_print_msg("[STAGE 1] You may now perform kexec reboot.\n"); in daemonize_and_wait() 208 {"stage", required_argument, 0, 's'}, in parse_stage_args() 212 int stage = 1; in parse_stage_args() local 219 stage = atoi(optarg); in parse_stage_args() 220 if (stage != 1 && stage != 2) in parse_stage_args() 221 fail_exit("Invalid stage argument"); in parse_stage_args() [all …]
|
| /linux/arch/riscv/errata/thead/ |
| H A D | errata.c | 27 static bool errata_probe_mae(unsigned int stage, in errata_probe_mae() argument 36 if (stage != RISCV_ALTERNATIVES_EARLY_BOOT && in errata_probe_mae() 37 stage != RISCV_ALTERNATIVES_MODULE) in errata_probe_mae() 109 static bool errata_probe_cmo(unsigned int stage, in errata_probe_cmo() argument 118 if (stage == RISCV_ALTERNATIVES_EARLY_BOOT) in errata_probe_cmo() 121 if (stage == RISCV_ALTERNATIVES_BOOT) { in errata_probe_cmo() 130 static bool errata_probe_pmu(unsigned int stage, in errata_probe_pmu() argument 140 if (stage == RISCV_ALTERNATIVES_EARLY_BOOT) in errata_probe_pmu() 146 static bool errata_probe_ghostwrite(unsigned int stage, in errata_probe_ghostwrite() argument 163 if (stage != RISCV_ALTERNATIVES_EARLY_BOOT) in errata_probe_ghostwrite() [all …]
|
| /linux/tools/perf/pmu-events/arch/arm64/arm/cortex-a510/ |
| H A D | pipeline.json | 39 …on is stalled and there is an interlock. Stall cycles due to a stall in the Wr stage are excluded", 42 …ion is stalled and there is an interlock. Stall cycles due to a stall in the Wr stage are excluded" 45 …iting for data to calculate the address. Stall cycles due to a stall in the Wr stage are excluded", 48 …aiting for data to calculate the address. Stall cycles due to a stall in the Wr stage are excluded" 51 …ock that is caused by a VPU instruction. Stall cycles due to a stall in the Wr stage are excluded", 54 …lock that is caused by a VPU instruction. Stall cycles due to a stall in the Wr stage are excluded" 57 …backend, load. This event counts every cycle where there is a stall in the Wr stage due to a load", 60 … backend, load. This event counts every cycle where there is a stall in the Wr stage due to a load" 63 …ckend, store. This event counts every cycle where there is a stall in the Wr stage due to a store", 66 …ackend, store. This event counts every cycle where there is a stall in the Wr stage due to a store" [all …]
|
| /linux/tools/perf/pmu-events/arch/arm64/ampere/emag/ |
| H A D | cache.json | 126 "PublicDescription": "Level 1 stage 2 TLB refill", 129 "BriefDescription": "L1 stage 2 TLB refill" 132 "PublicDescription": "Page walk cache level-0 stage-1 hit", 135 "BriefDescription": "Page walk, L0 stage-1 hit" 138 "PublicDescription": "Page walk cache level-1 stage-1 hit", 141 "BriefDescription": "Page walk, L1 stage-1 hit" 144 "PublicDescription": "Page walk cache level-2 stage-1 hit", 147 "BriefDescription": "Page walk, L2 stage-1 hit" 150 "PublicDescription": "Page walk cache level-1 stage-2 hit", 153 "BriefDescription": "Page walk, L1 stage-2 hit" [all …]
|
| /linux/drivers/watchdog/ |
| H A D | kempld_wdt.c | 10 * First the pretimeout stage runs out before the timeout stage gets 77 struct kempld_wdt_stage stage[KEMPLD_WDT_MAX_STAGES]; member 103 struct kempld_wdt_stage *stage, in kempld_wdt_set_stage_action() argument 109 if (!stage || !stage->mask) in kempld_wdt_set_stage_action() 113 stage_cfg = kempld_read8(pld, KEMPLD_WDT_STAGE_CFG(stage->id)); in kempld_wdt_set_stage_action() 122 kempld_write8(pld, KEMPLD_WDT_STAGE_CFG(stage->id), stage_cfg); in kempld_wdt_set_stage_action() 129 struct kempld_wdt_stage *stage, in kempld_wdt_set_stage_timeout() argument 141 if (!stage) in kempld_wdt_set_stage_timeout() 149 if (stage_timeout64 > stage->mask) in kempld_wdt_set_stage_timeout() 152 stage_timeout = stage_timeout64 & stage->mask; in kempld_wdt_set_stage_timeout() [all …]
|
| /linux/tools/perf/pmu-events/arch/arm64/arm/cortex-a55/ |
| H A D | pipeline.json | 39 … is due to an FPU/NEON instruction. Stall cycles due to a stall in the Wr stage (typically awaitin… 42 … is due to an FPU/NEON instruction. Stall cycles due to a stall in the Wr stage (typically awaitin… 45 …to the backend, load.This event counts every cycle there is a stall in the Wr stage due to a load", 48 … to the backend, load.This event counts every cycle there is a stall in the Wr stage due to a load" 51 … the backend, store.This event counts every cycle there is a stall in the Wr stage due to a store", 54 …o the backend, store.This event counts every cycle there is a stall in the Wr stage due to a store" 57 …load, cache miss.This event counts every cycle there is a stall in the Wr stage due to a load whic… 60 …load, cache miss.This event counts every cycle there is a stall in the Wr stage due to a load whic… 63 …, load, TLB miss.This event counts every cycle there is a stall in the Wr stage due to a load whic… 66 …, load, TLB miss.This event counts every cycle there is a stall in the Wr stage due to a load whic… [all …]
|
| /linux/drivers/thermal/qcom/ |
| H A D | qcom-spmi-temp-alarm.c | 90 * for each stage independently. 120 /* Temperature in Milli Celsius reported during stage 0 if no ADC is present */ 140 unsigned int stage; member 143 /* protects .thresh, .stage and chip registers */ 152 /* This array maps from GEN2 alarm state to GEN1 alarm stage */ 175 * specified over-temperature stage 177 * @stage: Over-temperature stage 181 static long qpnp_tm_decode_temp(struct qpnp_tm_chip *chip, unsigned int stage) in qpnp_tm_decode_temp() argument 183 if (stage == 0 || stage > STAGE_COUNT) in qpnp_tm_decode_temp() 186 return chip->temp_thresh_map[stage - 1]; in qpnp_tm_decode_temp() [all …]
|
| /linux/tools/testing/selftests/kvm/x86/ |
| H A D | hyperv_ipi.c | 92 int stage = 1, ipis_expected[2] = {0}; in sender_guest_code() local 95 GUEST_SYNC(stage++); in sender_guest_code() 109 GUEST_SYNC(stage++); in sender_guest_code() 116 GUEST_SYNC(stage++); in sender_guest_code() 129 GUEST_SYNC(stage++); in sender_guest_code() 138 GUEST_SYNC(stage++); in sender_guest_code() 151 GUEST_SYNC(stage++); in sender_guest_code() 160 GUEST_SYNC(stage++); in sender_guest_code() 174 GUEST_SYNC(stage++); in sender_guest_code() 183 GUEST_SYNC(stage++); in sender_guest_code() [all …]
|
| H A D | hyperv_tlb_flush.c | 205 int i, stage = 1; in sender_guest_code() local 212 GUEST_SYNC(stage++); in sender_guest_code() 224 GUEST_SYNC(stage++); in sender_guest_code() 238 GUEST_SYNC(stage++); in sender_guest_code() 251 GUEST_SYNC(stage++); in sender_guest_code() 266 GUEST_SYNC(stage++); in sender_guest_code() 281 GUEST_SYNC(stage++); in sender_guest_code() 299 GUEST_SYNC(stage++); in sender_guest_code() 317 GUEST_SYNC(stage++); in sender_guest_code() 338 GUEST_SYNC(stage++); in sender_guest_code() [all …]
|
| H A D | vmx_nested_la57_state_test.c | 81 int stage; in main() local 98 for (stage = 1;; stage++) { in main() 114 TEST_ASSERT(uc.args[1] == stage, in main() 115 "Expected stage %d, got stage %lu", stage, (ulong)uc.args[1]); in main() 116 if (stage == 1) { in main()
|
| /linux/Documentation/leds/ |
| H A D | leds-sc27xx.rst | 16 for the high stage. To be compatible with the hardware pattern 17 format, we should set brightness as 0 for rise stage, fall 18 stage and low stage. 20 - Min stage duration: 125 ms 21 - Max stage duration: 31875 ms 23 Since the stage duration step is 125 ms, the duration should be
|
| /linux/tools/testing/selftests/tc-testing/ |
| H A D | TdcPlugin.py | 43 def adjust_command(self, stage, command): argument 46 print(' -- {}.adjust_command {}'.format(self.sub_class, stage)) 48 # if stage == 'pre': 50 # elif stage == 'setup': 52 # elif stage == 'execute': 54 # elif stage == 'verify': 56 # elif stage == 'teardown': 58 # elif stage == 'post':
|
| /linux/drivers/net/wwan/iosm/ |
| H A D | iosm_ipc_mmio.c | 22 /* CP execution stage */ 47 * execution stage into mmio area 51 /* check if exec stage has one of the valid values */ 52 static bool ipc_mmio_is_valid_exec_stage(enum ipc_mem_exec_stage stage) in ipc_mmio_is_valid_exec_stage() argument 54 switch (stage) { in ipc_mmio_is_valid_exec_stage() 87 enum ipc_mem_exec_stage stage; in ipc_mmio_init() local 98 /* Check for a valid execution stage to make sure that the boot code in ipc_mmio_init() 102 stage = ipc_mmio_get_exec_stage(ipc_mmio); in ipc_mmio_init() 103 if (ipc_mmio_is_valid_exec_stage(stage)) in ipc_mmio_init() 110 dev_err(ipc_mmio->dev, "invalid exec stage %X", stage); in ipc_mmio_init()
|
| /linux/drivers/net/ethernet/microchip/vcap/ |
| H A D | vcap_api.h | 17 #define VCAP_CID_INGRESS_L0 1000000 /* Ingress Stage 1 Lookup 0 */ 18 #define VCAP_CID_INGRESS_L1 1100000 /* Ingress Stage 1 Lookup 1 */ 19 #define VCAP_CID_INGRESS_L2 1200000 /* Ingress Stage 1 Lookup 2 */ 20 #define VCAP_CID_INGRESS_L3 1300000 /* Ingress Stage 1 Lookup 3 */ 21 #define VCAP_CID_INGRESS_L4 1400000 /* Ingress Stage 1 Lookup 4 */ 22 #define VCAP_CID_INGRESS_L5 1500000 /* Ingress Stage 1 Lookup 5 */ 24 #define VCAP_CID_PREROUTING_IPV6 3000000 /* Prerouting Stage */ 25 #define VCAP_CID_PREROUTING 6000000 /* Prerouting Stage */ 27 #define VCAP_CID_INGRESS_STAGE2_L0 8000000 /* Ingress Stage 2 Lookup 0 */ 28 #define VCAP_CID_INGRESS_STAGE2_L1 8100000 /* Ingress Stage 2 Lookup 1 */ [all …]
|
| /linux/arch/powerpc/crypto/ |
| H A D | aesp10-ppc.pl | 122 my ($stage,$outperm,$outmask,$outhead,$outtail)=map("v$_",(7..11)); 204 vsel $stage,$outhead,$outtail,$outmask 207 stvx $stage,0,$out 224 vsel $stage,$outhead,$outtail,$outmask 227 stvx $stage,0,$out 241 vsel $stage,$outhead,$outtail,$outmask 244 stvx $stage,0,$out 254 vsel $stage,$outhead,$outtail,$outmask 256 stvx $stage,0,$out 269 vsel $stage,$outhead,$outtail,$outmask [all …]
|
| /linux/tools/testing/selftests/damon/ |
| H A D | _damon_sysfs.py | 62 def stage(self): member in DamosAccessPattern 110 def stage(self): member in DamosQuotaGoal 156 def stage(self): member in DamosQuota 191 err = goal.stage() 214 def stage(self): member in DamosWatermarks 261 def stage(self): member in DamosFilter 311 def stage(self): member in DamosFilters 317 err = filter_.stage() 335 def stage(self): member in DamosDest 357 def stage(self): member in DamosDests [all …]
|
| /linux/arch/arm64/kvm/hyp/nvhe/ |
| H A D | tlb.c | 79 * avoid a Stage-1 walk with the old VMID while we have in enter_vmid_context() 158 * Instead, we invalidate Stage-2 for this IPA, and the in __kvm_tlb_flush_vmid_ipa() 159 * whole of Stage-1. Weep... in __kvm_tlb_flush_vmid_ipa() 165 * We have to ensure completion of the invalidation at Stage-2, in __kvm_tlb_flush_vmid_ipa() 167 * complete (S1 + S2) walk based on the old Stage-2 mapping if in __kvm_tlb_flush_vmid_ipa() 168 * the Stage-1 invalidation happened first. in __kvm_tlb_flush_vmid_ipa() 188 * Instead, we invalidate Stage-2 for this IPA, and the in __kvm_tlb_flush_vmid_ipa_nsh() 189 * whole of Stage-1. Weep... in __kvm_tlb_flush_vmid_ipa_nsh() 195 * We have to ensure completion of the invalidation at Stage-2, in __kvm_tlb_flush_vmid_ipa_nsh() 197 * complete (S1 + S2) walk based on the old Stage-2 mapping if in __kvm_tlb_flush_vmid_ipa_nsh() [all …]
|
| /linux/arch/arm64/kvm/hyp/vhe/ |
| H A D | tlb.c | 36 * we cannot trust stage-1 to be in a correct state at that in enter_vmid_context() 79 /* ... and the stage-2 MMU context that we switched away from */ in exit_vmid_context() 104 * Instead, we invalidate Stage-2 for this IPA, and the in __kvm_tlb_flush_vmid_ipa() 105 * whole of Stage-1. Weep... in __kvm_tlb_flush_vmid_ipa() 111 * We have to ensure completion of the invalidation at Stage-2, in __kvm_tlb_flush_vmid_ipa() 113 * complete (S1 + S2) walk based on the old Stage-2 mapping if in __kvm_tlb_flush_vmid_ipa() 114 * the Stage-1 invalidation happened first. in __kvm_tlb_flush_vmid_ipa() 136 * Instead, we invalidate Stage-2 for this IPA, and the in __kvm_tlb_flush_vmid_ipa_nsh() 137 * whole of Stage-1. Weep... in __kvm_tlb_flush_vmid_ipa_nsh() 143 * We have to ensure completion of the invalidation at Stage-2, in __kvm_tlb_flush_vmid_ipa_nsh() [all …]
|
| /linux/tools/perf/pmu-events/arch/arm64/arm/cortex-a75/ |
| H A D | pipeline.json | 27 …he LS IQs are full with micro-operations waiting for issuing, and the dispatch stage is not empty", 30 …the LS IQs are full with micro-operations waiting for issuing, and the dispatch stage is not empty" 33 …d DP1 IQs are full with micro-operations waiting for issuing, and the despatch stage is not empty", 36 …nd DP1 IQs are full with micro-operations waiting for issuing, and the despatch stage is not empty" 39 …nstruction, excluding No Operations (NOPs), that cannot move to the issue stage because accpt_inst… 42 …nstruction, excluding No Operations (NOPs), that cannot move to the issue stage because accpt_inst…
|
| /linux/tools/testing/selftests/tc-testing/plugin-lib/ |
| H A D | nsPlugin.py | 86 def adjust_command(self, stage, command): argument 87 super().adjust_command(stage, command) 99 if stage == 'setup' or stage == 'execute' or stage == 'verify' or stage == 'teardown': 101 …print('adjust_command: stage is {}; inserting netns stuff in command [{}] list [{}]'.format(stage… 221 def _exec_cmd(self, stage, command): argument 240 def _exec_cmd_batched(self, stage, commands): argument 242 self._exec_cmd(stage, cmd)
|
| /linux/arch/arm64/include/asm/ |
| H A D | kvm_pgtable.h | 231 * enum kvm_pgtable_stage2_flags - Stage-2 page-table flags. 429 * @mmu: Stage-2 KVM MMU struct. Unused for stage-1 page-tables. 430 * @flags: Stage-2 page-table flags. 443 /* Stage-2 only */ 452 * kvm_pgtable_hyp_init() - Initialise a hypervisor stage-1 page-table. 463 * kvm_pgtable_hyp_destroy() - Destroy an unused hypervisor stage-1 page-table. 472 * kvm_pgtable_hyp_map() - Install a mapping in a hypervisor stage-1 page-table. 494 * kvm_pgtable_hyp_unmap() - Remove a mapping from a hypervisor stage-1 page-table. 531 * kvm_pgtable_stage2_pgd_size() - Helper to compute size of a stage-2 PGD 534 * Return: the size (in bytes) of the stage-2 PGD [all …]
|
| /linux/tools/testing/selftests/kvm/ |
| H A D | kvm_page_table_test.c | 71 /* Whether the test stage is updated, or completed */ 100 * All vCPU threads will be started in this stage, in guest_code() 189 enum test_stage stage; in vcpu_worker() local 211 stage = READ_ONCE(*current_stage); in vcpu_worker() 217 pr_debug("vCPU %d has completed stage %s\n" in vcpu_worker() 219 vcpu->id, test_stage_string[stage], in vcpu_worker() 316 static void vcpus_complete_new_stage(enum test_stage stage) in vcpus_complete_new_stage() argument 321 /* Wake up all the vcpus to run new test stage */ in vcpus_complete_new_stage() 328 /* Wait for all the vcpus to complete new test stage */ in vcpus_complete_new_stage() 333 pr_debug("%d vcpus have completed stage %s\n", in vcpus_complete_new_stage() [all …]
|
| /linux/Documentation/ABI/testing/ |
| H A D | sysfs-bus-iio-health-afe440x | 7 specific stage number corresponding to datasheet stage names 19 calculated difference in the value of stage 1 - 2 and 3 - 4. 21 The LED current for the stage is controlled via 39 Transimpedance Amplifier during the associated stage.
|