OSDN Git Service

drm/panfrost: Clear MMU irqs before handling the fault
authorBoris Brezillon <boris.brezillon@collabora.com>
Fri, 5 Feb 2021 11:17:55 +0000 (12:17 +0100)
committerBoris Brezillon <boris.brezillon@collabora.com>
Mon, 15 Feb 2021 08:43:32 +0000 (09:43 +0100)
commit3aa0a80fc692c9959c261f4c5bfe9c23ddd90562
tree62095c2379460ca691400a08a8138bfe2a203fb9
parent1007377002ea665ede38e18ca7122c94b05394ca
drm/panfrost: Clear MMU irqs before handling the fault

When a fault is handled it will unblock the GPU which will continue
executing its shader and might fault almost immediately on a different
page. If we clear interrupts after handling the fault we might miss new
faults, so clear them before.

Cc: <stable@vger.kernel.org>
Fixes: 187d2929206e ("drm/panfrost: Add support for GPU heap allocations")
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Steven Price <steven.price@arm.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210205111757.585248-2-boris.brezillon@collabora.com
drivers/gpu/drm/panfrost/panfrost_mmu.c