Commit d72312d
drm/xe: Protect against unset LRC when pausing submissions
While pausing submissions, it is possible to encouner an exec queue
which is during creation, and therefore doesn't have a valid xe_lrc
struct reference.
Protect agains such situation, by checking for NULL before access.
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Fixes: c25c101 ("drm/xe/vf: Replay GuC submission state on pause / unpause")
Signed-off-by: Tomasz Lis <tomasz.lis@intel.com>
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Link: https://patch.msgid.link/20251124222853.1900800-1-tomasz.lis@intel.com
(cherry picked from commit 07cf4b8)
Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>1 parent 3d98a71 commit d72312d
1 file changed
Lines changed: 16 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2112 | 2112 | | |
2113 | 2113 | | |
2114 | 2114 | | |
| 2115 | + | |
| 2116 | + | |
| 2117 | + | |
| 2118 | + | |
| 2119 | + | |
| 2120 | + | |
| 2121 | + | |
| 2122 | + | |
| 2123 | + | |
| 2124 | + | |
| 2125 | + | |
| 2126 | + | |
2115 | 2127 | | |
2116 | 2128 | | |
2117 | 2129 | | |
| |||
2135 | 2147 | | |
2136 | 2148 | | |
2137 | 2149 | | |
2138 | | - | |
2139 | | - | |
| 2150 | + | |
| 2151 | + | |
2140 | 2152 | | |
2141 | 2153 | | |
2142 | 2154 | | |
2143 | 2155 | | |
2144 | 2156 | | |
2145 | 2157 | | |
2146 | 2158 | | |
2147 | | - | |
2148 | | - | |
2149 | | - | |
2150 | | - | |
| 2159 | + | |
| 2160 | + | |
2151 | 2161 | | |
2152 | 2162 | | |
2153 | 2163 | | |
| |||
0 commit comments