Skip to contentSkip to conversation

tests: restrict realtime cpu

PATCH Superseded Hongzhan Chen 2 participants 6 messages Jun 23, 2021 – Jun 24, 2021

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tests: restrict realtime cpu

If there is no CPU restriction on the bootargs, smokey cpu_affinity test would be skipped reporting with "no kernel support".

tests/jobs/xenomai-beagle-bone-black.yml +2 -0
index 034ac99..8117f29 100644
@@ -71,3 +71,5 @@ actions:
       from: inline
       path: inline/xenomai-test-suite.yaml
       name: xenomai-test-suite
+context:
+  extra_kernel_args: xenomai.supported_cpus=1
tests/jobs/xenomai-hikey.yml +2 -0
index f6eb4a4..5987c94 100644
@@ -70,3 +70,5 @@ actions:
       from: inline
       path: inline/xenomai-test-suite.yaml
       name: xenomai-test-suite
+context:
+  extra_kernel_args: xenomai.supported_cpus=1
tests/jobs/xenomai-ipc227e.yml +2 -0
index a5a181c..7f3600d 100644
@@ -72,3 +72,5 @@ actions:
       from: inline
       path: inline/xenomai-test-suite.yaml
       name: xenomai-test-suite
+context:
+  extra_kernel_args: xenomai.supported_cpus=1
tests/jobs/xenomai-minnow.yml +2 -0
index d5292ff..98c3eac 100644
@@ -71,3 +71,5 @@ actions:
       from: inline
       path: inline/xenomai-test-suite.yaml
       name: xenomai-test-suite
+context:
+  extra_kernel_args: xenomai.supported_cpus=1
tests/jobs/xenomai-qemu-amd64.yml +2 -0
index c335292..b35a1a5 100644
@@ -87,3 +87,5 @@ actions:
       from: inline
       path: inline/xenomai-test-suite.yaml
       name: xenomai-test-suite
+context:
+  extra_kernel_args: xenomai.supported_cpus=1
tests/jobs/xenomai-qemu-arm64.yml +2 -0
index 88fb880..27418ff 100644
@@ -93,3 +93,5 @@ actions:
       from: inline
       path: inline/xenomai-test-suite.yaml
       name: xenomai-test-suite
+context:
+  extra_kernel_args: xenomai.supported_cpus=1
tests/jobs/xenomai-qemu-armhf.yml +2 -0
index 3e3a8ab..14501b7 100644
@@ -87,3 +87,5 @@ actions:
       from: inline
       path: inline/xenomai-test-suite.yaml
       name: xenomai-test-suite
+context:
+  extra_kernel_args: xenomai.supported_cpus=1
tests/jobs/xenomai-x86-64-efi.yml +2 -0
index bc71b75..95b2288 100644
@@ -72,3 +72,5 @@ actions:
       from: inline
       path: inline/xenomai-test-suite.yaml
       name: xenomai-test-suite
+context:
+  extra_kernel_args: xenomai.supported_cpus=1
Signature · 1 line
2.17.1
#1 lore raw
Quoted 81 lines · Hongzhan Chen

If there is no CPU restriction on the bootargs, smokey cpu_affinity test would be skipped reporting with "no kernel support".

tests/jobs/xenomai-beagle-bone-black.yml +2 -0
index 034ac99..8117f29 100644
@@ -71,3 +71,5 @@ actions:
       from: inline
       path: inline/xenomai-test-suite.yaml
       name: xenomai-test-suite
+context:
+  extra_kernel_args: xenomai.supported_cpus=1
tests/jobs/xenomai-hikey.yml +2 -0
index f6eb4a4..5987c94 100644
@@ -70,3 +70,5 @@ actions:
       from: inline
       path: inline/xenomai-test-suite.yaml
       name: xenomai-test-suite
+context:
+  extra_kernel_args: xenomai.supported_cpus=1
tests/jobs/xenomai-ipc227e.yml +2 -0
index a5a181c..7f3600d 100644
@@ -72,3 +72,5 @@ actions:
       from: inline
       path: inline/xenomai-test-suite.yaml
       name: xenomai-test-suite
+context:
+  extra_kernel_args: xenomai.supported_cpus=1
tests/jobs/xenomai-minnow.yml +2 -0
index d5292ff..98c3eac 100644
@@ -71,3 +71,5 @@ actions:
       from: inline
       path: inline/xenomai-test-suite.yaml
       name: xenomai-test-suite
+context:
+  extra_kernel_args: xenomai.supported_cpus=1
tests/jobs/xenomai-qemu-amd64.yml +2 -0
index c335292..b35a1a5 100644
@@ -87,3 +87,5 @@ actions:
       from: inline
       path: inline/xenomai-test-suite.yaml
       name: xenomai-test-suite
+context:
+  extra_kernel_args: xenomai.supported_cpus=1
tests/jobs/xenomai-qemu-arm64.yml +2 -0
index 88fb880..27418ff 100644
@@ -93,3 +93,5 @@ actions:
       from: inline
       path: inline/xenomai-test-suite.yaml
       name: xenomai-test-suite
+context:
+  extra_kernel_args: xenomai.supported_cpus=1
tests/jobs/xenomai-qemu-armhf.yml +2 -0
index 3e3a8ab..14501b7 100644
@@ -87,3 +87,5 @@ actions:
       from: inline
       path: inline/xenomai-test-suite.yaml
       name: xenomai-test-suite
+context:
+  extra_kernel_args: xenomai.supported_cpus=1
tests/jobs/xenomai-x86-64-efi.yml +0 -0
index bc71b75..95b2288 100644

tests/jobs/xenomai-x86-64-efi.yml actions: · line 76

Quoted 5 lines
tests/jobs/xenomai-x86-64-efi.yml +2 -0
@@ -72,3 +72,5 @@ actions:
       from: inline
       path: inline/xenomai-test-suite.yaml
       name: xenomai-test-suite
+context:
+  extra_kernel_args: xenomai.supported_cpus=1

Let's not make all targets single-core regarding real-time. Rather, exclude one single-core from the real-time domain.

Jan

Signature · 2 lines
Siemens AG, T RDA IOT
Corporate Competence Center Embedded Linux
#2 lore raw
Quoted 89 lines

-----Original Message-----
From: Jan Kiszka <[email protected]>
Sent: Wednesday, June 23, 2021 2:18 PM
To: Chen, Hongzhan <[email protected]>; [email protected]
Subject: Re: [xenomai-images PATCH] tests: restrict realtime cpu

Quoted 81 lines · Hongzhan Chen

If there is no CPU restriction on the bootargs, smokey cpu_affinity test would be skipped reporting with "no kernel support".

tests/jobs/xenomai-beagle-bone-black.yml +2 -0
index 034ac99..8117f29 100644
@@ -71,3 +71,5 @@ actions:
       from: inline
       path: inline/xenomai-test-suite.yaml
       name: xenomai-test-suite
+context:
+  extra_kernel_args: xenomai.supported_cpus=1
tests/jobs/xenomai-hikey.yml +2 -0
index f6eb4a4..5987c94 100644
@@ -70,3 +70,5 @@ actions:
       from: inline
       path: inline/xenomai-test-suite.yaml
       name: xenomai-test-suite
+context:
+  extra_kernel_args: xenomai.supported_cpus=1
tests/jobs/xenomai-ipc227e.yml +2 -0
index a5a181c..7f3600d 100644
@@ -72,3 +72,5 @@ actions:
       from: inline
       path: inline/xenomai-test-suite.yaml
       name: xenomai-test-suite
+context:
+  extra_kernel_args: xenomai.supported_cpus=1
tests/jobs/xenomai-minnow.yml +2 -0
index d5292ff..98c3eac 100644
@@ -71,3 +71,5 @@ actions:
       from: inline
       path: inline/xenomai-test-suite.yaml
       name: xenomai-test-suite
+context:
+  extra_kernel_args: xenomai.supported_cpus=1
tests/jobs/xenomai-qemu-amd64.yml +2 -0
index c335292..b35a1a5 100644
@@ -87,3 +87,5 @@ actions:
       from: inline
       path: inline/xenomai-test-suite.yaml
       name: xenomai-test-suite
+context:
+  extra_kernel_args: xenomai.supported_cpus=1
tests/jobs/xenomai-qemu-arm64.yml +2 -0
index 88fb880..27418ff 100644
@@ -93,3 +93,5 @@ actions:
       from: inline
       path: inline/xenomai-test-suite.yaml
       name: xenomai-test-suite
+context:
+  extra_kernel_args: xenomai.supported_cpus=1
tests/jobs/xenomai-qemu-armhf.yml +2 -0
index 3e3a8ab..14501b7 100644
@@ -87,3 +87,5 @@ actions:
       from: inline
       path: inline/xenomai-test-suite.yaml
       name: xenomai-test-suite
+context:
+  extra_kernel_args: xenomai.supported_cpus=1
tests/jobs/xenomai-x86-64-efi.yml +0 -0
index bc71b75..95b2288 100644
@@ -72,3 +72,5 @@ actions:
       from: inline
Quoted 8 lines

tests/jobs/xenomai-x86-64-efi.yml actions: · line 76

Quoted 5 lines
tests/jobs/xenomai-x86-64-efi.yml +2 -0
       path: inline/xenomai-test-suite.yaml
       name: xenomai-test-suite
+context:
+  extra_kernel_args: xenomai.supported_cpus=1

Let's not make all targets single-core regarding real-time. Rather, exclude one single-core from the real-time domain.

If we pass invalid supported_cpus value, cpu-affinity test would return EINVAL error. That means we cannot set uniform value for different boards because different boards have different cpu configuration if we want to exclude one signal-core from real-time domain via xenomai.supported_cpus. In addition , I do not know the exact hardware cpu configuration for different target boards behind each lava test job.

Regards

Hongzhan Chen

Quoted 6 lines

Jan

Signature · 2 lines
Siemens AG, T RDA IOT
Corporate Competence Center Embedded Linux
#3 lore raw
Quoted 98 lines · Hongzhan
Quoted 89 lines

-----Original Message-----
From: Jan Kiszka <[email protected]>
Sent: Wednesday, June 23, 2021 2:18 PM
To: Chen, Hongzhan <[email protected]>; [email protected]
Subject: Re: [xenomai-images PATCH] tests: restrict realtime cpu

Quoted 81 lines · Hongzhan Chen

If there is no CPU restriction on the bootargs, smokey cpu_affinity test would be skipped reporting with "no kernel support".

tests/jobs/xenomai-beagle-bone-black.yml +2 -0
index 034ac99..8117f29 100644
@@ -71,3 +71,5 @@ actions:
       from: inline
       path: inline/xenomai-test-suite.yaml
       name: xenomai-test-suite
+context:
+  extra_kernel_args: xenomai.supported_cpus=1
tests/jobs/xenomai-hikey.yml +2 -0
index f6eb4a4..5987c94 100644
@@ -70,3 +70,5 @@ actions:
       from: inline
       path: inline/xenomai-test-suite.yaml
       name: xenomai-test-suite
+context:
+  extra_kernel_args: xenomai.supported_cpus=1
tests/jobs/xenomai-ipc227e.yml +2 -0
index a5a181c..7f3600d 100644
@@ -72,3 +72,5 @@ actions:
       from: inline
       path: inline/xenomai-test-suite.yaml
       name: xenomai-test-suite
+context:
+  extra_kernel_args: xenomai.supported_cpus=1
tests/jobs/xenomai-minnow.yml +2 -0
index d5292ff..98c3eac 100644
@@ -71,3 +71,5 @@ actions:
       from: inline
       path: inline/xenomai-test-suite.yaml
       name: xenomai-test-suite
+context:
+  extra_kernel_args: xenomai.supported_cpus=1
tests/jobs/xenomai-qemu-amd64.yml +2 -0
index c335292..b35a1a5 100644
@@ -87,3 +87,5 @@ actions:
       from: inline
       path: inline/xenomai-test-suite.yaml
       name: xenomai-test-suite
+context:
+  extra_kernel_args: xenomai.supported_cpus=1
tests/jobs/xenomai-qemu-arm64.yml +2 -0
index 88fb880..27418ff 100644
@@ -93,3 +93,5 @@ actions:
       from: inline
       path: inline/xenomai-test-suite.yaml
       name: xenomai-test-suite
+context:
+  extra_kernel_args: xenomai.supported_cpus=1
tests/jobs/xenomai-qemu-armhf.yml +2 -0
index 3e3a8ab..14501b7 100644
@@ -87,3 +87,5 @@ actions:
       from: inline
       path: inline/xenomai-test-suite.yaml
       name: xenomai-test-suite
+context:
+  extra_kernel_args: xenomai.supported_cpus=1
tests/jobs/xenomai-x86-64-efi.yml +0 -0
index bc71b75..95b2288 100644
@@ -72,3 +72,5 @@ actions:
       from: inline
Quoted 8 lines

tests/jobs/xenomai-x86-64-efi.yml actions: · line 76

Quoted 5 lines
tests/jobs/xenomai-x86-64-efi.yml +2 -0
       path: inline/xenomai-test-suite.yaml
       name: xenomai-test-suite
+context:
+  extra_kernel_args: xenomai.supported_cpus=1

Let's not make all targets single-core regarding real-time. Rather, exclude one single-core from the real-time domain.

Quoted 5 lines

If we pass invalid supported_cpus value, cpu-affinity test would return EINVAL error. That means we cannot set uniform value for different boards because different boards have different cpu configuration if we want to exclude one signal-core from real-time domain via xenomai.supported_cpus. In addition , I do not know the exact hardware cpu configuration for different target boards behind each lava test job.

You can extract the information from the test logs, see e.g.
https://source.denx.de/Xenomai/xenomai-images/-/jobs/281065, "SMP: Total of 1 processors activated (996.14 BogoMIPS)."

Jan

Signature · 2 lines
Siemens AG, T RDA IOT
Corporate Competence Center Embedded Linux
#4 lore raw
Quoted 113 lines

-----Original Message-----
From: Jan Kiszka <[email protected]>
Sent: Wednesday, June 23, 2021 5:15 PM
To: Chen, Hongzhan <[email protected]>; [email protected]
Subject: Re: [xenomai-images PATCH] tests: restrict realtime cpu

Quoted 98 lines · Hongzhan
Quoted 89 lines

-----Original Message-----
From: Jan Kiszka <[email protected]>
Sent: Wednesday, June 23, 2021 2:18 PM
To: Chen, Hongzhan <[email protected]>; [email protected]
Subject: Re: [xenomai-images PATCH] tests: restrict realtime cpu

Quoted 81 lines · Hongzhan Chen

If there is no CPU restriction on the bootargs, smokey cpu_affinity test would be skipped reporting with "no kernel support".

tests/jobs/xenomai-beagle-bone-black.yml +2 -0
index 034ac99..8117f29 100644
@@ -71,3 +71,5 @@ actions:
       from: inline
       path: inline/xenomai-test-suite.yaml
       name: xenomai-test-suite
+context:
+  extra_kernel_args: xenomai.supported_cpus=1
tests/jobs/xenomai-hikey.yml +2 -0
index f6eb4a4..5987c94 100644
@@ -70,3 +70,5 @@ actions:
       from: inline
       path: inline/xenomai-test-suite.yaml
       name: xenomai-test-suite
+context:
+  extra_kernel_args: xenomai.supported_cpus=1
tests/jobs/xenomai-ipc227e.yml +2 -0
index a5a181c..7f3600d 100644
@@ -72,3 +72,5 @@ actions:
       from: inline
       path: inline/xenomai-test-suite.yaml
       name: xenomai-test-suite
+context:
+  extra_kernel_args: xenomai.supported_cpus=1
tests/jobs/xenomai-minnow.yml +2 -0
index d5292ff..98c3eac 100644
@@ -71,3 +71,5 @@ actions:
       from: inline
       path: inline/xenomai-test-suite.yaml
       name: xenomai-test-suite
+context:
+  extra_kernel_args: xenomai.supported_cpus=1
tests/jobs/xenomai-qemu-amd64.yml +2 -0
index c335292..b35a1a5 100644
@@ -87,3 +87,5 @@ actions:
       from: inline
       path: inline/xenomai-test-suite.yaml
       name: xenomai-test-suite
+context:
+  extra_kernel_args: xenomai.supported_cpus=1
tests/jobs/xenomai-qemu-arm64.yml +2 -0
index 88fb880..27418ff 100644
@@ -93,3 +93,5 @@ actions:
       from: inline
       path: inline/xenomai-test-suite.yaml
       name: xenomai-test-suite
+context:
+  extra_kernel_args: xenomai.supported_cpus=1
tests/jobs/xenomai-qemu-armhf.yml +2 -0
index 3e3a8ab..14501b7 100644
@@ -87,3 +87,5 @@ actions:
       from: inline
       path: inline/xenomai-test-suite.yaml
       name: xenomai-test-suite
+context:
+  extra_kernel_args: xenomai.supported_cpus=1
tests/jobs/xenomai-x86-64-efi.yml +0 -0
index bc71b75..95b2288 100644
@@ -72,3 +72,5 @@ actions:
       from: inline
Quoted 8 lines

tests/jobs/xenomai-x86-64-efi.yml actions: · line 76

Quoted 5 lines
tests/jobs/xenomai-x86-64-efi.yml +2 -0
       path: inline/xenomai-test-suite.yaml
       name: xenomai-test-suite
+context:
+  extra_kernel_args: xenomai.supported_cpus=1

Let's not make all targets single-core regarding real-time. Rather, exclude one single-core from the real-time domain.

Quoted 5 lines

If we pass invalid supported_cpus value, cpu-affinity test would return EINVAL error. That means we cannot set uniform value for different boards because different boards have different cpu configuration if we want to exclude one signal-core from real-time domain via xenomai.supported_cpus. In addition , I do not know the exact hardware cpu configuration for different target boards behind each lava test job.

Quoted 3 lines

You can extract the information from the test logs, see e.g.
https://source.denx.de/Xenomai/xenomai-images/-/jobs/281065, "SMP: Total of 1 processors activated (996.14 BogoMIPS)."

What about xenomai-ipc227e.yml and xenomai-minnow.yml? I cannot find any log for them and seems these two jobs never run. Do I need to touch them?
In addition, our patch does not work for single cpu system.

Regards

Hongzhan Chen

Quoted 6 lines

Jan

Signature · 2 lines
Siemens AG, T RDA IOT
Corporate Competence Center Embedded Linux
#5 lore raw
Quoted 113 lines · Hongzhan
Quoted 113 lines

-----Original Message-----
From: Jan Kiszka <[email protected]>
Sent: Wednesday, June 23, 2021 5:15 PM
To: Chen, Hongzhan <[email protected]>; [email protected]
Subject: Re: [xenomai-images PATCH] tests: restrict realtime cpu

Quoted 103 lines · Hongzhan
Quoted 89 lines

-----Original Message-----
From: Jan Kiszka <[email protected]>
Sent: Wednesday, June 23, 2021 2:18 PM
To: Chen, Hongzhan <[email protected]>; [email protected]
Subject: Re: [xenomai-images PATCH] tests: restrict realtime cpu

Quoted 81 lines · Hongzhan Chen

If there is no CPU restriction on the bootargs, smokey cpu_affinity test would be skipped reporting with "no kernel support".

tests/jobs/xenomai-beagle-bone-black.yml +2 -0
index 034ac99..8117f29 100644
@@ -71,3 +71,5 @@ actions:
       from: inline
       path: inline/xenomai-test-suite.yaml
       name: xenomai-test-suite
+context:
+  extra_kernel_args: xenomai.supported_cpus=1
tests/jobs/xenomai-hikey.yml +2 -0
index f6eb4a4..5987c94 100644
@@ -70,3 +70,5 @@ actions:
       from: inline
       path: inline/xenomai-test-suite.yaml
       name: xenomai-test-suite
+context:
+  extra_kernel_args: xenomai.supported_cpus=1
tests/jobs/xenomai-ipc227e.yml +2 -0
index a5a181c..7f3600d 100644
@@ -72,3 +72,5 @@ actions:
       from: inline
       path: inline/xenomai-test-suite.yaml
       name: xenomai-test-suite
+context:
+  extra_kernel_args: xenomai.supported_cpus=1
tests/jobs/xenomai-minnow.yml +2 -0
index d5292ff..98c3eac 100644
@@ -71,3 +71,5 @@ actions:
       from: inline
       path: inline/xenomai-test-suite.yaml
       name: xenomai-test-suite
+context:
+  extra_kernel_args: xenomai.supported_cpus=1
tests/jobs/xenomai-qemu-amd64.yml +2 -0
index c335292..b35a1a5 100644
@@ -87,3 +87,5 @@ actions:
       from: inline
       path: inline/xenomai-test-suite.yaml
       name: xenomai-test-suite
+context:
+  extra_kernel_args: xenomai.supported_cpus=1
tests/jobs/xenomai-qemu-arm64.yml +2 -0
index 88fb880..27418ff 100644
@@ -93,3 +93,5 @@ actions:
       from: inline
       path: inline/xenomai-test-suite.yaml
       name: xenomai-test-suite
+context:
+  extra_kernel_args: xenomai.supported_cpus=1
tests/jobs/xenomai-qemu-armhf.yml +2 -0
index 3e3a8ab..14501b7 100644
@@ -87,3 +87,5 @@ actions:
       from: inline
       path: inline/xenomai-test-suite.yaml
       name: xenomai-test-suite
+context:
+  extra_kernel_args: xenomai.supported_cpus=1
tests/jobs/xenomai-x86-64-efi.yml +0 -0
index bc71b75..95b2288 100644
@@ -72,3 +72,5 @@ actions:
       from: inline
Quoted 8 lines

tests/jobs/xenomai-x86-64-efi.yml actions: · line 76

Quoted 5 lines
tests/jobs/xenomai-x86-64-efi.yml +2 -0
       path: inline/xenomai-test-suite.yaml
       name: xenomai-test-suite
+context:
+  extra_kernel_args: xenomai.supported_cpus=1

Let's not make all targets single-core regarding real-time. Rather, exclude one single-core from the real-time domain.

If we pass invalid supported_cpus value, cpu-affinity test would return EINVAL error. That means we cannot set uniform value for different boards because different boards have different cpu configuration if we want to exclude one signal-core from real-time domain via xenomai.supported_cpus. In addition , I do not know the exact hardware cpu configuration for different target boards behind each lava test job.

Quoted 6 lines
Quoted 3 lines

You can extract the information from the test logs, see e.g.
https://source.denx.de/Xenomai/xenomai-images/-/jobs/281065, "SMP: Total of 1 processors activated (996.14 BogoMIPS)."

What about xenomai-ipc227e.yml and xenomai-minnow.yml? I cannot find any log for them and seems these two jobs never run. Do I need to touch them?

Yeah, confusing: The 227e is the x86 target, eg.
https://source.denx.de/Xenomai/xenomai-images/-/jobs/281072. We don't have the minnow in the rack because it turned out to be too borken firmware-wise. Maybe time to drop that file.

Quoted 2 lines

In addition, our patch does not work for single cpu system.

Right, single-core targets (but that should only be the BBB in the rack) needs to be be skipped.

Jan

Signature · 2 lines
Siemens AG, T RDA IOT
Corporate Competence Center Embedded Linux