diff options
| author | Danilo Krummrich <[email protected]> | 2023-08-23 18:15:34 +0000 |
|---|---|---|
| committer | Danilo Krummrich <[email protected]> | 2023-08-24 00:57:50 +0000 |
| commit | 443f9e0b1ab5e3b95abf8606097d13e30e2f2413 (patch) | |
| tree | 1258191167c6b2528f2b4d63c105d0adbe209458 /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | drm/nouveau: uvmm: fix unset region pointer on remap (diff) | |
| download | kernel-443f9e0b1ab5e3b95abf8606097d13e30e2f2413.tar.gz kernel-443f9e0b1ab5e3b95abf8606097d13e30e2f2413.zip | |
drm/nouveau: uapi: don't pass NO_PREFETCH flag implicitly
Currently, NO_PREFETCH is passed implicitly through
drm_nouveau_gem_pushbuf_push::length and drm_nouveau_exec_push::va_len.
Since this is a direct representation of how the HW is programmed it
isn't really future proof for a uAPI. Hence, fix this up for the new
uAPI and split up the va_len field of struct drm_nouveau_exec_push,
such that we keep 32bit for va_len and 32bit for flags.
For drm_nouveau_gem_pushbuf_push::length at least provide
NOUVEAU_GEM_PUSHBUF_NO_PREFETCH to indicate the bit shift.
While at it, fix up nv50_dma_push() as well, such that the caller
doesn't need to encode the NO_PREFETCH flag into the length parameter.
Signed-off-by: Danilo Krummrich <[email protected]>
Reviewed-by: Faith Ekstrand <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions
