]> git.baikalelectronics.ru Git - kernel.git/commit
drm/etnaviv: fix crash in GPU suspend when init failed due to buffer placement
authorLucas Stach <l.stach@pengutronix.de>
Mon, 23 Jul 2018 12:27:23 +0000 (14:27 +0200)
committerLucas Stach <l.stach@pengutronix.de>
Mon, 6 Aug 2018 13:24:33 +0000 (15:24 +0200)
commit2cf85a1edf4613c064906ba4565cc82a577312d6
treebc81acaeaa17c14b39ef22f10704e62f5cb6ac27
parente1d49df187e0a3eac783fe04ff5ac579fee336c7
drm/etnaviv: fix crash in GPU suspend when init failed due to buffer placement

When the suballocator was unable to provide a suitable buffer for the MMUv1
linear window, we roll back the GPU initialization. As the GPU is runtime
resumed at that point we need to clear the kernel cmdbuf suballoc entry to
properly skip any attempt to manipulate the cmdbuf when the GPU gets shut
down in the runtime suspend later on.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
drivers/gpu/drm/etnaviv/etnaviv_gpu.c