drm/amd/display: Enable dpia support for dcn314
authorRoman Li <roman.li@amd.com>
Thu, 29 Sep 2022 18:37:00 +0000 (14:37 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 6 Oct 2022 16:06:03 +0000 (12:06 -0400)
[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 <roman.li@amd.com>
Reviewed-by: Nicholas Kazlauskas <Nicholas.Kazlauskas@amd.com>
Reviewed-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org # 6.0.x
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c

index 4c73727e0b7d5825fb3f20e45b48c6a28cb29975..d5222d5e3a6165e134de09e5387fdc859092f116 100644 (file)
@@ -1110,7 +1110,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;