[PATCH 13/13] grrr
Matthew Auld
matthew.auld at intel.com
Thu Jun 10 16:52:31 UTC 2021
---
drivers/gpu/drm/i915/i915_scatterlist.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/i915/i915_scatterlist.c b/drivers/gpu/drm/i915/i915_scatterlist.c
index 98e99f20c156..957a300934ea 100644
--- a/drivers/gpu/drm/i915/i915_scatterlist.c
+++ b/drivers/gpu/drm/i915/i915_scatterlist.c
@@ -126,7 +126,7 @@ struct sg_table *i915_sg_from_buddy_resource(struct ttm_resource *res,
struct i915_ttm_buddy_resource *bman_res = to_ttm_buddy_resource(res);
struct i915_buddy_mm *mm = bman_res->mm;
const u64 size = res->num_pages << PAGE_SHIFT;
- const u64 max_segment = UINT_MAX;
+ const u64 max_segment = rounddown(UINT_MAX, PAGE_SIZE);
struct list_head *blocks = &bman_res->blocks;
struct i915_buddy_block *block;
struct scatterlist *sg;
--
2.26.3
More information about the Intel-gfx-trybot
mailing list