[PATCH 2/2] drm/amd/pm: drop redundant watermarks bitmap setting

Evan Quan evan.quan at amd.com
Mon Sep 21 02:49:48 UTC 2020


As this is already set inside the implementation of
smu_set_watermarks_table().

Change-Id: I4d4d40855f0aad43f6d21d471b64f1c7e696f0e7
Signed-off-by: Evan Quan <evan.quan at amd.com>
---
 drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c b/drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c
index 002bae81b856..ef10be599d37 100644
--- a/drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c
+++ b/drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c
@@ -1838,11 +1838,6 @@ int smu_set_watermarks_for_clock_ranges(struct smu_context *smu,
 
 	ret = smu_set_watermarks_table(smu, clock_ranges);
 
-	if (!(smu->watermarks_bitmap & WATERMARKS_EXIST)) {
-		smu->watermarks_bitmap |= WATERMARKS_EXIST;
-		smu->watermarks_bitmap &= ~WATERMARKS_LOADED;
-	}
-
 	mutex_unlock(&smu->mutex);
 
 	return ret;
-- 
2.28.0



More information about the amd-gfx mailing list