Repository navigation
Commit 1a7c5aa
committed
drm/apple: dcp-fabric: give an idle port's pipeline to a waiting display
A USB-C hub with a DP output enters DP alt mode with nothing behind it and
takes the only T8122 external pipeline; a monitor on the other port then
waits until the hub is unplugged. When a port with HPD up finds no free
pipeline, take one from a direct DP-alt port whose sink has never asserted
HPD during this DP-alt plug and that has no display connected.
Latch dp_hpd_seen on the port once its sink asserts HPD and clear it only
when leaving DP alt mode or committing SAFE, so a sleeping monitor that
drops HPD keeps its pipeline. Skip pipelines whose fixed output is busy or
failed, drop the reclaimed port's applied_valid so its next update is
routed again once a pipeline is free, and return any deactivation error
without reporting the waiting display as busy.
Add the matching port field and helper stub to the apple-dcp transaction
host selftest.
Signed-off-by: Eric Juta <[email protected]>1 parent 065904c commit 1a7c5aa
3 files changed
Lines changed: 72 additions & 1 deletion
File tree
- drivers/gpu/drm/apple
- tools/testing/selftests/drivers/gpu/apple-dcp
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
| 142 | + | |
| 143 | + | |
142 | 144 | | |
143 | 145 | | |
144 | 146 | | |
| |||
1930 | 1932 | | |
1931 | 1933 | | |
1932 | 1934 | | |
| 1935 | + | |
1933 | 1936 | | |
1934 | 1937 | | |
1935 | 1938 | | |
| |||
1963 | 1966 | | |
1964 | 1967 | | |
1965 | 1968 | | |
| 1969 | + | |
| 1970 | + | |
| 1971 | + | |
| 1972 | + | |
| 1973 | + | |
| 1974 | + | |
| 1975 | + | |
| 1976 | + | |
| 1977 | + | |
| 1978 | + | |
| 1979 | + | |
| 1980 | + | |
| 1981 | + | |
| 1982 | + | |
| 1983 | + | |
| 1984 | + | |
| 1985 | + | |
| 1986 | + | |
| 1987 | + | |
| 1988 | + | |
| 1989 | + | |
| 1990 | + | |
| 1991 | + | |
| 1992 | + | |
| 1993 | + | |
| 1994 | + | |
| 1995 | + | |
| 1996 | + | |
| 1997 | + | |
| 1998 | + | |
| 1999 | + | |
| 2000 | + | |
| 2001 | + | |
| 2002 | + | |
| 2003 | + | |
| 2004 | + | |
| 2005 | + | |
| 2006 | + | |
| 2007 | + | |
| 2008 | + | |
| 2009 | + | |
| 2010 | + | |
| 2011 | + | |
| 2012 | + | |
| 2013 | + | |
| 2014 | + | |
| 2015 | + | |
| 2016 | + | |
| 2017 | + | |
| 2018 | + | |
| 2019 | + | |
| 2020 | + | |
| 2021 | + | |
| 2022 | + | |
| 2023 | + | |
| 2024 | + | |
1966 | 2025 | | |
1967 | 2026 | | |
1968 | 2027 | | |
| |||
2077 | 2136 | | |
2078 | 2137 | | |
2079 | 2138 | | |
| 2139 | + | |
2080 | 2140 | | |
2081 | 2141 | | |
2082 | 2142 | | |
| |||
2143 | 2203 | | |
2144 | 2204 | | |
2145 | 2205 | | |
| 2206 | + | |
| 2207 | + | |
2146 | 2208 | | |
2147 | 2209 | | |
2148 | 2210 | | |
| |||
2191 | 2253 | | |
2192 | 2254 | | |
2193 | 2255 | | |
| 2256 | + | |
| 2257 | + | |
| 2258 | + | |
| 2259 | + | |
| 2260 | + | |
| 2261 | + | |
| 2262 | + | |
| 2263 | + | |
2194 | 2264 | | |
2195 | 2265 | | |
2196 | 2266 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
| 61 | + | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
| 103 | + | |
103 | 104 | | |
104 | 105 | | |
105 | 106 | | |
| |||
0 commit comments