From: Mark Salter msalter@redhat.com
arm64: switch ark kernel to 4K pagesize
RHEL9 for Aarch64 will use 4K pages. Shuffle the related configs around so that they are shared by both ark and fedora.
Signed-off-by: Mark Salter msalter@redhat.com
diff --git a/redhat/configs/ark/generic/arm/aarch64/CONFIG_ARM64_4K_PAGES b/redhat/configs/ark/generic/arm/aarch64/CONFIG_ARM64_4K_PAGES deleted file mode 100644 index blahblah..blahblah 0 --- a/redhat/configs/ark/generic/arm/aarch64/CONFIG_ARM64_4K_PAGES +++ /dev/null @@ -1 +0,0 @@ -# CONFIG_ARM64_4K_PAGES is not set diff --git a/redhat/configs/ark/generic/arm/aarch64/CONFIG_ARM64_64K_PAGES b/redhat/configs/ark/generic/arm/aarch64/CONFIG_ARM64_64K_PAGES deleted file mode 100644 index blahblah..blahblah 0 --- a/redhat/configs/ark/generic/arm/aarch64/CONFIG_ARM64_64K_PAGES +++ /dev/null @@ -1 +0,0 @@ -CONFIG_ARM64_64K_PAGES=y diff --git a/redhat/configs/ark/generic/arm/aarch64/CONFIG_ARM64_PA_BITS_48 b/redhat/configs/ark/generic/arm/aarch64/CONFIG_ARM64_PA_BITS_48 deleted file mode 100644 index blahblah..blahblah 0 --- a/redhat/configs/ark/generic/arm/aarch64/CONFIG_ARM64_PA_BITS_48 +++ /dev/null @@ -1 +0,0 @@ -# CONFIG_ARM64_PA_BITS_48 is not set diff --git a/redhat/configs/ark/generic/arm/aarch64/CONFIG_ARM64_PA_BITS_52 b/redhat/configs/ark/generic/arm/aarch64/CONFIG_ARM64_PA_BITS_52 deleted file mode 100644 index blahblah..blahblah 0 --- a/redhat/configs/ark/generic/arm/aarch64/CONFIG_ARM64_PA_BITS_52 +++ /dev/null @@ -1 +0,0 @@ -CONFIG_ARM64_PA_BITS_52=y diff --git a/redhat/configs/ark/generic/arm/aarch64/CONFIG_ARM64_VA_BITS_42 b/redhat/configs/ark/generic/arm/aarch64/CONFIG_ARM64_VA_BITS_42 deleted file mode 100644 index blahblah..blahblah 0 --- a/redhat/configs/ark/generic/arm/aarch64/CONFIG_ARM64_VA_BITS_42 +++ /dev/null @@ -1 +0,0 @@ -# CONFIG_ARM64_VA_BITS_42 is not set diff --git a/redhat/configs/ark/generic/arm/aarch64/CONFIG_ARM64_VA_BITS_48 b/redhat/configs/ark/generic/arm/aarch64/CONFIG_ARM64_VA_BITS_48 deleted file mode 100644 index blahblah..blahblah 0 --- a/redhat/configs/ark/generic/arm/aarch64/CONFIG_ARM64_VA_BITS_48 +++ /dev/null @@ -1 +0,0 @@ -# CONFIG_ARM64_VA_BITS_48 is not set diff --git a/redhat/configs/ark/generic/arm/aarch64/CONFIG_ARM64_VA_BITS_52 b/redhat/configs/ark/generic/arm/aarch64/CONFIG_ARM64_VA_BITS_52 deleted file mode 100644 index blahblah..blahblah 0 --- a/redhat/configs/ark/generic/arm/aarch64/CONFIG_ARM64_VA_BITS_52 +++ /dev/null @@ -1 +0,0 @@ -CONFIG_ARM64_VA_BITS_52=y diff --git a/redhat/configs/fedora/generic/arm/aarch64/CONFIG_ARM64_4K_PAGES b/redhat/configs/common/generic/arm/aarch64/CONFIG_ARM64_4K_PAGES rename from redhat/configs/fedora/generic/arm/aarch64/CONFIG_ARM64_4K_PAGES rename to redhat/configs/common/generic/arm/aarch64/CONFIG_ARM64_4K_PAGES index blahblah..blahblah 100644 --- a/redhat/configs/fedora/generic/arm/aarch64/CONFIG_ARM64_4K_PAGES +++ b/redhat/configs/common/generic/arm/aarch64/CONFIG_ARM64_4K_PAGES diff --git a/redhat/configs/fedora/generic/arm/CONFIG_ARM64_64K_PAGES b/redhat/configs/common/generic/arm/aarch64/CONFIG_ARM64_64K_PAGES rename from redhat/configs/fedora/generic/arm/CONFIG_ARM64_64K_PAGES rename to redhat/configs/common/generic/arm/aarch64/CONFIG_ARM64_64K_PAGES index blahblah..blahblah 100644 --- a/redhat/configs/fedora/generic/arm/CONFIG_ARM64_64K_PAGES +++ b/redhat/configs/common/generic/arm/aarch64/CONFIG_ARM64_64K_PAGES diff --git a/redhat/configs/fedora/generic/arm/CONFIG_ARM64_PA_BITS_48 b/redhat/configs/common/generic/arm/aarch64/CONFIG_ARM64_PA_BITS_48 rename from redhat/configs/fedora/generic/arm/CONFIG_ARM64_PA_BITS_48 rename to redhat/configs/common/generic/arm/aarch64/CONFIG_ARM64_PA_BITS_48 index blahblah..blahblah 100644 --- a/redhat/configs/fedora/generic/arm/CONFIG_ARM64_PA_BITS_48 +++ b/redhat/configs/common/generic/arm/aarch64/CONFIG_ARM64_PA_BITS_48 diff --git a/redhat/configs/fedora/generic/arm/CONFIG_ARM64_VA_BITS_39 b/redhat/configs/common/generic/arm/aarch64/CONFIG_ARM64_VA_BITS_39 rename from redhat/configs/fedora/generic/arm/CONFIG_ARM64_VA_BITS_39 rename to redhat/configs/common/generic/arm/aarch64/CONFIG_ARM64_VA_BITS_39 index blahblah..blahblah 100644 --- a/redhat/configs/fedora/generic/arm/CONFIG_ARM64_VA_BITS_39 +++ b/redhat/configs/common/generic/arm/aarch64/CONFIG_ARM64_VA_BITS_39 diff --git a/redhat/configs/fedora/generic/arm/aarch64/CONFIG_ARM64_VA_BITS_48 b/redhat/configs/common/generic/arm/aarch64/CONFIG_ARM64_VA_BITS_48 rename from redhat/configs/fedora/generic/arm/aarch64/CONFIG_ARM64_VA_BITS_48 rename to redhat/configs/common/generic/arm/aarch64/CONFIG_ARM64_VA_BITS_48 index blahblah..blahblah 100644 --- a/redhat/configs/fedora/generic/arm/aarch64/CONFIG_ARM64_VA_BITS_48 +++ b/redhat/configs/common/generic/arm/aarch64/CONFIG_ARM64_VA_BITS_48 diff --git a/redhat/configs/fedora/generic/arm/aarch64/CONFIG_ARM64_VA_BITS_52 b/redhat/configs/common/generic/arm/aarch64/CONFIG_ARM64_VA_BITS_52 rename from redhat/configs/fedora/generic/arm/aarch64/CONFIG_ARM64_VA_BITS_52 rename to redhat/configs/common/generic/arm/aarch64/CONFIG_ARM64_VA_BITS_52 index blahblah..blahblah 100644 --- a/redhat/configs/fedora/generic/arm/aarch64/CONFIG_ARM64_VA_BITS_52 +++ b/redhat/configs/common/generic/arm/aarch64/CONFIG_ARM64_VA_BITS_52
-- https://gitlab.com/cki-project/kernel-ark/-/merge_requests/1255
From: Mark Langsdorf on gitlab.com https://gitlab.com/cki-project/kernel-ark/-/merge_requests/1255#note_6242303...
Acked-by: Mark Langsdorf mlangsdo@redhat.com (via approve button)
From: Al Stone on gitlab.com https://gitlab.com/cki-project/kernel-ark/-/merge_requests/1255#note_6244376...
Acked-by: Al Stone ahs3@redhat.com (via approve button)
Hello,
On Mon, Jul 12, 2021 at 05:17:28PM -0000, Mark Salter (via Email Bridge) wrote:
From: Mark Salter msalter@redhat.com
arm64: switch ark kernel to 4K pagesize
RHEL9 for Aarch64 will use 4K pages. Shuffle the related configs around so that they are shared by both ark and fedora.
Signed-off-by: Mark Salter msalter@redhat.com
After I switch to 4K page size with upstream kernel on rhel8, the following kernel panic is triggered. Not investigate further yet. So we will not support upgrade from rhel8 to rhel9(rhel9 has to be installed on one fresh storage system)?
[ 15.619232] md: Waiting for all devices to be available before autodetect [ 15.626017] md: If you don't use raid, use raid=noautodetect [ 15.631675] md: Autodetecting RAID arrays. [ 15.635759] md: autorun ... [ 15.638540] md: ... autorun DONE. [ 15.641864] List of all partitions: [ 15.645340] No filesystem could mount root, tried: [ 15.645342] [ 15.651687] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) [ 15.659939] CPU: 1 PID: 1 Comm: swapper/0 Tainted: G W 5.14.0-rc2_linus #4 [ 15.668103] Hardware name: WIWYNN Mt.Jade Server System B81.030Z1.0007/Mt.Jade Motherboard, BIOS 1.5.20210415 (SCP: 1.5.205 [ 15.669774] usb 1-1.1: new high-speed USB device number 3 using xhci_hcd [ 15.680695] Call trace: [ 15.680695] dump_backtrace+0x0/0x1ec [ 15.693465] show_stack+0x24/0x30 [ 15.696766] dump_stack_lvl+0x68/0x84 [ 15.700417] dump_stack+0x18/0x34 [ 15.703719] panic+0x158/0x370 [ 15.706762] mount_block_root+0x290/0x2b0 [ 15.710761] mount_root+0x7c/0x8c [ 15.714064] prepare_namespace+0x140/0x180 [ 15.718147] kernel_init_freeable+0x12c/0x158 [ 15.722492] kernel_init+0x30/0x140 [ 15.725969] ret_from_fork+0x10/0x18 [ 15.729596] SMP: stopping secondary CPUs [ 15.734249] Kernel Offset: 0x187c390000 from 0xffffffc010000000 [ 15.740155] PHYS_OFFSET: 0x7de40000000 [ 15.743891] CPU features: 0x000002c1,a3302e42 [ 15.748235] Memory Limit: none [ 15.751292] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) ]---
thanks, Ming
On Thu, 2021-07-22 at 23:35 +0800, Ming Lei wrote:
Hello,
On Mon, Jul 12, 2021 at 05:17:28PM -0000, Mark Salter (via Email Bridge) wrote:
From: Mark Salter msalter@redhat.com
arm64: switch ark kernel to 4K pagesize
RHEL9 for Aarch64 will use 4K pages. Shuffle the related configs around so that they are shared by both ark and fedora.
Signed-off-by: Mark Salter msalter@redhat.com
After I switch to 4K page size with upstream kernel on rhel8, the following kernel panic is triggered. Not investigate further yet. So we will not support upgrade from rhel8 to rhel9(rhel9 has to be installed on one fresh storage system)?
What filesystem? There are some which have restrictions based around pagesize. So running a 4k kernel on a filesystem created with a 64k kernel is risky.
Mark
[ 15.619232] md: Waiting for all devices to be available before autodetect [ 15.626017] md: If you don't use raid, use raid=noautodetect [ 15.631675] md: Autodetecting RAID arrays. [ 15.635759] md: autorun ... [ 15.638540] md: ... autorun DONE. [ 15.641864] List of all partitions: [ 15.645340] No filesystem could mount root, tried: [ 15.645342] [ 15.651687] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) [ 15.659939] CPU: 1 PID: 1 Comm: swapper/0 Tainted: G W 5.14.0-rc2_linus #4 [ 15.668103] Hardware name: WIWYNN Mt.Jade Server System B81.030Z1.0007/Mt.Jade Motherboard, BIOS 1.5.20210415 (SCP: 1.5.205 [ 15.669774] usb 1-1.1: new high-speed USB device number 3 using xhci_hcd [ 15.680695] Call trace: [ 15.680695] dump_backtrace+0x0/0x1ec [ 15.693465] show_stack+0x24/0x30 [ 15.696766] dump_stack_lvl+0x68/0x84 [ 15.700417] dump_stack+0x18/0x34 [ 15.703719] panic+0x158/0x370 [ 15.706762] mount_block_root+0x290/0x2b0 [ 15.710761] mount_root+0x7c/0x8c [ 15.714064] prepare_namespace+0x140/0x180 [ 15.718147] kernel_init_freeable+0x12c/0x158 [ 15.722492] kernel_init+0x30/0x140 [ 15.725969] ret_from_fork+0x10/0x18 [ 15.729596] SMP: stopping secondary CPUs [ 15.734249] Kernel Offset: 0x187c390000 from 0xffffffc010000000 [ 15.740155] PHYS_OFFSET: 0x7de40000000 [ 15.743891] CPU features: 0x000002c1,a3302e42 [ 15.748235] Memory Limit: none [ 15.751292] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) ]---
thanks, Ming
On Thu, Jul 22, 2021 at 11:56 PM Mark Salter msalter@redhat.com wrote:
On Thu, 2021-07-22 at 23:35 +0800, Ming Lei wrote:
Hello,
On Mon, Jul 12, 2021 at 05:17:28PM -0000, Mark Salter (via Email Bridge) wrote:
From: Mark Salter msalter@redhat.com
arm64: switch ark kernel to 4K pagesize
RHEL9 for Aarch64 will use 4K pages. Shuffle the related configs around so that they are shared by both ark and fedora.
Signed-off-by: Mark Salter msalter@redhat.com
After I switch to 4K page size with upstream kernel on rhel8, the following kernel panic is triggered. Not investigate further yet. So we will not support upgrade from rhel8 to rhel9(rhel9 has to be installed on one fresh storage system)?
What filesystem? There are some which have restrictions based around pagesize. So running a 4k kernel on a filesystem created with a 64k kernel is risky.
Please see the whole dmesg log:
http://pastebin.test.redhat.com/981459
The FS is XFS.
[root@ampere-mtjade-04 ~]# lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS sda 8:0 1 0B 0 disk sr0 11:0 1 1024M 0 rom nvme0n1 259:0 0 894.3G 0 disk ├─nvme0n1p1 259:1 0 600M 0 part /boot/efi ├─nvme0n1p2 259:2 0 1G 0 part /boot ├─nvme0n1p3 259:3 0 4G 0 part [SWAP] ├─nvme0n1p4 259:4 0 70G 0 part / └─nvme0n1p5 259:5 0 818.7G 0 part /home nvme1n1 259:6 0 894.3G 0 disk [root@ampere-mtjade-04 ~]# mount | grep nvme0 /dev/nvme0n1p4 on / type xfs (rw,relatime,seclabel,attr2,inode64,logbufs=8,logbsize=32k,noquota) /dev/nvme0n1p2 on /boot type xfs (rw,relatime,seclabel,attr2,inode64,logbufs=8,logbsize=32k,noquota) /dev/nvme0n1p5 on /home type xfs (rw,relatime,seclabel,attr2,inode64,logbufs=8,logbsize=32k,noquota) /dev/nvme0n1p1 on /boot/efi type vfat (rw,relatime,fmask=0077,dmask=0077,codepage=437,iocharset=ascii,shortname=winnt,errors=remount-ro)
Thanks, Ming
From: Mark Salter on gitlab.com https://gitlab.com/cki-project/kernel-ark/-/merge_requests/1255#note_6335145...
CKI Gitlabcommented: Ming Lei ming.lei@redhat.com commented via email:
Hello,
arm64: switch ark kernel to 4K pagesize
RHEL9 for Aarch64 will use 4K pages. Shuffle the related configs around so that they are shared by both ark and fedora.
Signed-off-by: Mark Salter msalter@redhat.com
After I switch to 4K page size with upstream kernel on rhel8, the following kernel panic is triggered. Not investigate further yet. So we will not support upgrade from rhel8 to rhel9(rhel9 has to be installed on one fresh storage system)?
What filesystem? There are some which have restrictions based around pagesize. So running a 4k kernel on a filesystem created with a 64k kernel is risky.
Please see the whole dmesg log:
This doesn't look good:
[ 0.000000] Memory doesn't fit in the linear mapping, VA_BITS too small [ 0.000000] ------------[ cut here ]------------ [ 0.000000] initrd not fully accessible via the linear mapping -- please check your bootloader ...
Can you install and run a recent fedora kernel?
kernel@lists.fedoraproject.org