]> www.infradead.org Git - users/hch/block.git/commitdiff
drm/amd/display: Get NV14 specific ip params as needed
authorZhan liu <zhan.liu@amd.com>
Mon, 2 Dec 2019 20:12:27 +0000 (15:12 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 3 Dec 2019 16:42:09 +0000 (11:42 -0500)
[Why]
NV14 is using its own ip params that's different from other
DCN2.0 ASICs.

[How]
Add ASIC revision check to make sure NV14 gets correct
ip params.

Signed-off-by: Zhan Liu <zhan.liu@amd.com>
Reviewed-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c

index 300a6392a1f0aed179f9d51ee5ce25119255b3bf..09793336d84f6944b44092fbce09e8f5d74b2283 100644 (file)
@@ -3282,6 +3282,10 @@ static struct _vcs_dpi_soc_bounding_box_st *get_asic_rev_soc_bb(
 static struct _vcs_dpi_ip_params_st *get_asic_rev_ip_params(
        uint32_t hw_internal_rev)
 {
+       /* NV14 */
+       if (ASICREV_IS_NAVI14_M(hw_internal_rev))
+               return &dcn2_0_nv14_ip;
+
        /* NV12 and NV10 */
        return &dcn2_0_ip;
 }