forked fromROCm/amdgpu
- Notifications
You must be signed in to change notification settings - Fork0
Commit6ac6a32
Jingwen Chen
Asher Song
drm/amd/amdgpu: fix flr_work corner case
[Why]In SRIOV multi-vf environment, the flr_work can be enteredeven if the TDR thread has entered the recovery. This canlead to GMC flush tlb with SDMA during full access while SDMAis not initialized.[How]1. flr_work should take write_lock, otherwise there maybe hw accessduring vf flr2. (amdgpu_in_reset(adev) ||!down_write_trylock(&adev->reset_sem))is the correct critera when the flr_work direct returns.Acked-by: Christian König <christian.koenig@amd.com>Signed-off-by: Jingwen Chen <Jingwen.Chen2@amd.com>1 parenta4669ca commit6ac6a32
2 files changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
259 | 259 | | |
260 | 260 | | |
261 | 261 | | |
262 | | - | |
| 262 | + | |
| 263 | + | |
263 | 264 | | |
264 | 265 | | |
265 | 266 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
292 | 292 | | |
293 | 293 | | |
294 | 294 | | |
295 | | - | |
| 295 | + | |
| 296 | + | |
296 | 297 | | |
297 | 298 | | |
298 | 299 | | |
| |||
0 commit comments
Comments
(0)