Skip to contentSkip to conversation

tests/intel/xe_drm_fdinfo: Increase sampling period

PATCH In review Lucas De Marchi 2 participants 3 messages Nov 8, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tests/intel/xe_drm_fdinfo: Increase sampling period

This reverts commit 4f79f059766c ("tests/intel/xe_drm_fdinfo: Half the execution time") and goes in the opposite direction, doubling it. Although in some machines we pass consistently, others like LNL show sporadic failures.

Even after changes in the kernel to improve it, it still shows those failures. Also, the failures can be much more frequent by stressing all the CPUs. Raise the period to reduce the error introduced due to additional scheduling delays. This shows a good improvement on LNL that doesn't fail anymore without CPU load and fails once every ~200 iterations with 100% CPU load (vs once every ~3 iterations).

---
 tests/intel/xe_drm_fdinfo.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/intel/xe_drm_fdinfo.c +1 -1
index 5fd7c0416..ef9273e2a 100644
@@ -82,7 +82,7 @@ struct pceu_cycles {
 	uint64_t total_cycles;
 };
 
-const unsigned long batch_duration_usec = (1 * USEC_PER_SEC) / 4;
+const unsigned long batch_duration_usec = (1 * USEC_PER_SEC);
 
 static const char *engine_map[] = {
 	"rcs",
Signature · 1 line
2.47.0
#1 lore raw

I sent this to the wrong mailing list, should had been on the igt mailing list. Please ignore.

Lucas De Marchi

Quoted 33 lines · Lucas De Marchi

This reverts commit 4f79f059766c ("tests/intel/xe_drm_fdinfo: Half the execution time") and goes in the opposite direction, doubling it. Although in some machines we pass consistently, others like LNL show sporadic failures.

Even after changes in the kernel to improve it, it still shows those failures. Also, the failures can be much more frequent by stressing all the CPUs. Raise the period to reduce the error introduced due to additional scheduling delays. This shows a good improvement on LNL that doesn't fail anymore without CPU load and fails once every ~200 iterations with 100% CPU load (vs once every ~3 iterations).

---
tests/intel/xe_drm_fdinfo.c | 2 +-

1 file changed, 1 insertion(+), 1 deletion(-)
tests/intel/xe_drm_fdinfo.c +1 -1
index 5fd7c0416..ef9273e2a 100644
@@ -82,7 +82,7 @@ struct pceu_cycles {
 	uint64_t total_cycles;
 };
 
-const unsigned long batch_duration_usec = (1 * USEC_PER_SEC) / 4;
+const unsigned long batch_duration_usec = (1 * USEC_PER_SEC);
 
 static const char *engine_map[] = {
 	"rcs",
Signature · 1 line
2.47.0
#2 lore raw

✗ CI.Patch_applied: failure for tests/intel/xe_drm_fdinfo: Increase sampling period

In reply to Lucas De Marchi
== Series Details ==

== Series Details ==

Series: tests/intel/xe_drm_fdinfo: Increase sampling period
URL : https://patchwork.freedesktop.org/series/141082/
State : failure

== Summary ==

=== Applying kernel patches on branch 'drm-tip' with base: ===
Base commit: 5f445c6723de drm-tip: 2024y-11m-08d-03h-48m-35s UTC integration manifest === git am output follows ===
error: tests/intel/xe_drm_fdinfo.c: does not exist in index
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Applying: tests/intel/xe_drm_fdinfo: Increase sampling period
Patch failed at 0001 tests/intel/xe_drm_fdinfo: Increase sampling period When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".