Commit 77299956 authored by Roman Li's avatar Roman Li Committed by Alex Deucher

drm/amd/display: Fix dc_version detect for dcn314

[Why]
While parsing dc_version redundant check leads to
invalid dc_version for dcn314.

[How]
Remove redundant check

Fixes: ee7b62e1 ("drm/amd/display: Enable DCN314 in DC")
Signed-off-by: default avatarRoman Li <roman.li@amd.com>
Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 5085e036
...@@ -74,6 +74,7 @@ ...@@ -74,6 +74,7 @@
enum dce_version resource_parse_asic_id(struct hw_asic_id asic_id) enum dce_version resource_parse_asic_id(struct hw_asic_id asic_id)
{ {
enum dce_version dc_version = DCE_VERSION_UNKNOWN; enum dce_version dc_version = DCE_VERSION_UNKNOWN;
switch (asic_id.chip_family) { switch (asic_id.chip_family) {
#if defined(CONFIG_DRM_AMD_DC_SI) #if defined(CONFIG_DRM_AMD_DC_SI)
...@@ -169,7 +170,6 @@ enum dce_version resource_parse_asic_id(struct hw_asic_id asic_id) ...@@ -169,7 +170,6 @@ enum dce_version resource_parse_asic_id(struct hw_asic_id asic_id)
dc_version = DCN_VERSION_3_21; dc_version = DCN_VERSION_3_21;
break; break;
case AMDGPU_FAMILY_GC_11_0_2: case AMDGPU_FAMILY_GC_11_0_2:
if (ASICREV_IS_GC_11_0_2(asic_id.hw_internal_rev))
dc_version = DCN_VERSION_3_14; dc_version = DCN_VERSION_3_14;
break; break;
default: default:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment