drm/amdgpu/display: Fix Pollock Variant Detection
authorAly-Tawfik <altawfik@amd.com>
Tue, 25 Feb 2020 20:01:28 +0000 (15:01 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 9 Mar 2020 17:51:03 +0000 (13:51 -0400)
commit6cc47f3f96345fb21eaff8996d31939ffbda0f58
tree7876f63f4cbb1bba16e2ff65bab7cfba799fc372
parent2dc31ca1895c1644a46b2d906423be04c91aa8b5
drm/amdgpu/display: Fix Pollock Variant Detection

Problem Description:
Currently we are checking internal fused rev id with pci rev id. However, fused
internal rev id is the same on all raven2 parts (in which Dali and Pollock were
based on too), thus Pollock detection fails

Fix:
use the pci rev to preform the detection for bandwidth calculations.

Reviewed-by: Feifei Xu <Feifei.Xu@amd.com>
Signed-off-by: Aly-Tawfik <altawfik@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c
drivers/gpu/drm/amd/display/include/dal_asic_id.h