]> git.baikalelectronics.ru Git - kernel.git/commit
drm/vc4: Use drm_malloc_ab to fix large rendering jobs.
authorEric Anholt <eric@anholt.net>
Tue, 19 Jul 2016 18:32:44 +0000 (11:32 -0700)
committerEric Anholt <eric@anholt.net>
Sat, 20 Aug 2016 02:16:40 +0000 (19:16 -0700)
commit7ad32d4067ea296434658db8a34288f08ce9fdf0
tree62578e11c87a125a6a11c96a10e3b6df7db74f13
parent5f11e857af71e81a8bb00b30fc63bc3feae589d5
drm/vc4: Use drm_malloc_ab to fix large rendering jobs.

If you exceeded the size that kmalloc would return, you'd get a dmesg
warning and a return from the job submit.  We can handle much
allocations with vmalloc, and drm_malloc_ab makes that decision.

Fixes failure in piglit's scissor-many.

Signed-off-by: Eric Anholt <eric@anholt.net>
drivers/gpu/drm/vc4/vc4_gem.c