Commit fab2cc0
Lucas De Marchi
drm/xe/gt: Extract emit_job_sync()
Both the nop and wa jobs are going through the same boiler plate calls
to emit the job with a timeout and handling error for both bb and job.
Extract emit_job_sync() so those functions create the bb, handling
possible errors and delegate the part about really emitting the job
and waiting for its completion.
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@igalia.com>
Link: https://lore.kernel.org/r/20250710-lrc-refactors-v2-3-a5e2ca03f6bd@intel.com
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>1 parent e4cb582 commit fab2cc0
1 file changed
Lines changed: 22 additions & 32 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
149 | | - | |
| 149 | + | |
| 150 | + | |
150 | 151 | | |
151 | 152 | | |
152 | | - | |
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | 156 | | |
161 | | - | |
162 | | - | |
| 157 | + | |
163 | 158 | | |
164 | | - | |
165 | 159 | | |
166 | 160 | | |
167 | 161 | | |
168 | 162 | | |
169 | 163 | | |
170 | | - | |
| 164 | + | |
171 | 165 | | |
172 | | - | |
173 | 166 | | |
174 | 167 | | |
175 | 168 | | |
| |||
178 | 171 | | |
179 | 172 | | |
180 | 173 | | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
181 | 189 | | |
182 | 190 | | |
183 | 191 | | |
184 | 192 | | |
| 193 | + | |
185 | 194 | | |
186 | | - | |
187 | 195 | | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | 196 | | |
193 | 197 | | |
194 | 198 | | |
| |||
293 | 297 | | |
294 | 298 | | |
295 | 299 | | |
296 | | - | |
297 | | - | |
298 | | - | |
299 | | - | |
300 | | - | |
| 300 | + | |
301 | 301 | | |
302 | | - | |
303 | | - | |
304 | | - | |
305 | | - | |
306 | | - | |
307 | | - | |
308 | 302 | | |
309 | | - | |
310 | | - | |
311 | | - | |
312 | | - | |
313 | 303 | | |
314 | | - | |
| 304 | + | |
315 | 305 | | |
316 | 306 | | |
317 | 307 | | |
| |||
0 commit comments