summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/vmwgfx/vmwgfx_mob.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2018-06-14 14:43:15 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2018-06-14 19:20:33 +0100
commit4a192c7e8b14a2bf8f30b1fac3599a7d391dfcf9 (patch)
treeedd6b70d40df46eaddb1763090ae88a89cbc0fdc /drivers/gpu/drm/vmwgfx/vmwgfx_mob.c
parent549fe88bf71d30563f20dcfd7970b7424bf07907 (diff)
drm/i915/gtt: Free unused page tables on unbind the context
As we cannot reliably change used page tables while the context is active, the earliest opportunity we have to recover excess pages is when the context becomes idle. So whenever we unbind the context (it must be idle, and indeed being evicted) free the unused ptes. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com> Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com> Cc: Matthew Auld <matthew.william.auld@gmail.com> Reviewed-by: Matthew Auld <matthew.william.auld@gmail.com> Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20180614134315.5900-2-chris@chris-wilson.co.uk
Diffstat (limited to 'drivers/gpu/drm/vmwgfx/vmwgfx_mob.c')
0 files changed, 0 insertions, 0 deletions