Patch "drm/i915/guc/slpc: Apply min softlimit correctly" has been added to the 6.4-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/slpc: Apply min softlimit correctly

to the 6.4-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-slpc-apply-min-softlimit-correctly.patch
and it can be found in the queue-6.4 subdirectory.

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



commit a3d25a66267ecaf9c884a0ed6ea20fefced0c425
Author: Vinay Belgaumkar <vinay.belgaumkar@xxxxxxxxx>
Date:   Tue Jun 20 18:42:57 2023 -0700

    drm/i915/guc/slpc: Apply min softlimit correctly
    
    [ Upstream commit 3e49de73fb89272dea01ba420c7ccbcf6b96aed7 ]
    
    The scenario being fixed here is depicted in the following sequence-
    
    modprobe i915
    echo 1 > /sys/class/drm/card0/gt/gt0/slpc_ignore_eff_freq
    echo 300 > /sys/class/drm/card0/gt_min_freq_mhz (RPn)
    cat /sys/class/drm/card0/gt_cur_freq_mhz --> cur == RPn as expected
    echo 1 > /sys/kernel/debug/dri/0/gt0/reset --> reset
    cat /sys/class/drm/card0/gt_min_freq_mhz --> cached freq is RPn
    cat /sys/class/drm/card0/gt_cur_freq_mhz --> it's not RPn, but RPe!!
    
    When SLPC reinitializes, it sets SLPC min freq to efficient frequency.
    Even if we disable efficient freq post that, we should restore the cached
    min freq (via H2G) for it to take effect.
    
    v2: Clarify commit message (Ashutosh)
    
    Fixes: 95ccf312a1e4 ("drm/i915/guc/slpc: Allow SLPC to use efficient frequency")
    Reviewed-by: Ashutosh Dixit <ashutosh.dixit@xxxxxxxxx>
    Signed-off-by: Vinay Belgaumkar <vinay.belgaumkar@xxxxxxxxx>
    Signed-off-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@xxxxxxxxx>
    Link: https://patchwork.freedesktop.org/patch/msgid/20230621014257.1769564-1-vinay.belgaumkar@xxxxxxxxx
    (cherry picked from commit da86b2b13f1d1ca26745b951ac94421f3137539a)
    Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@xxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/gpu/drm/i915/gt/uc/intel_guc_slpc.c b/drivers/gpu/drm/i915/gt/uc/intel_guc_slpc.c
index 56dbba1ef6684..cc18e8f664864 100644
--- a/drivers/gpu/drm/i915/gt/uc/intel_guc_slpc.c
+++ b/drivers/gpu/drm/i915/gt/uc/intel_guc_slpc.c
@@ -606,7 +606,7 @@ static int slpc_set_softlimits(struct intel_guc_slpc *slpc)
 		if (unlikely(ret))
 			return ret;
 		slpc_to_gt(slpc)->defaults.min_freq = slpc->min_freq_softlimit;
-	} else if (slpc->min_freq_softlimit != slpc->min_freq) {
+	} else {
 		return intel_guc_slpc_set_min_freq(slpc,
 						   slpc->min_freq_softlimit);
 	}



[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