1
0
Fork 0
alistair23-linux/drivers/gpu/drm/amd/display/dc
Arnd Bergmann 5f65ae344f drm/amd/display: avoid 64-bit division
On 32-bit architectures, dividing a 64-bit integer in the kernel
leads to a link error:

ERROR: "__udivdi3" [drivers/gpu/drm/amd/amdgpu/amdgpu.ko] undefined!
ERROR: "__divdi3" [drivers/gpu/drm/amd/amdgpu/amdgpu.ko] undefined!

Change the two recently introduced instances to a multiply+shift
operation that is also much cheaper on 32-bit architectures.
We can do that here, since both of them are really 32-bit numbers
that change a few percent.

Fixes: bedbbe6af4 ("drm/amd/display: Move link functions from dc to dc_link")
Fixes: f18bc4e53a ("drm/amd/display: update calculated bounding box logic for NV")
Acked-by: Slava Abramov <slava.abramov@amd.com>
Tested-by: Slava Abramov <slava.abramov@amd.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2019-07-08 14:27:23 -05:00
..
basics drm/amd: drop use of drmp.h in os_types.h 2019-06-10 22:59:45 +02:00
bios Merge branch 'drm-next' into drm-next-5.3 2019-06-25 08:42:25 -05:00
calcs Merge branch 'drm-next' into drm-next-5.3 2019-06-25 08:42:25 -05:00
clk_mgr Merge branch 'drm-next' into drm-next-5.3 2019-06-25 08:42:25 -05:00
core drm/amd/display: avoid 64-bit division 2019-07-08 14:27:23 -05:00
dce Merge branch 'drm-next' into drm-next-5.3 2019-06-25 08:42:25 -05:00
dce80 drm-misc-next for v5.3: 2019-06-14 11:44:24 +02:00
dce100 drm-misc-next for v5.3: 2019-06-14 11:44:24 +02:00
dce110 drm/amd/display: update infoframe after dig fe is turned on (v2) 2019-06-25 13:24:03 -05:00
dce112 drm-misc-next for v5.3: 2019-06-14 11:44:24 +02:00
dce120 Merge branch 'drm-next' into drm-next-5.3 2019-06-25 08:42:25 -05:00
dcn10 drm/amdgpu/display: drop ifdefs around comments 2019-06-25 13:23:17 -05:00
dcn20 drm/amd/display: avoid 64-bit division 2019-07-08 14:27:23 -05:00
dml drm/amd/display: add some parameters to validate bandwidth functions 2019-06-22 09:34:13 -05:00
dsc drm/amd/display: fix a couple of spelling mistakes 2019-06-27 11:22:57 -05:00
gpio Merge branch 'drm-next' into drm-next-5.3 2019-06-25 08:42:25 -05:00
inc drm/amd/display: Add Underflow Asserts to dc 2019-06-22 09:34:14 -05:00
irq Merge branch 'drm-next' into drm-next-5.3 2019-06-25 08:42:25 -05:00
virtual Merge branch 'drm-next' into drm-next-5.3 2019-06-25 08:42:25 -05:00
Makefile drm/amd/display: move vmid determination logic to a module 2019-06-22 09:34:14 -05:00
dc.h drm/amd/display: Add Underflow Asserts to dc 2019-06-22 09:34:14 -05:00
dc_bios_types.h drm/amd/display: Connect dig_fe to otg directly instead of calling bios 2019-01-25 16:15:37 -05:00
dc_ddc_types.h drm/amd/display: add i2c over aux failure handling 2019-03-19 15:36:49 -05:00
dc_dp_types.h drm/amd/display: update DSC MST DP virtual DPCD peer device enumeration policy 2019-06-22 09:34:13 -05:00
dc_dsc.h drm/amd/display: update DSC MST DP virtual DPCD peer device enumeration policy 2019-06-22 09:34:13 -05:00
dc_helper.c drm-misc-next for v5.3: 2019-06-14 11:44:24 +02:00
dc_hw_types.h drm/amd/display: move vmid determination logic to a module 2019-06-22 09:34:14 -05:00
dc_link.h drm/amd/display: Add DSC support for Navi (v2) 2019-06-22 09:34:07 -05:00
dc_stream.h drm/amd/display: Expose send immediate sdp message interface 2019-06-22 09:34:12 -05:00
dc_types.h drm/amd/display: add dwb stere caps and version 2019-06-22 09:34:13 -05:00
dm_event_log.h drm/amd/display: Add customizable tracing event 2018-11-30 12:02:49 -05:00
dm_helpers.h drm/amd/display: Add DSC support for Navi (v2) 2019-06-22 09:34:07 -05:00
dm_pp_smu.h drm/amd/display: Add DC core changes for DCN2 2019-06-21 18:59:35 -05:00
dm_services.h drm/amd/display: Move dm_read_reg_func to dc_helper. 2019-03-20 23:39:48 -05:00
dm_services_types.h drm/amd/display: PPLIB Hookup 2019-03-05 15:09:32 -05:00
irq_types.h drm/amd/display: Add Vline1 interrupt source to InterruptManager 2019-01-28 11:44:10 -05:00
os_types.h drm/amd: drop use of drmp.h in os_types.h 2019-06-10 22:59:45 +02:00