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:
0293bd5
)
drm/ttm: add set_pages_wb for handling page order more than zero
author
Roger He
<
[email protected]
>
Wed, 22 Nov 2017 07:09:33 +0000
(15:09 +0800)
committer
Alex Deucher
<
[email protected]
>
Wed, 6 Dec 2017 17:48:14 +0000
(12:48 -0500)
Reviewed-by: Chunming Zhou <
[email protected]
>
Reviewed-by: Christian König <
[email protected]
>
Signed-off-by: Roger He <
[email protected]
>
Signed-off-by: Alex Deucher <
[email protected]
>
drivers/gpu/drm/ttm/ttm_page_alloc.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/ttm/ttm_page_alloc.c
b/drivers/gpu/drm/ttm/ttm_page_alloc.c
index bf25ba25bfc6948a65e78cb5de31aa29e7c2bed1..359a641d3211cf7c8bbb0f92e169067a60b124f0 100644
(file)
--- a/
drivers/gpu/drm/ttm/ttm_page_alloc.c
+++ b/
drivers/gpu/drm/ttm/ttm_page_alloc.c
@@
-223,6
+223,17
@@
static struct kobj_type ttm_pool_kobj_type = {
static struct ttm_pool_manager *_manager;
#ifndef CONFIG_X86
+static int set_pages_wb(struct page *page, int numpages)
+{
+#if IS_ENABLED(CONFIG_AGP)
+ int i;
+
+ for (i = 0; i < numpages; i++)
+ unmap_page_from_agp(page++);
+#endif
+ return 0;
+}
+
static int set_pages_array_wb(struct page **pages, int addrinarray)
{
#if IS_ENABLED(CONFIG_AGP)