]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/selftests: Avoid choosing zero for phys_sz
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 12 Feb 2020 08:54:32 +0000 (08:54 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 12 Feb 2020 10:14:06 +0000 (10:14 +0000)
commit37914abcf4baf3222e0536c4c8fe714b5867a63c
treed8e62a3347f541bdbd15a4464547a86d744bfc8e
parentd434e03bec4667f994461df94be69431dc8726cc
drm/i915/selftests: Avoid choosing zero for phys_sz

Make sure we avoid ending up with a phys_sz of 0, or for phys_sz to be
larger than the actual size.

Closes: https://patchwork.freedesktop.org/series/73320/
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Matthew Auld <matthew.auld@intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200212085432.1250807-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gem/selftests/i915_gem_object_blt.c