]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/psr: Use calculated io and fast wake lines
authorJouni Högander <jouni.hogander@intel.com>
Tue, 21 Feb 2023 08:53:04 +0000 (10:53 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Mar 2023 12:33:45 +0000 (13:33 +0100)
commit726f10a76679f7e67e1f6a077e8aadec1c2dbd28
treef720adbb4c485f2dfbb6632904734a03faa2b23a
parent7f6eb7aca5ec7600f086a52bf877e3d43a240699
drm/i915/psr: Use calculated io and fast wake lines

[ Upstream commit 9629b0c3ba3dc54d0634e5fa855beaccbbaf9a34 ]

Currently we are using hardcoded 7 for io and fast wake lines.

According to Bspec io and fast wake times are both 42us for
DISPLAY_VER >= 12 and 50us and 32us for older platforms.

Calculate line counts for these and configure them into PSR2_CTL
accordingly

Use 45 us for the fast wake calculation as 42 seems to be too
tight based on testing.

Bspec: 49274, 4289

Cc: Mika Kahola <mika.kahola@intel.com>
Cc: José Roberto de Souza <jose.souza@intel.com>
Fixes: 1c82d5ae0254 ("drm/i915/psr: Program default IO buffer Wake and Fast Wake")
Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/7725
Signed-off-by: Jouni Högander <jouni.hogander@intel.com>
Reviewed-by: Stanislav Lisovskiy <stanislav.lisovskiy@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230221085304.3382297-1-jouni.hogander@intel.com
(cherry picked from commit 1d43cdc7e3fdd066200175fa2f13c2c08054921d)
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/i915/display/intel_display_types.h
drivers/gpu/drm/i915/display/intel_psr.c