diff options
| author | Brian Welty <[email protected]> | 2023-11-02 16:04:53 -0700 |
|---|---|---|
| committer | Rodrigo Vivi <[email protected]> | 2023-12-21 11:43:34 -0500 |
| commit | 04dfef5b41afc85e8de7b0397050cdb51db35eda (patch) | |
| tree | 74bea2fe86d66ed26d8094b670f263e9119ab1ba /tools/perf/scripts/python/libxed.py | |
| parent | 6ffef7b6991b4e302dd0aa86f67a0d00b0b8e542 (diff) | |
drm/xe: Fix unbind of unaccessed VMA (fault mode)
In fault mode, page table binding is deferred until fault handler.
Thus vma->tile_present will be unset unless the VMA is accessed by GPU.
During a later unbind, the logic doesn't account for the fact that local
fence variable will be NULL in this case, leading to pass NULL into
dma_fence_add_callback() and causing few WARN_ONs to print to console.
The fix is already present in the code, just hoist the fence variable
computation to be done earlier.
Resolves warnings seen with igt@xe_exec_fault_mode@once-invalid-fault
Signed-off-by: Brian Welty <[email protected]>
Reviewed-by: Matthew Brost <[email protected]>
Signed-off-by: Rodrigo Vivi <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/libxed.py')
0 files changed, 0 insertions, 0 deletions