dm_test_idle...not_headless(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 dm_test_idle...not_headless(9) 🌸

okay so bestie, welcome to the Kernel API Manual β€” this is dm_test_idle...not_headless(9), and it's literally a whole vibe check for a KUnit test. grab a strawberry πŸ“ and let's go.


✨ NAME ✨

dm_test_idle_worker_enabled_breaks_when_not_headless β€” the test that checks the second break path. that's it, that's the icon πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

void dm_test_idle_worker_enabled_breaks_when_not_headless (struct kunit
*test );

πŸŽ€ ARGUMENTS πŸŽ€

  • test β€” the KUnit test context. your little backstage pass to the test, no cap 🎟️

πŸ‘‘ DESCRIPTION πŸ‘‘

okay so picture this: idle optimizations are allowed, right? so the worker sails straight through the first branch like it's the main character and calls dc_allow_idle_optimizations. slay, we love a productive worker ✨

but then β€” plot twist 🫒 β€” there's a connected display. that makes the device non-headless, and there's no PSR active. so the worker hits the second break and just… stops running. periodt. that's the whole test, she's testing that exact break path πŸ’€


🌈 SEE ALSO 🌈

the kernel file livin' right here, bestie:

./drivers/gpu/drm/amd/display/amdgpu_dm/tests/amdgpu_dm_crtc_test.c

and the whole friend group, fr fr β€” go say hi to all of them 🫢


and that's the page, bestie 🧚 this little gem comes from ./drivers/gpu/drm/amd/display/... and it's stamped October 2026 β€” so like, future era energy ⭐ anyway, dm_test_idle...not_headless(9) ate and left no crumbs πŸ’–

πŸ“¦ where this page comes from