]> git.hungrycats.org Git - linux/commit
drm/amd/display: Add KUnit tests for amdgpu_dm_psr
authorAlex Hung <alex.hung@amd.com>
Wed, 17 Jun 2026 01:42:06 +0000 (19:42 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 1 Jul 2026 15:37:10 +0000 (11:37 -0400)
commitf1fa90c7a70966117c40ae01d5ae45f07eb73366
tree97f9fc27fec1f81c9172c0e40c14d756648bdb28
parentd99024d7d243aecec42b98ac000e720499cb3e92
drm/amd/display: Add KUnit tests for amdgpu_dm_psr

[WHAT]
Add Kunit tests for functions:
- link_supports_psrsu()
- amdgpu_dm_psr_fill_caps()
- amdgpu_dm_set_psr_caps()
- amdgpu_dm_psr_is_active_allowed()
- amdgpu_dm_psr_set_event()

Assisted-by: Copilot:GPT-5.5
Reviewed-by: Bhawanpreet Lakha <bhawanpreet.lakha@amd.com>
Signed-off-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: George Zhang <george.zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_psr.c
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_psr.h
drivers/gpu/drm/amd/display/amdgpu_dm/tests/amdgpu_dm_psr_test.c