projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
935e8de
)
drm/i915/bdw: Free correct number of ppgtt pages
author
Ben Widawsky
<
[email protected]
>
Fri, 8 Nov 2013 05:40:48 +0000
(21:40 -0800)
committer
Daniel Vetter
<
[email protected]
>
Thu, 14 Nov 2013 08:33:10 +0000
(09:33 +0100)
I am unclear how this got messed up in the shuffle, but it did.
Cc: Imre Deak <
[email protected]
>
Signed-off-by: Ben Widawsky <
[email protected]
>
Signed-off-by: Daniel Vetter <
[email protected]
>
drivers/gpu/drm/i915/i915_gem_gtt.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/i915/i915_gem_gtt.c
b/drivers/gpu/drm/i915/i915_gem_gtt.c
index 3620a1b0a73cbcea019cbd5503250410e51f2807..5a3cc3189f1fd6545b1e0c79ca1ea0598d9a5f72 100644
(file)
--- a/
drivers/gpu/drm/i915/i915_gem_gtt.c
+++ b/
drivers/gpu/drm/i915/i915_gem_gtt.c
@@
-335,8
+335,8
@@
static void gen8_ppgtt_cleanup(struct i915_address_space *vm)
kfree(ppgtt->gen8_pt_dma_addr[i]);
}
- __free_pages(ppgtt->gen8_pt_pages,
ppgtt->num_pt_pages << PAGE_SHIFT
);
- __free_pages(ppgtt->pd_pages,
ppgtt->num_pd_pages << PAGE_SHIFT
);
+ __free_pages(ppgtt->gen8_pt_pages,
get_order(ppgtt->num_pt_pages << PAGE_SHIFT)
);
+ __free_pages(ppgtt->pd_pages,
get_order(ppgtt->num_pd_pages << PAGE_SHIFT)
);
}
/**