dm_test_set_..._allows_idle(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

okay so bestie, welcome to dm_test_set_crtc_irq_state_allows_idle β€” it's a Kernel API Manual page (we're in section 9, the kernel-API girlies πŸ’…) and the whole vibe is: test the idle-optimization branch 🌸

No cap, that's literally the name and the job. Let's get into it πŸ’–


πŸŽ€ SYNOPSIS πŸŽ€

void dm_test_set_crtc_irq_state_allows_idle (struct kunit *test );

That's it. That's the whole function signature, bestie β€” one argument, void return, no cap ✨


🫢 ARGUMENTS 🫢

  • test β€” the KUnit test context 🧚 like, the little main-character struct that carries the whole test's world around with it

πŸ”₯ DESCRIPTION πŸ”₯

so here's the scenario, right? u have a non-NULL DC β€” that's the display core, she's real and she's here πŸ‘‘

And this DC advertises IPS support and is currently in a state where it allows idle optimizations. When all that lines up, dm_irq_state must call dc_allow_idle_optimizations before amdgpu_dm_irq_set. Order matters, periodt πŸ’…

Then there's disable_idle_power_optimizations, which β€” and this is the cute part β€” makes that call a safe early return 😌 no drama, no explosion, it just politely bounces.

And the per-source stub funcs are what let amdgpu_dm_irq_set succeed. little fake friends standing in for the real thing so the test can actually finish πŸ¦‹

literally the whole point: prove the idle-optimization branch gets taken, and that the path is safe when it doesn't πŸ”₯

🌈 SEE ALSO 🌈

Kernel file πŸ‘€

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

and now... the friendship bracelet of references πŸ’– every single one, exactly as written, i'm not skipping a _single_ bestie:

whew 😭 that's the whole squad and every single one of them ate πŸ’…


okay that's the page bestie!! this little piece of lore came from ./drivers/gpu/drm/amd/display/... and it's stamped October 2026 β€” so go forth, read your irq tests, and slay πŸ¦‹βœ¨πŸ’–

πŸ“¦ where this page comes from