Commit 642dfc9
drm/xe: Take ref to VM in delayed snapshot
Kernel BO's don't take a ref to the VM, we need the VM for the
delayed snapshot, so take a ref to the VM in delayed snapshot.
v2:
- Check for lrc_bo before taking a VM ref (CI)
- Check lrc_bo->vm before taking / dropping a VM ref (CI)
- Drop VM in xe_lrc_snapshot_free
v5:
- Fix commit message wording (Johnathan)
Fixes: 4705863 ("drm/xe: Move lrc snapshot capturing to xe_lrc.c")
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Jonathan Cavitt <jonathan.cavitt@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240801154118.2547543-2-matthew.brost@intel.com
(cherry picked from commit c3bc97d)
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>1 parent ac3191c commit 642dfc9
1 file changed
+14
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1634 | 1634 | | |
1635 | 1635 | | |
1636 | 1636 | | |
| 1637 | + | |
| 1638 | + | |
| 1639 | + | |
1637 | 1640 | | |
1638 | 1641 | | |
1639 | 1642 | | |
| |||
1653 | 1656 | | |
1654 | 1657 | | |
1655 | 1658 | | |
| 1659 | + | |
1656 | 1660 | | |
1657 | 1661 | | |
1658 | 1662 | | |
1659 | 1663 | | |
1660 | 1664 | | |
1661 | 1665 | | |
| 1666 | + | |
1662 | 1667 | | |
1663 | 1668 | | |
1664 | 1669 | | |
| |||
1678 | 1683 | | |
1679 | 1684 | | |
1680 | 1685 | | |
| 1686 | + | |
| 1687 | + | |
1681 | 1688 | | |
1682 | 1689 | | |
1683 | 1690 | | |
| |||
1727 | 1734 | | |
1728 | 1735 | | |
1729 | 1736 | | |
1730 | | - | |
| 1737 | + | |
| 1738 | + | |
| 1739 | + | |
| 1740 | + | |
1731 | 1741 | | |
| 1742 | + | |
| 1743 | + | |
| 1744 | + | |
1732 | 1745 | | |
1733 | 1746 | | |
1734 | 1747 | | |
| |||
0 commit comments