OSDN Git Service

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)
commit04364138ce9bd812e8eeda84febf7259e27ff57d
tree8a58976ef98a10028b09d8d55b6bf9dda945aa6b
parent0cc35a9c8279da03c34547830d5140cf38f7ce02
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: 1eda701eace2 ("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