Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d7505557 authored by Sergey Senozhatsky's avatar Sergey Senozhatsky Committed by Alistair Delva
Browse files

BACKPORT: 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>
(cherry picked from commit ea86f3defd55f141a44146e66cbf8ffb683d60da)
Bug: 171450517
Test: run clash of clans game on Kled device
Change-Id: I1b585177c7ebfbd95a494fc4e65150cd522517cb
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/kernel/+/2519343


Reviewed-by: default avatarSuleiman Souhlal <suleiman@chromium.org>
Reviewed-by: default avatarGurchetan Singh <gurchetansingh@chromium.org>
Reviewed-by: default avatarDavid Stevens <stevensd@chromium.org>
Commit-Queue: Sergey Senozhatsky <senozhatsky@chromium.org>
Tested-by: default avatarSergey Senozhatsky <senozhatsky@chromium.org>
Signed-off-by: default avatarAlistair Delva <adelva@google.com>
parent a2e73af4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment