summaryrefslogtreecommitdiff
path: root/scripts/basic
diff options
context:
space:
mode:
authorAshutosh Dixit <ashutosh.dixit@intel.com>2024-10-22 13:03:49 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-03-07 18:25:31 +0100
commit5fe916b2c9c6044599aa16d5d4f6564bc8391ff4 (patch)
tree60f20789b6305cc8bf714d30cdf0ab4cf22b169d /scripts/basic
parent8ffd0390fc3f92b0e5f21074bfce465df5c4f090 (diff)
downloadlinux-5fe916b2c9c6044599aa16d5d4f6564bc8391ff4.tar.gz
linux-5fe916b2c9c6044599aa16d5d4f6564bc8391ff4.tar.bz2
linux-5fe916b2c9c6044599aa16d5d4f6564bc8391ff4.zip
drm/xe/oa: Signal output fences
[ Upstream commit 343dd246fd9b58e67b395153e8e7298bd250f943 ] Introduce 'struct xe_oa_fence' which includes the dma_fence used to signal output fences in the xe_sync array. The fences are signaled asynchronously. When there are no output fences to signal, the OA configuration wait is synchronously re-introduced into the ioctl. v2: Don't wait in the work, use callback + delayed work (Matt B) Use a single, not a per-fence spinlock (Matt Brost) v3: Move ofence alloc before job submission (Matt) Assert, don't fail, from dma_fence_add_callback (Matt) Additional dma_fence_get for dma_fence_wait (Matt) Change dma_fence_wait to non-interruptible (Matt) v4: Introduce last_fence to prevent uaf if stream is closed with pending OA config jobs v5: Remove oa_fence_lock, move spinlock back into xe_oa_fence to prevent uaf Suggested-by: Matthew Brost <matthew.brost@intel.com> Reviewed-by: Jonathan Cavitt <jonathan.cavitt@intel.com> Signed-off-by: Ashutosh Dixit <ashutosh.dixit@intel.com> Reviewed-by: Matthew Brost <matthew.brost@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20241022200352.1192560-5-ashutosh.dixit@intel.com Stable-dep-of: 5bd566703e16 ("drm/xe/oa: Allow oa_exponent value of 0") Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'scripts/basic')
0 files changed, 0 insertions, 0 deletions