Re: [PATCH] drm/i915/ttm: fix 32b build

2022-07-13 Thread Das, Nirmoy
Reviewed-by: Nirmoy Das On 7/12/2022 7:40 PM, Matthew Auld wrote: 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 th

[PATCH] drm/i915/ttm: fix 32b build

2022-07-12 Thread Matthew Auld
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 ty