Re: [kvm-unit-tests PATCH 1/9] s390x: clean lib/auxinfo.o

2023-12-22 Thread Nicholas Piggin
On Sat Dec 23, 2023 at 1:04 AM AEST, Claudio Imbrenda wrote: > On Fri, 22 Dec 2023 23:50:40 +1000 > Nicholas Piggin wrote: > > > Signed-off-by: Nicholas Piggin > > --- > > s390x/Makefile | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/s390x/Makefile b/s390x/Makefi

[powerpc:next] BUILD SUCCESS 9ec1d7486e2520b4898d7f8e1ec3acc7c13c8dc8

2023-12-22 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git next branch HEAD: 9ec1d7486e2520b4898d7f8e1ec3acc7c13c8dc8 powerpc/fsl: Fix fsl,tmu-calibration to match the schema elapsed time: 2204m configs tested: 58 configs skipped: 0 The following configs have been built su

Re: [PATCH] powerpc/6xx: set High BAT Enable flag on G2 cores

2023-12-22 Thread Christophe Leroy
Le 22/12/2023 à 09:48, Matthias Schiffer a écrit : > [Vous ne recevez pas souvent de courriers de > matthias.schif...@ew.tq-group.com. Découvrez pourquoi ceci est important à > https://aka.ms/LearnAboutSenderIdentification ] > > On Thu, 2023-12-21 at 13:57 +, Christophe Leroy wrote: >> >>

Re: [PATCH 1/3] init: Declare rodata_enabled and mark_rodata_ro() at all time

2023-12-22 Thread Christophe Leroy
Le 22/12/2023 à 06:35, Kees Cook a écrit : > [Vous ne recevez pas souvent de courriers de k...@kernel.org. Découvrez > pourquoi ceci est important à https://aka.ms/LearnAboutSenderIdentification ] > > On December 21, 2023 4:16:56 AM PST, Michael Ellerman > wrote: >> Cc +Kees >> >> Christophe

Re: [kvm-unit-tests PATCH 1/9] s390x: clean lib/auxinfo.o

2023-12-22 Thread Claudio Imbrenda
On Fri, 22 Dec 2023 23:50:40 +1000 Nicholas Piggin wrote: > Signed-off-by: Nicholas Piggin > --- > s390x/Makefile | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/s390x/Makefile b/s390x/Makefile > index f79fd009..95ef9533 100644 > --- a/s390x/Makefile > +++ b/s390x/Make

Re: [kvm-unit-tests PATCH 9/9] migration: add a migration selftest

2023-12-22 Thread Claudio Imbrenda
On Fri, 22 Dec 2023 23:50:48 +1000 Nicholas Piggin wrote: > Add a selftest for migration support in guest library and test harness > code. It performs migrations a tight loop to irritate races, and has > flushed out several bugs in developing in the complicated test harness > migration code alre

Re: [PATCH] powerpc/6xx: set High BAT Enable flag on G2 cores

2023-12-22 Thread Christophe Leroy
Le 22/12/2023 à 09:34, Matthias Schiffer a écrit : > [Vous ne recevez pas souvent de courriers de > matthias.schif...@ew.tq-group.com. Découvrez pourquoi ceci est important à > https://aka.ms/LearnAboutSenderIdentification ] > > On Fri, 2023-12-22 at 12:16 +1100, Michael Ellerman wrote: >> Mat

Re: [RFC PATCH 6/9] powerpc/ftrace: Update and move function profile instructions out-of-line

2023-12-22 Thread Naveen N Rao
On Thu, Dec 21, 2023 at 10:46:08AM +, Christophe Leroy wrote: > > > Le 08/12/2023 à 17:30, Naveen N Rao a écrit : > > Function profile sequence on powerpc includes two instructions at the > > beginning of each function: > > > > mflrr0 > > bl ftrace_caller > > > > The call t

[powerpc:merge] BUILD SUCCESS 718bfc98ea46cc45309e15682ce32787116f9a93

2023-12-22 Thread kernel test robot
gcc arc randconfig-001-20231222 gcc arc randconfig-002-20231222 gcc arm allnoconfig gcc arm orion5x_defconfig clang arm randconfig-001-20231222 gcc arm rand

Re: [PATCH 1/2] powerpc/bpf: ensure module addresses are supported

2023-12-22 Thread Naveen N Rao
On Wed, Dec 20, 2023 at 10:26:21PM +0530, Hari Bathini wrote: > Currently, bpf jit code on powerpc assumes all the bpf functions and > helpers to be kernel text. This is false for kfunc case, as function > addresses are mostly module addresses in that case. Ensure module > addresses are supported t

[kvm-unit-tests PATCH 9/9] migration: add a migration selftest

2023-12-22 Thread Nicholas Piggin
Add a selftest for migration support in guest library and test harness code. It performs migrations a tight loop to irritate races, and has flushed out several bugs in developing in the complicated test harness migration code already. Signed-off-by: Nicholas Piggin --- arm/Makefile.common

[kvm-unit-tests PATCH 8/9] Add common/ directory for architecture-independent tests

2023-12-22 Thread Nicholas Piggin
x86/sieve.c is used by s390x and arm via symbolic link. Make a new directory common/ for architecture-independent tests and move sieve.c here. Signed-off-by: Nicholas Piggin --- arm/sieve.c| 2 +- common/sieve.c | 51 + s390x/sieve.c | 2 +-

[kvm-unit-tests PATCH 7/9] migration: Add quiet migration support

2023-12-22 Thread Nicholas Piggin
Console output required to support migration becomes quite noisy when doing lots of migrations. Provide a migrate_quiet() call that suppresses console output and doesn't log. Signed-off-by: Nicholas Piggin --- lib/migrate.c | 12 lib/migrate.h | 1 + scripts/arch-ru

[kvm-unit-tests PATCH 6/9] arch-run: rename migration variables

2023-12-22 Thread Nicholas Piggin
Using 1 and 2 for source and destination is confusing, particularly now with multiple migrations that flip between them. Do a rename pass to tidy things up. Signed-off-by: Nicholas Piggin --- scripts/arch-run.bash | 112 +- 1 file changed, 57 insertions(+)

[kvm-unit-tests PATCH 5/9] migration: Support multiple migrations

2023-12-22 Thread Nicholas Piggin
Support multiple migrations by flipping dest file/socket variables to source after the migration is complete, ready to start again. A new destination is created if the test outputs the migrate line again. Test cases may now switch to calling migrate() one or more times. Signed-off-by: Nicholas Pig

[kvm-unit-tests PATCH 4/9] migration: use a more robust way to wait for background job

2023-12-22 Thread Nicholas Piggin
Starting a pipeline of jobs in the background does not seem to have a simple way to reliably find the pid of a particular process in the pipeline (because not all processes are started when the shell continues to execute). The way PID of QEMU is derived can result in a failure waiting on a PID tha

[kvm-unit-tests PATCH 3/9] arch-run: Clean up initrd cleanup

2023-12-22 Thread Nicholas Piggin
Rather than put a big script into the trap handler, have it call a function. Signed-off-by: Nicholas Piggin --- scripts/arch-run.bash | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/scripts/arch-run.bash b/scripts/arch-run.bash index f22ead6f..cc7da7c5 100644 ---

[kvm-unit-tests PATCH 2/9] arch-run: Clean up temporary files properly

2023-12-22 Thread Nicholas Piggin
Migration files weren't being removed when tests were interrupted. This improves the situation. Signed-off-by: Nicholas Piggin --- scripts/arch-run.bash | 12 +++- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/scripts/arch-run.bash b/scripts/arch-run.bash index d0864360..

[kvm-unit-tests PATCH 1/9] s390x: clean lib/auxinfo.o

2023-12-22 Thread Nicholas Piggin
Signed-off-by: Nicholas Piggin --- s390x/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/s390x/Makefile b/s390x/Makefile index f79fd009..95ef9533 100644 --- a/s390x/Makefile +++ b/s390x/Makefile @@ -227,7 +227,7 @@ $(snippet_asmlib): $$(patsubst %.o,%.S,$$@) $(asm-off

[kvm-unit-tests PATCH 0/9] Multi-migration support

2023-12-22 Thread Nicholas Piggin
Thomas suggested I should split this out of the powerpc series because it is applicable to other archs as well and it's easier for others to review like this. Since the v5 series: - Split out from powerpc changes - Fixed another small race found when running migration tests on aarch64 (wait for

Re: [GIT PULL] PowerQUICC QMC and TSA drivers updates for v6.8

2023-12-22 Thread Herve Codina
Hi Arnd, On Fri, 22 Dec 2023 10:55:00 + "Arnd Bergmann" wrote: > On Tue, Dec 12, 2023, at 09:55, Herve Codina wrote: > > The following changes since commit 2cc14f52aeb78ce3f29677c2de1f06c0e91471ab: > > > > Linux 6.7-rc3 (2023-11-26 19:59:33 -0800) > > > > are available in the Git repositor

Re: [GIT PULL] PowerQUICC QMC and TSA drivers updates for v6.8

2023-12-22 Thread Arnd Bergmann
On Tue, Dec 12, 2023, at 09:55, Herve Codina wrote: > The following changes since commit 2cc14f52aeb78ce3f29677c2de1f06c0e91471ab: > > Linux 6.7-rc3 (2023-11-26 19:59:33 -0800) > > are available in the Git repository at: > > g...@github.com:hcodina/linux.git tags/fsl_qmc_tsa_v6.8 > > for you to

Re: [kvm-unit-tests PATCH v5 10/29] powerpc/sprs: Specify SPRs with data rather than code

2023-12-22 Thread Nicholas Piggin
On Tue Dec 19, 2023 at 4:14 PM AEST, Thomas Huth wrote: > On 16/12/2023 14.42, Nicholas Piggin wrote: > > A significant rework that builds an array of 'struct spr', where each > > element describes an SPR. This makes various metadata about the SPR > > like name and access type easier to carry and u

Re: [kvm-unit-tests PATCH v5 07/29] powerpc: Add a migration stress tester

2023-12-22 Thread Nicholas Piggin
On Tue Dec 19, 2023 at 3:58 PM AEST, Thomas Huth wrote: > On 16/12/2023 14.42, Nicholas Piggin wrote: > > This performs 1000 migrations a tight loop to flush out simple issues > > in the multiple-migration code. > > > > Signed-off-by: Nicholas Piggin > > --- > > powerpc/Makefile.common | 1 + >

Re: [kvm-unit-tests PATCH v5 24/29] powerpc: interrupt tests

2023-12-22 Thread Nicholas Piggin
On Tue Dec 19, 2023 at 11:57 PM AEST, Thomas Huth wrote: > On 16/12/2023 14.42, Nicholas Piggin wrote: > > Add basic testing of various kinds of interrupts, machine check, > > page fault, illegal, decrementer, trace, syscall, etc. > > > > This has a known failure on QEMU TCG pseries machines where

Re: [kvm-unit-tests PATCH v5 18/29] powerpc: Fix stack backtrace termination

2023-12-22 Thread Nicholas Piggin
On Tue Dec 19, 2023 at 10:22 PM AEST, Thomas Huth wrote: > On 16/12/2023 14.42, Nicholas Piggin wrote: > > The backtrace handler terminates when it sees a NULL caller address, > > but the powerpc stack setup does not keep such a NULL caller frame > > at the start of the stack. > > > > This happens

Re: [kvm-unit-tests PATCH v5 13/29] powerpc: Make interrupt handler error more readable

2023-12-22 Thread Nicholas Piggin
On Tue Dec 19, 2023 at 9:53 PM AEST, Thomas Huth wrote: > On 16/12/2023 14.42, Nicholas Piggin wrote: > > Installing the same handler twice reports a shifted trap vector > > address which is hard to decipher. Print the unshifed address. > > > > Signed-off-by: Nicholas Piggin > > --- > > lib/pow

Re: [kvm-unit-tests PATCH v5 12/29] powerpc/sprs: Avoid taking async interrupts caused by register fuzzing

2023-12-22 Thread Nicholas Piggin
On Tue Dec 19, 2023 at 9:47 PM AEST, Thomas Huth wrote: > On 16/12/2023 14.42, Nicholas Piggin wrote: > > Storing certain values in some registers can cause asynchronous > > interrupts that can crash the test case, for example decrementer > > or PMU interrupts. > > > > Change the msleep to mdelay

Re: [PATCH] powerpc/6xx: set High BAT Enable flag on G2 cores

2023-12-22 Thread Matthias Schiffer
On Thu, 2023-12-21 at 13:57 +, Christophe Leroy wrote: > > > Le 21/12/2023 à 13:45, Matthias Schiffer a écrit : > > MMU_FTR_USE_HIGH_BATS is set for G2-based cores (G2_LE, e300cX), but the > > high BATs need to be enabled in HID2 to work. Add register definitions > > and introduce a G2 varian

Re: [PATCH] powerpc/6xx: set High BAT Enable flag on G2 cores

2023-12-22 Thread Matthias Schiffer
On Fri, 2023-12-22 at 12:16 +1100, Michael Ellerman wrote: > Matthias Schiffer writes: > > MMU_FTR_USE_HIGH_BATS is set for G2-based cores (G2_LE, e300cX), but the > > high BATs need to be enabled in HID2 to work. Add register definitions > > and introduce a G2 variant of __setup_cpu_603. > > > >