]> git.baikalelectronics.ru Git - kernel.git/commit
drm/lima: fix recovering from PLBU out of memory
authorVasily Khoruzhick <anarsoul@gmail.com>
Sat, 15 Feb 2020 03:50:26 +0000 (19:50 -0800)
committerQiang Yu <yuq825@gmail.com>
Mon, 17 Feb 2020 02:45:57 +0000 (10:45 +0800)
commitb83e3fb24bc746ef9f0bcfdbc916e64386a7b541
tree302917733f0e363e81a3f80b61b1937a7e31a169
parent258d2f81b2696d1af68e8561d2544d99b3aa619b
drm/lima: fix recovering from PLBU out of memory

It looks like on PLBU_OUT_OF_MEM interrupt we need to resume from where we
stopped, i.e. new PLBU heap start is old end. Also update end address
in GP frame to grow heap on 2nd and subsequent out of memory interrupts.

Fixes: 261d86e84f72 ("drm/lima: recover task by enlarging heap buffer")
Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
Signed-off-by: Qiang Yu <yuq825@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200215035026.3180698-1-anarsoul@gmail.com
drivers/gpu/drm/lima/lima_gp.c