Commit 5bc4b43
drm/i915: Fix up locking around dumping requests lists
The debugfs dump of requests was confused about what state requires
the execlist lock versus the GuC lock. There was also a bunch of
duplicated messy code between it and the error capture code.
So refactor the hung request search into a re-usable function. And
reduce the span of the execlist state lock to only the execlist
specific code paths. In order to do that, also move the report of hold
count (which is an execlist only concept) from the top level dump
function to the lower level execlist specific function. Also, move the
execlist specific code into the execlist source file.
v2: Rename some functions and move to more appropriate files (Daniele).
v3: Rename new execlist dump function (Daniele)
Fixes: dc0dad3 ("drm/i915/guc: Fix for error capture after full GPU reset with GuC")
Signed-off-by: John Harrison <[email protected]>
Reviewed-by: Daniele Ceraolo Spurio <[email protected]>
Acked-by: Tvrtko Ursulin <[email protected]>
Cc: Matthew Brost <[email protected]>
Cc: Jani Nikula <[email protected]>
Cc: Joonas Lahtinen <[email protected]>
Cc: Rodrigo Vivi <[email protected]>
Cc: Matt Roper <[email protected]>
Cc: Umesh Nerlige Ramappa <[email protected]>
Cc: Michael Cheng <[email protected]>
Cc: Lucas De Marchi <[email protected]>
Cc: Bruce Chang <[email protected]>
Cc: Alan Previn <[email protected]>
Cc: Matthew Auld <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
(cherry picked from commit a4be3dc)
Signed-off-by: Rodrigo Vivi <[email protected]>1 parent 86d8ddc commit 5bc4b43
File tree
5 files changed
+73
-62
lines changed- drivers/gpu/drm/i915
- gt
5 files changed
+73
-62
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
248 | 248 | | |
249 | 249 | | |
250 | 250 | | |
251 | | - | |
252 | | - | |
| 251 | + | |
| 252 | + | |
253 | 253 | | |
254 | 254 | | |
255 | 255 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2094 | 2094 | | |
2095 | 2095 | | |
2096 | 2096 | | |
2097 | | - | |
2098 | | - | |
2099 | | - | |
2100 | | - | |
2101 | | - | |
2102 | | - | |
2103 | | - | |
2104 | | - | |
2105 | | - | |
2106 | | - | |
2107 | | - | |
2108 | 2097 | | |
2109 | 2098 | | |
2110 | 2099 | | |
| |||
2196 | 2185 | | |
2197 | 2186 | | |
2198 | 2187 | | |
2199 | | - | |
| 2188 | + | |
| 2189 | + | |
2200 | 2190 | | |
| 2191 | + | |
2201 | 2192 | | |
2202 | | - | |
2203 | | - | |
2204 | 2193 | | |
2205 | 2194 | | |
2206 | 2195 | | |
| |||
2209 | 2198 | | |
2210 | 2199 | | |
2211 | 2200 | | |
2212 | | - | |
| 2201 | + | |
2213 | 2202 | | |
2214 | 2203 | | |
2215 | 2204 | | |
2216 | | - | |
2217 | | - | |
2218 | | - | |
2219 | | - | |
2220 | | - | |
2221 | | - | |
2222 | | - | |
2223 | | - | |
2224 | | - | |
2225 | | - | |
2226 | | - | |
2227 | 2205 | | |
2228 | 2206 | | |
| 2207 | + | |
| 2208 | + | |
2229 | 2209 | | |
2230 | | - | |
| 2210 | + | |
2231 | 2211 | | |
2232 | 2212 | | |
2233 | | - | |
2234 | | - | |
| 2213 | + | |
| 2214 | + | |
2235 | 2215 | | |
2236 | 2216 | | |
2237 | 2217 | | |
| |||
2243 | 2223 | | |
2244 | 2224 | | |
2245 | 2225 | | |
2246 | | - | |
2247 | 2226 | | |
2248 | 2227 | | |
2249 | 2228 | | |
| |||
2280 | 2259 | | |
2281 | 2260 | | |
2282 | 2261 | | |
2283 | | - | |
2284 | 2262 | | |
2285 | 2263 | | |
2286 | | - | |
2287 | | - | |
2288 | | - | |
2289 | | - | |
2290 | 2264 | | |
2291 | 2265 | | |
2292 | 2266 | | |
| |||
2332 | 2306 | | |
2333 | 2307 | | |
2334 | 2308 | | |
2335 | | - | |
2336 | | - | |
| 2309 | + | |
2337 | 2310 | | |
2338 | 2311 | | |
2339 | 2312 | | |
| |||
2385 | 2358 | | |
2386 | 2359 | | |
2387 | 2360 | | |
| 2361 | + | |
| 2362 | + | |
| 2363 | + | |
| 2364 | + | |
| 2365 | + | |
| 2366 | + | |
| 2367 | + | |
| 2368 | + | |
| 2369 | + | |
| 2370 | + | |
| 2371 | + | |
| 2372 | + | |
| 2373 | + | |
| 2374 | + | |
| 2375 | + | |
| 2376 | + | |
| 2377 | + | |
| 2378 | + | |
| 2379 | + | |
| 2380 | + | |
| 2381 | + | |
| 2382 | + | |
| 2383 | + | |
| 2384 | + | |
| 2385 | + | |
| 2386 | + | |
| 2387 | + | |
2388 | 2388 | | |
2389 | 2389 | | |
2390 | 2390 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4148 | 4148 | | |
4149 | 4149 | | |
4150 | 4150 | | |
| 4151 | + | |
| 4152 | + | |
| 4153 | + | |
| 4154 | + | |
| 4155 | + | |
| 4156 | + | |
| 4157 | + | |
| 4158 | + | |
| 4159 | + | |
| 4160 | + | |
| 4161 | + | |
| 4162 | + | |
| 4163 | + | |
| 4164 | + | |
| 4165 | + | |
| 4166 | + | |
| 4167 | + | |
| 4168 | + | |
| 4169 | + | |
| 4170 | + | |
| 4171 | + | |
| 4172 | + | |
| 4173 | + | |
| 4174 | + | |
| 4175 | + | |
| 4176 | + | |
| 4177 | + | |
4151 | 4178 | | |
4152 | 4179 | | |
4153 | 4180 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
35 | 39 | | |
36 | 40 | | |
37 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1596 | 1596 | | |
1597 | 1597 | | |
1598 | 1598 | | |
1599 | | - | |
| 1599 | + | |
1600 | 1600 | | |
1601 | | - | |
1602 | 1601 | | |
1603 | 1602 | | |
1604 | 1603 | | |
1605 | 1604 | | |
1606 | 1605 | | |
1607 | | - | |
1608 | | - | |
1609 | | - | |
1610 | | - | |
1611 | | - | |
1612 | | - | |
1613 | | - | |
1614 | | - | |
1615 | | - | |
1616 | | - | |
1617 | | - | |
1618 | | - | |
1619 | | - | |
1620 | | - | |
1621 | | - | |
1622 | | - | |
1623 | | - | |
1624 | | - | |
1625 | | - | |
1626 | | - | |
1627 | | - | |
| 1606 | + | |
| 1607 | + | |
1628 | 1608 | | |
1629 | 1609 | | |
1630 | 1610 | | |
| |||
0 commit comments