dm_test_wb_...init_success(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 πŸ‘‘:


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