]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - releases/4.16.14/drm-psr-fix-missed-entry-in-psr-setup-time-table.patch
drop queue-4.14/mips-make-sure-dt-memory-regions-are-valid.patch
[thirdparty/kernel/stable-queue.git] / releases / 4.16.14 / drm-psr-fix-missed-entry-in-psr-setup-time-table.patch
1 From bdcc02cf1bb508fc700df7662f55058f651f2621 Mon Sep 17 00:00:00 2001
2 From: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
3 Date: Fri, 11 May 2018 12:51:42 -0700
4 Subject: drm/psr: Fix missed entry in PSR setup time table.
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8
9 From: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
10
11 commit bdcc02cf1bb508fc700df7662f55058f651f2621 upstream.
12
13 Entry corresponding to 220 us setup time was missing. I am not aware of
14 any specific bug this fixes, but this could potentially result in enabling
15 PSR on a panel with a higher setup time requirement than supported by the
16 hardware.
17
18 I verified the value is present in eDP spec versions 1.3, 1.4 and 1.4a.
19
20 Fixes: 6608804b3d7f ("drm/dp: Add drm_dp_psr_setup_time()")
21 Cc: stable@vger.kernel.org
22 Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
23 Cc: Jose Roberto de Souza <jose.souza@intel.com>
24 Cc: dri-devel@lists.freedesktop.org
25 Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
26 Reviewed-by: Tarun Vyas <tarun.vyas@intel.com>
27 Signed-off-by: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
28 Signed-off-by: Jani Nikula <jani.nikula@intel.com>
29 Link: https://patchwork.freedesktop.org/patch/msgid/20180511195145.3829-3-dhinakaran.pandiyan@intel.com
30 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
31
32 ---
33 drivers/gpu/drm/drm_dp_helper.c | 1 +
34 1 file changed, 1 insertion(+)
35
36 --- a/drivers/gpu/drm/drm_dp_helper.c
37 +++ b/drivers/gpu/drm/drm_dp_helper.c
38 @@ -1141,6 +1141,7 @@ int drm_dp_psr_setup_time(const u8 psr_c
39 static const u16 psr_setup_time_us[] = {
40 PSR_SETUP_TIME(330),
41 PSR_SETUP_TIME(275),
42 + PSR_SETUP_TIME(220),
43 PSR_SETUP_TIME(165),
44 PSR_SETUP_TIME(110),
45 PSR_SETUP_TIME(55),