linux-stable/drivers/gpu/drm/vkms
Igor Torrente 16490922a9 drm: vkms: Alloc the compose frame using vzalloc
Currently, the memory to the composition frame is being allocated using
the kzmalloc. This comes with the limitation of maximum size of one
page size(which in the x86_64 is 4Kb and 4MB for default and hugepage
respectively).

Somes test of igt (e.g. kms_plane@pixel-format) uses more than 4MB when
testing some pixel formats like ARGB16161616 and the following error were
showing up when running kms_plane@plane-panning-bottom-right*:

[drm:vkms_composer_worker [vkms]] *ERROR* Cannot allocate memory for
output frame.

This problem is addessed by allocating the memory using kvzalloc that
circunvents this limitation.

V5: Improve the commit message and drop the debugging issues in VKMS
TO-DO(Melissa Wen).

Reviewed-by: Melissa Wen <mwen@igalia.com>
Signed-off-by: Igor Torrente <igormtorrente@gmail.com>
Signed-off-by: Melissa Wen <melissa.srw@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220404204515.42144-2-igormtorrente@gmail.com
2022-06-12 22:14:25 -01:00
..
Makefile
vkms_composer.c drm: vkms: Alloc the compose frame using vzalloc 2022-06-12 22:14:25 -01:00
vkms_crtc.c
vkms_drv.c drm/vkms: Create a debugfs file to get vkms config data 2021-07-08 21:44:13 +01:00
vkms_drv.h Cross-subsystem Changes: 2022-02-11 14:14:07 +10:00
vkms_output.c drm/vkms: add support for multiple overlay planes 2022-01-09 16:14:35 -01:00
vkms_plane.c dma-buf-map: Rename to iosys-map 2022-02-07 16:35:35 -08:00
vkms_writeback.c dma-buf-map: Rename to iosys-map 2022-02-07 16:35:35 -08:00