]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/xe: Dont skip TLB invalidations on VF
authorTejas Upadhyay <tejas.upadhyay@intel.com>
Thu, 10 Jul 2025 04:59:45 +0000 (10:29 +0530)
committerTejas Upadhyay <tejas.upadhyay@intel.com>
Fri, 11 Jul 2025 09:09:47 +0000 (14:39 +0530)
commitb528e896fa570844d654b5a4617a97fa770a1030
tree7ef312fd63b136c391465b0ca699706cba414078
parent908d9d56c8264536b9e10d682c08781a54527d7b
drm/xe: Dont skip TLB invalidations on VF

Skipping TLB invalidations on VF causing unrecoverable
faults. Probable reason for skipping TLB invalidations
on SRIOV could be lack of support for instruction
MI_FLUSH_DW_STORE_INDEX. Add back TLB flush with some
additional handling.

Helps in resolving,
[  704.913454] xe 0000:00:02.1: [drm:pf_queue_work_func [xe]]
                ASID: 0
                VFID: 0
                PDATA: 0x0d92
                Faulted Address: 0x0000000002fa0000
                FaultType: 0
                AccessType: 1
                FaultLevel: 0
                EngineClass: 3 bcs
                EngineInstance: 8
[  704.913551] xe 0000:00:02.1: [drm:pf_queue_work_func [xe]] Fault response: Unsuccessful -22

V2:
 - Use Xmas tree (MichalW)

Suggested-by: Matthew Brost <matthew.brost@intel.com>
Fixes: 97515d0b3ed92 ("drm/xe/vf: Don't emit access to Global HWSP if VF")
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250710045945.1023840-1-tejas.upadhyay@intel.com
Signed-off-by: Tejas Upadhyay <tejas.upadhyay@intel.com>
drivers/gpu/drm/xe/xe_ring_ops.c