dm_test_buil..._per_display(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 dm_test_buil..._per_display(9) β€” Kernel API Manual 🌸

okay bestie, welcome to the Kernel API Manual entry for dm_test_buil..._per_display(9) β€” yes the name is a whole mouthful, we're abbreviating, it's giving "my full legal name doesn't fit on the form" energy πŸ’…


✨ NAME ✨

dm_test_build_pm_display_cfg_per_display β€” a test that checks the per-display translation, no cap 🫢


πŸŽ€ SYNOPSIS πŸŽ€

void dm_test_build_pm_display_cfg_per_display(struct kunit *test);

πŸ¦‹ ARGUMENTS πŸ¦‹

  • test β€” the KUnit test context. it's literally the whole vibe-check harness for the test, hand it over and let it cook ✨

πŸ’œ DESCRIPTION πŸ’œ

okay so here's the tea: this verifies that build_pm_display_cfg maps each display config correctly. specifically it's checking two things:

  • it applies the controller_id = pipe_idx + 1 offset β€” yep, plus-one, that's not a typo, that's the actual rule πŸ”₯
  • it copies the pixel clock over πŸŽ€

that's it, that's the test. iconic, focused, does one thing and does it well, main character energy fr fr πŸ‘‘


🌈 SEE ALSO 🌈

  • Kernel file
  • ./drivers/gpu/drm/amd/display/amdgpu_dm/tests/amdgpu_dm_pp_smu_test.c

and now the friend group, all of them, every single one, no cap (go say hi, they're all in the same test file):

bestie there are 87 of these. I counted. twice. go read them, they're all linked from ./drivers/gpu/drm/amd/display/... 🫢

and that's the whole page! source path is that ./drivers/gpu/drm/amd/display/... situation, version date is October 2026, and the page is called dm_test_buil..._per_display(9) β€” yes, still abbreviated, still iconic βœ¨πŸ’– periodt πŸŽ€

πŸ“¦ where this page comes from