]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gem: sanity check object size in gem_create
authorMatthew Auld <matthew.auld@intel.com>
Thu, 14 Jan 2021 18:24:01 +0000 (18:24 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 15 Jan 2021 08:00:03 +0000 (08:00 +0000)
commit56f2e62245aea22dcab093f04d729289cc2d1a34
tree36fab23505a65ebbc49209879512e6f37d6bbd74
parent0a429c0924173822ef4591eede2eb36c54e8a8a5
drm/i915/gem: sanity check object size in gem_create

Depending on the regions min_page_size we might need to adjust the
object size, ensure this matches our expectations.

Suggested-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20210114182402.840247-2-matthew.auld@intel.com
drivers/gpu/drm/i915/gem/i915_gem_create.c