]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm/amd/display: Check if set_blank_data_double_buffer exists before call
authorVitaly Prosyak <vitaly.prosyak@amd.com>
Fri, 19 Jul 2019 21:07:33 +0000 (16:07 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 15 Aug 2019 15:56:07 +0000 (10:56 -0500)
Not all ASIC types have this function implemented - check before
calling.

Signed-off-by: Vitaly Prosyak <vitaly.prosyak@amd.com>
Reviewed-by: Julian Parkin <jparkin@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c

index 06d7bab550e11046cf44b49f75ccf3a9e207e860..5527717df3df28ad79ecb7c2938d9b1b528c3e5f 100644 (file)
@@ -721,7 +721,8 @@ static void false_optc_underflow_wa(
                dc->hwss.wait_for_mpcc_disconnect(dc, dc->res_pool, old_pipe_ctx);
        }
 
-       tg->funcs->set_blank_data_double_buffer(tg, true);
+       if (tg->funcs->set_blank_data_double_buffer)
+               tg->funcs->set_blank_data_double_buffer(tg, true);
 
        if (tg->funcs->is_optc_underflow_occurred(tg) && !underflow)
                tg->funcs->clear_optc_underflow(tg);