Skip to content

Commit 32f6c33

Browse files
lucasdemarchiThomas Hellström
authored andcommitted
drm/xe: Use _ULL for u64 division
Use DIV_ROUND_UP_ULL() so it also works on 32bit build. Fixes: dd08ebf ("drm/xe: Introduce a new DRM driver for Intel GPUs") Reviewed-by: Matt Roper <[email protected]> Signed-off-by: Lucas De Marchi <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] (cherry picked from commit 7b5bdb4) Signed-off-by: Thomas Hellström <[email protected]>
1 parent 03b72db commit 32f6c33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/xe/xe_device.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,7 @@ void xe_device_wmb(struct xe_device *xe)
613613
u32 xe_device_ccs_bytes(struct xe_device *xe, u64 size)
614614
{
615615
return xe_device_has_flat_ccs(xe) ?
616-
DIV_ROUND_UP(size, NUM_BYTES_PER_CCS_BYTE(xe)) : 0;
616+
DIV_ROUND_UP_ULL(size, NUM_BYTES_PER_CCS_BYTE(xe)) : 0;
617617
}
618618

619619
bool xe_device_mem_access_ongoing(struct xe_device *xe)

0 commit comments

Comments
 (0)