All of lore.kernel.org
 help / color / mirror / Atom feed
* [xenomai-images PATCH] tests: restrict realtime cpu
@ 2021-06-23  5:31 Hongzhan Chen
  2021-06-23  6:17 ` Jan Kiszka
  0 siblings, 1 reply; 6+ messages in thread
From: Hongzhan Chen @ 2021-06-23  5:31 UTC (permalink / raw)
  To: xenomai, jan.kiszka

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

Signed-off-by: Hongzhan Chen <hongzhan.chen@intel.com>

diff --git a/tests/jobs/xenomai-beagle-bone-black.yml b/tests/jobs/xenomai-beagle-bone-black.yml
index 034ac99..8117f29 100644
--- a/tests/jobs/xenomai-beagle-bone-black.yml
+++ b/tests/jobs/xenomai-beagle-bone-black.yml
@@ -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
diff --git a/tests/jobs/xenomai-hikey.yml b/tests/jobs/xenomai-hikey.yml
index f6eb4a4..5987c94 100644
--- a/tests/jobs/xenomai-hikey.yml
+++ b/tests/jobs/xenomai-hikey.yml
@@ -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
diff --git a/tests/jobs/xenomai-ipc227e.yml b/tests/jobs/xenomai-ipc227e.yml
index a5a181c..7f3600d 100644
--- a/tests/jobs/xenomai-ipc227e.yml
+++ b/tests/jobs/xenomai-ipc227e.yml
@@ -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
diff --git a/tests/jobs/xenomai-minnow.yml b/tests/jobs/xenomai-minnow.yml
index d5292ff..98c3eac 100644
--- a/tests/jobs/xenomai-minnow.yml
+++ b/tests/jobs/xenomai-minnow.yml
@@ -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
diff --git a/tests/jobs/xenomai-qemu-amd64.yml b/tests/jobs/xenomai-qemu-amd64.yml
index c335292..b35a1a5 100644
--- a/tests/jobs/xenomai-qemu-amd64.yml
+++ b/tests/jobs/xenomai-qemu-amd64.yml
@@ -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
diff --git a/tests/jobs/xenomai-qemu-arm64.yml b/tests/jobs/xenomai-qemu-arm64.yml
index 88fb880..27418ff 100644
--- a/tests/jobs/xenomai-qemu-arm64.yml
+++ b/tests/jobs/xenomai-qemu-arm64.yml
@@ -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
diff --git a/tests/jobs/xenomai-qemu-armhf.yml b/tests/jobs/xenomai-qemu-armhf.yml
index 3e3a8ab..14501b7 100644
--- a/tests/jobs/xenomai-qemu-armhf.yml
+++ b/tests/jobs/xenomai-qemu-armhf.yml
@@ -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
diff --git a/tests/jobs/xenomai-x86-64-efi.yml b/tests/jobs/xenomai-x86-64-efi.yml
index bc71b75..95b2288 100644
--- a/tests/jobs/xenomai-x86-64-efi.yml
+++ b/tests/jobs/xenomai-x86-64-efi.yml
@@ -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
-- 
2.17.1



^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [xenomai-images PATCH] tests: restrict realtime cpu
  2021-06-23  5:31 [xenomai-images PATCH] tests: restrict realtime cpu Hongzhan Chen
@ 2021-06-23  6:17 ` Jan Kiszka
  2021-06-23  7:58   ` Chen, Hongzhan
  0 siblings, 1 reply; 6+ messages in thread
From: Jan Kiszka @ 2021-06-23  6:17 UTC (permalink / raw)
  To: Hongzhan Chen, xenomai

On 23.06.21 07:31, Hongzhan Chen wrote:
> If there is no CPU restriction on the bootargs, smokey cpu_affinity
> test would be skipped reporting with "no kernel support".
> 
> Signed-off-by: Hongzhan Chen <hongzhan.chen@intel.com>
> 
> diff --git a/tests/jobs/xenomai-beagle-bone-black.yml b/tests/jobs/xenomai-beagle-bone-black.yml
> index 034ac99..8117f29 100644
> --- a/tests/jobs/xenomai-beagle-bone-black.yml
> +++ b/tests/jobs/xenomai-beagle-bone-black.yml
> @@ -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
> diff --git a/tests/jobs/xenomai-hikey.yml b/tests/jobs/xenomai-hikey.yml
> index f6eb4a4..5987c94 100644
> --- a/tests/jobs/xenomai-hikey.yml
> +++ b/tests/jobs/xenomai-hikey.yml
> @@ -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
> diff --git a/tests/jobs/xenomai-ipc227e.yml b/tests/jobs/xenomai-ipc227e.yml
> index a5a181c..7f3600d 100644
> --- a/tests/jobs/xenomai-ipc227e.yml
> +++ b/tests/jobs/xenomai-ipc227e.yml
> @@ -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
> diff --git a/tests/jobs/xenomai-minnow.yml b/tests/jobs/xenomai-minnow.yml
> index d5292ff..98c3eac 100644
> --- a/tests/jobs/xenomai-minnow.yml
> +++ b/tests/jobs/xenomai-minnow.yml
> @@ -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
> diff --git a/tests/jobs/xenomai-qemu-amd64.yml b/tests/jobs/xenomai-qemu-amd64.yml
> index c335292..b35a1a5 100644
> --- a/tests/jobs/xenomai-qemu-amd64.yml
> +++ b/tests/jobs/xenomai-qemu-amd64.yml
> @@ -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
> diff --git a/tests/jobs/xenomai-qemu-arm64.yml b/tests/jobs/xenomai-qemu-arm64.yml
> index 88fb880..27418ff 100644
> --- a/tests/jobs/xenomai-qemu-arm64.yml
> +++ b/tests/jobs/xenomai-qemu-arm64.yml
> @@ -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
> diff --git a/tests/jobs/xenomai-qemu-armhf.yml b/tests/jobs/xenomai-qemu-armhf.yml
> index 3e3a8ab..14501b7 100644
> --- a/tests/jobs/xenomai-qemu-armhf.yml
> +++ b/tests/jobs/xenomai-qemu-armhf.yml
> @@ -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
> diff --git a/tests/jobs/xenomai-x86-64-efi.yml b/tests/jobs/xenomai-x86-64-efi.yml
> index bc71b75..95b2288 100644
> --- a/tests/jobs/xenomai-x86-64-efi.yml
> +++ b/tests/jobs/xenomai-x86-64-efi.yml
> @@ -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

-- 
Siemens AG, T RDA IOT
Corporate Competence Center Embedded Linux


^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: [xenomai-images PATCH] tests: restrict realtime cpu
  2021-06-23  6:17 ` Jan Kiszka
@ 2021-06-23  7:58   ` Chen, Hongzhan
  2021-06-23  9:14     ` Jan Kiszka
  0 siblings, 1 reply; 6+ messages in thread
From: Chen, Hongzhan @ 2021-06-23  7:58 UTC (permalink / raw)
  To: Jan Kiszka, xenomai


>-----Original Message-----
>From: Jan Kiszka <jan.kiszka@siemens.com> 
>Sent: Wednesday, June 23, 2021 2:18 PM
>To: Chen, Hongzhan <hongzhan.chen@intel.com>; xenomai@xenomai.org
>Subject: Re: [xenomai-images PATCH] tests: restrict realtime cpu
>
>On 23.06.21 07:31, Hongzhan Chen wrote:
>> If there is no CPU restriction on the bootargs, smokey cpu_affinity
>> test would be skipped reporting with "no kernel support".
>> 
>> Signed-off-by: Hongzhan Chen <hongzhan.chen@intel.com>
>> 
>> diff --git a/tests/jobs/xenomai-beagle-bone-black.yml b/tests/jobs/xenomai-beagle-bone-black.yml
>> index 034ac99..8117f29 100644
>> --- a/tests/jobs/xenomai-beagle-bone-black.yml
>> +++ b/tests/jobs/xenomai-beagle-bone-black.yml
>> @@ -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
>> diff --git a/tests/jobs/xenomai-hikey.yml b/tests/jobs/xenomai-hikey.yml
>> index f6eb4a4..5987c94 100644
>> --- a/tests/jobs/xenomai-hikey.yml
>> +++ b/tests/jobs/xenomai-hikey.yml
>> @@ -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
>> diff --git a/tests/jobs/xenomai-ipc227e.yml b/tests/jobs/xenomai-ipc227e.yml
>> index a5a181c..7f3600d 100644
>> --- a/tests/jobs/xenomai-ipc227e.yml
>> +++ b/tests/jobs/xenomai-ipc227e.yml
>> @@ -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
>> diff --git a/tests/jobs/xenomai-minnow.yml b/tests/jobs/xenomai-minnow.yml
>> index d5292ff..98c3eac 100644
>> --- a/tests/jobs/xenomai-minnow.yml
>> +++ b/tests/jobs/xenomai-minnow.yml
>> @@ -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
>> diff --git a/tests/jobs/xenomai-qemu-amd64.yml b/tests/jobs/xenomai-qemu-amd64.yml
>> index c335292..b35a1a5 100644
>> --- a/tests/jobs/xenomai-qemu-amd64.yml
>> +++ b/tests/jobs/xenomai-qemu-amd64.yml
>> @@ -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
>> diff --git a/tests/jobs/xenomai-qemu-arm64.yml b/tests/jobs/xenomai-qemu-arm64.yml
>> index 88fb880..27418ff 100644
>> --- a/tests/jobs/xenomai-qemu-arm64.yml
>> +++ b/tests/jobs/xenomai-qemu-arm64.yml
>> @@ -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
>> diff --git a/tests/jobs/xenomai-qemu-armhf.yml b/tests/jobs/xenomai-qemu-armhf.yml
>> index 3e3a8ab..14501b7 100644
>> --- a/tests/jobs/xenomai-qemu-armhf.yml
>> +++ b/tests/jobs/xenomai-qemu-armhf.yml
>> @@ -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
>> diff --git a/tests/jobs/xenomai-x86-64-efi.yml b/tests/jobs/xenomai-x86-64-efi.yml
>> index bc71b75..95b2288 100644
>> --- a/tests/jobs/xenomai-x86-64-efi.yml
>> +++ b/tests/jobs/xenomai-x86-64-efi.yml
>> @@ -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.

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
>
>Jan
>
>-- 
>Siemens AG, T RDA IOT
>Corporate Competence Center Embedded Linux

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [xenomai-images PATCH] tests: restrict realtime cpu
  2021-06-23  7:58   ` Chen, Hongzhan
@ 2021-06-23  9:14     ` Jan Kiszka
  2021-06-24  1:21       ` Chen, Hongzhan
  0 siblings, 1 reply; 6+ messages in thread
From: Jan Kiszka @ 2021-06-23  9:14 UTC (permalink / raw)
  To: Chen, Hongzhan, xenomai

On 23.06.21 09:58, Chen, Hongzhan wrote:
> 
>> -----Original Message-----
>> From: Jan Kiszka <jan.kiszka@siemens.com> 
>> Sent: Wednesday, June 23, 2021 2:18 PM
>> To: Chen, Hongzhan <hongzhan.chen@intel.com>; xenomai@xenomai.org
>> Subject: Re: [xenomai-images PATCH] tests: restrict realtime cpu
>>
>> On 23.06.21 07:31, Hongzhan Chen wrote:
>>> If there is no CPU restriction on the bootargs, smokey cpu_affinity
>>> test would be skipped reporting with "no kernel support".
>>>
>>> Signed-off-by: Hongzhan Chen <hongzhan.chen@intel.com>
>>>
>>> diff --git a/tests/jobs/xenomai-beagle-bone-black.yml b/tests/jobs/xenomai-beagle-bone-black.yml
>>> index 034ac99..8117f29 100644
>>> --- a/tests/jobs/xenomai-beagle-bone-black.yml
>>> +++ b/tests/jobs/xenomai-beagle-bone-black.yml
>>> @@ -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
>>> diff --git a/tests/jobs/xenomai-hikey.yml b/tests/jobs/xenomai-hikey.yml
>>> index f6eb4a4..5987c94 100644
>>> --- a/tests/jobs/xenomai-hikey.yml
>>> +++ b/tests/jobs/xenomai-hikey.yml
>>> @@ -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
>>> diff --git a/tests/jobs/xenomai-ipc227e.yml b/tests/jobs/xenomai-ipc227e.yml
>>> index a5a181c..7f3600d 100644
>>> --- a/tests/jobs/xenomai-ipc227e.yml
>>> +++ b/tests/jobs/xenomai-ipc227e.yml
>>> @@ -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
>>> diff --git a/tests/jobs/xenomai-minnow.yml b/tests/jobs/xenomai-minnow.yml
>>> index d5292ff..98c3eac 100644
>>> --- a/tests/jobs/xenomai-minnow.yml
>>> +++ b/tests/jobs/xenomai-minnow.yml
>>> @@ -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
>>> diff --git a/tests/jobs/xenomai-qemu-amd64.yml b/tests/jobs/xenomai-qemu-amd64.yml
>>> index c335292..b35a1a5 100644
>>> --- a/tests/jobs/xenomai-qemu-amd64.yml
>>> +++ b/tests/jobs/xenomai-qemu-amd64.yml
>>> @@ -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
>>> diff --git a/tests/jobs/xenomai-qemu-arm64.yml b/tests/jobs/xenomai-qemu-arm64.yml
>>> index 88fb880..27418ff 100644
>>> --- a/tests/jobs/xenomai-qemu-arm64.yml
>>> +++ b/tests/jobs/xenomai-qemu-arm64.yml
>>> @@ -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
>>> diff --git a/tests/jobs/xenomai-qemu-armhf.yml b/tests/jobs/xenomai-qemu-armhf.yml
>>> index 3e3a8ab..14501b7 100644
>>> --- a/tests/jobs/xenomai-qemu-armhf.yml
>>> +++ b/tests/jobs/xenomai-qemu-armhf.yml
>>> @@ -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
>>> diff --git a/tests/jobs/xenomai-x86-64-efi.yml b/tests/jobs/xenomai-x86-64-efi.yml
>>> index bc71b75..95b2288 100644
>>> --- a/tests/jobs/xenomai-x86-64-efi.yml
>>> +++ b/tests/jobs/xenomai-x86-64-efi.yml
>>> @@ -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.
> 
> 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

-- 
Siemens AG, T RDA IOT
Corporate Competence Center Embedded Linux


^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: [xenomai-images PATCH] tests: restrict realtime cpu
  2021-06-23  9:14     ` Jan Kiszka
@ 2021-06-24  1:21       ` Chen, Hongzhan
  2021-06-24  8:10         ` Jan Kiszka
  0 siblings, 1 reply; 6+ messages in thread
From: Chen, Hongzhan @ 2021-06-24  1:21 UTC (permalink / raw)
  To: Jan Kiszka, xenomai



>-----Original Message-----
>From: Jan Kiszka <jan.kiszka@siemens.com> 
>Sent: Wednesday, June 23, 2021 5:15 PM
>To: Chen, Hongzhan <hongzhan.chen@intel.com>; xenomai@xenomai.org
>Subject: Re: [xenomai-images PATCH] tests: restrict realtime cpu
>
>On 23.06.21 09:58, Chen, Hongzhan wrote:
>> 
>>> -----Original Message-----
>>> From: Jan Kiszka <jan.kiszka@siemens.com> 
>>> Sent: Wednesday, June 23, 2021 2:18 PM
>>> To: Chen, Hongzhan <hongzhan.chen@intel.com>; xenomai@xenomai.org
>>> Subject: Re: [xenomai-images PATCH] tests: restrict realtime cpu
>>>
>>> On 23.06.21 07:31, Hongzhan Chen wrote:
>>>> If there is no CPU restriction on the bootargs, smokey cpu_affinity
>>>> test would be skipped reporting with "no kernel support".
>>>>
>>>> Signed-off-by: Hongzhan Chen <hongzhan.chen@intel.com>
>>>>
>>>> diff --git a/tests/jobs/xenomai-beagle-bone-black.yml b/tests/jobs/xenomai-beagle-bone-black.yml
>>>> index 034ac99..8117f29 100644
>>>> --- a/tests/jobs/xenomai-beagle-bone-black.yml
>>>> +++ b/tests/jobs/xenomai-beagle-bone-black.yml
>>>> @@ -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
>>>> diff --git a/tests/jobs/xenomai-hikey.yml b/tests/jobs/xenomai-hikey.yml
>>>> index f6eb4a4..5987c94 100644
>>>> --- a/tests/jobs/xenomai-hikey.yml
>>>> +++ b/tests/jobs/xenomai-hikey.yml
>>>> @@ -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
>>>> diff --git a/tests/jobs/xenomai-ipc227e.yml b/tests/jobs/xenomai-ipc227e.yml
>>>> index a5a181c..7f3600d 100644
>>>> --- a/tests/jobs/xenomai-ipc227e.yml
>>>> +++ b/tests/jobs/xenomai-ipc227e.yml
>>>> @@ -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
>>>> diff --git a/tests/jobs/xenomai-minnow.yml b/tests/jobs/xenomai-minnow.yml
>>>> index d5292ff..98c3eac 100644
>>>> --- a/tests/jobs/xenomai-minnow.yml
>>>> +++ b/tests/jobs/xenomai-minnow.yml
>>>> @@ -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
>>>> diff --git a/tests/jobs/xenomai-qemu-amd64.yml b/tests/jobs/xenomai-qemu-amd64.yml
>>>> index c335292..b35a1a5 100644
>>>> --- a/tests/jobs/xenomai-qemu-amd64.yml
>>>> +++ b/tests/jobs/xenomai-qemu-amd64.yml
>>>> @@ -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
>>>> diff --git a/tests/jobs/xenomai-qemu-arm64.yml b/tests/jobs/xenomai-qemu-arm64.yml
>>>> index 88fb880..27418ff 100644
>>>> --- a/tests/jobs/xenomai-qemu-arm64.yml
>>>> +++ b/tests/jobs/xenomai-qemu-arm64.yml
>>>> @@ -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
>>>> diff --git a/tests/jobs/xenomai-qemu-armhf.yml b/tests/jobs/xenomai-qemu-armhf.yml
>>>> index 3e3a8ab..14501b7 100644
>>>> --- a/tests/jobs/xenomai-qemu-armhf.yml
>>>> +++ b/tests/jobs/xenomai-qemu-armhf.yml
>>>> @@ -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
>>>> diff --git a/tests/jobs/xenomai-x86-64-efi.yml b/tests/jobs/xenomai-x86-64-efi.yml
>>>> index bc71b75..95b2288 100644
>>>> --- a/tests/jobs/xenomai-x86-64-efi.yml
>>>> +++ b/tests/jobs/xenomai-x86-64-efi.yml
>>>> @@ -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.
>> 
>> 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)."

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
>
>Jan
>
>-- 
>Siemens AG, T RDA IOT
>Corporate Competence Center Embedded Linux

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [xenomai-images PATCH] tests: restrict realtime cpu
  2021-06-24  1:21       ` Chen, Hongzhan
@ 2021-06-24  8:10         ` Jan Kiszka
  0 siblings, 0 replies; 6+ messages in thread
From: Jan Kiszka @ 2021-06-24  8:10 UTC (permalink / raw)
  To: Chen, Hongzhan, xenomai

On 24.06.21 03:21, Chen, Hongzhan wrote:
> 
> 
>> -----Original Message-----
>> From: Jan Kiszka <jan.kiszka@siemens.com> 
>> Sent: Wednesday, June 23, 2021 5:15 PM
>> To: Chen, Hongzhan <hongzhan.chen@intel.com>; xenomai@xenomai.org
>> Subject: Re: [xenomai-images PATCH] tests: restrict realtime cpu
>>
>> On 23.06.21 09:58, Chen, Hongzhan wrote:
>>>
>>>> -----Original Message-----
>>>> From: Jan Kiszka <jan.kiszka@siemens.com> 
>>>> Sent: Wednesday, June 23, 2021 2:18 PM
>>>> To: Chen, Hongzhan <hongzhan.chen@intel.com>; xenomai@xenomai.org
>>>> Subject: Re: [xenomai-images PATCH] tests: restrict realtime cpu
>>>>
>>>> On 23.06.21 07:31, Hongzhan Chen wrote:
>>>>> If there is no CPU restriction on the bootargs, smokey cpu_affinity
>>>>> test would be skipped reporting with "no kernel support".
>>>>>
>>>>> Signed-off-by: Hongzhan Chen <hongzhan.chen@intel.com>
>>>>>
>>>>> diff --git a/tests/jobs/xenomai-beagle-bone-black.yml b/tests/jobs/xenomai-beagle-bone-black.yml
>>>>> index 034ac99..8117f29 100644
>>>>> --- a/tests/jobs/xenomai-beagle-bone-black.yml
>>>>> +++ b/tests/jobs/xenomai-beagle-bone-black.yml
>>>>> @@ -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
>>>>> diff --git a/tests/jobs/xenomai-hikey.yml b/tests/jobs/xenomai-hikey.yml
>>>>> index f6eb4a4..5987c94 100644
>>>>> --- a/tests/jobs/xenomai-hikey.yml
>>>>> +++ b/tests/jobs/xenomai-hikey.yml
>>>>> @@ -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
>>>>> diff --git a/tests/jobs/xenomai-ipc227e.yml b/tests/jobs/xenomai-ipc227e.yml
>>>>> index a5a181c..7f3600d 100644
>>>>> --- a/tests/jobs/xenomai-ipc227e.yml
>>>>> +++ b/tests/jobs/xenomai-ipc227e.yml
>>>>> @@ -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
>>>>> diff --git a/tests/jobs/xenomai-minnow.yml b/tests/jobs/xenomai-minnow.yml
>>>>> index d5292ff..98c3eac 100644
>>>>> --- a/tests/jobs/xenomai-minnow.yml
>>>>> +++ b/tests/jobs/xenomai-minnow.yml
>>>>> @@ -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
>>>>> diff --git a/tests/jobs/xenomai-qemu-amd64.yml b/tests/jobs/xenomai-qemu-amd64.yml
>>>>> index c335292..b35a1a5 100644
>>>>> --- a/tests/jobs/xenomai-qemu-amd64.yml
>>>>> +++ b/tests/jobs/xenomai-qemu-amd64.yml
>>>>> @@ -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
>>>>> diff --git a/tests/jobs/xenomai-qemu-arm64.yml b/tests/jobs/xenomai-qemu-arm64.yml
>>>>> index 88fb880..27418ff 100644
>>>>> --- a/tests/jobs/xenomai-qemu-arm64.yml
>>>>> +++ b/tests/jobs/xenomai-qemu-arm64.yml
>>>>> @@ -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
>>>>> diff --git a/tests/jobs/xenomai-qemu-armhf.yml b/tests/jobs/xenomai-qemu-armhf.yml
>>>>> index 3e3a8ab..14501b7 100644
>>>>> --- a/tests/jobs/xenomai-qemu-armhf.yml
>>>>> +++ b/tests/jobs/xenomai-qemu-armhf.yml
>>>>> @@ -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
>>>>> diff --git a/tests/jobs/xenomai-x86-64-efi.yml b/tests/jobs/xenomai-x86-64-efi.yml
>>>>> index bc71b75..95b2288 100644
>>>>> --- a/tests/jobs/xenomai-x86-64-efi.yml
>>>>> +++ b/tests/jobs/xenomai-x86-64-efi.yml
>>>>> @@ -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.
>>>
>>> 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)."
> 
> 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.

> 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

-- 
Siemens AG, T RDA IOT
Corporate Competence Center Embedded Linux


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-06-24  8:10 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-23  5:31 [xenomai-images PATCH] tests: restrict realtime cpu Hongzhan Chen
2021-06-23  6:17 ` Jan Kiszka
2021-06-23  7:58   ` Chen, Hongzhan
2021-06-23  9:14     ` Jan Kiszka
2021-06-24  1:21       ` Chen, Hongzhan
2021-06-24  8:10         ` Jan Kiszka

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.