dm_test_read..._no_vcp_code(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 dm_test_read..._no_vcp_code(9) 🌸

okay bestie, welcome to the Kernel API Manual β€” yes that's the whole manual name, she's fancy like that πŸ’… and today's main character is a tiny little KUnit test with a very long name and a very specific job. no cap.


✨ NAME ✨

dm_test_read_mccs_caps_no_vcp_code β€” literally just here to prove that the no-vcp-code path clears freesync support. that's it. that's the whole gig πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

void dm_test_read_mccs_caps_no_vcp_code (struct kunit *test );

yes the spacing is like that, don't @ me, copy it exactly bestie 🫢


🌸 ARGUMENTS 🌸

  • test β€” The KUnit test context. that's the little bubble of test-world state that gets passed around, and our function takes exactly one of them πŸ’–

πŸ”₯ DESCRIPTION πŸ”₯

okay so here's the vibe check: when freesync_vcp_code == 0, the i2c/MCCS path is skipped entirely β€” like, not even a little peek, it's giving "we don't know her" πŸ’€ β€” and the function only clears sink->mccs_caps.freesync_supported.

that's the entire behaviour. one flag, one skip, one clear. iconic minimalism honestly πŸ‘‘


πŸ‘‘ SEE ALSO πŸ‘‘

the kernel file lives right here, go read it, it ate:

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

and here's the whole extended friend group β€” every single one, in order, no skips, fr fr 🌈:


that's the whole page bestie, no crumbs left πŸ“ and real quick, the cute lil sign-off at the bottom: this one's sourced from ./drivers/gpu/drm/amd/display/... and it's dated October 2026, so like… future girlboss behaviour honestly β­πŸ’œ go forth and test that freesync clear πŸ’…

πŸ“¦ where this page comes from