Patch "drm/i915/psr: Use hw.adjusted mode when calculating io/fast wake times" has been added to the 5.15-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/psr: Use hw.adjusted mode when calculating io/fast wake times

to the 5.15-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-psr-use-hw.adjusted-mode-when-calculating-i.patch
and it can be found in the queue-5.15 subdirectory.

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



commit 8de19f6dca7ccecfae012a413f7191c373a72fef
Author: Jouni Högander <jouni.hogander@xxxxxxxxx>
Date:   Tue Jun 20 14:17:45 2023 +0300

    drm/i915/psr: Use hw.adjusted mode when calculating io/fast wake times
    
    [ Upstream commit 5311892a0ad1d301aafd53ca0154091b3eb407ea ]
    
    Encoder compute config is changing hw.adjusted mode. Uapi.adjusted mode
    doesn't get updated before psr compute config gets called. This causes io
    and fast wake line calculation using adjusted mode containing values before
    encoder adjustments. Fix this by using hw.adjusted mode instead of
    uapi.adjusted mode.
    
    Cc: Stanislav Lisovskiy <stanislav.lisovskiy@xxxxxxxxx>
    
    Signed-off-by: Jouni Högander <jouni.hogander@xxxxxxxxx>
    Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/8475
    Fixes: cb42e8ede5b4 ("drm/i915/psr: Use calculated io and fast wake lines")
    Reviewed-by: Mika Kahola <mika.kahola@xxxxxxxxx>
    Link: https://patchwork.freedesktop.org/patch/msgid/20230620111745.2870706-1-jouni.hogander@xxxxxxxxx
    (cherry picked from commit ef0af9db2a21257885116949f471fe5565b2f0ab)
    Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@xxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/gpu/drm/i915/display/intel_psr.c b/drivers/gpu/drm/i915/display/intel_psr.c
index cf1e92486cbc9..93d2fd4cd16b7 100644
--- a/drivers/gpu/drm/i915/display/intel_psr.c
+++ b/drivers/gpu/drm/i915/display/intel_psr.c
@@ -862,9 +862,9 @@ static bool _compute_psr2_wake_times(struct intel_dp *intel_dp,
 	}
 
 	io_wake_lines = intel_usecs_to_scanlines(
-		&crtc_state->uapi.adjusted_mode, io_wake_time);
+		&crtc_state->hw.adjusted_mode, io_wake_time);
 	fast_wake_lines = intel_usecs_to_scanlines(
-		&crtc_state->uapi.adjusted_mode, fast_wake_time);
+		&crtc_state->hw.adjusted_mode, fast_wake_time);
 
 	if (io_wake_lines > max_wake_lines ||
 	    fast_wake_lines > max_wake_lines)



[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