linux_dsm_epyc7002/drivers/gpu/drm/amd
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
..
acp treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
amdgpu drm/amdgpu/psp11: simplify the ucode register logic 2019-07-08 14:01:30 -05:00
amdkfd drm/amdkfd: Disable idle optimization for chained runlist 2019-07-03 14:32:10 -05:00
display drm/amd/display: avoid 64-bit division 2019-07-08 14:27:23 -05:00
include drm/amd/powerplay: make athub pg bit configured by pg_flags 2019-06-25 13:54:32 -05:00
powerplay drm/amd/powerplay: vega20: fix uninitialized variable use 2019-07-08 13:56:39 -05:00