Commit 0e5ac88
drm/amdgpu: fix check in gmc_v9_0_get_vm_pte()
The coherency flags can only be determined when the BO is locked and that
in turn is only guaranteed when the mapping is validated.
Fix the check, move the resource check into the function and add an assert
that the BO is locked.
Signed-off-by: Christian König <[email protected]>
Fixes: d1a372a ("drm/amdgpu: Set MTYPE in PTE based on BO flags")
Acked-by: Alex Deucher <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
(cherry picked from commit 1b4ca85)
Cc: [email protected]1 parent df0279e commit 0e5ac88
1 file changed
+8
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1124 | 1124 | | |
1125 | 1125 | | |
1126 | 1126 | | |
1127 | | - | |
1128 | | - | |
| 1127 | + | |
| 1128 | + | |
| 1129 | + | |
| 1130 | + | |
1129 | 1131 | | |
1130 | 1132 | | |
1131 | 1133 | | |
1132 | 1134 | | |
1133 | 1135 | | |
1134 | 1136 | | |
1135 | 1137 | | |
| 1138 | + | |
| 1139 | + | |
1136 | 1140 | | |
1137 | 1141 | | |
1138 | 1142 | | |
| |||
1251 | 1255 | | |
1252 | 1256 | | |
1253 | 1257 | | |
1254 | | - | |
1255 | | - | |
1256 | | - | |
| 1258 | + | |
| 1259 | + | |
1257 | 1260 | | |
1258 | 1261 | | |
1259 | 1262 | | |
| |||
0 commit comments