drm/i915: Write PDEs at init instead of enable
authorBen Widawsky <ben@bwidawsk.net>
Fri, 6 Dec 2013 22:11:16 +0000 (14:11 -0800)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 18 Dec 2013 14:31:26 +0000 (15:31 +0100)
commit9f273d48aa98cd193b19db9bb4c16bfb81c39052
treecbe2ec870bd7f1927c5698f44049a6027df6db4e
parentc7c48dfdff246d65408ff4f336978cc861722ca4
drm/i915: Write PDEs at init instead of enable

We won't be calling enable() for all PPGTTs. We do need to write PDEs
for all PPGTTs however. By moving the writing to init (which is called
for all PPGTTs) we should accomplish this.

ADD NOTE ABOUT PDE restore

TODO: Eventually, we should allocate the page tables on demand.

v2: Rebased on BDW. Only do PDEs for pre-gen8

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem_gtt.c