Skip to contentSkip to conversation

drm/amdgpu: Redefine the bit PP_OVERDRIVE_MASK for PP_FEATURES

PATCH In review Rex Zhu 2 participants 2 messages Jan 30, 2018 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

Rex Zhu

author
#0 lore raw

PATCH v2 1/1 drm/amdgpu: Redefine the bit PP_OVERDRIVE_MASK for PP_FEATURES

For feature enabled by default, define its bit mask from low bit For feature disabled by default, define its bit mask from high bit.

Change-Id Iaa9ea6306a57b73bd3481fa152f0f01794a88427
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c   | 2 +-
 drivers/gpu/drm/amd/powerplay/inc/hwmgr.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c +1 -1
index d1a6958..7f08777 100644
@@ -121,7 +121,7 @@
 uint amdgpu_sdma_phase_quantum = 32;
 char *amdgpu_disable_cu = NULL;
 char *amdgpu_virtual_display = NULL;
-uint amdgpu_pp_feature_mask = 0x3fff;
+uint amdgpu_pp_feature_mask = 0x7fffffff;
 int amdgpu_ngg = 0;
 int amdgpu_prim_buf_per_se = 0;
 int amdgpu_pos_buf_per_se = 0;
drivers/gpu/drm/amd/powerplay/inc/hwmgr.h +1 -1
index 5512dc2..3ad45ac 100644
@@ -84,7 +84,7 @@ enum PP_FEATURE_MASK {
 	PP_OD_FUZZY_FAN_CONTROL_MASK = 0x800,
 	PP_SOCCLK_DPM_MASK = 0x1000,
 	PP_DCEFCLK_DPM_MASK = 0x2000,
-	PP_OVERDRIVE_MASK = 0x4000,
+	PP_OVERDRIVE_MASK = 0x80000000, /* disabled by default */
 };
 
 enum PHM_BackEnd_Magic {
Signature · 6 lines
1.9.1

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

A message that is not in the archive (sent off-list or not yet received): 1517300678-26522-1-git-send-email-Rex.Zhu-5C7GfCeVMHo@public.gmane.org

#2 lore raw
Quoted 28 lines · Rex Zhu

For feature enabled by default, define its bit mask from low bit For feature disabled by default, define its bit mask from high bit.

Change-Id Iaa9ea6306a57b73bd3481fa152f0f01794a88427
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c   | 2 +-
 drivers/gpu/drm/amd/powerplay/inc/hwmgr.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c +1 -1
index d1a6958..7f08777 100644
@@ -121,7 +121,7 @@
 uint amdgpu_sdma_phase_quantum = 32;
 char *amdgpu_disable_cu = NULL;
 char *amdgpu_virtual_display = NULL;
-uint amdgpu_pp_feature_mask = 0x3fff;
+uint amdgpu_pp_feature_mask = 0x7fffffff;
 int amdgpu_ngg = 0;
 int amdgpu_prim_buf_per_se = 0;
 int amdgpu_pos_buf_per_se = 0;
drivers/gpu/drm/amd/powerplay/inc/hwmgr.h +0 -0
index 5512dc2..3ad45ac 100644

drivers/gpu/drm/amd/powerplay/inc/hwmgr.h enum PP_FEATURE_MASK { · line 87

Quoted 5 lines
drivers/gpu/drm/amd/powerplay/inc/hwmgr.h +1 -1
@@ -84,7 +84,7 @@ enum PP_FEATURE_MASK {
        PP_OD_FUZZY_FAN_CONTROL_MASK = 0x800,
        PP_SOCCLK_DPM_MASK = 0x1000,
        PP_DCEFCLK_DPM_MASK = 0x2000,
-       PP_OVERDRIVE_MASK = 0x4000,
+       PP_OVERDRIVE_MASK = 0x80000000, /* disabled by default */

If an option is eventually enabled by default, is the intention that we move it down to the other side? I don't really see much value in this patch. Better to just adjust the default flags as necessary as we enable things so the flag bits stay consistent.

Alex

Quoted 10 lines
drivers/gpu/drm/amd/powerplay/inc/hwmgr.h +0 -1
 };
 
 enum PHM_BackEnd_Magic {
--

1.9.1

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx