aboutsummaryrefslogtreecommitdiffstats
path: root/src/freedreno/drm/freedreno_drmif.h
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2019-04-16 10:10:05 -0700
committerRob Clark <[email protected]>2019-04-25 14:13:07 -0700
commit650391868935ce047b7108f1c4f25f97323f8031 (patch)
treea67a6399d8a6ace40f683bde7e9e5242ee587ab4 /src/freedreno/drm/freedreno_drmif.h
parent77d091d0c5dc1f1b174668cb1da5f00ad391d76d (diff)
freedreno/drm: update for robustness
Update UABI header and add FD_PP_PGTABLE and FD_NR_FAULTS params. Robustness can be supported by a kernel which provides the new ABI if it also indicates that per-process pagetables are in use. Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/freedreno/drm/freedreno_drmif.h')
-rw-r--r--src/freedreno/drm/freedreno_drmif.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/freedreno/drm/freedreno_drmif.h b/src/freedreno/drm/freedreno_drmif.h
index a53c3406950..e181da302b3 100644
--- a/src/freedreno/drm/freedreno_drmif.h
+++ b/src/freedreno/drm/freedreno_drmif.h
@@ -52,6 +52,9 @@ enum fd_param_id {
FD_MAX_FREQ,
FD_TIMESTAMP,
FD_NR_RINGS, /* # of rings == # of distinct priority levels */
+ FD_PP_PGTABLE, /* are per-process pagetables used for the pipe/ctx */
+ FD_CTX_FAULTS, /* # of per context faults */
+ FD_GLOBAL_FAULTS, /* # of global (all context) faults */
};
/* bo flags: */
@@ -88,6 +91,7 @@ enum fd_version {
FD_VERSION_SUBMIT_QUEUES = 3, /* submit queues and multiple priority levels */
FD_VERSION_BO_IOVA = 3, /* supports fd_bo_get/put_iova() */
FD_VERSION_SOFTPIN = 4, /* adds softpin, bo name, and dump flag */
+ FD_VERSION_ROBUSTNESS = 5, /* adds FD_NR_FAULTS and FD_PP_PGTABLE */
};
enum fd_version fd_device_version(struct fd_device *dev);