diff options
| author | Matthew Brost <[email protected]> | 2024-03-12 11:39:07 -0700 |
|---|---|---|
| committer | Matthew Brost <[email protected]> | 2024-03-13 11:40:03 -0700 |
| commit | 521db22a1d70dbc596a07544a738416025b1b63c (patch) | |
| tree | 196ae86e677ecc9701f311a91d29a9f45423fc4b /tools/perf/scripts/python/net_dropmonitor.py | |
| parent | 8e61e3192a77e1006c1c54c022173026f7afae2c (diff) | |
drm/xe: Invalidate userptr VMA on page pin fault
Rather than return an error to the user or ban the VM when userptr VMA
page pin fails with -EFAULT, invalidate VMA mappings. This supports the
UMD use case of freeing userptr while still having bindings.
Now that non-faulting VMs can invalidate VMAs, drop the usm prefix for
the tile_invalidated member.
v2:
- Fix build error (CI)
v3:
- Don't invalidate VMA if in fault mode, rather kill VM (Thomas)
- Update commit message with tile_invalidated name chagne (Thomas)
- Wait VM bookkeep slots with VM resv lock (Thomas)
v4:
- Move list_del_init(&userptr.repin_link) after error check (Thomas)
- Assert not in fault mode (Matthew)
Fixes: dd08ebf6c352 ("drm/xe: Introduce a new DRM driver for Intel GPUs")
Signed-off-by: Matthew Brost <[email protected]>
Reviewed-by: Thomas Hellström <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions