Commit 4c953e5
drm/amdgpu/gfx_9.4.3: wait for reset done before remap
There is a racing condition that cp firmware modifies
MQD in reset sequence after driver updates it for
remapping. We have to wait till CP_HQD_ACTIVE becoming
false then remap the queue.
v2: fix KIQ locking (Alex)
v3: fix KIQ locking harder
Acked-by: Vitaly Prosyak <vitaly.prosyak@amd.com>
Signed-off-by: Jiadong Zhu <Jiadong.Zhu@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>1 parent 6f38589 commit 4c953e5
1 file changed
+33
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3433 | 3433 | | |
3434 | 3434 | | |
3435 | 3435 | | |
3436 | | - | |
| 3436 | + | |
3437 | 3437 | | |
3438 | 3438 | | |
3439 | 3439 | | |
| |||
3455 | 3455 | | |
3456 | 3456 | | |
3457 | 3457 | | |
| 3458 | + | |
| 3459 | + | |
| 3460 | + | |
| 3461 | + | |
| 3462 | + | |
| 3463 | + | |
| 3464 | + | |
| 3465 | + | |
| 3466 | + | |
| 3467 | + | |
| 3468 | + | |
| 3469 | + | |
| 3470 | + | |
| 3471 | + | |
| 3472 | + | |
| 3473 | + | |
| 3474 | + | |
| 3475 | + | |
| 3476 | + | |
3458 | 3477 | | |
3459 | 3478 | | |
3460 | | - | |
| 3479 | + | |
3461 | 3480 | | |
3462 | 3481 | | |
3463 | 3482 | | |
| |||
3467 | 3486 | | |
3468 | 3487 | | |
3469 | 3488 | | |
3470 | | - | |
3471 | | - | |
| 3489 | + | |
| 3490 | + | |
3472 | 3491 | | |
3473 | 3492 | | |
| 3493 | + | |
3474 | 3494 | | |
| 3495 | + | |
| 3496 | + | |
| 3497 | + | |
| 3498 | + | |
3475 | 3499 | | |
| 3500 | + | |
| 3501 | + | |
| 3502 | + | |
3476 | 3503 | | |
3477 | | - | |
3478 | | - | |
| 3504 | + | |
| 3505 | + | |
3479 | 3506 | | |
3480 | 3507 | | |
3481 | 3508 | | |
| |||
0 commit comments