]> 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)
commit695489d607b208585991f2bc98655ffe3f5733c4
treebd5f040127790cfde0c53149dbc660093e952106
parentd979adf87778f32b5e26ff9197a7d4c3f441d421
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