]> 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)
commitdb2573a6050716e5f1c018f4f9630e32ea45f952
tree8a58976ef98a10028b09d8d55b6bf9dda945aa6b
parentf1c19a9e571752d2e1d9ba477b1a7d070e6fa1f0
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: 7527dd0e9be2 ("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