Commit b3f7493
drm/i915/pmu: Use PM timestamp instead of RING TIMESTAMP for reference
All timestamps returned by GuC for GuC PMU busyness are captured from
GUC PM TIMESTAMP. Since this timestamp does not tick when GuC goes idle,
kmd uses RING_TIMESTAMP to measure busyness of an engine with an active
context. In further stress testing, the MMIO read of the RING_TIMESTAMP
is seen to cause a rare hang. Resolve the issue by using gt specific
timestamp from PM which is in sync with the GuC PM timestamp.
Fixes: 77cdd05 ("drm/i915/pmu: Connect engine busyness stats from GuC to pmu")
Signed-off-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
Reviewed-by: Alan Previn <alan.previn.teres.alexis@intel.com>
Signed-off-by: John Harrison <John.C.Harrison@Intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220111015523.225562-1-umesh.nerlige.ramappa@intel.com
(cherry picked from commit 721fd84)
Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>1 parent 90a3d22 commit b3f7493
3 files changed
Lines changed: 50 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
209 | 214 | | |
210 | 215 | | |
211 | 216 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1149 | 1149 | | |
1150 | 1150 | | |
1151 | 1151 | | |
1152 | | - | |
1153 | | - | |
1154 | | - | |
| 1152 | + | |
1155 | 1153 | | |
1156 | | - | |
| 1154 | + | |
| 1155 | + | |
| 1156 | + | |
| 1157 | + | |
| 1158 | + | |
| 1159 | + | |
| 1160 | + | |
| 1161 | + | |
| 1162 | + | |
| 1163 | + | |
| 1164 | + | |
| 1165 | + | |
| 1166 | + | |
| 1167 | + | |
| 1168 | + | |
| 1169 | + | |
| 1170 | + | |
| 1171 | + | |
| 1172 | + | |
| 1173 | + | |
| 1174 | + | |
| 1175 | + | |
| 1176 | + | |
| 1177 | + | |
| 1178 | + | |
| 1179 | + | |
| 1180 | + | |
| 1181 | + | |
| 1182 | + | |
| 1183 | + | |
| 1184 | + | |
1157 | 1185 | | |
1158 | 1186 | | |
1159 | 1187 | | |
1160 | 1188 | | |
1161 | | - | |
1162 | | - | |
| 1189 | + | |
| 1190 | + | |
1163 | 1191 | | |
1164 | 1192 | | |
1165 | | - | |
| 1193 | + | |
1166 | 1194 | | |
1167 | 1195 | | |
1168 | | - | |
| 1196 | + | |
1169 | 1197 | | |
1170 | 1198 | | |
1171 | 1199 | | |
| |||
1209 | 1237 | | |
1210 | 1238 | | |
1211 | 1239 | | |
1212 | | - | |
| 1240 | + | |
1213 | 1241 | | |
1214 | 1242 | | |
1215 | 1243 | | |
| |||
1241 | 1269 | | |
1242 | 1270 | | |
1243 | 1271 | | |
| 1272 | + | |
1244 | 1273 | | |
1245 | | - | |
1246 | 1274 | | |
1247 | 1275 | | |
1248 | 1276 | | |
| |||
1259 | 1287 | | |
1260 | 1288 | | |
1261 | 1289 | | |
1262 | | - | |
1263 | | - | |
| 1290 | + | |
| 1291 | + | |
| 1292 | + | |
1264 | 1293 | | |
1265 | | - | |
| 1294 | + | |
1266 | 1295 | | |
1267 | 1296 | | |
1268 | 1297 | | |
| |||
1783 | 1812 | | |
1784 | 1813 | | |
1785 | 1814 | | |
| 1815 | + | |
1786 | 1816 | | |
1787 | 1817 | | |
1788 | 1818 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2684 | 2684 | | |
2685 | 2685 | | |
2686 | 2686 | | |
2687 | | - | |
| 2687 | + | |
| 2688 | + | |
2688 | 2689 | | |
2689 | 2690 | | |
2690 | 2691 | | |
| |||
0 commit comments