Skip to content
Commit ced7866d authored by Matthew Auld's avatar Matthew Auld Committed by Rodrigo Vivi
Browse files

drm/i915/ttm: fix 32b build



Since segment_pages is no longer a compile time constant, it looks the
DIV_ROUND_UP(node->size, segment_pages) breaks the 32b build. Simplest
is just to use the ULL variant, but really we should need not need more
than u32 for the page alignment (also we are limited by that due to the
sg->length type), so also make it all u32.

Reported-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Fixes: aff1e0b0

 ("drm/i915/ttm: fix sg_table construction")
Signed-off-by: default avatarMatthew Auld <matthew.auld@intel.com>
Cc: Nirmoy Das <nirmoy.das@linux.intel.com>
Reviewed-by: default avatarNirmoy Das <nirmoy.das@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220712174050.592550-1-matthew.auld@intel.com
(cherry picked from commit 9306b2b2

)
Signed-off-by: default avatarRodrigo Vivi <rodrigo.vivi@intel.com>
parent 333991c4
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment