Commit c0352d7
UPSTREAM: drm/i915/mst: read link status only when requested by sink in ESI
The link service irq vector in DPCD 0x2005 contains the link status
changed bit to indicate the status should be checked. Only read and
check the link status when requested by the sink.
This also reduces the confusion around the buffer size for the combined
ESI and link status. Alas, we still need to take into account that all
link status helpers expect a buffer of DP_LINK_STATUS_SIZE (6) while the
link status in ESI only has 4 bytes.
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Uma Shankar <uma.shankar@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220112110319.1172110-5-jani.nikula@intel.com
(cherry picked from commit 1d50942)
Signed-off-by: Drew Davenport <ddavenport@chromium.org>
BUG=b:235993998
TEST=build test
Backported using forklift.py
Change-Id: Ic7e1ad5f956c8b0e2237c113df8990200f1b896c1 parent 28fbcde commit c0352d7
1 file changed
+18
-23
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
77 | | - | |
78 | 76 | | |
79 | 77 | | |
80 | 78 | | |
| |||
2814 | 2812 | | |
2815 | 2813 | | |
2816 | 2814 | | |
2817 | | - | |
| 2815 | + | |
2818 | 2816 | | |
2819 | | - | |
2820 | | - | |
2821 | | - | |
| 2817 | + | |
2822 | 2818 | | |
2823 | 2819 | | |
2824 | 2820 | | |
| |||
3639 | 3635 | | |
3640 | 3636 | | |
3641 | 3637 | | |
3642 | | - | |
| 3638 | + | |
3643 | 3639 | | |
3644 | 3640 | | |
3645 | 3641 | | |
| 3642 | + | |
| 3643 | + | |
| 3644 | + | |
| 3645 | + | |
| 3646 | + | |
| 3647 | + | |
| 3648 | + | |
| 3649 | + | |
| 3650 | + | |
| 3651 | + | |
3646 | 3652 | | |
3647 | | - | |
| 3653 | + | |
3648 | 3654 | | |
3649 | 3655 | | |
3650 | 3656 | | |
| |||
3676 | 3682 | | |
3677 | 3683 | | |
3678 | 3684 | | |
3679 | | - | |
3680 | | - | |
3681 | | - | |
3682 | | - | |
3683 | | - | |
3684 | | - | |
3685 | | - | |
3686 | | - | |
3687 | | - | |
3688 | | - | |
3689 | | - | |
3690 | | - | |
| 3685 | + | |
3691 | 3686 | | |
3692 | 3687 | | |
3693 | 3688 | | |
| |||
3700 | 3695 | | |
3701 | 3696 | | |
3702 | 3697 | | |
3703 | | - | |
3704 | | - | |
3705 | | - | |
| 3698 | + | |
| 3699 | + | |
| 3700 | + | |
3706 | 3701 | | |
3707 | 3702 | | |
3708 | 3703 | | |
| |||
0 commit comments