]> www.infradead.org Git - users/jedix/linux-maple.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)
committerLucas De Marchi <lucas.demarchi@intel.com>
Thu, 17 Jul 2025 12:45:19 +0000 (09:45 -0300)
commitfd25fa90edcfd4db5bf69c11621021a7cfd11d53
tree3396288630606d967c5ce073bb7d04f5aabcb485
parent347e9f5043c89695b01e66b3ed111755afcf1911
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>
(cherry picked from commit b528e896fa570844d654b5a4617a97fa770a1030)
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
drivers/gpu/drm/xe/xe_ring_ops.c