]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
drm/amd/display: Re-enable panel replay feature
authorTom Chung <chiahsuan.chung@amd.com>
Wed, 26 Jun 2024 09:02:23 +0000 (17:02 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Oct 2024 10:03:06 +0000 (12:03 +0200)
[ Upstream commit be64336307a6c3ee71fe1337c1b9f0495aa83c50 ]

[Why & How]
Fixed the replay issues and now re-enable the panel replay feature.

Reported-by: Arthur Borsboom <arthurborsboom@gmail.com>
Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/3344
Reviewed-by: Sun peng Li <sunpeng.li@amd.com>
Signed-off-by: Tom Chung <chiahsuan.chung@amd.com>
Signed-off-by: Wayne Lin <wayne.lin@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c

index 9ee54c5ce4a61f83d0d75d5e2f219f971c1a6076..f6cbff0ed6f94d483370f9e822850cb2e26a9a29 100644 (file)
@@ -4919,18 +4919,14 @@ static int amdgpu_dm_initialize_drm_device(struct amdgpu_device *adev)
        /* Determine whether to enable Replay support by default. */
        if (!(amdgpu_dc_debug_mask & DC_DISABLE_REPLAY)) {
                switch (amdgpu_ip_version(adev, DCE_HWIP, 0)) {
-/*
- * Disabled by default due to https://gitlab.freedesktop.org/drm/amd/-/issues/3344
- *             case IP_VERSION(3, 1, 4):
- *             case IP_VERSION(3, 1, 5):
- *             case IP_VERSION(3, 1, 6):
- *             case IP_VERSION(3, 2, 0):
- *             case IP_VERSION(3, 2, 1):
- *             case IP_VERSION(3, 5, 0):
- *             case IP_VERSION(3, 5, 1):
- *                     replay_feature_enabled = true;
- *                     break;
- */
+               case IP_VERSION(3, 1, 4):
+               case IP_VERSION(3, 2, 0):
+               case IP_VERSION(3, 2, 1):
+               case IP_VERSION(3, 5, 0):
+               case IP_VERSION(3, 5, 1):
+                       replay_feature_enabled = true;
+                       break;
+
                default:
                        replay_feature_enabled = amdgpu_dc_feature_mask & DC_REPLAY_MASK;
                        break;