dm_test_crt...sr_entry_psr(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… dm_test_crtc_set_static_screen_optimze_sr_entry_psr(9) β€” Kernel API Manual ✨

okay so bestie, welcome to the Kernel API Manual β€” this page is all about one very specific little KUnit test, and honestly? it's giving "narrow but iconic". let's get into it 🫢


🌸 NAME 🌸

dm_test_crtc_set_static_screen_optimze_sr_entry_psr β€” a test that pokes at the SSO toggle and checks that it drives PSR. yes queen, toggle it. πŸ’…

(and yes, optimze is spelled exactly like that β€” not me, not a typo of mine, we're keeping it, periodt.)


✨ SYNOPSIS ✨

void dm_test_crtc_set_static_screen_optimze_sr_entry_psr (struct kunit
*test );

πŸŽ€ ARGUMENTS πŸŽ€

  • test β€” the KUnit test context. that's the little bubble of a world this test lives inside, and it's the only thing you hand it. 🌈

πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the vibe check 🧚:

when self-refresh entry is allowed and the PSR version is below DC_PSR_VERSION_SU_1, this function has to run both the replay event updates and the PSR event updates. like, both of them. no skipping, no picking favorites. πŸ’–

and because the link in this test has no replay/PSR feature enabled, both of those event helpers just short-circuit safely β€” they bounce right off, no drama, no crash, we love a safe exit. 😌

the test also exercises both SSO states, which is the whole point: that's what gives us coverage of the set_vsync_event computation. both states, every time, because that's how we get the full picture. πŸ‘‘


πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file πŸ“

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

and the whole friend group, fr fr β€” all of these are also (9) pages, go say hi to the whole fam:


ngl bestie, that's 57 sibling pages. the AMD display test suite is thriving. πŸ’€

mwah πŸ’‹ that's the whole page! source lives at ./drivers/gpu/drm/amd/display/..., dated October 2026, and this little icon came to you from the dm_test_crt...sr_entry_psr(9) fam. slay, go read a kernel test, ily πŸ“πŸ’œ

πŸ“¦ where this page comes from