[PATCH] drm/amd/display: Guard some DCN-only code in dc_debug
Tom St Denis
tom.stdenis at amd.com
Mon Jun 12 19:09:40 UTC 2017
Acked-By: Tom St Denis <tom.stdenis at amd.com>
It fixes the compile error but since I'm out of time today to actually
test that's about all I can say. :-)
Tom
On 12/06/17 03:01 PM, Harry Wentland wrote:
> Fixing a compile error when building without
> CONFIG_DRM_AMD_DC_DCN1_0
>
> Signed-off-by: Harry Wentland <harry.wentland at amd.com>
> ---
> drivers/gpu/drm/amd/display/dc/core/dc_debug.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_debug.c b/drivers/gpu/drm/amd/display/dc/core/dc_debug.c
> index 263dab6337a6..58402051cc59 100644
> --- a/drivers/gpu/drm/amd/display/dc/core/dc_debug.c
> +++ b/drivers/gpu/drm/amd/display/dc/core/dc_debug.c
> @@ -329,6 +329,7 @@ void context_clock_trace(
> struct core_dc *core_dc = DC_TO_CORE(dc);
> struct dal_logger *logger = core_dc->ctx->logger;
>
> +#if defined(CONFIG_DRM_AMD_DC_DCN1_0)
> CLOCK_TRACE("Current: dispclk_khz:%d dppclk_div:%d dcfclk_khz:%d\n"
> "dcfclk_deep_sleep_khz:%d fclk_khz:%d\n"
> "dram_ccm_us:%d min_active_dram_ccm_us:%d\n",
> @@ -349,4 +350,5 @@ void context_clock_trace(
> context->bw.dcn.calc_clk.fclk_khz,
> context->bw.dcn.calc_clk.dram_ccm_us,
> context->bw.dcn.calc_clk.min_active_dram_ccm_us);
> +#endif
> }
>
More information about the amd-gfx
mailing list