]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gtt: Fix rounding for 36b
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 19 Jul 2019 13:07:37 +0000 (14:07 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 22 Jul 2019 20:37:29 +0000 (21:37 +0100)
commitf28c7ae4591d6999e105fa516b3a2389ff7428f1
tree8a58976ef98a10028b09d8d55b6bf9dda945aa6b
parent3dbbd71673f3fa36eacb98af689a28f6bd12d6c9
drm/i915/gtt: Fix rounding for 36b

The top-level page directory for 36b is a single entry, not multiple
like 32b. Fix up the rounding on the calculation of the size of the top
level so that we populate the 4th level correctly for 36b.

Reported-by: Jose Souza <jose.souza@intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Fixes: 4c5ad7d98b06 ("drm/i915/gtt: Recursive cleanup for gen8")
Cc: Abdiel Janulgue <abdiel.janulgue@linux.intel.com>
Cc: Jose Souza <jose.souza@intel.com>
Tested-by: José Roberto de Souza <jose.souza@intel.com>
Reviewed-by: Abdiel Janulgue <abdiel.janulgue@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190719130737.5835-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem_gtt.c