Subject: Re: [xenomai-images PATCH] tests: restrict realtime cpu References: <20210623053136.22521-1-hongzhan.chen@intel.com> <84895ed2-041a-b755-03a6-fe11c5038ff1@siemens.com> From: Jan Kiszka Message-ID: Date: Wed, 23 Jun 2021 11:14:59 +0200 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Chen, Hongzhan" , "xenomai@xenomai.org" On 23.06.21 09:58, Chen, Hongzhan wrote: > >> -----Original Message----- >> From: Jan Kiszka >> Sent: Wednesday, June 23, 2021 2:18 PM >> To: Chen, Hongzhan ; 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 >>> >>> 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