Commit ce831bf
drm/xe/uapi: Hide the madvise autoreset behind a VM_BIND flag
The madvise implementation currently resets the SVM madvise if the
underlying CPU map is unmapped. This is in an attempt to mimic the
CPU madvise behaviour. However, it's not clear that this is a desired
behaviour since if the end app user relies on it for malloc()ed
objects or stack objects, it may not work as intended.
Instead of having the autoreset functionality being a direct
application-facing implicit UAPI, make the UMD explicitly choose
this behaviour if it wants to expose it by introducing
DRM_XE_VM_BIND_FLAG_MADVISE_AUTORESET, and add a semantics
description.
v2:
- Kerneldoc fixes. Fix a commit log message.
Fixes: a2eb8ae ("drm/xe: Reset VMA attributes to default in SVM garbage collector")
Cc: Matthew Brost <[email protected]>
Cc: Himal Prasad Ghimiray <[email protected]>
Cc: "Falkowski, John" <[email protected]>
Cc: "Mrozek, Michal" <[email protected]>
Signed-off-by: Thomas Hellström <[email protected]>
Reviewed-by: Himal Prasad Ghimiray <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
(cherry picked from commit 59a2d3f)
Signed-off-by: Lucas De Marchi <[email protected]>1 parent 9a3c0d6 commit ce831bf
File tree
4 files changed
+30
-3
lines changed- drivers/gpu/drm/xe
- include/uapi/drm
4 files changed
+30
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
302 | 302 | | |
303 | 303 | | |
304 | 304 | | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
305 | 310 | | |
306 | 311 | | |
307 | 312 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
620 | 620 | | |
621 | 621 | | |
622 | 622 | | |
623 | | - | |
| 623 | + | |
| 624 | + | |
624 | 625 | | |
625 | 626 | | |
626 | 627 | | |
| |||
2270 | 2271 | | |
2271 | 2272 | | |
2272 | 2273 | | |
| 2274 | + | |
| 2275 | + | |
2273 | 2276 | | |
2274 | 2277 | | |
2275 | 2278 | | |
| |||
3253 | 3256 | | |
3254 | 3257 | | |
3255 | 3258 | | |
3256 | | - | |
| 3259 | + | |
| 3260 | + | |
3257 | 3261 | | |
3258 | 3262 | | |
3259 | 3263 | | |
| |||
3368 | 3372 | | |
3369 | 3373 | | |
3370 | 3374 | | |
3371 | | - | |
| 3375 | + | |
| 3376 | + | |
| 3377 | + | |
3372 | 3378 | | |
3373 | 3379 | | |
3374 | 3380 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
49 | 50 | | |
50 | 51 | | |
51 | 52 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1013 | 1013 | | |
1014 | 1014 | | |
1015 | 1015 | | |
| 1016 | + | |
| 1017 | + | |
| 1018 | + | |
| 1019 | + | |
| 1020 | + | |
| 1021 | + | |
| 1022 | + | |
| 1023 | + | |
| 1024 | + | |
| 1025 | + | |
| 1026 | + | |
| 1027 | + | |
| 1028 | + | |
| 1029 | + | |
1016 | 1030 | | |
1017 | 1031 | | |
1018 | 1032 | | |
| |||
1119 | 1133 | | |
1120 | 1134 | | |
1121 | 1135 | | |
| 1136 | + | |
1122 | 1137 | | |
1123 | 1138 | | |
1124 | 1139 | | |
| |||
0 commit comments