dm_test_lp_...et_then_read(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… dm_test_lp_...et_then_read β€” Kernel API Manual πŸŽ€

okay bestie, buckle up, because this one's a KUnit test page from the Kernel API Manual and it is literally about making sure a read does the two-step correctly ✨


🌸 NAME 🌸

dm_test_lp_read_i2c_builds_offset_then_read β€” the test that checks whether read builds the offset message plus the read message, in that order, no cap 🫢


✨ SYNOPSIS ✨

void dm_test_lp_read_i2c_builds_offset_then_read (struct kunit *test );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • test β€” the KUnit test context πŸ’– that's it, that's the whole argument

πŸ’… DESCRIPTION πŸ’…

so the vibe check here is simple but iconic: lp_read_i2c has to build two things before it does anything else πŸ”₯

  1. a 1-byte write of the offset πŸŽ€
  2. followed by a size-byte read into the caller's buffer 🧚

and the way that both of those have to land at the same address? that's the whole point, periodt πŸ’― that's what this test is checking for.


πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file πŸ’€ ./drivers/gpu/drm/amd/display/amdgpu_dm/tests/amdgpu_dm_hdcp_test.c

and like, the entire friend group of related pages, bestie β€” all of them, in order, no skipping πŸ™ˆ


ngl bestie that's a lot of cross-references πŸ’€ but every single one is in there, so you're covered 🫢

and that's the whole page, mwah πŸ’‹ this little cutie lives at ./drivers/gpu/drm/amd/display/..., version-dated October 2026, and it's filed under dm_test_lp_...et_then_read(9) β€” slay, go read the source 🌈⭐

πŸ“¦ where this page comes from