You are not logged in.

#76 2023-09-21 15:19:01

Sandrino
Member
Registered: 2021-09-24
Posts: 45

Re: Stuck at 'loading initial ramdisk' on latest kernel

loqs wrote:

Please retry 6.5.3 with cpuhp.parallel=0 ten plus times as the bisect log with linux-6.4rc2.r35.gf6f1ae9128d2-1-x86_64.pkg.tar.zst as good becomes:

$ git bisect log
git bisect start
# status: waiting for both good and bad commits
# good: [6995e2de6891c724bfeb2db33d7b87775f913ad1] Linux 6.4
git bisect good 6995e2de6891c724bfeb2db33d7b87775f913ad1
# bad: [2dde18cd1d8fac735875f2e4987f11817cc0bc2c] Linux 6.5
git bisect bad 2dde18cd1d8fac735875f2e4987f11817cc0bc2c
# bad: [b775d6c5859affe00527cbe74263de05cfe6b9f9] Merge tag 'mips_6.5' of git://git.kernel.org/pub/scm/linux/kernel/git/mips/linux
git bisect bad b775d6c5859affe00527cbe74263de05cfe6b9f9
# bad: [3a8a670eeeaa40d87bd38a587438952741980c18] Merge tag 'net-next-6.5' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next
git bisect bad 3a8a670eeeaa40d87bd38a587438952741980c18
# bad: [6e17c6de3ddf3073741d9c91a796ee696914d8a0] Merge tag 'mm-stable-2023-06-24-19-15' of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
git bisect bad 6e17c6de3ddf3073741d9c91a796ee696914d8a0
# bad: [2605e80d3438c77190f55b821c6575048c68268e] Merge tag 'arm64-upstream' of git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux
git bisect bad 2605e80d3438c77190f55b821c6575048c68268e
# good: [0aa69d53ac7c30f6184f88f2e310d808b32b35a5] Merge tag 'for-6.5/io_uring-2023-06-23' of git://git.kernel.dk/linux
git bisect good 0aa69d53ac7c30f6184f88f2e310d808b32b35a5
# good: [7cffdbe3607a6cc2dc02d135e13732ec36bc4e28] Merge tag 'x86-boot-2023-06-26' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/git/tip/tip
git bisect good 7cffdbe3607a6cc2dc02d135e13732ec36bc4e28
# bad: [5dfe7a7e52ccdf60dfd11ccbe509e4365ea721ca] Merge tag 'x86_tdx_for_6.5' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
git bisect bad 5dfe7a7e52ccdf60dfd11ccbe509e4365ea721ca
# bad: [cd336f6562d3d7646a9cf071b902db200a1dd77b] Merge tag 'timers-core-2023-06-26' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/git/tip/tip
git bisect bad cd336f6562d3d7646a9cf071b902db200a1dd77b
# bad: [60be49bdf1d4ddb9e2deb7aa718d5b8bc167ee4e] MAINTAINERS: Add CPU HOTPLUG entry
git bisect bad 60be49bdf1d4ddb9e2deb7aa718d5b8bc167ee4e
# good: [5356297d12d9ee6f70d09485878904bc41bac422] cpu/hotplug: Remove cpu_report_state() and related unused cruft
git bisect good 5356297d12d9ee6f70d09485878904bc41bac422
# good: [f54d4434c281f38b975d58de47adeca671beff4f] x86/apic: Provide cpu_primary_thread mask
git bisect good f54d4434c281f38b975d58de47adeca671beff4f
# bad: [0c7ffa32dbd6b09a87fea4ad1de8b27145dfd9a6] x86/smpboot/64: Implement arch_cpuhp_init_parallel_bringup() and enable it
git bisect bad 0c7ffa32dbd6b09a87fea4ad1de8b27145dfd9a6
# good: [bea629d57d006733d155bdb65ba4867788da69b6] x86/apic: Save the APIC virtual base address
git bisect good bea629d57d006733d155bdb65ba4867788da69b6
# bad: [7e75178a0950c5ceffa2ca3225701b69752f7d3a] x86/smpboot: Support parallel startup of secondary CPUs
git bisect bad 7e75178a0950c5ceffa2ca3225701b69752f7d3a
# good: [f6f1ae9128d2a080ecdd55f85e8a0ca3ed1d58eb] x86/smpboot: Implement a bit spinlock to protect the realmode stack
git bisect good f6f1ae9128d2a080ecdd55f85e8a0ca3ed1d58eb
# first bad commit: [7e75178a0950c5ceffa2ca3225701b69752f7d3a] x86/smpboot: Support parallel startup of secondary CPUs

Twelve attempts and no boot

Offline

#77 2023-09-22 14:22:04

loqs
Member
Registered: 2014-03-06
Posts: 18,087

Re: Stuck at 'loading initial ramdisk' on latest kernel

Last try 6.5.4 with the following applied:

diff --git a/arch/x86/kernel/smpboot.c b/arch/x86/kernel/smpboot.c
index 7d82f0bd449c..163b913cb668 100644
--- a/arch/x86/kernel/smpboot.c
+++ b/arch/x86/kernel/smpboot.c
@@ -1278,14 +1278,7 @@ void __init smp_prepare_cpus_common(void)
 /* Establish whether parallel bringup can be supported. */
 bool __init arch_cpuhp_init_parallel_bringup(void)
 {
-	if (!x86_cpuinit.parallel_bringup) {
-		pr_info("Parallel CPU startup disabled by the platform\n");
-		return false;
-	}
-
-	smpboot_control = STARTUP_READ_APICID;
-	pr_debug("Parallel CPU startup enabled: 0x%08x\n", smpboot_control);
-	return true;
+	return false;
 }
 #endif
 

https://drive.google.com/file/d/1b_egj7 … sp=sharing linux-6.5.4.arch2-1.1-x86_64.pkg.tar.zst
https://drive.google.com/file/d/1nREOZy … sp=sharing linux-headers-6.5.4.arch2-1.1-x86_64.pkg.tar.zst
Again please try a lot of times.

Regardless of this test the issue needs to be reported upstream or you are stuck on 6.4.

Offline

#78 2023-09-22 15:20:11

Sandrino
Member
Registered: 2021-09-24
Posts: 45

Re: Stuck at 'loading initial ramdisk' on latest kernel

loqs wrote:

Last try 6.5.4 with the following applied:

diff --git a/arch/x86/kernel/smpboot.c b/arch/x86/kernel/smpboot.c
index 7d82f0bd449c..163b913cb668 100644
--- a/arch/x86/kernel/smpboot.c
+++ b/arch/x86/kernel/smpboot.c
@@ -1278,14 +1278,7 @@ void __init smp_prepare_cpus_common(void)
 /* Establish whether parallel bringup can be supported. */
 bool __init arch_cpuhp_init_parallel_bringup(void)
 {
-	if (!x86_cpuinit.parallel_bringup) {
-		pr_info("Parallel CPU startup disabled by the platform\n");
-		return false;
-	}
-
-	smpboot_control = STARTUP_READ_APICID;
-	pr_debug("Parallel CPU startup enabled: 0x%08x\n", smpboot_control);
-	return true;
+	return false;
 }
 #endif
 

https://drive.google.com/file/d/1b_egj7 … sp=sharing linux-6.5.4.arch2-1.1-x86_64.pkg.tar.zst
https://drive.google.com/file/d/1nREOZy … sp=sharing linux-headers-6.5.4.arch2-1.1-x86_64.pkg.tar.zst
Again please try a lot of times.

Regardless of this test the issue needs to be reported upstream or you are stuck on 6.4.

Twelve attempts, didn't boot

Offline

#79 2023-12-12 17:57:48

loqs
Member
Registered: 2014-03-06
Posts: 18,087

Re: Stuck at 'loading initial ramdisk' on latest kernel

Offline

#80 2024-01-10 16:12:50

Sandrino
Member
Registered: 2021-09-24
Posts: 45

Re: Stuck at 'loading initial ramdisk' on latest kernel

It seems that I have to change OS as the lts kernel has been updated to a version that my pc can't boot

Offline

#81 2024-01-10 16:18:44

seth
Member
Registered: 2012-09-03
Posts: 59,104

Re: Stuck at 'loading initial ramdisk' on latest kernel

You can

IgnorePkg   = linux-lts linux-lts-headers

for the moment, the kernel is mostly self contained and it'll typically take a while until that runs you into trouble.
Also https://aur.archlinux.org/packages?K=linux6.1.71

Can you reliably boot newer kernels if you downclock the CPU?

Offline

#82 2024-01-10 16:30:26

Sandrino
Member
Registered: 2021-09-24
Posts: 45

Re: Stuck at 'loading initial ramdisk' on latest kernel

seth wrote:

You can

IgnorePkg   = linux-lts linux-lts-headers

for the moment, the kernel is mostly self contained and it'll typically take a while until that runs you into trouble.
Also https://aur.archlinux.org/packages?K=linux6.1.71

Can you reliably boot newer kernels if you downclock the CPU?


Already downgraded to 6.1.71 in chroot
It's a notebook with a very basic bios/uefi, can't control cpu clock

Offline

Board footer

Powered by FluxBB