drm/amd/display: Add Polaris12 to bw_calc
authorJoshua Aberback <Joshua.Aberback@amd.com>
Tue, 10 Jan 2017 19:05:49 +0000 (14:05 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Sep 2017 21:09:33 +0000 (17:09 -0400)
Signed-off-by: Joshua Aberback <Joshua.Aberback@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Harry Wentland <Harry.Wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/calcs/bandwidth_calcs.c

index aa18773..54388c0 100644 (file)
@@ -44,9 +44,9 @@ static enum bw_calcs_version bw_calcs_version_from_asic_id(struct hw_asic_id asi
 
        case FAMILY_VI:
                if (ASIC_REV_IS_POLARIS10_P(asic_id.hw_internal_rev))
-                       // || ASIC_REV_IS_POLARIS12_V(asic_id.hw_internal_rev)
                        return BW_CALCS_VERSION_POLARIS10;
-               if (ASIC_REV_IS_POLARIS11_M(asic_id.hw_internal_rev))
+               if (ASIC_REV_IS_POLARIS11_M(asic_id.hw_internal_rev) ||
+                               ASIC_REV_IS_POLARIS12_V(asic_id.hw_internal_rev))
                        return BW_CALCS_VERSION_POLARIS11;
                return BW_CALCS_VERSION_INVALID;