From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Fri, 20 Nov 2020 17:46:46 +0800 From: Fino Meng Subject: Re: error compiling patched 5.4.77 Linux kernel on x86 Message-ID: <20201120094645.GA785@linux.intel.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Andy Tannenbaum Cc: xenomai@xenomai.org On Thu, Nov 19, 2020 at 03:34:31PM -0500, Andy Tannenbaum via Xenomai wrote: > I am having trouble building a kernel with the new > ipipe-core-5.4.77-x86-2.patch. > > Before this, I am successfully running Xenomai 3.1 and Linux 4.19 cip24:on x86 > https://git.kernel.org/pub/scm/linux/kernel/git/cip/linux-cip.git/snapshot/linux-cip-4.19.114-cip24.tar.gz > > I am trying to upgrade to Linux 5.4 with the recent ipipe patch: > > https://cdn.kernel.org/pub/linux/kernel/v5.x/linux-5.4.77.tar.xz > https://xenomai.org/downloads/ipipe/v5.x/x86/ipipe-core-5.4.77-x86-2.patch > > I was able to apply the new ipipe patch with Xenomai 3.1, but my 5.4 porting work against xenomai's next branch: git clone -b next https://git.xenomai.org/xenomai xenomai-next should not be a issue with .config and in our test machine(Debian 10 with Gnome desktop), we see system hang issue within 48 hours' run, workload is 8 glmark2 windows. BR fino > compile failed with an args mismatch in > xenomai/thread.c, calling switch_fpu_finish() > I see that the internal.h definition is different from the thread.c code. > (compile error output below) > > This was after I turned off the suggested list of Linux kernel .config > options like ACPI_PROCESSOR, CPU_FREQ, etc. > Please advise. > Should I post my kernel .config file? > > -Andy > > <<<< > > CC arch/x86/entry/vdso/vdso32/vclock_gettime.o > CC [M] arch/x86/crypto/aesni-intel_glue.o > arch/x86/xenomai/thread.c: In function 'xnarch_leave_root': > arch/x86/xenomai/thread.c:475:2: error: too many arguments to function > 'switch_fpu_finish' > 475 | switch_fpu_finish(¤t->thread.fpu, smp_processor_id()); > | ^~~~~~~~~~~~~~~~~ > In file included from arch/x86/xenomai/include/asm/xenomai/wrappers.h:44, > from include/xenomai/cobalt/kernel/timer.h:28, > from include/xenomai/cobalt/kernel/thread.h:27, > from arch/x86/xenomai/thread.c:25: > ./arch/x86/include/asm/fpu/internal.h:594:20: note: declared here > 594 | static inline void switch_fpu_finish(struct fpu *new_fpu) > | ^~~~~~~~~~~~~~~~~ > make[1]: *** [scripts/Makefile.build:266: arch/x86/xenomai/thread.o] Error 1 > make: *** [Makefile:1729: arch/x86/xenomai] Error 2 > make: *** Waiting for unfinished jobs.... > AS [M] arch/x86/crypto/aesni-intel_avx-x86_64.o > CC arch/x86/events/amd/core.o > AS arch/x86/entry/vdso/vdso32/note.o > ... > > >>>> >