dm_test_ism_...e_defers_sso(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… dm_test_ism_...e_defers_sso(9) β€” from the Kernel API Manual, bestie πŸŽ€

okay so before we even start: yes, the title up there is literally cut off mid-word (dm_test_ism_...e_defers_sso), that's just how the Kernel API Manual rolls, it's giving mysterious ✨. Anyway. Welcome to the group chat, grab a strawberry πŸ“, we're learning about a KUnit test today.


🌸 NAME 🌸

dm_test_ism_dispatch_optimized_idle_defers_sso β€” the test that covers the OPTIMIZED_IDLE dispatch path without touching DC at all. Not even a little. Zero DC contact, we're social distancing from DC fr fr πŸ’€.


⭐ SYNOPSIS ⭐

void dm_test_ism_dispatch_optimized_idle_defers_sso (struct kunit *test
);

that's it. one function. one argument. iconic, honestly πŸ‘‘


πŸ¦‹ ARGUMENTS πŸ¦‹

  • test β€” the KUnit test context. it's the lil' sandbox our test lives in, the standard KUnit vibe-passed-in-by-the-framework situation. main character energy 🫢

πŸ’œ DESCRIPTION πŸ’œ

okay so here's the tea β˜•:

when sso_num_frames < filter_num_frames, the OPTIMIZED_IDLE current-state arm skips the idle-optimization commit and only schedules the SSO worker. it does not do the commit. it defers. hence the name, bestie, the whole thing makes sense now πŸ”₯

and the way this test wakes that arm up? it drives the state machine HYSTERESIS_WAITING β†’ OPTIMIZED_IDLE via TIMER_ELAPSED. so one moment we're waiting, the next the timer's elapsed and we've slid into optimized idle, and that's exactly what pokes the arm we care about πŸ‘€

so what does that actually exercise? three lil' bits of code:

  • get_sso_delay β€” gets the delay, obviously πŸ•
  • the skip branch β€” the branch that skips, yes I'm being redundant, it's fine ✨
  • mod_delayed_work β€” schedules the delayed work, slay

and all of that with no DC access whatsoever. it's a clean, self-contained unit test. no hardware, no DC, no stress. just vibes and state transitions 🌈

lowkey the point of this test is that the arm defers the SSO work instead of committing an idle optimization β€” and we prove it happens safely with zero DC involvement. no cap πŸ’…

✨ SEE ALSO ✨

so you want the whole friend group? bet, here's everybody πŸŽ€:

twenty-two references, all accounted for, not one dropped. we keep every single one πŸ’–


and that's the page! this cutie came out of ./drivers/gpu/drm/amd/display/... in October 2026, under the dm_test_ism_...e_defers_sso(9) name in the Kernel API Manual. go forth and dispatch, bestie β€” see you in the next manpage πŸ§šπŸ’œ

πŸ“¦ where this page comes from