Interrupted eviction spurious memory accesses
Running ./xe_evict --run-subtest evict-large
and then pressing ctrl-c yields the following in dmesg.
We need to check
- why we get the TTM printout as eviction ideally should be async. I think it's because we're evicting to system rather than to TT, and therefore encounter a sync when moving TT->SYSTEM, and that sync is interrupted with the CTRL-C, returning -ERESTARTSYS.
- Why the ttm_tt is released before the gpu operation is complete.
[ 2441.463311] [IGT] xe_evict: starting subtest evict-large
[ 2442.181940] DMAR: DRHD: handling fault status reg 3
[ 2442.181948] DMAR: [DMA Write NO_PASID] Request device [03:00.0] fault addr 0x3da7c02000 [fault reason 0x05] PTE Write access is not set
[ 2442.181962] DMAR: DRHD: handling fault status reg 3
[ 2442.181964] DMAR: [DMA Write NO_PASID] Request device [03:00.0] fault addr 0x3da7c3b000 [fault reason 0x05] PTE Write access is not set
[ 2442.181967] DMAR: DRHD: handling fault status reg 3
[ 2442.181969] DMAR: [DMA Write NO_PASID] Request device [03:00.0] fault addr 0x3da7c4d000 [fault reason 0x05] PTE Write access is not set
[ 2442.181972] DMAR: DRHD: handling fault status reg 3
[ 2442.188223] [TTM] Buffer eviction failed
Edited by Thomas Hellström