summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/display/dc/dcn10
diff options
context:
space:
mode:
authorYue Hin Lau2017-10-26 22:30:44 +0200
committerAlex Deucher2017-12-06 18:47:25 +0100
commit8a4cf458a84dfd3ed87ed69c0fdf7b39f20e1c06 (patch)
tree2586b3352a5b0a2d0fe9e232bda703a7f057403d /drivers/gpu/drm/amd/display/dc/dcn10
parentdrm/amd/display: Call ipp_program_bias_and_scale only if available (diff)
downloadkernel-qcow2-linux-8a4cf458a84dfd3ed87ed69c0fdf7b39f20e1c06.tar.gz
kernel-qcow2-linux-8a4cf458a84dfd3ed87ed69c0fdf7b39f20e1c06.tar.xz
kernel-qcow2-linux-8a4cf458a84dfd3ed87ed69c0fdf7b39f20e1c06.zip
drm/amd/display: Only update dchub if hubbub is available
Signed-off-by: Yue Hin Lau <Yuehin.Lau@amd.com> Reviewed-by: Tony Cheng <Tony.Cheng@amd.com> Acked-by: Harry Wentland <harry.wentland@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/dcn10')
-rw-r--r--drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c
index 75feb4788b6b..9b37f65f86f5 100644
--- a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c
+++ b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c
@@ -2509,7 +2509,8 @@ void dcn10_update_pending_status(struct pipe_ctx *pipe_ctx)
void dcn10_update_dchub(struct dce_hwseq *hws, struct dchub_init_data *dh_data)
{
- hubbub1_update_dchub(hws->ctx->dc->res_pool->hubbub, dh_data);
+ if (hws->ctx->dc->res_pool->hubbub != NULL)
+ hubbub1_update_dchub(hws->ctx->dc->res_pool->hubbub, dh_data);
}
static const struct hw_sequencer_funcs dcn10_funcs = {