alloc_test_...eue_for_assr(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… alloc_test_workqueue_for_assr β€” a page from the Kernel API Manual, bestie edition ✨

okay so this is alloc_test_workqueue_for_assr(9), straight out of the Kernel API Manual, and it's lowkey one of those tiny helper functions that makes a whole test suite work. it's giving "supporting character with main character energy" πŸŽ€


✨ NAME ✨

alloc_test_workqueue_for_assr β€” it builds a workqueue wired up to a psp, all so that enable_assr() has something to chew on 🫢


🌸 SYNOPSIS 🌸

struct hdcp_workqueue * alloc_test_workqueue_for_assr (struct kunit
*test , struct amdgpu_device *adev );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • test β€” the KUnit test context, there for managed allocation. it's the responsible adult in the room holding onto your memory so you don't have to πŸ’–
  • adev β€” the amdgpu device whose drm_device backs psp->adev (this is the one used for drm_info). yes, that deref chain is real, no cap 🌈

πŸ‘‘ DESCRIPTION πŸ‘‘

so what it actually does: it allocates a minimal hdcp_workqueue and a psp_context, and it wires them together through hdcp.config.psp.handle. why? because that's literally the dereference chain that enable_assr walks through, and the test needs the vibes to match fr fr πŸ’…

and here's the iconic part β€” the psp is left with dtm_context.context.initialized == false. that's not a bug, bestie, that's kzalloc doing its thing ✨ so when enable_assr runs, it takes the "DTM TA not initialized" path. exactly what we want. periodt πŸ”₯

ngl this is intentionally a minimal setup β€” don't go expecting a fully fleshed-out psp here. it exists to hit one specific branch and it ate. πŸ’€

πŸ”₯ SEE ALSO πŸ”₯

Kernel file πŸ“:

./drivers/gpu/drm/amd/display/amdgpu_dm/tests/amdgpu_dm_hdcp_test.c

and now the whole group chat of related tests β€” every single one, in order, because we don't leave anyone on read πŸ’œ:


and that's the whole page, bestie 🧚 this little icon came from ./drivers/gpu/drm/amd/display/... and it's dated October 2026 β€” a whole mood, iykyk ⭐ bye luv u, go write some tests πŸ’–πŸŒΈ

πŸ“¦ where this page comes from