aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c
diff options
context:
space:
mode:
authorThomas Weißschuh <[email protected]>2025-04-30 09:20:13 +0000
committerThomas Gleixner <[email protected]>2025-05-02 18:57:11 +0000
commit0c314cda93258cd1f0055a278a6576b5d4aeabf5 (patch)
treea0ec96c1908d830fd02476fa01f54052777e9c2b /drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c
parenttimekeeping: Prevent coarse clocks going backwards (diff)
downloadkernel-0c314cda93258cd1f0055a278a6576b5d4aeabf5.tar.gz
kernel-0c314cda93258cd1f0055a278a6576b5d4aeabf5.zip
arm64: vdso: Work around invalid absolute relocations from GCC
All vDSO code needs to be completely position independent. Symbol references are marked as hidden so the compiler emits PC-relative relocations. However GCC emits absolute relocations for symbol-relative references with an offset >= 64KiB. After recent refactorings in the vDSO code this is the case in __arch_get_vdso_u_timens_data() with a page size of 64KiB. Work around the issue by preventing the optimizer from seeing the offsets. Fixes: 83a2a6b8cfc5 ("vdso/gettimeofday: Prepare do_hres_timens() for introduction of struct vdso_clock") Reported-by: Jan Stancek <[email protected]> Signed-off-by: Thomas Weißschuh <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Acked-by: Catalin Marinas <[email protected]> Link: https://lore.kernel.org/all/[email protected] Link: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120002 Closes: https://lore.kernel.org/lkml/aApGPAoctq_eoE2g@t14ultra/
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c')
0 files changed, 0 insertions, 0 deletions