Patch "drm/i915/guc: Cancel GuC engine busyness worker synchronously" has been added to the 5.19-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    drm/i915/guc: Cancel GuC engine busyness worker synchronously

to the 5.19-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     drm-i915-guc-cancel-guc-engine-busyness-worker-synch.patch
and it can be found in the queue-5.19 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 7b1f0585e0fce26daaff10fa213f164baaf25872
Author: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@xxxxxxxxx>
Date:   Sat Aug 27 00:21:35 2022 +0000

    drm/i915/guc: Cancel GuC engine busyness worker synchronously
    
    [ Upstream commit aee5ae7c8492eaca2be20d202887c9c716ffc86f ]
    
    The worker is canceled in gt_park path, but earlier it was assumed that
    gt_park path cannot sleep and the cancel is asynchronous. This caused a
    race with suspend flow where the worker runs after suspend and causes an
    unclaimed register access warning. Cancel the worker synchronously since
    the gt_park is indeed allowed to sleep.
    
    v2: Fix author name and sign-off mismatch
    
    Signed-off-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@xxxxxxxxx>
    Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/4419
    Fixes: 77cdd054dd2c ("drm/i915/pmu: Connect engine busyness stats from GuC to pmu")
    Reviewed-by: Ashutosh Dixit <ashutosh.dixit@xxxxxxxxx>
    Signed-off-by: John Harrison <John.C.Harrison@xxxxxxxxx>
    Link: https://patchwork.freedesktop.org/patch/msgid/20220827002135.139349-1-umesh.nerlige.ramappa@xxxxxxxxx
    Signed-off-by: Joonas Lahtinen <joonas.lahtinen@xxxxxxxxxxxxxxx>
    (cherry picked from commit 31335aa8e08be3fe10c50aecd2f11aba77544a78)
    Signed-off-by: Rodrigo Vivi <rodrigo.vivi@xxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c b/drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c
index 96022f49f9b5..d7e4681d7297 100644
--- a/drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c
+++ b/drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c
@@ -1438,7 +1438,12 @@ void intel_guc_busyness_park(struct intel_gt *gt)
 	if (!guc_submission_initialized(guc))
 		return;
 
-	cancel_delayed_work(&guc->timestamp.work);
+	/*
+	 * There is a race with suspend flow where the worker runs after suspend
+	 * and causes an unclaimed register access warning. Cancel the worker
+	 * synchronously here.
+	 */
+	cancel_delayed_work_sync(&guc->timestamp.work);
 
 	/*
 	 * Before parking, we should sample engine busyness stats if we need to.



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux