]> www.infradead.org Git - users/jedix/linux-maple.git/commit
accel/ivpu: Fix missing MMU events if file_priv is unbound
authorKarol Wachowski <karol.wachowski@intel.com>
Wed, 29 Jan 2025 12:56:33 +0000 (13:56 +0100)
committerJacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com>
Mon, 3 Feb 2025 09:40:34 +0000 (10:40 +0100)
commit2f5bbea1807a064a1e4c1b385c8cea4f37bb4b17
treefd855fdf22306fd69ecea941fad6eaf6401fb8bd
parentb8c00323ae65e1bbee9f87a1e66592b589f53b50
accel/ivpu: Fix missing MMU events if file_priv is unbound

Move the ivpu_mmu_discard_events() function to the common portion of
the abort work function. This ensures it is called only once, even if
there are no faulty contexts in context_xa, to guarantee that MMU events
are discarded and new events are not missed.

Reviewed-by: Jacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com>
Signed-off-by: Karol Wachowski <karol.wachowski@intel.com>
Reviewed-by: Jeffrey Hugo <quic_jhugo@quicinc.com>
Signed-off-by: Jacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250129125636.1047413-4-jacek.lawrynowicz@linux.intel.com
drivers/accel/ivpu/ivpu_job.c