]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gem: Limit lmem scatterlist elements to UINT_MAX
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 2 Dec 2020 17:34:43 +0000 (17:34 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 2 Dec 2020 20:59:21 +0000 (20:59 +0000)
commita2843b3bd17e5a1c6b270709dc5bb0091eba1074
treebd5f040127790cfde0c53149dbc660093e952106
parent840291a7b90b97246d430227aa9a157b7f26e98c
drm/i915/gem: Limit lmem scatterlist elements to UINT_MAX

Adhere to the i915_sg_max_segment() limit on the lengths of individual
scatterlist elements, and in doing so split up very large chunks of lmem
into manageable pieces for the dma-mapping backend.

Reported-by: Venkata Sandeep Dhanalakota <venkata.s.dhanalakota@intel.com>
Suggested-by: Matthew Auld <matthew.auld@intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Venkata Sandeep Dhanalakota <venkata.s.dhanalakota@intel.com>
Cc: Matthew Auld <matthew.auld@intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20201202173444.14903-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gem/i915_gem_region.c
drivers/gpu/drm/i915/selftests/intel_memory_region.c