Kernel 5.1

AmigaOne X1000 platform specific issues related to Linux only.
User avatar
xeno74
Posts: 6093
Joined: Fri Mar 23, 2012 7:58 am

Re: Kernel 5.1

Post by xeno74 »

FYI:
Date: Tue, 9 Apr 2019 16:03:24 +1000
From: Michael Ellerman <mpe@ellerman.id.au>
To: linuxppc-dev@ozlabs.org
Cc: aneesh.kumar@linux.vnet.ibm.com, hughd@google.com,
schwab@linux-m68k.org, ben@decadent.org.uk
Subject: [PATCH] powerpc/mm: Define MAX_PHYSMEM_BITS for all 64-bit
configs
Message-ID: <20190409060324.16941-1-mpe@ellerman.id.au>

The recent commit 8bc086899816 ("powerpc/mm: Only define
MAX_PHYSMEM_BITS in SPARSEMEM configurations") removed our definition
of MAX_PHYSMEM_BITS when SPARSEMEM is disabled.

This inadvertently broke some 64-bit FLATMEM using configs with eg:

arch/powerpc/include/asm/book3s/64/mmu-hash.h:584:6: error: "MAX_PHYSMEM_BITS" is not defined, evaluates to 0
#if (MAX_PHYSMEM_BITS > MAX_EA_BITS_PER_CONTEXT)
^~~~~~~~~~~~~~~~

Fix it by making sure we define MAX_PHYSMEM_BITS for all 64-bit
configs regardless of SPARSEMEM.

Fixes: 8bc086899816 ("powerpc/mm: Only define MAX_PHYSMEM_BITS in SPARSEMEM configurations")
Reported-by: Andreas Schwab <schwab@linux-m68k.org>
Reported-by: Hugh Dickins <hughd@google.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>

Code: Select all

arch/powerpc/include/asm/mmu.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/powerpc/include/asm/mmu.h b/arch/powerpc/include/asm/mmu.h
index 598cdcdd1355..8ddd4a91bdc1 100644
--- a/arch/powerpc/include/asm/mmu.h
+++ b/arch/powerpc/include/asm/mmu.h
@@ -352,7 +352,7 @@ static inline bool strict_kernel_rwx_enabled(void)
#if defined(CONFIG_SPARSEMEM_VMEMMAP) && defined(CONFIG_SPARSEMEM_EXTREME) &&    \
   defined (CONFIG_PPC_64K_PAGES)
#define MAX_PHYSMEM_BITS        51
-#elif defined(CONFIG_SPARSEMEM)
+#elif defined(CONFIG_PPC64)
#define MAX_PHYSMEM_BITS        46
#endif
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.

User avatar
xeno74
Posts: 6093
Joined: Fri Mar 23, 2012 7:58 am

Re: Kernel 5.1

Post by xeno74 »

FYI: PowerPC fixes 5.1-5

We don’t need the gettimeofday patch anymore.
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.

sailorMH
Posts: 121
Joined: Wed Aug 28, 2013 6:01 pm
Location: Czech republic

Re: Kernel 5.1

Post by sailorMH »

xeno74 wrote:FYI: PowerPC fixes 5.1-5
We don’t need the gettimeofday patch anymore.
Thanks!
Pegasos 2, AmigaOne X1000, Powebook G4, iMac G5, Powermac G5 Quad
MorphOS, AmigaOS, linux: MintPPC 11, Debian, Ubuntu ..., MacOS X

User avatar
xeno74
Posts: 6093
Joined: Fri Mar 23, 2012 7:58 am

Re: Kernel 5.1

Post by xeno74 »

Hi All,

I released the RC3-3 of kernel 5.1 last week. This kernel was a RC3 with a lot of Git updates. That means, it didn't make any sense to release the RC4 because the RC3-3 has already included a lot of updates from the RC4.

Today, I released the RC5 of kernel 5.1 including all RC4 updates.

New:
It also includes:
  • X1000: compressed kernel (zImage) and uncompressed kernel (vmlinux)
Issues:
  • X1000: There are some issues with new CF cards if you connected one of these to the onboard CompactFlash Card Slot. Note: The CompactFlash (CF) card slot is wired to the CPU local bus. It is typically used to hold the Linux kernels and initial ramdisks. If you want to use a new CF card then please use the stable kernel 4.20.16. Link to the test thread: Fienix - New PowerPC Distro
  • X5000: Initialization and use of secondary graphics card (FirePro 2260) does not work. Bug report: Bug 109345 - drm-next-2018-12-14 -Linux PPC. If you want to use a secondary graphics card for example a FirePro 2260 then please use the stable kernel 4.20.16.
  • X5000: Network issues with the DPAA ethernet. Further information: Kernel 5.0 thread
Download: linux-image-5.1-rc5-X1000_X5000.tar.gz

Screenshot of Fienix PowerPC with the RC5 of kernel 5.1 on a X1000:

Image

Please test the kernels.

Thanks,
Christian
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.

sailorMH
Posts: 121
Joined: Wed Aug 28, 2013 6:01 pm
Location: Czech republic

Re: Kernel 5.1

Post by sailorMH »

Screenshot at 2019-04-15 12-40-40.png
5.1-rc5 works fine.

The issue with new fast cfcard and new kernels are still here.
I made some summarization and place it to new topic.
Pegasos 2, AmigaOne X1000, Powebook G4, iMac G5, Powermac G5 Quad
MorphOS, AmigaOS, linux: MintPPC 11, Debian, Ubuntu ..., MacOS X

User avatar
musa
Posts: 412
Joined: Tue Aug 23, 2011 7:58 pm

Re: Kernel 5.1

Post by musa »

Hi
Fienix startet fine on kernel 5.1.0-rc5
kernel 5.1.rc5.png
AmigaX1000
Follow me on twitter @basjoo_dk

User avatar
xeno74
Posts: 6093
Joined: Fri Mar 23, 2012 7:58 am

Re: Kernel 5.1

Post by xeno74 »

musa wrote:Hi
Fienix startet fine on kernel 5.1.0-rc5
kernel 5.1.rc5.png
Hi Musa,

Many thanks for testing the RC5! :-)

Cheers,
Christian
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.

User avatar
xeno74
Posts: 6093
Joined: Fri Mar 23, 2012 7:58 am

Re: Kernel 5.1

Post by xeno74 »

sailorMH wrote:
Screenshot at 2019-04-15 12-40-40.png
5.1-rc5 works fine.

The issue with new fast cfcard and new kernels are still here.
I made some summarization and place it to new topic.
Hi SailorMH,

Thanks a lot for testing the RC5! :-)

Cheers,
Christian
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.

User avatar
xeno74
Posts: 6093
Joined: Fri Mar 23, 2012 7:58 am

Re: Kernel 5.1

Post by xeno74 »

Hi All,

The issue with new CF cards is solved! :-)

Further information: Thread cf card issues

I will use the pata_of_platform-v2 patch for all new X1000 Linux kernels.

Cheers,
Christian
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.

User avatar
xeno74
Posts: 6093
Joined: Fri Mar 23, 2012 7:58 am

Re: Kernel 5.1

Post by xeno74 »

Hi All,

I released the RC6 of kernel 5.1 today.

New:
It also includes:
  • X1000: compressed kernel (zImage) and uncompressed kernel (vmlinux)
CF cards test thread

Download: linux-image-5.1-rc6-X1000_X5000.tar.gz

Screenshot of Fienix PowerPC with the RC6 of kernel 5.1:

Image

Please test it.

Thanks,
Christian
http://www.amigalinux.org
http://www.supertuxkart-amiga.de

Running Linux on AmigaONEs can require some tinkering.

Post Reply