Skip to content
Snippets Groups Projects
Commit ea86f3de authored by Sergey Senozhatsky's avatar Sergey Senozhatsky Committed by Gerd Hoffmann
Browse files

drm/virtio: use kvmalloc for large allocations


We observed that some of virtio_gpu_object_shmem_init() allocations
can be rather costly - order 6 - which can be difficult to fulfill
under memory pressure conditions. Switch to kvmalloc_array() in
virtio_gpu_object_shmem_init() and let the kernel vmalloc the entries
array.

Signed-off-by: default avatarSergey Senozhatsky <senozhatsky@chromium.org>
Link: http://patchwork.freedesktop.org/patch/msgid/20201105014744.1662226-1-senozhatsky@chromium.org


Signed-off-by: default avatarGerd Hoffmann <kraxel@redhat.com>
parent f3f0e410
No related branches found
Tags amd-drm-next-5.16-2021-10-14
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment