dm_test_com...w_crtc_state(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– dm_test_commit_audio_skips_without_new_crtc_state(9) πŸ’–

okay so this is a page from the Kernel API Manual, section 9, and ngl it's a whole mood β€” it's a KUnit test for the amdgpu display audio commit path. let's get into it bestie 🫢


πŸŽ€ NAME πŸŽ€

dm_test_commit_audio_skips_without_new_crtc_state β€” literally just "Test missing CRTC state". that's the whole vibe. it's a test, the thing it tests is a missing CRTC state, periodt. ✨


🌸 SYNOPSIS 🌸

void dm_test_commit_audio_skips_without_new_crtc_state (struct kunit *test );

she takes one argument, she returns void, she does exactly one job πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • test β€” the KUnit test context. that's it. that's the whole parameter list. you hand her the test context and she handles the rest πŸ”₯

✨ DESCRIPTION ✨

so here's the situation, bestie. picture a connector that's still attached to the same CRTC β€” nothing changed, same pairing, we're comfy πŸ›‹οΈ

the rule is: that connector should NOT notify if the atomic state doesn't contain a new CRTC state for that CRTC.

like... not me checking the atomic state and finding no fresh CRTC state for the CRTC in question, and then the connector loudly going off anyway? πŸ™ˆ no ma'am. if there's no new CRTC state, the notify does not happen. that's the entire point of this test β€” it proves the skip actually skips.

the way that "no new state for this CRTC" translates to "no notification" β€” iconic, correct, exactly what we want πŸ‘‘


πŸ’œ SEE ALSO πŸ’œ

first up, the actual kernel file this thing lives in β€” go read it, it's giving main character energy:

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

and the rest of the squad, all in section 9, all absolute icons in their own right:

twenty-seven of them. every single one accounted for. no cap. 🧚


ok that's the whole page!! head back to your group chat and tell them you now understand CRTC state notification skipping πŸ’€

that's a wrap, bestie πŸ’– this little page came from ./drivers/gpu/drm/amd/display/... and it's dated October 2026 β€” so yeah, she's from the future, she's ahead of her time, and she ate. slay βœ¨πŸ‘‘πŸ“

πŸ“¦ where this page comes from