Skip to contentSkip to conversation

drm-uapi/xe: Add check for access counter granularity

PATCH In review Francois Dugast 3 participants 3 messages Nov 10, 2023 – Nov 15, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm-uapi/xe: Add check for access counter granularity

Align with commit ("drm/xe/xe_exec_queue: Add check for access counter granularity")

CC Priyanka Dandamudi <[email protected]>
---
 include/drm-uapi/xe_drm.h | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
include/drm-uapi/xe_drm.h +14 -0
index d6dd9a388..b316868de 100644
@@ -730,6 +730,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
  *
Signature · 1 line
2.34.1
#1 lore raw

[igt-dev] ✓ CI.xeBAT: success for drm-uapi/xe: Add check for access counter granularity

== Series Details ==

== Series Details ==

Series: drm-uapi/xe: Add check for access counter granularity
URL : https://patchwork.freedesktop.org/series/126274/
State : success

== Summary ==

CI Bug Log - changes from XEIGT_7582_BAT -> XEIGTPW_10164_BAT
====================================================

Summary
-------

**SUCCESS**

No regressions found.

Participating hosts (3 -> 3)
------------------------------

No changes in participating hosts

Known issues
------------

Here are the changes found in XEIGTPW_10164_BAT that come from known issues:

### IGT changes ###

#### Issues hit ####

* igt@kms_flip@basic-flip-vs-wf_vblank@d-edp1:
- bat-adlp-7: [PASS][1] -> [FAIL][2] ([Intel XE#480]) +2 other tests fail
[1]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7582/bat-adlp-7/igt@kms_flip@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_10164/bat-adlp-7/igt@kms_flip@[email protected]

#### Warnings ####

* igt@kms_frontbuffer_tracking@basic:
- bat-adlp-7: [FAIL][3] ([Intel XE#616] / [Intel XE#750]) -> [DMESG-FAIL][4] ([Intel XE#282] / [i915#2017])
[3]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7582/bat-adlp-7/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_10164/bat-adlp-7/igt@[email protected]

[Intel XE#282]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/282
[Intel XE#480]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/480
[Intel XE#616]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/616
[Intel XE#750]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/750
[i915#2017]: https://gitlab.freedesktop.org/drm/intel/issues/2017

Build changes
-------------

* IGT: IGT_7582 -> IGTPW_10164

IGTPW_10164: 10164
IGT_7582: 453b9df12fbc9fff561bdb4eb97992983e74c3d4 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
xe-485-b3890fb4386dcef68a96888141c4cc773f6241ce: b3890fb4386dcef68a96888141c4cc773f6241ce

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_10164/index.html

Reviewed-by on v1 1/1
#2 lore raw
In reply to Francois Dugast

Hi Francois,

Quoted 3 lines · Francois Dugast

Align with commit ("drm/xe/xe_exec_queue: Add check for access counter granularity")

CC Priyanka Dandamudi <[email protected]>

- ^^
s/CC/Cc/

With or without that:

Quoted 33 lines
---
 include/drm-uapi/xe_drm.h | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
include/drm-uapi/xe_drm.h +14 -0
index d6dd9a388..b316868de 100644
@@ -730,6 +730,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
  *
Signature · 1 line
2.34.1