Skip to contentSkip to conversation

drm/amd/display: avoid calling missing .resync_fifo_dccg_dio()

PATCH Applied Arnd Bergmann 2 participants 2 messages May 23, 2023

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/amd/display: avoid calling missing .resync_fifo_dccg_dio()

From: Arnd Bergmann <[email protected]>

The .resync_fifo_dccg_dio() callback pointer was added in an #ifdef block, but is called unconditionally:

drivers/gpu/drm/amd/amdgpu/../display/dc/dce110/dce110_hw_sequencer.c:2292:31: error: 'struct hwseq_private_funcs' has no member named 'resync_fifo_dccg_dio'

Add the same #ifdef around the caller as well.

Fixes 6354b0dc3a7a ("drm/amd/display: Trigger DIO FIFO resync on commit streams")
---
 drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c +2 -0
index c6fe2c00aedb..d4cacb8df631 100644
@@ -2289,8 +2289,10 @@ enum dc_status dce110_apply_ctx_to_hw(
 		if (DC_OK != status)
 			return status;
 
+#ifdef CONFIG_DRM_AMD_DC_FP
 		if (hws->funcs.resync_fifo_dccg_dio)
 			hws->funcs.resync_fifo_dccg_dio(hws, dc, context);
+#endif
 	}
 
 	if (dc->fbc_compressor)
Signature · 1 line
2.39.2
#1 lore raw
Quoted 11 lines · Arnd Bergmann

From: Arnd Bergmann <[email protected]>

The .resync_fifo_dccg_dio() callback pointer was added in an #ifdef block, but is called unconditionally:

drivers/gpu/drm/amd/amdgpu/../display/dc/dce110/dce110_hw_sequencer.c:2292:31: error: 'struct hwseq_private_funcs' has no member named 'resync_fifo_dccg_dio'

Add the same #ifdef around the caller as well.

Fixes 6354b0dc3a7a ("drm/amd/display: Trigger DIO FIFO resync on commit streams")

Applied, thanks!

Quoted 19 lines
---
  drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c | 2 ++
  1 file changed, 2 insertions(+)
drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c +2 -0
index c6fe2c00aedb..d4cacb8df631 100644
@@ -2289,8 +2289,10 @@ enum dc_status dce110_apply_ctx_to_hw(
  		if (DC_OK != status)
  			return status;
 
+#ifdef CONFIG_DRM_AMD_DC_FP
  		if (hws->funcs.resync_fifo_dccg_dio)
  			hws->funcs.resync_fifo_dccg_dio(hws, dc, context);
+#endif
  	}
 
  	if (dc->fbc_compressor)
Signature · 1 line
Hamza