Skip to content

Fix compilation issues when using i386

Rodrigo Siqueira amd-gfx 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4drm/amd/display: Fix __umoddi3 undefined for 32 bit compilationdrivers/gpu/drm/amd/display/dc/dcn32/dcn32_hwseq.c+3 -10 replies
2/4drm/amd/display: Fix __floatunsidf undefined for 32 bit compilationdrivers/gpu/drm/amd/display/dc/inc/hw/clk_mgr.h+1 -10 replies
3/4drm/amd/display: Fix __muldf3 undefined for 32 bit compilationdrivers/gpu/drm/amd/display/dc/clk_mgr/dcn32/dcn32_clk_mgr.c+2 -20 replies
4/4drm/amd/display: Fix __nedf2 undefined for 32 bit compilationdrivers/gpu/drm/amd/display/dc/clk_mgr/dcn32/dcn32_clk_mgr.c+7 -40 replies

Reviews trailers per patch

None of the 4 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchAlex DeucherRandy Dunlap
SeriesR-b A-b T-b
1/4
2/4
3/4
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/4] Fix compilation issues when using i386

Fix compilation issues when using i386

We recently got feedback from Randy about issues in the x86-32 compilation.I was able to reproduce a very similar issue by using:

- gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0
- make -j16 ARCH=i386
- amd-staging-drm-next

I'm able to see these issues:

ERROR: modpost: "__nedf2" [drivers/gpu/drm/amd/amdgpu/amdgpu.ko] undefined!
ERROR: modpost: "__muldf3" [drivers/gpu/drm/amd/amdgpu/amdgpu.ko] undefined!
ERROR: modpost: "__floatunsidf" [drivers/gpu/drm/amd/amdgpu/amdgpu.ko] undefined!
ERROR: modpost: "__umoddi3" [drivers/gpu/drm/amd/amdgpu/amdgpu.ko] undefined!

This patchset addresses each compilation issue in its own patch since I want to have an easy way to bisect display code in case of regressions. Please, let me know if you see any issue with these changes and if it fixes the 32-bit compilation. If you still see compilation issues, please, report:

- GCC version
- Config file
- Branch

Thanks
Siqueira

Rodrigo Siqueira (4):
drm/amd/display: Fix __umoddi3 undefined for 32 bit compilation drm/amd/display: Fix __floatunsidf undefined for 32 bit compilation drm/amd/display: Fix __muldf3 undefined for 32 bit compilation drm/amd/display: Fix __nedf2 undefined for 32 bit compilation

 .../amd/display/dc/clk_mgr/dcn32/dcn32_clk_mgr.c  | 15 +++++++++------
 .../gpu/drm/amd/display/dc/dcn32/dcn32_hwseq.c    |  4 +++-
 drivers/gpu/drm/amd/display/dc/inc/hw/clk_mgr.h   |  2 +-
 3 files changed, 13 insertions(+), 8 deletions(-)
Signature · 1 line
2.25.1