dm_test_wb_...init_success(9)
π dm_test_wb_connector_init_success
okay bestie, welcome to the Kernel API Manual β¨ β section 9, because we're deep in kernel-land and this is the writeback test tea π«
πΈ NAME πΈ
dm_test_wb_connector_init_success β the one where we verify writeback connector initialization π
π SYNOPSIS π
void dm_test_wb_connector_init_success (struct kunit *test );
that's it. one function, zero drama, maximum slay β¨
π¦ ARGUMENTS π¦
testβ the KUnit test context π§ͺ like, this is the little test-world this function lives in, standard KUnit stuff, no notes π
β DESCRIPTION β
okay so here's the vibe: this test spins up a DRM mock device that's embedded right inside a struct amdgpu_device, and then it verifies a whole checklist of things about amdgpu_dm_wb_connector_init π«Ά
it's checking that the init function actually:
- initializes the writeback connector π (like, the connector exists and it's init'd, periodt)
- stores the DC link π (yes, the link is saved, no cap)
- installs connector state through reset π (through reset specifically, iykyk)
- wires the expected DRM callbacks π₯ (all the callbacks hooked up the way they should be)
so basically: if the init does anything funky with the connector, the DC link, the reset-path state, or the callback wiring β this test catches it π and that's the whole point, bestie π
π SEE ALSO π
Kernel file π
./drivers/gpu/drm/amd/display/amdgpu_dm/tests/amdgpu_dm_wb_test.c
and the rest of the writeback test fam β go read these too, they're all iconic π:
dm_test_wb_atomic_check_no_job(9)dm_test_wb_atomic_check_no_fb(9)dm_test_wb_atomic_check_valid(9)dm_test_wb_atomic_check_size_mismatch(9)dm_test_wb_atomic_check_width_mismatch(9)dm_test_wb_atomic_check_height_mismatch(9)dm_test_wb_atomic_check_invalid_format(9)dm_test_wb_get_modes_returns_modes(9)dm_test_wb_get_modes_bounded_by_max(9)dm_test_wb_prepare_job_no_fb(9)dm_test_wb_cleanup_job_no_fb(9)
ngl the whole writeback test suite is lowkey a mood, and this one's the entry point π§β¨
and that's the page, bestie π this came out of ./drivers/gpu/drm/amd/display/... with a very cute October 2026 date on it β so go forth, run the test, and let it 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