diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2017-11-15 22:42:40 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-11-15 22:42:40 -0500 |
commit | 7c225c69f86c934e3be9be63ecde754e286838d7 (patch) | |
tree | ff2df419b0c4886b37407235f7d21215e4cf45e4 /drivers/gpu | |
parent | 6363b3f3ac5be096d08c8c504128befa0c033529 (diff) | |
parent | 1b7176aea0a924ac59c6a283129d3e8eb00aa915 (diff) |
Merge branch 'akpm' (patches from Andrew)
Merge updates from Andrew Morton:
- a few misc bits
- ocfs2 updates
- almost all of MM
* emailed patches from Andrew Morton <akpm@linux-foundation.org>: (131 commits)
memory hotplug: fix comments when adding section
mm: make alloc_node_mem_map a void call if we don't have CONFIG_FLAT_NODE_MEM_MAP
mm: simplify nodemask printing
mm,oom_reaper: remove pointless kthread_run() error check
mm/page_ext.c: check if page_ext is not prepared
writeback: remove unused function parameter
mm: do not rely on preempt_count in print_vma_addr
mm, sparse: do not swamp log with huge vmemmap allocation failures
mm/hmm: remove redundant variable align_end
mm/list_lru.c: mark expected switch fall-through
mm/shmem.c: mark expected switch fall-through
mm/page_alloc.c: broken deferred calculation
mm: don't warn about allocations which stall for too long
fs: fuse: account fuse_inode slab memory as reclaimable
mm, page_alloc: fix potential false positive in __zone_watermark_ok
mm: mlock: remove lru_add_drain_all()
mm, sysctl: make NUMA stats configurable
shmem: convert shmem_init_inodecache() to void
Unify migrate_pages and move_pages access checks
mm, pagevec: rename pagevec drained field
...
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 6 | ||||
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | 2 | ||||
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 2 | ||||
-rw-r--r-- | drivers/gpu/drm/etnaviv/etnaviv_gem.c | 6 | ||||
-rw-r--r-- | drivers/gpu/drm/i915/i915_gem_gtt.c | 2 | ||||
-rw-r--r-- | drivers/gpu/drm/i915/i915_gem_userptr.c | 4 | ||||
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_ttm.c | 2 |
7 files changed, 11 insertions, 13 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c index 60d8bedb694d..cd664832f9e8 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | |||
@@ -553,8 +553,7 @@ static int amdgpu_cs_parser_bos(struct amdgpu_cs_parser *p, | |||
553 | * invalidated it. Free it and try again | 553 | * invalidated it. Free it and try again |
554 | */ | 554 | */ |
555 | release_pages(e->user_pages, | 555 | release_pages(e->user_pages, |
556 | e->robj->tbo.ttm->num_pages, | 556 | e->robj->tbo.ttm->num_pages); |
557 | false); | ||
558 | kvfree(e->user_pages); | 557 | kvfree(e->user_pages); |
559 | e->user_pages = NULL; | 558 | e->user_pages = NULL; |
560 | } | 559 | } |
@@ -691,8 +690,7 @@ error_free_pages: | |||
691 | continue; | 690 | continue; |
692 | 691 | ||
693 | release_pages(e->user_pages, | 692 | release_pages(e->user_pages, |
694 | e->robj->tbo.ttm->num_pages, | 693 | e->robj->tbo.ttm->num_pages); |
695 | false); | ||
696 | kvfree(e->user_pages); | 694 | kvfree(e->user_pages); |
697 | } | 695 | } |
698 | } | 696 | } |
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c index 6149a47fe63d..0bda8f2a188a 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | |||
@@ -347,7 +347,7 @@ int amdgpu_gem_userptr_ioctl(struct drm_device *dev, void *data, | |||
347 | return 0; | 347 | return 0; |
348 | 348 | ||
349 | free_pages: | 349 | free_pages: |
350 | release_pages(bo->tbo.ttm->pages, bo->tbo.ttm->num_pages, false); | 350 | release_pages(bo->tbo.ttm->pages, bo->tbo.ttm->num_pages); |
351 | 351 | ||
352 | unlock_mmap_sem: | 352 | unlock_mmap_sem: |
353 | up_read(¤t->mm->mmap_sem); | 353 | up_read(¤t->mm->mmap_sem); |
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c index bc746131987f..d792959fac43 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | |||
@@ -659,7 +659,7 @@ int amdgpu_ttm_tt_get_user_pages(struct ttm_tt *ttm, struct page **pages) | |||
659 | return 0; | 659 | return 0; |
660 | 660 | ||
661 | release_pages: | 661 | release_pages: |
662 | release_pages(pages, pinned, 0); | 662 | release_pages(pages, pinned); |
663 | return r; | 663 | return r; |
664 | } | 664 | } |
665 | 665 | ||
diff --git a/drivers/gpu/drm/etnaviv/etnaviv_gem.c b/drivers/gpu/drm/etnaviv/etnaviv_gem.c index 57881167ccd2..bcc8c2d7c7c9 100644 --- a/drivers/gpu/drm/etnaviv/etnaviv_gem.c +++ b/drivers/gpu/drm/etnaviv/etnaviv_gem.c | |||
@@ -779,7 +779,7 @@ static struct page **etnaviv_gem_userptr_do_get_pages( | |||
779 | up_read(&mm->mmap_sem); | 779 | up_read(&mm->mmap_sem); |
780 | 780 | ||
781 | if (ret < 0) { | 781 | if (ret < 0) { |
782 | release_pages(pvec, pinned, 0); | 782 | release_pages(pvec, pinned); |
783 | kvfree(pvec); | 783 | kvfree(pvec); |
784 | return ERR_PTR(ret); | 784 | return ERR_PTR(ret); |
785 | } | 785 | } |
@@ -852,7 +852,7 @@ static int etnaviv_gem_userptr_get_pages(struct etnaviv_gem_object *etnaviv_obj) | |||
852 | } | 852 | } |
853 | } | 853 | } |
854 | 854 | ||
855 | release_pages(pvec, pinned, 0); | 855 | release_pages(pvec, pinned); |
856 | kvfree(pvec); | 856 | kvfree(pvec); |
857 | 857 | ||
858 | work = kmalloc(sizeof(*work), GFP_KERNEL); | 858 | work = kmalloc(sizeof(*work), GFP_KERNEL); |
@@ -886,7 +886,7 @@ static void etnaviv_gem_userptr_release(struct etnaviv_gem_object *etnaviv_obj) | |||
886 | if (etnaviv_obj->pages) { | 886 | if (etnaviv_obj->pages) { |
887 | int npages = etnaviv_obj->base.size >> PAGE_SHIFT; | 887 | int npages = etnaviv_obj->base.size >> PAGE_SHIFT; |
888 | 888 | ||
889 | release_pages(etnaviv_obj->pages, npages, 0); | 889 | release_pages(etnaviv_obj->pages, npages); |
890 | kvfree(etnaviv_obj->pages); | 890 | kvfree(etnaviv_obj->pages); |
891 | } | 891 | } |
892 | put_task_struct(etnaviv_obj->userptr.task); | 892 | put_task_struct(etnaviv_obj->userptr.task); |
diff --git a/drivers/gpu/drm/i915/i915_gem_gtt.c b/drivers/gpu/drm/i915/i915_gem_gtt.c index ad524cb0f6fc..7982ad817c11 100644 --- a/drivers/gpu/drm/i915/i915_gem_gtt.c +++ b/drivers/gpu/drm/i915/i915_gem_gtt.c | |||
@@ -1859,7 +1859,7 @@ static void i915_address_space_init(struct i915_address_space *vm, | |||
1859 | INIT_LIST_HEAD(&vm->unbound_list); | 1859 | INIT_LIST_HEAD(&vm->unbound_list); |
1860 | 1860 | ||
1861 | list_add_tail(&vm->global_link, &dev_priv->vm_list); | 1861 | list_add_tail(&vm->global_link, &dev_priv->vm_list); |
1862 | pagevec_init(&vm->free_pages, false); | 1862 | pagevec_init(&vm->free_pages); |
1863 | } | 1863 | } |
1864 | 1864 | ||
1865 | static void i915_address_space_fini(struct i915_address_space *vm) | 1865 | static void i915_address_space_fini(struct i915_address_space *vm) |
diff --git a/drivers/gpu/drm/i915/i915_gem_userptr.c b/drivers/gpu/drm/i915/i915_gem_userptr.c index 709efe2357ea..aa22361bd5a1 100644 --- a/drivers/gpu/drm/i915/i915_gem_userptr.c +++ b/drivers/gpu/drm/i915/i915_gem_userptr.c | |||
@@ -554,7 +554,7 @@ __i915_gem_userptr_get_pages_worker(struct work_struct *_work) | |||
554 | } | 554 | } |
555 | mutex_unlock(&obj->mm.lock); | 555 | mutex_unlock(&obj->mm.lock); |
556 | 556 | ||
557 | release_pages(pvec, pinned, 0); | 557 | release_pages(pvec, pinned); |
558 | kvfree(pvec); | 558 | kvfree(pvec); |
559 | 559 | ||
560 | i915_gem_object_put(obj); | 560 | i915_gem_object_put(obj); |
@@ -668,7 +668,7 @@ i915_gem_userptr_get_pages(struct drm_i915_gem_object *obj) | |||
668 | __i915_gem_userptr_set_active(obj, true); | 668 | __i915_gem_userptr_set_active(obj, true); |
669 | 669 | ||
670 | if (IS_ERR(pages)) | 670 | if (IS_ERR(pages)) |
671 | release_pages(pvec, pinned, 0); | 671 | release_pages(pvec, pinned); |
672 | kvfree(pvec); | 672 | kvfree(pvec); |
673 | 673 | ||
674 | return pages; | 674 | return pages; |
diff --git a/drivers/gpu/drm/radeon/radeon_ttm.c b/drivers/gpu/drm/radeon/radeon_ttm.c index bf69bf9086bf..1fdfc7a46072 100644 --- a/drivers/gpu/drm/radeon/radeon_ttm.c +++ b/drivers/gpu/drm/radeon/radeon_ttm.c | |||
@@ -597,7 +597,7 @@ release_sg: | |||
597 | kfree(ttm->sg); | 597 | kfree(ttm->sg); |
598 | 598 | ||
599 | release_pages: | 599 | release_pages: |
600 | release_pages(ttm->pages, pinned, 0); | 600 | release_pages(ttm->pages, pinned); |
601 | return r; | 601 | return r; |
602 | } | 602 | } |
603 | 603 | ||