diff mbox

fix bug in function gen8_ppgtt_clear_range, passed wrong ptr to kunmap_px.

Message ID 1460206830-2536-1-git-send-email-enpengxu@gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

leo xu April 9, 2016, 1 p.m. UTC
From: Enpeng Xu <enpengxu@gmail.com>

Signed-off-by: Enpeng Xu <enpengxu@gmail.com>
---
 drivers/gpu/drm/i915/i915_gem_gtt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Matthew Auld April 9, 2016, 3:25 p.m. UTC | #1
There's already a patch in the works for this:
https://patchwork.freedesktop.org/patch/80078/

Regards,
Matt
leo xu April 9, 2016, 4:20 p.m. UTC | #2
I found this issue when i run glbenchmark25, anyway, good to know, thanks.
Regards
Enpeng

On Saturday, April 9, 2016, Matthew Auld <matthew.william.auld@gmail.com>
wrote:
> There's already a patch in the works for this:
> https://patchwork.freedesktop.org/patch/80078/
>
> Regards,
> Matt
>
diff mbox

Patch

diff --git a/drivers/gpu/drm/i915/i915_gem_gtt.c b/drivers/gpu/drm/i915/i915_gem_gtt.c
index 49e4f26..527eca7 100644
--- a/drivers/gpu/drm/i915/i915_gem_gtt.c
+++ b/drivers/gpu/drm/i915/i915_gem_gtt.c
@@ -746,7 +746,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) {