drm/amd/display: Get replay info from VSDB
authorBhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Mon, 12 Jun 2023 18:06:39 +0000 (14:06 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 9 Aug 2023 13:46:04 +0000 (09:46 -0400)
commitec8e59cb4e0c1a52d5a541fff9dcec398b48f7b4
tree57bb02ea9e59ff2ae444c836c7d2ba5e2f22b203
parent7957ec80ef97e983bb87782757c9dd74c34acc27
drm/amd/display: Get replay info from VSDB

We need to make sure that the panel supports replay.

This info is inside the amd vsdb (vendor specific data block). Create a
function to parse the block and read the replay_mode bit.

Signed-off-by: Bhawanpreet Lakha <Bhawanpreet.Lakha@amd.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_replay.c