]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/ttm: fix large buffer population trucation
authorRobert Beckett <bob.beckett@collabora.com>
Fri, 10 Dec 2021 19:50:05 +0000 (19:50 +0000)
committerMatthew Auld <matthew.auld@intel.com>
Tue, 14 Dec 2021 14:40:10 +0000 (14:40 +0000)
commitd2e46bb2e977c872ecb9bb2e0bc0d86b7ee61a2c
tree9ff18d3b9e3f98853de632ac162a8d993c7987ee
parent9f2a884b8c2cfdd1ab4a3b3f219f1c1899ecefcd
drm/i915/ttm: fix large buffer population trucation

ttm->num_pages is uint32_t which was causing very large buffers to
only populate a truncated size.

This fixes gem_create@create-clear igt test on large memory systems.

Fixes: d659f0ef280f ("drm/i915/ttm: add tt shmem backend")
Signed-off-by: Robert Beckett <bob.beckett@collabora.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211210195005.2582884-1-bob.beckett@collabora.com
drivers/gpu/drm/i915/gem/i915_gem_ttm.c