diff options
author | 2022-07-28 16:33:47 -0400 | |
---|---|---|
committer | 2022-07-29 15:24:38 -0400 | |
commit | 64f991590ff4410041a70ee7ec2db079bc953929 (patch) | |
tree | 087a9c3502b91e8366c3e120a3f936695b5e2ce4 /kernel/fail_function.c | |
parent | drm/amdgpu: enable support for psp 13.0.4 block (diff) | |
download | linux-64f991590ff4410041a70ee7ec2db079bc953929.tar.gz linux-64f991590ff4410041a70ee7ec2db079bc953929.tar.bz2 linux-64f991590ff4410041a70ee7ec2db079bc953929.zip |
drm/amd/display: Fix a compilation failure on PowerPC caused by FPU code
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@amd.com>
Cc: Melissa Wen <mwen@igalia.com>
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Reported-by: Michael Ellerman <mpe@ellerman.id.au>
Tested-by: Michael Ellerman <mpe@ellerman.id.au>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'kernel/fail_function.c')
0 files changed, 0 insertions, 0 deletions