dm_test_ism...e_and_cancel(9)
π
dm_test_ism_dispatch_hysteresis_schedule_and_cancel β a Kernel API Manual moment π
okay so bestie, welcome to the Kernel API Manual β¨ β today's main character is dm_test_ism_dispatch_hysteresis_schedule_and_cancel(9), and she is literally here to cover the HYSTERESIS_WAITING dispatch arms. no cap, that's the whole vibe. π¦
β¨ NAME β¨
dm_test_ism_dispatch_hysteresis_schedule_and_cancel β cover the HYSTERESIS_WAITING dispatch arms π
πΈ SYNOPSIS πΈ
void dm_test_ism_dispatch_hysteresis_schedule_and_cancel (struct kunit
test );
π ARGUMENTS π
testβ the KUnit test context, aka the little group chat this test is living in π«Ά
π₯ DESCRIPTION π₯
so here's the lore, bestie. ENTER_IDLE_REQUESTED moves FULL_POWER_RUNNING -> HYSTERESIS_WAITING. slay, transition ate. π
then the current-state arm of dm_ism_dispatch_power_state does its thing: it records the idle timestamp, computes a (non-zero!) idle-allow delay, and schedules the delayed worker. iconic behaviour, honestly. β
after that, a subsequent BEGIN_CURSOR_UPDATE (-> HYSTERESIS_BUSY) exercises the previous-state arm, which cancels that pending worker. so we're out here testing the schedule and the cancel β hence the name, iykyk. π
and the important bit: neither arm reaches the DC-dependent idle-optimization commit path. so like, don't go looking for it, it's not invited to this party π
π SEE ALSO π
π§ Kernel file π§
./drivers/gpu/drm/amd/display/amdgpu_dm/tests/amdgpu_dm_ism_test.c
π the whole friend group π
dm_test_ism_idle_delay_entry_count_exceeds_history_size(9)dm_test_ism_init_sets_initial_state(9)dm_test_ism_fini_after_init(9)dm_test_ism_set_last_idle_ts_updates_timestamp(9)dm_test_ism_insert_record_basic(9)dm_test_ism_insert_record_wraps_around(9)dm_test_ism_trigger_event_valid_transition(9)dm_test_ism_trigger_event_invalid_transition(9)dm_test_dispatch_next_event_hyst_wait_no_delay(9)dm_test_dispatch_next_event_hyst_wait_with_delay(9)dm_test_dispatch_next_event_opt_idle_no_sso_delay(9)dm_test_dispatch_next_event_opt_idle_with_sso_delay(9)dm_test_dispatch_next_event_timer_aborted(9)dm_test_dispatch_next_event_no_action_state(9)dm_test_ism_commit_event_no_state(9)dm_test_ism_commit_event_cursor_transition(9)dm_test_ism_commit_event_invalid_event(9)dm_test_ism_force_full_power(9)dm_test_ism_disable_enable_cycle(9)dm_test_ism_dispatch_optimized_idle_defers_sso(9)
π reminder bestie: these are cross-references, not bonus levels. read them if you wanna know the neighbours, but this page is this page. periodt. π
and that's a wrap on our little manpage date π β brought to you by source ./drivers/gpu/drm/amd/display/..., dated October 2026, page dm_test_ism...e_and_cancel(9). go forth and test those arms, queen πβ¨
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms