diff options
author | Jouni Högander <[email protected]> | 2023-02-21 10:53:04 +0200 |
---|---|---|
committer | Jani Nikula <[email protected]> | 2023-03-13 11:38:05 +0200 |
commit | 71c602103c74b277bef3d20a308874a33ec8326d (patch) | |
tree | f1997392088b1b8c0096371e9241a4ca4645cee3 /scripts/generate_rust_analyzer.py | |
parent | 897f453c106380e57600c19a0a0485ceb4f3b0d9 (diff) |
drm/i915/psr: Use calculated io and fast wake lines
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 <[email protected]>
Cc: José Roberto de Souza <[email protected]>
Fixes: 64cf40a125ff ("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 <[email protected]>
Reviewed-by: Stanislav Lisovskiy <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
(cherry picked from commit cb42e8ede5b475c096e473b86c356b1158b4bc3b)
Signed-off-by: Jani Nikula <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions