Skip to contentSkip to conversation

tests/intel/xe_exec_queue_property: Remove persistence queue property

i-g-t Tejas Upadhyay 4 participants 6 messages Feb 5, 2024 – Feb 6, 2024

lore
Share & tools
lore
#0 lore raw

KMD has removed support setting persistence queue property here https://patchwork.freedesktop.org/series/129311/, to have parity remove test support as well

---
 include/drm-uapi/xe_drm.h            | 9 ++++-----
 tests/intel/xe_exec_queue_property.c | 8 --------
 2 files changed, 4 insertions(+), 13 deletions(-)
include/drm-uapi/xe_drm.h +4 -5
index bacdca787..1917e4c50 100644
@@ -1046,11 +1046,10 @@ struct drm_xe_exec_queue_create {
 #define   DRM_XE_EXEC_QUEUE_SET_PROPERTY_PRIORITY		0
 #define   DRM_XE_EXEC_QUEUE_SET_PROPERTY_TIMESLICE		1
 #define   DRM_XE_EXEC_QUEUE_SET_PROPERTY_PREEMPTION_TIMEOUT	2
-#define   DRM_XE_EXEC_QUEUE_SET_PROPERTY_PERSISTENCE		3
-#define   DRM_XE_EXEC_QUEUE_SET_PROPERTY_JOB_TIMEOUT		4
-#define   DRM_XE_EXEC_QUEUE_SET_PROPERTY_ACC_TRIGGER		5
-#define   DRM_XE_EXEC_QUEUE_SET_PROPERTY_ACC_NOTIFY		6
-#define   DRM_XE_EXEC_QUEUE_SET_PROPERTY_ACC_GRANULARITY	7
+#define   DRM_XE_EXEC_QUEUE_SET_PROPERTY_JOB_TIMEOUT		3
+#define   DRM_XE_EXEC_QUEUE_SET_PROPERTY_ACC_TRIGGER		4
+#define   DRM_XE_EXEC_QUEUE_SET_PROPERTY_ACC_NOTIFY		5
+#define   DRM_XE_EXEC_QUEUE_SET_PROPERTY_ACC_GRANULARITY	6
 /* Monitor 128KB contiguous region with 4K sub-granularity */
 #define     DRM_XE_ACC_GRANULARITY_128K				0
 /* Monitor 2MB contiguous region with 64KB sub-granularity */
tests/intel/xe_exec_queue_property.c +0 -8
index 53e08fb0e..4fdd4ceae 100644
@@ -11,8 +11,6 @@
  * Test category: functionality test
  * SUBTEST: priority-set-property
  * Description: tests basic priority property by setting invalid values and positive values.
- * SUBTEST: persistence-set-property
- * Description: tests basic persistence property by setting positive values
  * SUBTEST: %s-property-min-max
  * Description: Test to check if %s arg[1] schedule parameter checks for min max values.
  *
@@ -214,12 +212,6 @@ igt_main
 		igt_waitchildren();
 	}
 
-	igt_subtest("persistence-set-property") {
-		/* Tests persistence property by setting positive values. */
-		test_set_property(xe, DRM_XE_EXEC_QUEUE_SET_PROPERTY_PERSISTENCE, 1, 0);
-
-	}
-
 	igt_subtest_group {
 		igt_fixture {
 			sys_fd = igt_sysfs_open(xe);
Signature · 1 line
2.25.1
#1 lore raw
Quoted 24 lines

-----Original Message-----
From: Upadhyay, Tejas <[email protected]>
Sent: Monday, February 5, 2024 11:32 AM
To: [email protected]
Cc: Dandamudi, Priyanka <[email protected]>; Upadhyay, Tejas <[email protected]>
Subject: [i-g-t] tests/intel/xe_exec_queue_property: Remove persistence queue property

KMD has removed support setting persistence queue property here
https://patchwork.freedesktop.org/series/129311/, to have parity remove test support as well

---
 include/drm-uapi/xe_drm.h            | 9 ++++-----
 tests/intel/xe_exec_queue_property.c | 8 --------
 2 files changed, 4 insertions(+), 13 deletions(-)
include/drm-uapi/xe_drm.h index renamed from include/drm-uapi/xe_drm.h +0 -0

bacdca787..1917e4c50 100644

include/drm-uapi/xe_drm.h struct drm_xe_exec_queue_create { · line 1050

Quoted 6 lines
include/drm-uapi/xe_drm.h +0 -1
@@ -1046,11 +1046,10 @@ struct drm_xe_exec_queue_create {
 #define   DRM_XE_EXEC_QUEUE_SET_PROPERTY_PRIORITY		0
 #define   DRM_XE_EXEC_QUEUE_SET_PROPERTY_TIMESLICE		1
 #define   DRM_XE_EXEC_QUEUE_SET_PROPERTY_PREEMPTION_TIMEOUT
 	2
-#define   DRM_XE_EXEC_QUEUE_SET_PROPERTY_PERSISTENCE
 	3

I see from the KMD patch they are renaming. DRM_XE_EXEC_QUEUE_SET_PROPERTY_PERSISTENCE to DRM_XE_EXEC_QUEUE_SET_PROPERTY_UNUSED_1 Can you please check this?
--Priyanka

Quoted 48 lines
include/drm-uapi/xe_drm.h +1 -4
-#define   DRM_XE_EXEC_QUEUE_SET_PROPERTY_JOB_TIMEOUT
 	4
-#define   DRM_XE_EXEC_QUEUE_SET_PROPERTY_ACC_TRIGGER
 	5
-#define   DRM_XE_EXEC_QUEUE_SET_PROPERTY_ACC_NOTIFY		6
-#define   DRM_XE_EXEC_QUEUE_SET_PROPERTY_ACC_GRANULARITY	7
+#define   DRM_XE_EXEC_QUEUE_SET_PROPERTY_JOB_TIMEOUT
	3
+#define   DRM_XE_EXEC_QUEUE_SET_PROPERTY_ACC_TRIGGER
	4
+#define   DRM_XE_EXEC_QUEUE_SET_PROPERTY_ACC_NOTIFY
	5

+#define DRM_XE_EXEC_QUEUE_SET_PROPERTY_ACC_GRANULARITY 6
/* Monitor 128KB contiguous region with 4K sub-granularity */
#define DRM_XE_ACC_GRANULARITY_128K 0
/* Monitor 2MB contiguous region with 64KB sub-granularity */ diff --git
a/tests/intel/xe_exec_queue_property.c b/tests/intel/xe_exec_queue_property.c
index 53e08fb0e..4fdd4ceae 100644

tests/intel/xe_exec_queue_property.c +0 -0
@@ -11,8 +11,6 @@
  * Test category: functionality test
  * SUBTEST: priority-set-property
  * Description: tests basic priority property by setting invalid values and

positive values.
- * SUBTEST: persistence-set-property
- * Description: tests basic persistence property by setting positive values
* SUBTEST: %s-property-min-max
* Description: Test to check if %s arg[1] schedule parameter checks for min
max values.
*

tests/intel/xe_exec_queue_property.c +0 -6
@@ -214,12 +212,6 @@ igt_main
 		igt_waitchildren();
 	}
 
-	igt_subtest("persistence-set-property") {
-		/* Tests persistence property by setting positive values. */
-		test_set_property(xe,
 DRM_XE_EXEC_QUEUE_SET_PROPERTY_PERSISTENCE, 1, 0);
-
-	}
-
 	igt_subtest_group {
 		igt_fixture {

sys_fd = igt_sysfs_open(xe);
--
2.25.1

#2 lore raw
Quoted 11 lines · Priyanka
Quoted 11 lines

-----Original Message-----
From: Upadhyay, Tejas <[email protected]>
Sent: Monday, February 5, 2024 11:32 AM
To: [email protected]
Cc: Dandamudi, Priyanka <[email protected]>; Upadhyay, Tejas <[email protected]>
Subject: [i-g-t] tests/intel/xe_exec_queue_property: Remove persistence queue property

KMD has removed support setting persistence queue property here
https://patchwork.freedesktop.org/series/129311/, to have parity remove test

wrong link, should reference the patch by Thomas. Either [email protected] or the new version

Quoted 8 lines
Quoted 8 lines

support as well

---
 include/drm-uapi/xe_drm.h            | 9 ++++-----
 tests/intel/xe_exec_queue_property.c | 8 --------
 2 files changed, 4 insertions(+), 13 deletions(-)
Quoted 14 lines

include/drm-uapi/xe_drm.h struct drm_xe_exec_queue_create { · line 1050

Quoted 11 lines
include/drm-uapi/xe_drm.h index renamed from include/drm-uapi/xe_drm.h +0 -0

bacdca787..1917e4c50 100644

include/drm-uapi/xe_drm.h +0 -1
@@ -1046,11 +1046,10 @@ struct drm_xe_exec_queue_create {
 #define   DRM_XE_EXEC_QUEUE_SET_PROPERTY_PRIORITY		0
 #define   DRM_XE_EXEC_QUEUE_SET_PROPERTY_TIMESLICE		1
 #define   DRM_XE_EXEC_QUEUE_SET_PROPERTY_PREEMPTION_TIMEOUT
 	2
-#define   DRM_XE_EXEC_QUEUE_SET_PROPERTY_PERSISTENCE
 	3

I see from the KMD patch they are renaming. DRM_XE_EXEC_QUEUE_SET_PROPERTY_PERSISTENCE to DRM_XE_EXEC_QUEUE_SET_PROPERTY_UNUSED_1 Can you please check this?

The file include/drm-uapi/xe_drm.h shouldn't really be modified by igt as it's a pain to keep it in sync this way. Instead, it should be a straight copy from the kernel source when it changes.... so whatever is in the v2 of the patch by Thomas should be the one here. Or just leave the header alone and let it be sync'ed next time it's needed.

Lucas De Marchi

#3 lore raw
Quoted 21 lines

-----Original Message-----
From: De Marchi, Lucas <[email protected]>
Sent: Tuesday, February 6, 2024 12:01 AM
To: Dandamudi, Priyanka <[email protected]>
Cc: Upadhyay, Tejas <[email protected]>; igt- [email protected]
Subject: Re: RE: [i-g-t] tests/intel/xe_exec_queue_property: Remove persistence queue property

Quoted 9 lines · Priyanka
Quoted 9 lines

-----Original Message-----
From: Upadhyay, Tejas <[email protected]>
Sent: Monday, February 5, 2024 11:32 AM
To: [email protected]
Cc: Dandamudi, Priyanka <[email protected]>; Upadhyay, Tejas <[email protected]>
Subject: [i-g-t] tests/intel/xe_exec_queue_property: Remove persistence queue property

Quoted 7 lines
Quoted 3 lines
Quoted 3 lines

KMD has removed support setting persistence queue property here
https://patchwork.freedesktop.org/series/129311/, to have parity remove test

wrong link, should reference the patch by Thomas. Either [email protected] or the new version

The link I shared is from Thomas only. By the way I am not able to open the link you shared. Please help me to understand what exactly is needed here. I see there is only one version of patch from Thomas here https://patchwork.freedesktop.org/series/129311/

Thanks,
Tejas

Quoted 34 lines
Quoted 9 lines
Quoted 9 lines

support as well

---
 include/drm-uapi/xe_drm.h            | 9 ++++-----
 tests/intel/xe_exec_queue_property.c | 8 --------
 2 files changed, 4 insertions(+), 13 deletions(-)
Quoted 8 lines

include/drm-uapi/xe_drm.h struct drm_xe_exec_queue_create { · line 1047

Quoted 8 lines
include/drm-uapi/xe_drm.h +0 -0

index
bacdca787..1917e4c50 100644

include/drm-uapi/xe_drm.h +0 -0
@@ -1046,11 +1046,10 @@ struct drm_xe_exec_queue_create {
 #define   DRM_XE_EXEC_QUEUE_SET_PROPERTY_PRIORITY		0
 #define   DRM_XE_EXEC_QUEUE_SET_PROPERTY_TIMESLICE
	1
Quoted 8 lines

include/drm-uapi/xe_drm.h struct drm_xe_exec_queue_create { · line 1050

Quoted 4 lines
include/drm-uapi/xe_drm.h +0 -1
 #define   DRM_XE_EXEC_QUEUE_SET_PROPERTY_PREEMPTION_TIMEOUT
 	2
-#define   DRM_XE_EXEC_QUEUE_SET_PROPERTY_PERSISTENCE
 	3

I see from the KMD patch they are renaming.
DRM_XE_EXEC_QUEUE_SET_PROPERTY_PERSISTENCE to
DRM_XE_EXEC_QUEUE_SET_PROPERTY_UNUSED_1
Can you please check this?

The file include/drm-uapi/xe_drm.h shouldn't really be modified by igt as it's a pain to keep it in sync this way. Instead, it should be a straight copy from the kernel source when it changes.... so whatever is in the v2 of the patch by Thomas should be the one here. Or just leave the header alone and let it be sync'ed next time it's needed.

Lucas De Marchi

#4 lore raw
Quoted 25 lines · Tejas
Quoted 25 lines

-----Original Message-----
From: De Marchi, Lucas <[email protected]>
Sent: Tuesday, February 6, 2024 12:01 AM
To: Dandamudi, Priyanka <[email protected]>
Cc: Upadhyay, Tejas <[email protected]>; igt- [email protected]
Subject: Re: RE: [i-g-t] tests/intel/xe_exec_queue_property: Remove persistence queue property

Quoted 12 lines · Priyanka
Quoted 12 lines

-----Original Message-----
From: Upadhyay, Tejas <[email protected]>
Sent: Monday, February 5, 2024 11:32 AM
To: [email protected]
Cc: Dandamudi, Priyanka <[email protected]>; Upadhyay, Tejas <[email protected]>
Subject: [i-g-t] tests/intel/xe_exec_queue_property: Remove persistence queue property

KMD has removed support setting persistence queue property here
https://patchwork.freedesktop.org/series/129311/, to have parity remove test

Quoted 5 lines
Quoted 3 lines

wrong link, should reference the patch by Thomas. Either [email protected] or the new version

The link I shared is from Thomas only. By the way I am not able to open the link you shared. Please help me to understand what exactly is needed here. I see there is only one version of patch from Thomas here https://patchwork.freedesktop.org/series/129311/

my bad, I think I removed the "," after resolving the 404 but ended up removing more than I should. The link you shared works.

the one I mentioned is the email msgid and can be looked up either by lore or patchwork:

https://lore.kernel.org/r/${msgid} -> https://lore.kernel.org/all/[email protected]/
https://patchwork.freedesktop.org/patch/msgid/${msgid} -> https://patchwork.freedesktop.org/patch/msgid/[email protected]

recently I also noticed there is a new/shorter one provided by kernel.org:
https://msgid.link/[email protected]

but your patchwork link with the series number should be fine. Sorry for the noise.

Lucas De Marchi

Quoted 37 lines

Thanks,
Tejas

Quoted 34 lines
Quoted 9 lines
Quoted 9 lines

support as well

---
 include/drm-uapi/xe_drm.h            | 9 ++++-----
 tests/intel/xe_exec_queue_property.c | 8 --------
 2 files changed, 4 insertions(+), 13 deletions(-)
Quoted 8 lines

include/drm-uapi/xe_drm.h struct drm_xe_exec_queue_create { · line 1047

Quoted 8 lines
include/drm-uapi/xe_drm.h +0 -0

index
bacdca787..1917e4c50 100644

include/drm-uapi/xe_drm.h +0 -0
@@ -1046,11 +1046,10 @@ struct drm_xe_exec_queue_create {
 #define   DRM_XE_EXEC_QUEUE_SET_PROPERTY_PRIORITY		0
 #define   DRM_XE_EXEC_QUEUE_SET_PROPERTY_TIMESLICE
	1
Quoted 8 lines

include/drm-uapi/xe_drm.h struct drm_xe_exec_queue_create { · line 1050

Quoted 4 lines
include/drm-uapi/xe_drm.h +0 -1
 #define   DRM_XE_EXEC_QUEUE_SET_PROPERTY_PREEMPTION_TIMEOUT
 	2
-#define   DRM_XE_EXEC_QUEUE_SET_PROPERTY_PERSISTENCE
 	3

I see from the KMD patch they are renaming.
DRM_XE_EXEC_QUEUE_SET_PROPERTY_PERSISTENCE to
DRM_XE_EXEC_QUEUE_SET_PROPERTY_UNUSED_1
Can you please check this?

The file include/drm-uapi/xe_drm.h shouldn't really be modified by igt as it's a pain to keep it in sync this way. Instead, it should be a straight copy from the kernel source when it changes.... so whatever is in the v2 of the patch by Thomas should be the one here. Or just leave the header alone and let it be sync'ed next time it's needed.

Lucas De Marchi

#5 lore raw
In reply to Tejas Upadhyay

Hi Tejas,

Quoted 2 lines · Tejas Upadhyay

KMD has removed support setting persistence queue property here https://patchwork.freedesktop.org/series/129311/, to

------------------------------------------------------ ^

Please do not add any chars at end of http link.

Quoted 1 line

have parity remove test support as well

Also I would expect info about drm-uapi change in subject, instead of:

[i-g-t] tests/intel/xe_exec_queue_property: Remove persistence queue property

I would suggest:

[PATCH v1 i-g-t] drm-uapi/xe: remove persistence queue

+cc Ashutosh

Regards,
Kamil

Quoted 56 lines
---
 include/drm-uapi/xe_drm.h            | 9 ++++-----
 tests/intel/xe_exec_queue_property.c | 8 --------
 2 files changed, 4 insertions(+), 13 deletions(-)
include/drm-uapi/xe_drm.h +4 -5
index bacdca787..1917e4c50 100644
@@ -1046,11 +1046,10 @@ struct drm_xe_exec_queue_create {
 #define   DRM_XE_EXEC_QUEUE_SET_PROPERTY_PRIORITY		0
 #define   DRM_XE_EXEC_QUEUE_SET_PROPERTY_TIMESLICE		1
 #define   DRM_XE_EXEC_QUEUE_SET_PROPERTY_PREEMPTION_TIMEOUT	2
-#define   DRM_XE_EXEC_QUEUE_SET_PROPERTY_PERSISTENCE		3
-#define   DRM_XE_EXEC_QUEUE_SET_PROPERTY_JOB_TIMEOUT		4
-#define   DRM_XE_EXEC_QUEUE_SET_PROPERTY_ACC_TRIGGER		5
-#define   DRM_XE_EXEC_QUEUE_SET_PROPERTY_ACC_NOTIFY		6
-#define   DRM_XE_EXEC_QUEUE_SET_PROPERTY_ACC_GRANULARITY	7
+#define   DRM_XE_EXEC_QUEUE_SET_PROPERTY_JOB_TIMEOUT		3
+#define   DRM_XE_EXEC_QUEUE_SET_PROPERTY_ACC_TRIGGER		4
+#define   DRM_XE_EXEC_QUEUE_SET_PROPERTY_ACC_NOTIFY		5
+#define   DRM_XE_EXEC_QUEUE_SET_PROPERTY_ACC_GRANULARITY	6
 /* Monitor 128KB contiguous region with 4K sub-granularity */
 #define     DRM_XE_ACC_GRANULARITY_128K				0
 /* Monitor 2MB contiguous region with 64KB sub-granularity */
tests/intel/xe_exec_queue_property.c +0 -8
index 53e08fb0e..4fdd4ceae 100644
@@ -11,8 +11,6 @@
  * Test category: functionality test
  * SUBTEST: priority-set-property
  * Description: tests basic priority property by setting invalid values and positive values.
- * SUBTEST: persistence-set-property
- * Description: tests basic persistence property by setting positive values
  * SUBTEST: %s-property-min-max
  * Description: Test to check if %s arg[1] schedule parameter checks for min max values.
  *
@@ -214,12 +212,6 @@ igt_main
 		igt_waitchildren();
 	}
 
-	igt_subtest("persistence-set-property") {
-		/* Tests persistence property by setting positive values. */
-		test_set_property(xe, DRM_XE_EXEC_QUEUE_SET_PROPERTY_PERSISTENCE, 1, 0);
-
-	}
-
 	igt_subtest_group {
 		igt_fixture {
 			sys_fd = igt_sysfs_open(xe);
Signature · 1 line
2.25.1