Re: [PATCH] drm/amd/display: Enable dpia support for dcn314

2022-10-03 Thread Limonciello, Mario

On 10/3/2022 13:00, roman...@amd.com wrote:

From: Roman Li 

[Why]
DCN 3.1.4 supports DPIA.

[How]
  - Set dpia_supported flag for dcn314 in dmub_hw_init()
  - Remove comment that becomes irrelevant after this change.

Signed-off-by: Roman Li 
Reviewed-by: Nicholas Kazlauskas 


FYI As this is just adding the ID, I think this is a good stable candidate.

Cc: sta...@vger.kernel.org # 6.0
Reviewed-by: Mario Limonciello 


---
  drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 3 ++-
  1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 
b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
index ece2003a74cc..8471c21496c9 100644
--- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
+++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
@@ -1105,7 +1105,8 @@ static int dm_dmub_hw_init(struct amdgpu_device *adev)
hw_params.fb[i] = &fb_info->fb[i];
  
  	switch (adev->ip_versions[DCE_HWIP][0]) {

-   case IP_VERSION(3, 1, 3): /* Only for this asic hw internal rev B0 */
+   case IP_VERSION(3, 1, 3):
+   case IP_VERSION(3, 1, 4):
hw_params.dpia_supported = true;
hw_params.disable_dpia = 
adev->dm.dc->debug.dpia_debug.bits.disable_dpia;
break;




[PATCH] drm/amd/display: Enable dpia support for dcn314

2022-10-03 Thread Roman.Li
From: Roman Li 

[Why]
DCN 3.1.4 supports DPIA.

[How]
 - Set dpia_supported flag for dcn314 in dmub_hw_init()
 - Remove comment that becomes irrelevant after this change.

Signed-off-by: Roman Li 
Reviewed-by: Nicholas Kazlauskas 
---
 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c 
b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
index ece2003a74cc..8471c21496c9 100644
--- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
+++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
@@ -1105,7 +1105,8 @@ static int dm_dmub_hw_init(struct amdgpu_device *adev)
hw_params.fb[i] = &fb_info->fb[i];
 
switch (adev->ip_versions[DCE_HWIP][0]) {
-   case IP_VERSION(3, 1, 3): /* Only for this asic hw internal rev B0 */
+   case IP_VERSION(3, 1, 3):
+   case IP_VERSION(3, 1, 4):
hw_params.dpia_supported = true;
hw_params.disable_dpia = 
adev->dm.dc->debug.dpia_debug.bits.disable_dpia;
break;
-- 
2.17.1