Skip to content

Commit

Permalink
drm/i915/selftests: handle object rounding
Browse files Browse the repository at this point in the history
Ensure we account for any object rounding due to min_page_size
restrictions.

Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Cc: Ramalingam C <ramalingam.c@intel.com>
Reviewed-by: Ramalingam C <ramalingam.c@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211206112539.3149779-4-matthew.auld@intel.com
  • Loading branch information
Matthew Auld committed Dec 8, 2021
1 parent 31d7074 commit 97c8ef4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/gpu/drm/i915/gt/selftest_migrate.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ static int copy(struct intel_migrate *migrate,
if (IS_ERR(src))
return 0;

sz = src->base.size;
dst = i915_gem_object_create_internal(i915, sz);
if (IS_ERR(dst))
goto err_free_src;
Expand Down

0 comments on commit 97c8ef4

Please sign in to comment.