[igt-dev] [PATCH v3 01/57] drm-uapi/xe: Add check for access counter granularity
Francois Dugast
francois.dugast at intel.com
Thu Nov 9 15:53:14 UTC 2023
Align with commit ("drm/xe/xe_exec_queue: Add check for access counter granularity")
Signed-off-by: Francois Dugast <francois.dugast at intel.com>
---
include/drm-uapi/xe_drm.h | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/include/drm-uapi/xe_drm.h b/include/drm-uapi/xe_drm.h
index 6ff1106e4..66658d76c 100644
--- a/include/drm-uapi/xe_drm.h
+++ b/include/drm-uapi/xe_drm.h
@@ -731,6 +731,20 @@ struct drm_xe_vm_bind {
__u64 reserved[2];
};
+/* For use with XE_EXEC_QUEUE_SET_PROPERTY_ACC_GRANULARITY */
+
+/* Monitor 128KB contiguous region with 4K sub-granularity */
+#define XE_ACC_GRANULARITY_128K 0
+
+/* Monitor 2MB contiguous region with 64KB sub-granularity */
+#define XE_ACC_GRANULARITY_2M 1
+
+/* Monitor 16MB contiguous region with 512KB sub-granularity */
+#define XE_ACC_GRANULARITY_16M 2
+
+/* Monitor 64MB contiguous region with 2M sub-granularity */
+#define XE_ACC_GRANULARITY_64M 3
+
/**
* struct drm_xe_exec_queue_set_property - exec queue set property
*
--
2.34.1
More information about the igt-dev
mailing list