]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/blt: fixup block_size rounding
authorMatthew Auld <matthew.auld@intel.com>
Mon, 28 Oct 2019 22:03:25 +0000 (22:03 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 29 Oct 2019 06:57:20 +0000 (06:57 +0000)
commita2d3db41e48f8f97bf42f51b09223190595d421e
treee7bafdec97d87cfa4cba69b1c8874ac6bf7b9ce9
parenteb69c67196d24da4b41c367434aebe0d6deb8f1a
drm/i915/blt: fixup block_size rounding

There is nothing to say that the obj->base.size is actually a multiple
of the block_size.

v2: Use round_up() as block_size is a power-of-two

Reported-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
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/20191028220325.9325-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gem/i915_gem_object_blt.c