mirror of
https://github.com/torvalds/linux.git
synced 2026-06-05 04:56:13 +02:00
Short summary of fixes pull:
v3d: - Fix fence locking -----BEGIN PGP SIGNATURE----- iQFPBAABCgA5FiEEchf7rIzpz2NEoWjlaA3BHVMLeiMFAmjebgkbFIAAAAAABAAO bWFudTIsMi41KzEuMTEsMiwyAAoJEGgNwR1TC3ojhX4H/01nqPgSl2lW8q2nkvxc f3As62A29rMlDiNoknzGfV/c0AbQg7zOXKsa2Ea2Ri/o4eQdNAWNLL2Q3PMKiRKd M8KHJtRDfeGBxKn2BfqsCpzbk5iS5tiMTVoQ1BqFzrmjmhh/5+4uBOUrrN6A5SC0 sOYNSoXlQUY5XJuyHWFLGIUmCGkY7TswxbfUVpaIMZH/FEQ9Ne6U9gLieItxWQZg z5hgx1QafCILt90QBRR+NpvF76t8FWqjP/EURXelTYnvRvlPXSIlk6gwU7rvcGRj KDzBaTxobc7xmT0nJgJFRd3mv3uxVt6kIROGTr6742y9b5GG/GQJ4bqg1LcK+cf6 X9w= =VoWO -----END PGP SIGNATURE----- Merge tag 'drm-misc-next-fixes-2025-10-02' of https://gitlab.freedesktop.org/drm/misc/kernel into drm-next Short summary of fixes pull: v3d: - Fix fence locking Signed-off-by: Dave Airlie <airlied@redhat.com> From: Thomas Zimmermann <tzimmermann@suse.de> Link: https://lore.kernel.org/r/20251002122303.GA21323@linux.fritz.box
This commit is contained in:
commit
bae04c9658
|
|
@ -62,6 +62,8 @@ struct v3d_queue_state {
|
|||
/* Currently active job for this queue */
|
||||
struct v3d_job *active_job;
|
||||
spinlock_t queue_lock;
|
||||
/* Protect dma fence for signalling job completion */
|
||||
spinlock_t fence_lock;
|
||||
};
|
||||
|
||||
/* Performance monitor object. The perform lifetime is controlled by userspace
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ struct dma_fence *v3d_fence_create(struct v3d_dev *v3d, enum v3d_queue q)
|
|||
fence->dev = &v3d->drm;
|
||||
fence->queue = q;
|
||||
fence->seqno = ++queue->emit_seqno;
|
||||
dma_fence_init(&fence->base, &v3d_fence_ops, &queue->queue_lock,
|
||||
dma_fence_init(&fence->base, &v3d_fence_ops, &queue->fence_lock,
|
||||
queue->fence_context, fence->seqno);
|
||||
|
||||
return &fence->base;
|
||||
|
|
|
|||
|
|
@ -273,6 +273,7 @@ v3d_gem_init(struct drm_device *dev)
|
|||
seqcount_init(&queue->stats.lock);
|
||||
|
||||
spin_lock_init(&queue->queue_lock);
|
||||
spin_lock_init(&queue->fence_lock);
|
||||
}
|
||||
|
||||
spin_lock_init(&v3d->mm_lock);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user