Skip to content

Commit

Permalink
drm/i915: Switch kunmap() to take the page not vaddr
Browse files Browse the repository at this point in the history
On converting from kunmap_atomic() to kunamp() one must remember the
latter takes the struct page, the former the vaddr.

Fixes: 48715f7 ("drm/i915: Avoid atomic context for error capture")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191125091409.1630385-1-chris@chris-wilson.co.uk
  • Loading branch information
Chris Wilson committed Nov 25, 2019
1 parent 3b054a1 commit bae21da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/i915/i915_gpu_error.c
Original file line number Diff line number Diff line change
Expand Up @@ -1045,7 +1045,7 @@ i915_error_object_create(struct drm_i915_private *i915,

s = kmap(page);
ret = compress_page(compress, s, dst);
kunmap(s);
kunmap(page);

drm_clflush_pages(&page, 1);

Expand Down

0 comments on commit bae21da

Please sign in to comment.