Commit be643363 authored by Tom Chung's avatar Tom Chung Committed by Alex Deucher
Browse files

drm/amd/display: Re-enable panel replay feature



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

Reported-by: default avatarArthur Borsboom <arthurborsboom@gmail.com>
Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/3344


Reviewed-by: default avatarSun peng Li <sunpeng.li@amd.com>
Signed-off-by: default avatarTom Chung <chiahsuan.chung@amd.com>
Signed-off-by: default avatarWayne Lin <wayne.lin@amd.com>
Tested-by: default avatarDaniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent b8dc6ca0
Loading
Loading
Loading
Loading
+8 −12
Original line number Diff line number Diff line
@@ -4850,18 +4850,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;