]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: use correct rounding macro for 64-bit
authorDave Airlie <airlied@redhat.com>
Thu, 10 Jun 2021 02:59:00 +0000 (12:59 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 10 Jun 2021 03:34:08 +0000 (13:34 +1000)
commitd5fca39d3a991d2694b81d87455fb01ee0e2a6f1
treebe53bf2c52b3ce3f6c1188dcd068f1fe2885cccb
parent8f1abdb67bfd20b962ca4f23d068f9b1b279f174
drm/amdgpu: use correct rounding macro for 64-bit

This fixes 32-bit arm build due to lack of 64-bit divides.

Fixes: 5564fe475c05 ("drm/ttm: flip the switch for driver allocated resources v2")
Link: https://patchwork.freedesktop.org/patch/438442/
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c