Skip to content
Snippets Groups Projects
Commit d12f8b76 authored by Boris Brezillon's avatar Boris Brezillon Committed by Tomeu Vizoso
Browse files

drm/panfrost: Make sure MMU context lifetime is not bound to panfrost_priv


Jobs can be in-flight when the file descriptor is closed (either because
the process did not terminate properly, or because it didn't wait for
all GPU jobs to be finished), and apparently panfrost_job_close() does
not cancel already running jobs. Let's refcount the MMU context object
so it's lifetime is no longer bound to the FD lifetime and running jobs
can finish properly without generating spurious page faults.

Reported-by: default avatarIcecream95 <ixn@keemail.me>
Fixes: 7282f764 ("drm/panfrost: Implement per FD address spaces")
Cc: <stable@vger.kernel.org>
Signed-off-by: default avatarBoris Brezillon <boris.brezillon@collabora.com>
parent f13478c9
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment