dm_test_coun...planes_mixed(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… dm_test_coun...planes_mixed β€” Kernel API Manual ✨

okay bestie, welcome to the group chat. this one is a KUnit test from the kernel β€” yes, that kernel β€” and it's giving "small test, big responsibility" energy. the manual name is Kernel API Manual, and the page you're reading is dm_test_coun...planes_mixed(9). the title got truncated by the manpage formatter, not by me, so don't come for me 🫢


✨ NAME ✨

dm_test_count_crtc_active_planes_mixed β€” a test that counts across all the plane cases, no cap πŸ’…


🌸 SYNOPSIS 🌸

void dm_test_count_crtc_active_planes_mixed (struct kunit *test );

πŸŽ€ ARGUMENTS πŸŽ€

  • test β€” the KUnit test context. it's the little backpack this test carries around, literally.

πŸ¦‹ DESCRIPTION πŸ¦‹

so what does this bad boy actually do? it exercises every branch of the counting loop. like, every single one. it's thorough like that πŸ‘‘

here's the vibe check on the cases it hits:

  • a plane that's excluded by the mask β€” not invited to the party
  • a cursor plane β€” skipped entirely, sorry girl
  • a masked plane with no new state β€” counted βœ…
  • a masked plane with a framebuffer β€” counted βœ…
  • a masked plane without a framebuffer β€” not counted ❌

and after all that? only two planes should be reported active. that's the whole flex. two. not three, not one. two. periodt.


πŸ”₯ SEE ALSO πŸ”₯

the kernel file lives here, bestie:

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

and here's the whole friend group β€” every single one of them, in the order the manpage gave them:

ngl the vibe of this list is "we tested literally everything so the DRM folks can sleep at night" and honestly? iconic of them πŸ’œ

anyway bestie, that's the page 🌈 β€” sourced from ./drivers/gpu/drm/amd/display/... and dated October 2026, closing out with the same truncated title you started with: dm_test_coun...planes_mixed(9). mwah, go count some planes πŸ“πŸ§š

πŸ“¦ where this page comes from