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)
commit6707b755060563cb6b10d3c390fae10a600eb19d
tree302917733f0e363e81a3f80b61b1937a7e31a169
parent364e7d3058fc94fc9a158872a3c2e2a4605324db
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: 2081e8dcf1ee ("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