Commit 097af47
drm/amdgpu/gfx10: 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 (Jessie)
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 2f3806f commit 097af47
1 file changed
+30
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9475 | 9475 | | |
9476 | 9476 | | |
9477 | 9477 | | |
9478 | | - | |
| 9478 | + | |
9479 | 9479 | | |
9480 | 9480 | | |
9481 | 9481 | | |
9482 | 9482 | | |
9483 | 9483 | | |
9484 | 9484 | | |
9485 | 9485 | | |
9486 | | - | |
9487 | | - | |
| 9486 | + | |
| 9487 | + | |
9488 | 9488 | | |
9489 | 9489 | | |
9490 | 9490 | | |
9491 | 9491 | | |
9492 | 9492 | | |
| 9493 | + | |
9493 | 9494 | | |
9494 | 9495 | | |
9495 | 9496 | | |
9496 | | - | |
| 9497 | + | |
| 9498 | + | |
| 9499 | + | |
| 9500 | + | |
| 9501 | + | |
| 9502 | + | |
| 9503 | + | |
| 9504 | + | |
| 9505 | + | |
| 9506 | + | |
| 9507 | + | |
| 9508 | + | |
| 9509 | + | |
| 9510 | + | |
| 9511 | + | |
| 9512 | + | |
| 9513 | + | |
| 9514 | + | |
| 9515 | + | |
| 9516 | + | |
9497 | 9517 | | |
9498 | 9518 | | |
9499 | 9519 | | |
9500 | 9520 | | |
9501 | | - | |
| 9521 | + | |
9502 | 9522 | | |
9503 | 9523 | | |
9504 | 9524 | | |
| |||
9509 | 9529 | | |
9510 | 9530 | | |
9511 | 9531 | | |
9512 | | - | |
| 9532 | + | |
9513 | 9533 | | |
9514 | 9534 | | |
| 9535 | + | |
9515 | 9536 | | |
9516 | | - | |
9517 | | - | |
| 9537 | + | |
| 9538 | + | |
9518 | 9539 | | |
9519 | 9540 | | |
9520 | 9541 | | |
| 9542 | + | |
9521 | 9543 | | |
9522 | 9544 | | |
9523 | | - | |
9524 | | - | |
9525 | | - | |
9526 | 9545 | | |
9527 | 9546 | | |
9528 | 9547 | | |
| |||
0 commit comments