From: Matthew Brost <matthew.brost@intel.com>
To: <intel-xe@lists.freedesktop.org>
Cc: lucas.demarchi@intel.com, Matthew Brost <matthew.brost@intel.com>
Subject: [PATCH v2 3/3] drm/xe: Use ordered WQ for TLB invalidation fences
Date: Mon, 1 Apr 2024 15:19:13 -0700 [thread overview]
Message-ID: <20240401221913.139672-4-matthew.brost@intel.com> (raw)
In-Reply-To: <20240401221913.139672-1-matthew.brost@intel.com>
TLB invalidation fences need to be ordered within an exec queue and if
an unordered WQ is used TLB invalidation fences could be reordered. Use
an ordered WQ to fix this.
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
---
drivers/gpu/drm/xe/xe_pt.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/xe/xe_pt.c b/drivers/gpu/drm/xe/xe_pt.c
index 580fe869b414..8f2ba4472ad0 100644
--- a/drivers/gpu/drm/xe/xe_pt.c
+++ b/drivers/gpu/drm/xe/xe_pt.c
@@ -1105,7 +1105,7 @@ static void invalidation_fence_cb(struct dma_fence *fence,
trace_xe_gt_tlb_invalidation_fence_cb(&ifence->base);
if (!ifence->fence->error) {
- queue_work(system_wq, &ifence->work);
+ queue_work(ifence->gt->ordered_wq, &ifence->work);
} else {
ifence->base.base.error = ifence->fence->error;
dma_fence_signal(&ifence->base.base);
--
2.34.1
next prev parent reply other threads:[~2024-04-01 22:18 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-01 22:19 [PATCH v2 0/3] Rework work queue usage Matthew Brost
2024-04-01 22:19 ` [PATCH v2 1/3] drm/xe: Use ordered wq for preempt fence waiting Matthew Brost
2024-04-02 5:14 ` Lucas De Marchi
2024-04-03 14:13 ` Lucas De Marchi
2024-04-01 22:19 ` [PATCH v2 2/3] drm/xe: Use device, gt ordered work queues for resource cleanup Matthew Brost
2024-04-01 22:19 ` Matthew Brost [this message]
2024-04-01 22:24 ` ✓ CI.Patch_applied: success for Rework work queue usage Patchwork
2024-04-01 22:24 ` ✓ CI.checkpatch: " Patchwork
2024-04-01 22:25 ` ✓ CI.KUnit: " Patchwork
2024-04-01 22:36 ` ✓ CI.Build: " Patchwork
2024-04-01 22:39 ` ✓ CI.Hooks: " Patchwork
2024-04-01 22:41 ` ✓ CI.checksparse: " Patchwork
2024-04-01 23:17 ` ✓ CI.BAT: " Patchwork
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240401221913.139672-4-matthew.brost@intel.com \
--to=matthew.brost@intel.com \
--cc=intel-xe@lists.freedesktop.org \
--cc=lucas.demarchi@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox