]> 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)
commita2e0657c66f3a9e20cee0d3662cd5741940955ac
tree302917733f0e363e81a3f80b61b1937a7e31a169
parenteaec47a06d6e6bd9afdb2c8281df38e3da723b91
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: 8ff3e58f03bc ("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