Page 3 of 16

Re: Kernel 5.8

Posted: Mon Jun 08, 2020 9:34 am
by xeno74
Roland wrote: Sun Jun 07, 2020 4:28 pm Alpha1 works with X5000/20 and Ubuntu 16! The onboard ethernet still needs the unplug/replug trick to work...

Thanks a lot for testing the Alpha1! :-)

Re: Kernel 5.8

Posted: Mon Jun 08, 2020 9:53 am
by Skateman
Kernel 5.8 Alpha1 up and running on the AmigaOne X5000/20

Image

Big picture http://www.skateman.nl/wp-content/uploa ... -48-32.png

Re: Kernel 5.8

Posted: Mon Jun 08, 2020 12:51 pm
by xeno74
Skateman wrote: Mon Jun 08, 2020 9:53 am Kernel 5.8 Alpha1 up and running on the AmigaOne X5000/20
Many thanks for testing the alpha1! :-)

Re: Kernel 5.8

Posted: Tue Jun 09, 2020 12:42 am
by xeno74
Hi All,

I released the second alpha of kernel 5.8 for the X1000 and X5000 today.

New:
Download: linux-image-5.8-alpha2-X1000_X5000.tar.gz

Image

Please test the kernels.

Thanks,
Christian

Re: Kernel 5.8

Posted: Tue Jun 09, 2020 10:59 pm
by xeno74
Hi All,

Here is the third alpha of kernel 5.8 for testing.

New:
Download: linux-image-5.8-alpha3-X1000_X5000.tar.gz

I tested QEMU 2.5.0 and QEMU 5.0.0 with KVM and KVM-PR today. KVM works without any problems. I was able to boot a Fienix guest with the alpha3 in a virtual e5500 QEMU machine with KVM on a Fienix X5000 host with the alpha3. (see screenshot)

Image

Unfortunately KVM-PR doesn't work anymore on the X1000. I figured out that the kernels 5.7 and 5.8 are affected. I can boot virtual QEMU PowerPC machines with KVM-PR with the kernel 5.6 without any problems on my X1000.

Error message:

Code: Select all

Fienix kernel: kvmppc_exit_pr_progint: emulation at 700 failed (00000000)
Please test the kernels.

Thanks,
Christian

Re: Kernel 5.8

Posted: Thu Jun 11, 2020 12:26 pm
by xeno74
Hi All,

Here is the alpha4 for testing.

New:
Issue: KVM-PR doesn't work anymore on the X1000 since the PowerPC updates 5.7-1 (Kernel 5.7-alpha7). KVM-HV works without any problems on the X5000.
I have reported this issue to the Linuxppc-dev mailing list. Link: PowerPC KVM-PR issue

Download: linux-image-5.8-alpha4-X1000_X5000.tar.gz

Image

Please test the kernels.

Thanks,
Christian

Re: Kernel 5.8

Posted: Thu Jun 11, 2020 3:22 pm
by xeno74
I bisected today because of the KVM-PR issue.

Result:

Code: Select all

9600f261acaaabd476d7833cec2dd20f2919f1a0 is the first bad commit
commit 9600f261acaaabd476d7833cec2dd20f2919f1a0
Author: Nicholas Piggin <[email protected]>
Date:   Wed Feb 26 03:35:21 2020 +1000

    powerpc/64s/exception: Move KVM test to common code
    
    This allows more code to be moved out of unrelocated regions. The
    system call KVMTEST is changed to be open-coded and remain in the
    tramp area to avoid having to move it to entry_64.S. The custom nature
    of the system call entry code means the hcall case can be made more
    streamlined than regular interrupt handlers.
    
    mpe: Incorporate fix from Nick:
    
    Moving KVM test to the common entry code missed the case of HMI and
    MCE, which do not do __GEN_COMMON_ENTRY (because they don't want to
    switch to virt mode).
    
    This means a MCE or HMI exception that is taken while KVM is running a
    guest context will not be switched out of that context, and KVM won't
    be notified. Found by running sigfuz in guest with patched host on
    POWER9 DD2.3, which causes some TM related HMI interrupts (which are
    expected and supposed to be handled by KVM).
    
    This fix adds a __GEN_REALMODE_COMMON_ENTRY for those handlers to add
    the KVM test. This makes them look a little more like other handlers
    that all use __GEN_COMMON_ENTRY.
    
    Signed-off-by: Nicholas Piggin <[email protected]>
    Signed-off-by: Michael Ellerman <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]

:040000 040000 ec21cec22d165f8696d69532734cb2985d532cb0 87dd49a9cd7202ec79350e8ca26cea01f1dbd93d M	arch
The following commit is the problem: powerpc/64s/exception: Move KVM test to common code

These changes were included in the PowerPC updates 5.7-1.

Code: Select all

git checkout d38c07afc356ddebaa3ed8ecb3f553340e05c969
(PowerPC updates 5.7-1) -> KVM-PR doesn't work.

After that:

Code: Select all

git revert d38c07afc356ddebaa3ed8ecb3f553340e05c969 -m 1
Result: KVM-PR works.

Re: Kernel 5.8

Posted: Thu Jun 11, 2020 9:51 pm
by Skateman
Kernel 5.8 Alpha 4 running nice on the AmigaOne X5000

Image

Big picture http://www.skateman.nl/wp-content/uploa ... 234911.png

Re: Kernel 5.8

Posted: Fri Jun 12, 2020 8:04 am
by xeno74
Skateman wrote: Thu Jun 11, 2020 9:51 pm Kernel 5.8 Alpha 4 running nice on the AmigaOne X5000
Thanks a lot for testing! :-)

Re: Kernel 5.8

Posted: Fri Jun 12, 2020 3:03 pm
by xeno74
Hi All,

I tried to revert the __GEN_REALMODE_COMMON_ENTRY fix for the latest Git kernel and for the stable kernel 5.7.2 but without any success. There was a lot of restructuring work during the kernel 5.7 development time in the PowerPC area so it isn't possible reactivate the old code. That means we have lost the whole KVM-PR support. I also reported this issue to Alexander Graf two days ago. He wrote: "Howdy :). It looks pretty broken. Have you ever made a bisect to see where the problem comes from?"

Cheers,
Christian