drm/i915/gtt: Introduce init_pd
authorMika Kuoppala <mika.kuoppala@linux.intel.com>
Fri, 14 Jun 2019 16:43:44 +0000 (19:43 +0300)
committerMika Kuoppala <mika.kuoppala@linux.intel.com>
Mon, 17 Jun 2019 13:32:10 +0000 (16:32 +0300)
commit56ab674190b1f3047a186954d5e13cfaf77edc59
treee479801287d8c3e6d545ce5e3ad1fc97f822cc65
parent4fba8764b6db821ed632df38156e702a49eb1b5d
drm/i915/gtt: Introduce init_pd

All page directories, excluding last level, are initialized with
pointer to next level page directories. Make common function for it.

Signed-off-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20190614164350.30415-4-mika.kuoppala@linux.intel.com
drivers/gpu/drm/i915/i915_gem_gtt.c