dm_test_crc...ld_stop_dprx(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… dm_test_crc_source_should_stop_dprx β€” NAME ✨

okay so welcome to the Kernel API Manual, bestie 🫢 β€” today's main character is dm_test_crc_source_should_stop_dprx, and her whole job is testing dm_crc_source_should_stop_dprx(). that's it, that's the assignment πŸ’–


✨ SYNOPSIS ✨

void dm_test_crc_source_should_stop_dprx (struct kunit *test );

literally one function, zero drama, we love a minimal queen πŸ‘‘


πŸŽ€ ARGUMENTS πŸŽ€

  • test β€” the KUnit test context. that's the lil backstage pass she needs to do her thing 🎟️✨

πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the vibe check 🌈 β€” this test verifies that dm_crc_source_should_stop_dprx returns true only when the CRC is transitioning from a DPRX source to off. and "from a DPRX source" is doing a lot of work in that sentence, so let's spell it out: the condition is enabled && is_dprx(cur_crc_src) on the way in, and !enable on the way out. both. at the same time. no shortcuts πŸ’…

and she returns false for everything else, which is honestly so real of her:

  • non-DPRX disables πŸ™…β€β™€οΈ
  • DPRX starts (that's the other function's job, not hers) 🚫
  • no-op transitions (nothing changed, nothing to stop, we're chillin') 😌

like, she's not out here saying "stop" to everything. she has standards. periodt πŸ”₯

ngl this is a precision test β€” it's checking one specific edge of one specific transition, so if you're reading this because a test failed, congrats, you found the exact boundary she guards πŸ‘‘

πŸ‘‘ SEE ALSO πŸ‘‘

the source herself, if you wanna read ahead πŸ“–:

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

and her entire friend group β€” the whole CRC test squad, all iykyk πŸ’œ:


and that's the whole page, bestie πŸ“ she lives in ./drivers/gpu/drm/amd/display/... and this lil doc was stamped October 2026 β€” go forth, run the test, slay πŸ’…βœ¨πŸŒΈ

πŸ“¦ where this page comes from