dm_test_crc...ld_stop_dprx(9)
π 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 π:
dm_test_crtc_get_crc_sources(9)dm_test_crtc_verify_crc_source_valid(9)dm_test_crtc_verify_crc_source_invalid(9)dm_test_crtc_configure_crc_source_no_stream(9)dm_test_crtc_configure_crc_source_dprx(9)dm_test_crtc_configure_crc_source_dprx_dither(9)dm_test_crtc_configure_crc_source_crtc(9)dm_test_crtc_configure_crc_source_crtc_dcn36_poly(9)dm_test_crtc_configure_crc_source_crtc_configure_fails(9)dm_test_crtc_configure_crc_source_none(9)dm_test_crtc_set_crc_source_invalid(9)dm_test_crtc_set_crc_source_none_no_stream(9)dm_test_crtc_set_crc_source_none_commit(9)dm_test_crtc_set_crc_source_dprx_no_connector(9)dm_test_crtc_handle_crc_irq_early_returns(9)dm_test_crtc_handle_crc_irq_disabled_source(9)dm_test_crtc_handle_crc_irq_skips_initial_frames(9)dm_test_crtc_handle_crc_irq_dprx_after_skip(9)dm_test_crtc_handle_crc_irq_get_crc_fails(9)dm_test_need_dp_aux(9)dm_test_crc_source_should_start_dprx(9)β her sibling, the "start" girlie π§
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms