r/linuxuserssuck • • Sep 20 '26

"Skill issue" rly?

Post image
7 Upvotes

44 comments sorted by

View all comments

Show parent comment

1

u/Glittering-Can-9397 Sep 21 '26

Im not sure if I read that right but it sounded like OP may have been overclocking cpu?

2

u/R3V0LU710N_05 Sep 21 '26

OP wasn't overclocking at all. They actually underclocked their CPU down to a flat 1.5 GHz as a band-aid fix because they thought the clock speed gap between P-cores and E-cores was crashing the system.

The actual issue isn't core speeds, but deep C-states. During load shifts, sleeping cores fail to wake up in time for APIC IPI broadcasts, causing a kernel panic. That sudden crash is also why the Caps Lock light turns on before logs can write to disk. The failure stems from motherboard firmware and ACPI table miscalculations during deep CPU power state transitions

Instead of losing 3 GHz of performance by disabling Turbo Boost, the real fix is updating the BIOS/microcode and setting intel_idle.max_cstate=1 in GRUB so cores stay awake for IPIs while boosting up to 4.5 GHz.

2

u/Glittering-Can-9397 Sep 21 '26

ahh so this was likely an acpi issue then, this seems well outside my area of expertise but most laptops Ive had have acpi issues with linux that express themselves in different ways

2

u/Glittering-Can-9397 Sep 21 '26

microcode as in the firmware for the cpu? doesnt that install by default with most distros? do you think it was just out of date for op ig its hard to tell without having the box in hand

2

u/R3V0LU710N_05 Sep 21 '26 edited Sep 21 '26

Yeah, ACPI is a huge part of it. The motherboard vendor publishes ACPI tables in the BIOS that tell the kernel how to handle power states. On hybrid architectures with P-cores and E-cores, poorly written ACPI tables miscalculate the wake latency for deep C-states. When a core drops into a deep sleep state like C6 or C7, the kernel expects it to wake up quickly for an APIC interrupt, but the buggy firmware fails to pull it out in time, triggering the kernel panic.

As for microcode, you are right that it is basically CPU firmware, and most mainstream distros do try to package it by default. However, having the package installed is only half the battle because it has to be loaded extremely early in the boot sequence. If the microcode update is not explicitly hooked into the early initramfs, the CPU boots up using whatever buggy factory firmware was burned into the motherboard at the factory. That is why forcing early microcode generation or updating the BIOS is necessary, though capping max_cstate in GRUB is what actually guarantees the cores stay responsive to interrupts.

One of the reasons I wish there was a bigger push for Unified Kernel Images (UKI) as they solve early microcode loading.

2

u/Glittering-Can-9397 Sep 22 '26

tbh I just wish intel was more open about their whole architecture

2

u/Rare-Paint3719 Sep 22 '26

So I need to upgrade my firmware? Usually, Discover shows when I need a firmware update, and surprisingly does so seamlessly.

I will definitely try limiting the c-states, but I thought that this causes higher power consumption.

I may be wrong though.

2

u/R3V0LU710N_05 Sep 22 '26

It will most likely increase power consumption as it'll limit individual cores from going into a sleep state (C-state). I suggest upgrading the BIOS if possible and trying early microcode loading. Only if that doesn't work should you cap C-state. The power consumption shouldn't be hugely different from normal 4.5 GHz levels. Regardless, more power consumption is a lot better of a trade-off than crippling your CPUs performance.

2

u/Rare-Paint3719 Sep 22 '26

Fair, I'll try the firmware update and microcode loading first. And if all else fails, then I guess I gotta cap c-states.

Thank you very much for all the help.