dm_mst_test...best_encoder(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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

okay so bestie, we're in the Kernel API Manual today and this page is all about one very specific lil KUnit test. she's niche, she's structural, she's iconic. let's get into it 🫢


🌸 NAME 🌸

dm_mst_test_atomic_best_encoder β€” literally just Test MST encoder selection. that's the whole vibe check. πŸŽ€


✨ SYNOPSIS ✨

void dm_mst_test_atomic_best_encoder (struct kunit *test );

no cap, that's the whole signature. one arg, no return, she's a void girlie πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • test β€” the KUnit test context πŸ’– this is the lil handle the test framework hands over, and yes you pass it straight through, that's her whole job.

πŸ‘‘ DESCRIPTION πŸ‘‘

so here's the tea πŸ“ this test verifies that dm_mst_atomic_best_encoder picks the MST encoder indexed by the CRTC ID in the connector's new atomic state. like, the CRTC ID is the key, and the encoder lookup better be matching it. main character indexing behaviour fr fr.

and the way it pulls this off? structural DRM mocks only 🌈 ngl that's the best part β€” you do not need to register connector/CRTC objects for this helper. registering stuff would be extra, and she is simply not doing extra. lowkey efficient, highkey slay. ✨

πŸ’€ reminder bestie: the mocks here are structural β€” that's the whole point of the test setup, don't go registering connectors and CRTCs thinking you're helping, you're not, the test literally says it's unnecessary.

πŸ”₯ SEE ALSO πŸ”₯

the whole friend group, in order, no skipping πŸ‘‘


okay that's the page!! πŸ’œ she lives over in ./drivers/gpu/drm/amd/display/... and this edition is dated October 2026, part of the Kernel API Manual β€” go read her sisters, they ate too πŸ’…βœ¨πŸŽ€

πŸ“¦ where this page comes from