[PATCH] drm/amd/display: Fix a compilation failure on PowerPC caused by FPU code
Michael Ellerman
mpe at ellerman.id.au
Thu Jul 28 22:48:40 UTC 2022
Rodrigo Siqueira <Rodrigo.Siqueira at amd.com> writes:
> We got a report from Stephen/Michael that the PowerPC build was failing
> with the following error:
>
> ld: drivers/gpu/drm/amd/display/dc/dml/display_mode_lib.o uses hard float, drivers/gpu/drm/amd/display/dc/dcn30/dcn30_optc.o uses soft float
> ld: failed to merge target specific data of file drivers/gpu/drm/amd/display/dc/dcn30/dcn30_optc.o
>
> This error happened because of the function optc3_set_vrr_m_const. This
> function expects a double as a parameter in a code that is not allowed
> to have FPU operations. After further investigation, it became clear
> that optc3_set_vrr_m_const was never invoked, so we can safely drop this
> function and fix the ld issue.
>
> Cc: Alex Deucher <alexander.deucher at amd.com>
> Cc: Melissa Wen <mwen at igalia.com>
> Reported-by: Stephen Rothwell <sfr at canb.auug.org.au>
> Reported-by: Michael Ellerman <mpe at ellerman.id.au>
> Signed-off-by: Rodrigo Siqueira <Rodrigo.Siqueira at amd.com>
> ---
> drivers/gpu/drm/amd/display/dc/dcn30/dcn30_optc.c | 8 --------
> drivers/gpu/drm/amd/display/dc/dcn30/dcn30_optc.h | 3 ---
> drivers/gpu/drm/amd/display/dc/dcn32/dcn32_optc.c | 1 -
> drivers/gpu/drm/amd/display/dc/inc/hw/timing_generator.h | 2 --
> 4 files changed, 14 deletions(-)
Thanks, that fixes the build issue for me.
Tested-by: Michael Ellerman <mpe at ellerman.id.au>
cheers
More information about the amd-gfx
mailing list