Skip to content

Commit

Permalink
drm/i915: call kunmap_px on pt_vaddr
Browse files Browse the repository at this point in the history
We need to kunmap pt_vaddr and not pt itself, otherwise we end up
mapping a bunch of pages without ever unmapping them.

Cc: Chris Wilson <[email protected]>
Cc: Joonas Lahtinen <[email protected]>
Fixes: d1c54ac ("drm/i915/gtt: Introduce kmap|kunmap for dma page")
Signed-off-by: Matthew Auld <[email protected]>
Reviewed-by: Joonas Lahtinen <[email protected]>
Signed-off-by: Mika Kuoppala <[email protected]>
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
  • Loading branch information
matt-auld authored and mikuint committed Apr 19, 2016
1 parent 1d5c65e commit 44a7102
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/i915/i915_gem_gtt.c
Original file line number Diff line number Diff line change
Expand Up @@ -745,7 +745,7 @@ static void gen8_ppgtt_clear_pte_range(struct i915_address_space *vm,
num_entries--;
}

kunmap_px(ppgtt, pt);
kunmap_px(ppgtt, pt_vaddr);

pte = 0;
if (++pde == I915_PDES) {
Expand Down

0 comments on commit 44a7102

Please sign in to comment.