dm_test_nv_p...ndshake_fail(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… dm_test_nv_pstate_handshake_fail(9) β€” Kernel API Manual ✨

okay bestie, welcome to the Kernel API Manual πŸŽ€ this one's a KUnit test, it's from the AMD display driver tree, and it's honestly giving "small but important" vibes πŸ’–


🌸 NAME 🌸

dm_test_nv_pstate_handshake_fail β€” literally tests a failed pstate handshake, no cap 🫢


πŸ¦‹ SYNOPSIS πŸ¦‹

void dm_test_nv_pstate_handshake_fail (struct kunit *test );

that's it, that's the whole signature, she's tidy πŸ’…


πŸ’– ARGUMENTS πŸ’–

  • test β€” the KUnit test context 🧚 that's the one thing it takes, and it's the standard-issue test harness handle you pass around in KUnit land.

πŸŽ€ DESCRIPTION πŸŽ€

so here's the tea β˜•: this test verifies that pp_nv_set_pstate_handshake_support returns PP_SMU_RESULT_FAIL when the DPM callback returns non-zero. πŸ”₯

like β€” the whole point is the failure path. The DPM callback comes back non-zero, and the function under test is supposed to go "nope" and hand back PP_SMU_RESULT_FAIL. And this test makes sure it actually does that. Periodt. πŸ‘‘

no guessing here, bestie β€” that's exactly what the page says, nothing more 🌈

πŸ”₯ SEE ALSO πŸ”₯

the "kernel file" this bad girl lives in (iconic address, honestly):

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

and now the full friend group 😭 β€” every single one of these siblings, in order, no skips, no cuts, because we do not do that here πŸ’œ


and that's the whole page, bestie πŸ¦‹ the fine print says the source is ./drivers/gpu/drm/amd/display/... and it's dated October 2026 β€” so like, future-dated manual page, main character energy fr fr ⭐ mwah, go read the kernel file, ily πŸ’œπŸŽ€

πŸ“¦ where this page comes from