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)
commitb43c3840176bb7b4e4988237ca86fc2974cc4a15
tree0276285a63931b7f3b53243b3d1f029fc3bb4090
parentec484d069b8c7cf84d65b5c0da12fd5452be5073
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