drm/amd/display: Fix RV2 Variant Detection
authorMichael Strauss <michael.strauss@amd.com>
Thu, 13 Feb 2020 20:08:13 +0000 (15:08 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 25 Feb 2020 16:09:12 +0000 (11:09 -0500)
commit41ef3dcd86443fab3f0ba50902d13935bc12d24f
tree0276285a63931b7f3b53243b3d1f029fc3bb4090
parent9dac88d8792af034d240c2df148b46e0f9ab00ca
drm/amd/display: Fix RV2 Variant Detection

[WHY]
RV2 and variants are indistinguishable by hw internal rev alone, need to
be distinguishable in order to correctly set max vlevel.  Previous
detection change incorrectly checked for hw internal rev.

[HOW]
Use pci revision to check if RV2 or low power variant Correct a few
overlapping ASICREV range checks

Signed-off-by: Michael Strauss <michael.strauss@amd.com>
Reviewed-by: Michael Strauss <Michael.Strauss@amd.com>
Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@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/dcn_calcs.c
drivers/gpu/drm/amd/display/dc/clk_mgr/clk_mgr.c
drivers/gpu/drm/amd/display/include/dal_asic_id.h