Commit d3a9331
drm/amdgpu: once more fix the call oder in amdgpu_ttm_move() v2
This reverts drm/amdgpu: fix ftrace event amdgpu_bo_move always move
on same heap. The basic problem here is that after the move the old
location is simply not available any more.
Some fixes were suggested, but essentially we should call the move
notification before actually moving things because only this way we have
the correct order for DMA-buf and VM move notifications as well.
Also rework the statistic handling so that we don't update the eviction
counter before the move.
v2: add missing NULL check
Signed-off-by: Christian König <christian.koenig@amd.com>
Fixes: 94aeb41 ("drm/amdgpu: fix ftrace event amdgpu_bo_move always move on same heap")
Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/3171
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
CC: stable@vger.kernel.org1 parent 46fe9cb commit d3a9331
3 files changed
Lines changed: 38 additions & 28 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1243 | 1243 | | |
1244 | 1244 | | |
1245 | 1245 | | |
| 1246 | + | |
1246 | 1247 | | |
1247 | 1248 | | |
1248 | 1249 | | |
1249 | 1250 | | |
1250 | 1251 | | |
1251 | | - | |
| 1252 | + | |
| 1253 | + | |
| 1254 | + | |
1252 | 1255 | | |
1253 | 1256 | | |
| 1257 | + | |
1254 | 1258 | | |
1255 | 1259 | | |
1256 | 1260 | | |
| |||
1262 | 1266 | | |
1263 | 1267 | | |
1264 | 1268 | | |
1265 | | - | |
| 1269 | + | |
1266 | 1270 | | |
1267 | 1271 | | |
1268 | | - | |
1269 | | - | |
1270 | | - | |
| 1272 | + | |
| 1273 | + | |
| 1274 | + | |
1271 | 1275 | | |
1272 | 1276 | | |
1273 | 1277 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
328 | 328 | | |
329 | 329 | | |
330 | 330 | | |
331 | | - | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
332 | 334 | | |
333 | 335 | | |
334 | 336 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
481 | 481 | | |
482 | 482 | | |
483 | 483 | | |
| 484 | + | |
484 | 485 | | |
485 | | - | |
| 486 | + | |
486 | 487 | | |
487 | 488 | | |
488 | 489 | | |
489 | 490 | | |
| 491 | + | |
490 | 492 | | |
491 | | - | |
| 493 | + | |
492 | 494 | | |
493 | 495 | | |
494 | 496 | | |
| |||
498 | 500 | | |
499 | 501 | | |
500 | 502 | | |
| 503 | + | |
501 | 504 | | |
502 | 505 | | |
503 | | - | |
| 506 | + | |
504 | 507 | | |
505 | 508 | | |
506 | 509 | | |
| |||
512 | 515 | | |
513 | 516 | | |
514 | 517 | | |
| 518 | + | |
515 | 519 | | |
516 | | - | |
| 520 | + | |
517 | 521 | | |
518 | 522 | | |
519 | 523 | | |
| |||
525 | 529 | | |
526 | 530 | | |
527 | 531 | | |
528 | | - | |
529 | | - | |
530 | | - | |
531 | | - | |
532 | | - | |
533 | | - | |
534 | | - | |
535 | | - | |
536 | | - | |
537 | | - | |
538 | | - | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
539 | 543 | | |
| 544 | + | |
| 545 | + | |
540 | 546 | | |
541 | | - | |
| 547 | + | |
542 | 548 | | |
543 | | - | |
544 | 549 | | |
545 | 550 | | |
546 | 551 | | |
| |||
555 | 560 | | |
556 | 561 | | |
557 | 562 | | |
558 | | - | |
559 | | - | |
560 | | - | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
561 | 566 | | |
562 | | - | |
563 | 567 | | |
564 | 568 | | |
565 | 569 | | |
| |||
1559 | 1563 | | |
1560 | 1564 | | |
1561 | 1565 | | |
1562 | | - | |
| 1566 | + | |
1563 | 1567 | | |
1564 | 1568 | | |
1565 | 1569 | | |
| |||
0 commit comments