FAILED: patch "[PATCH] drm/xe: Move LNL scheduling WA to xe_device.h" failed to apply to 6.11-stable tree
Subsystems (3)
[email protected]
maintainerThe patch below does not apply to the 6.11-stable tree.
If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to <[email protected]>.
To reproduce the conflict and resubmit, you may use the following commands:
git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-6.11.y
git checkout FETCH_HEAD
git cherry-pick -x 55e8a3f37e54eb1c7b914d6d5565a37282ec1978
# <resolve conflicts, build, test, etc.>
git commit -s
git send-email --to '<[email protected]>' --in-reply-to '2024110922-submitter-street-a3f8@gregkh' --subject-prefix 'PATCH 6.11.y' HEAD^..
Possible dependencies:
thanks,
greg k-h
------------------ original commit in Linus's tree ------------------
From 55e8a3f37e54eb1c7b914d6d5565a37282ec1978 Mon Sep 17 00:00:00 2001
From: Nirmoy Das <[email protected]>
Date: Tue, 29 Oct 2024 13:01:15 +0100
Subject: [PATCH] drm/xe: Move LNL scheduling WA to xe_device.h
Move LNL scheduling WA to xe_device.h so this can be used in other places without needing keep the same comment about removal of this WA in the future. The WA, which flushes work or workqueues, is now wrapped in macros and can be reused wherever needed.
drivers/gpu/drm/xe/xe_device.h +14 -0
@@ -178,4 +178,18 @@ void xe_device_declare_wedged(struct xe_device *xe);struct xe_file *xe_file_get (struct xe_file *xef);void xe_file_put (struct xe_file *xef); +/* +* Occasionally it is seen that the G2H worker starts running after a delay of more than +* a second even after being queued and activated by the Linux workqueue subsystem. This +* leads to G2H timeout error. The root cause of issue lies with scheduling latency of +* Lunarlake Hybrid CPU. Issue disappears if we disable Lunarlake atom cores from BIOS +* and this is beyond xe kmd. +* +* TODO: Drop this change once workqueue scheduling delay issue is fixed on LNL Hybrid CPU. +*/ +#define LNL_FLUSH_WORKQUEUE (wq__) \ + flush_workqueue(wq__) +#define LNL_FLUSH_WORK (wrk__) \ + flush_work(wrk__) +#endif
drivers/gpu/drm/xe/xe_guc_ct.c +1 -10
@@ -897,17 +897,8 @@ static int guc_ct_send_recv(struct xe_guc_ct *ct, const u32 *action, u32 len, ret =wait_event_timeout (ct->g2h_fence_wq, g2h_fence.done,HZ ); -/* -* Occasionally it is seen that the G2H worker starts running after a delay of more than -* a second even after being queued and activated by the Linux workqueue subsystem. This -* leads to G2H timeout error. The root cause of issue lies with scheduling latency of -* Lunarlake Hybrid CPU. Issue dissappears if we disable Lunarlake atom cores from BIOS -* and this is beyond xe kmd. -* -* TODO: Drop this change once workqueue scheduling delay issue is fixed on LNL Hybrid CPU. -*/ if (!ret) { -flush_work (&ct->g2h_worker); +LNL_FLUSH_WORK (&ct->g2h_worker);if (g2h_fence.done) {xe_gt_warn (gt,"G2H fence %u, action %04x, done\n" , g2h_fence.seqno, action[0 ]);