Last few days I'm trying to update my linux kernel to 5.8.7 from source.
So, I spend a lot's of time to configure the kernel, but, after reboot it always fall.
First what i noticed was strange sound from motherboard after grub start initdr. like sound of
beeping power supply when it not plugged to device.
Input devices don't work, so, i can't enter my LUKS pw.
Then, after a lot's of times of compilation the kernel and including all drivers - I'm get able to enter LUKS password, and start boot. When i see Xorg and KDE w lightdm screen - keyboard and touchpad dont react at all. only blinking cursor in user field.
And, after 10 seconds deadlock or full freeze. nothing, only hard reset via power button. And strange beeping all the time.
So, I try to recompile kernel with debug output and boot-tracing options.
Here is one moment - after one of my trying I check BIOS and was happy a lot! - in the BIOS appear "Advanced" tab.
Even JTAG configuration appears!
WOW!
So, closer to bug. When I boot with trace I see next:
May be it can be some mitigation technique? I'm talking about UEFI certs and my setup, where I'm using old good legacy.
By the way, in kernel options I try both y/n on cert's support - with no luck.
So, I enable few configuration options, like:
CONFIG_LEDS_APU=y
CONFIG_PCENGINES_APU2=y
compile, install modules, install, update initramfs, reboot, and:
video device with shadowed rom?
interesting, but not now :+1:
Ah! about max_cpu_qlen
In menuconfig I read that I can set it to 1000 for best latency. After a lot's of falls I set it to 300 - but it change nothing.
Okey, I give it drivers to usb and hid devices.
I give it all drivers which can be used it my setup.
And, i enable reboot on hangs/freezes and freezes/hangs detector in kernel debug or kernel hacking menu.
Also, some more ktrace were enabled.
1)
2)
3)
and boom! system halted!
As I understand - reboot on hangs/freezes works.
The most strange is fact, that I'm using at the moment pre-build 5.8.7 kernel.
And this is how it boot on current kernel - on which one I'm now typing this post:
Linux o 5.8.0-1-amd64 #1 SMP Debian 5.8.7-1 (2020-09-05) x86_64 GNU/Linux
installed from debian repo as binary package.
The same kernel version builded from src - hangs.
I try 5.9.9 and 5.9.11 and 5.8.7 builded from source - the same story. Freeze/hang.
The last few trys were builded with default (from /boot/config) configuration of working kernel from debian repo!
The only one effect is that BIOS is default again :(
I really don't have full understanding how I enables that feature. I think is somewhere in
Cpuidle Driver for Intel Processors
or
CPU Frequency scaling
All the time my firmware were:
[ 0.000000] microcode: microcode updated early to revision 0xd6, date = 2020-04-27
[ 1.205619] microcode: sig=0x906ea, pf=0x20, revision=0xd6
[ 1.205929] microcode: Microcode Update Driver: v2.2.
[19431.120544] ACPI Debug: "=====PROJECT_QUERY_20====="
[19431.120581] ACPI Error: Needed [Integer/String/Buffer], found [Reference] 000000002d24f561 (20200528/exresop-388)
[19431.120595] ACPI Error: AE_AML_OPERAND_TYPE, While resolving operands for [OpcodeName unavailable] (20200528/dswexec-431)
[19431.120604] ACPI Error: Aborting method \_SB.PCI0.LPCB.EC0._Q20 due to previous error (AE_AML_OPERAND_TYPE) (20200528/psparse-529)
[19835.025171] i915 0000:00:02.0: [drm] *ERROR* Atomic update failure on pipe A (start=2101789 end=2101790) time 347 us, min 1062, max 1079, scanline start 1023, end 1083
[19904.161162] i915 0000:00:02.0: [drm] *ERROR* Atomic update failure on pipe A (start=2111745 end=2111746) time 261 us, min 1062, max 1079, scanline start 1034, end 1080
[19911.917818] i915 0000:00:02.0: [drm] *ERROR* Atomic update failure on pipe A (start=2112862 end=2112863) time 306 us, min 1062, max 1079, scanline start 1031, end 1085
So... Sorry if my English is bad, I'm not native speaker.
And, thanks.
Hello.
Last few days I'm trying to update my linux kernel to 5.8.7 from source. So, I spend a lot's of time to configure the kernel, but, after reboot it always fall.
First what i noticed was strange sound from motherboard after grub start initdr. like sound of beeping power supply when it not plugged to device. Input devices don't work, so, i can't enter my LUKS pw.
Then, after a lot's of times of compilation the kernel and including all drivers - I'm get able to enter LUKS password, and start boot. When i see Xorg and KDE w lightdm screen - keyboard and touchpad dont react at all. only blinking cursor in
user
field. And, after 10 seconds deadlock or full freeze. nothing, only hard reset via power button. And strange beeping all the time.So, I try to recompile kernel with debug output and boot-tracing options.
Here is one moment - after one of my trying I check BIOS and was happy a lot! - in the BIOS appear "Advanced" tab. Even JTAG configuration appears! WOW!
So, closer to bug. When I boot with trace I see next:
May be it can be some mitigation technique? I'm talking about UEFI certs and my setup, where I'm using old good legacy. By the way, in kernel options I try both y/n on cert's support - with no luck.
So, I enable few configuration options, like:
compile, install modules, install, update initramfs, reboot, and: video device with shadowed rom? interesting, but not now :+1: Ah! about max_cpu_qlen In menuconfig I read that I can set it to 1000 for best latency. After a lot's of falls I set it to 300 - but it change nothing.
Okey, I give it drivers to usb and hid devices. I give it all drivers which can be used it my setup. And, i enable
reboot on hangs/freezes
andfreezes/hangs detector
inkernel debug
orkernel hacking
menu. Also, some morektrace
were enabled.1) 2) 3) and boom! system halted! As I understand -
reboot on hangs/freezes
works.The most strange is fact, that I'm using at the moment pre-build 5.8.7 kernel. And this is how it boot on current kernel - on which one I'm now typing this post:
Linux o 5.8.0-1-amd64 #1 SMP Debian 5.8.7-1 (2020-09-05) x86_64 GNU/Linux
installed from debian repo as binary package.The same kernel version builded from src - hangs. I try 5.9.9 and 5.9.11 and 5.8.7 builded from source - the same story. Freeze/hang. The last few trys were builded with default (from /boot/config) configuration of working kernel from debian repo! The only one effect is that BIOS is default again :( I really don't have full understanding how I enables that feature. I think is somewhere in
All the time my firmware were:
and just now I update it to:
will try again with new microcodes.
Also, cut from current dmesg:
So... Sorry if my English is bad, I'm not native speaker. And, thanks.
p.s. current .config: https://pastebin.ubuntu.com/p/CckP8ZgfV9/