Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/i915/selftests: handle object rounding

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

+1
+1
drivers/gpu/drm/i915/gt/selftest_migrate.c
··· 49 49 if (IS_ERR(src)) 50 50 return 0; 51 51 52 + sz = src->base.size; 52 53 dst = i915_gem_object_create_internal(i915, sz); 53 54 if (IS_ERR(dst)) 54 55 goto err_free_src;