mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-10 07:44:23 +08:00
drm/v3d: wait for all jobs to finish before unregistering
Currently, we are only warning the user if the BIN or RENDER jobs don't finish before we unregister V3D. We must wait for all jobs to finish before unregistering. Therefore, warn the user if TFU or CSD jobs are not done by the time the driver is unregistered. Signed-off-by: Maíra Canal <mcanal@igalia.com> Reviewed-by: Iago Toral Quiroga <itoral@igalia.com> Signed-off-by: Maíra Canal <mairacanal@riseup.net> Link: https://patchwork.freedesktop.org/patch/msgid/20231023105927.101502-1-mcanal@igalia.com
This commit is contained in:
parent
3198a62eb8
commit
79d94360d5
@ -1072,6 +1072,8 @@ v3d_gem_destroy(struct drm_device *dev)
|
||||
*/
|
||||
WARN_ON(v3d->bin_job);
|
||||
WARN_ON(v3d->render_job);
|
||||
WARN_ON(v3d->tfu_job);
|
||||
WARN_ON(v3d->csd_job);
|
||||
|
||||
drm_mm_takedown(&v3d->mm);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user