Commit 0620837
Thomas Hellström
drm/xe/svm: Serialize migration to device if racing
Introduce an rw-semaphore to serialize migration to device if
it's likely that migration races with another device migration
of the same CPU address space range.
This is a temporary fix to attempt to mitigate a livelock that
might happen if many devices try to migrate a range at the same
time, and it affects only devices using the xe driver.
A longer term fix is probably improvements in the core mm
migration layer.
Suggested-by: Matthew Brost <matthew.brost@intel.com>
Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Link: https://patch.msgid.link/20251219113320.183860-25-thomas.hellstrom@linux.intel.com1 parent ec265e1 commit 0620837
1 file changed
Lines changed: 20 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1593 | 1593 | | |
1594 | 1594 | | |
1595 | 1595 | | |
| 1596 | + | |
1596 | 1597 | | |
1597 | 1598 | | |
1598 | 1599 | | |
1599 | 1600 | | |
| 1601 | + | |
1600 | 1602 | | |
1601 | 1603 | | |
1602 | 1604 | | |
| |||
1615 | 1617 | | |
1616 | 1618 | | |
1617 | 1619 | | |
| 1620 | + | |
| 1621 | + | |
| 1622 | + | |
1618 | 1623 | | |
1619 | 1624 | | |
1620 | 1625 | | |
1621 | 1626 | | |
1622 | 1627 | | |
1623 | 1628 | | |
1624 | | - | |
1625 | | - | |
| 1629 | + | |
| 1630 | + | |
| 1631 | + | |
1626 | 1632 | | |
| 1633 | + | |
| 1634 | + | |
| 1635 | + | |
| 1636 | + | |
| 1637 | + | |
| 1638 | + | |
| 1639 | + | |
| 1640 | + | |
1627 | 1641 | | |
| 1642 | + | |
| 1643 | + | |
| 1644 | + | |
| 1645 | + | |
1628 | 1646 | | |
1629 | 1647 | | |
1630 | 1648 | | |
| |||
0 commit comments