Skip to content

Commit 97c8ef4

Browse files
committed
drm/i915/selftests: handle object rounding
Ensure we account for any object rounding due to min_page_size restrictions. Signed-off-by: Matthew Auld <[email protected]> Cc: Thomas Hellström <[email protected]> Cc: Ramalingam C <[email protected]> Reviewed-by: Ramalingam C <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 31d7074 commit 97c8ef4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/gpu/drm/i915/gt/selftest_migrate.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ static int copy(struct intel_migrate *migrate,
4949
if (IS_ERR(src))
5050
return 0;
5151

52+
sz = src->base.size;
5253
dst = i915_gem_object_create_internal(i915, sz);
5354
if (IS_ERR(dst))
5455
goto err_free_src;

0 commit comments

Comments
 (0)