Commit fdbd694
drm/amdgpu/gfx9: 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 b5e1a38 commit fdbd694
1 file changed
+31
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7125 | 7125 | | |
7126 | 7126 | | |
7127 | 7127 | | |
7128 | | - | |
| 7128 | + | |
7129 | 7129 | | |
7130 | 7130 | | |
7131 | 7131 | | |
| |||
7147 | 7147 | | |
7148 | 7148 | | |
7149 | 7149 | | |
| 7150 | + | |
| 7151 | + | |
| 7152 | + | |
| 7153 | + | |
| 7154 | + | |
| 7155 | + | |
| 7156 | + | |
| 7157 | + | |
| 7158 | + | |
| 7159 | + | |
| 7160 | + | |
| 7161 | + | |
| 7162 | + | |
| 7163 | + | |
| 7164 | + | |
| 7165 | + | |
| 7166 | + | |
| 7167 | + | |
| 7168 | + | |
7150 | 7169 | | |
7151 | 7170 | | |
7152 | | - | |
| 7171 | + | |
7153 | 7172 | | |
7154 | 7173 | | |
7155 | 7174 | | |
| |||
7159 | 7178 | | |
7160 | 7179 | | |
7161 | 7180 | | |
7162 | | - | |
7163 | | - | |
| 7181 | + | |
| 7182 | + | |
7164 | 7183 | | |
7165 | 7184 | | |
| 7185 | + | |
7166 | 7186 | | |
| 7187 | + | |
| 7188 | + | |
| 7189 | + | |
| 7190 | + | |
7167 | 7191 | | |
| 7192 | + | |
| 7193 | + | |
7168 | 7194 | | |
7169 | | - | |
| 7195 | + | |
7170 | 7196 | | |
7171 | 7197 | | |
7172 | 7198 | | |
| |||
0 commit comments