View previous topic :: View next topic |
Author |
Message |
vlynd Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 23 Jan 2012 Posts: 153
|
Posted: Thu May 18, 2023 3:03 pm Post subject: Kernel Panic, PC freezes under load |
|
|
My desktop pc randomly freezes under heavy load and I have to hard reset it.
Looking into dmesg and syslog, it seems like there's a kernel panic but I cannot work out what exactly it is, that kills the PC.
Maybe something with nouveau? Would a solution be to downgrad to an older kernel version? I'm currently running kernel 6.3.2.
This is from the syslog:
Code: |
May 18 16:46:03 localhost kernel: ------------[ cut here ]------------
May 18 16:46:03 localhost kernel: irq 127 handler nvkm_intr+0x0/0x240 [nouveau] enabled interrupts
May 18 16:46:03 localhost kernel: WARNING: CPU: 4 PID: 4685 at kernel/irq/handle.c:161 __handle_irq_event_percpu+0x185/0x190
May 18 16:46:03 localhost kernel: Modules linked in: rfcomm nfsd lockd grace sunrpc xt_conntrack xt_MASQUERADE iptable_nat xt_addrtype iptable_filter br_netfilter bridge stp llc overlay bnep cfg80211 nft_reject_inet nft_reject nft_ct nf_tables vboxnetadp(O) vboxnetflt(O) vboxdrv(O) btusb btrtl btbcm nouveau btmtk btintel bluetooth drm_ttm_helper ttm snd_hda_codec_generic rfkill ecdh_generic i2c_algo_bit ecc drm_display_helper drm_kms_helper syscopyarea snd_hda_intel sysfillrect snd_intel_dspcfg wmi_bmof sysimgblt x86_pkg_temp_thermal snd_hda_codec mei_me snd_hda_core mei video wmi efivarfs hid_generic e1000e
May 18 16:46:03 localhost kernel: CPU: 4 PID: 4685 Comm: java Tainted: G O 6.3.2-gentoo-x86_64 #1
May 18 16:46:03 localhost kernel: Hardware name: To Be Filled By O.E.M. To Be Filled By O.E.M./Z390 Phantom Gaming 4S, BIOS P1.40 12/05/2019
May 18 16:46:03 localhost kernel: RIP: 0010:__handle_irq_event_percpu+0x185/0x190
May 18 16:46:03 localhost kernel: Code: e4 5b 5d 44 89 e0 41 5c 41 5d 41 5e c3 cc cc cc cc 48 8b 13 44 89 ee 48 c7 c7 20 15 19 b8 c6 05 1e 12 4b 01 01 e8 6b a3 f8 ff <0f> 0b eb a5 0f 1f 80 00 00 00 00 90 90 90 90 90 90 90 90 90 90 90
May 18 16:46:03 localhost kernel: RSP: 0000:ffffacb2401d8f60 EFLAGS: 00010282
May 18 16:46:03 localhost kernel: RAX: 0000000000000000 RBX: ffff8be600b39400 RCX: 0000000000000000
May 18 16:46:03 localhost kernel: RDX: 0000000000010102 RSI: 0000000000000027 RDI: 00000000ffffffff
May 18 16:46:03 localhost kernel: RBP: 0000000000000001 R08: 00000000ffffdfff R09: 0000000000000001
May 18 16:46:03 localhost kernel: R10: 00000000ffffdfff R11: ffffffffb8459640 R12: 0000000000000000
May 18 16:46:03 localhost kernel: R13: 000000000000007f R14: ffff8be60616d600 R15: 0000000000000000
May 18 16:46:03 localhost kernel: FS: 00007f35bf58d6c0(0000) GS:ffff8bed3dd00000(0000) knlGS:0000000000000000
May 18 16:46:03 localhost kernel: CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
May 18 16:46:03 localhost kernel: CR2: 000000060e41e000 CR3: 0000000137df8003 CR4: 00000000003706e0
May 18 16:46:03 localhost kernel: DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
May 18 16:46:03 localhost kernel: DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
May 18 16:46:03 localhost kernel: Call Trace:
May 18 16:46:03 localhost kernel: <IRQ>
May 18 16:46:03 localhost kernel: handle_irq_event+0x2f/0x70
May 18 16:46:03 localhost kernel: handle_edge_irq+0x9a/0x230
May 18 16:46:03 localhost kernel: __common_interrupt+0x5e/0x100
May 18 16:46:03 localhost kernel: common_interrupt+0xa0/0xc0
May 18 16:46:03 localhost kernel: </IRQ>
May 18 16:46:03 localhost kernel: <TASK>
May 18 16:46:03 localhost kernel: asm_common_interrupt+0x22/0x40
May 18 16:46:03 localhost kernel: RIP: 0010:kmem_cache_free+0x25a/0x3f0
May 18 16:46:03 localhost kernel: Code: 00 00 4c 8b 68 08 4d 85 ed 74 09 4c 39 ed 0f 85 25 01 00 00 4c 89 ed e9 c7 fd ff ff 48 c7 c0 00 00 00 80 48 2b 05 fe 80 f1 00 <e9> e0 fd ff ff 65 8b 05 a6 d3 d0 48 89 c0 48 0f a3 05 60 b9 2f 01
May 18 16:46:03 localhost kernel: RSP: 0000:ffffacb24225bd98 EFLAGS: 00000206
May 18 16:46:03 localhost kernel: RAX: 0000741a80000000 RBX: ffff8be69cc13180 RCX: 0000000000000802
May 18 16:46:03 localhost kernel: RDX: 0000000000000000 RSI: ffff8be69cc13180 RDI: ffff8be6008b2200
May 18 16:46:03 localhost kernel: RBP: ffff8be6008b2200 R08: 0000001bc9ac276b R09: 0000000000000200
May 18 16:46:03 localhost kernel: R10: ffffffffb84060c0 R11: ffffffffb85bbc20 R12: ffff8be71cc13180
May 18 16:46:03 localhost kernel: R13: ffffffffb78bdb32 R14: 0000000000008000 R15: 0000000000008000
May 18 16:46:03 localhost kernel: ? crypt_endio+0x22/0x70
May 18 16:46:03 localhost kernel: crypt_endio+0x22/0x70
May 18 16:46:03 localhost kernel: blk_update_request+0xf9/0x440
May 18 16:46:03 localhost kernel: scsi_end_request+0x22/0x1b0
May 18 16:46:03 localhost kernel: scsi_io_completion+0x3e/0x860
May 18 16:46:03 localhost kernel: blk_complete_reqs+0x38/0x50
May 18 16:46:03 localhost kernel: __do_softirq+0xe3/0x2e5
May 18 16:46:03 localhost kernel: irq_exit_rcu+0xa0/0x100
May 18 16:46:03 localhost kernel: common_interrupt+0x4d/0xc0
May 18 16:46:03 localhost kernel: asm_common_interrupt+0x22/0x40
May 18 16:46:03 localhost kernel: RIP: 0033:0x7f35bfbe4fb0
May 18 16:46:03 localhost kernel: Code: 47 48 00 00 00 00 48 c7 87 98 00 00 00 00 00 00 00 0f 11 47 28 0f 11 47 38 0f 11 47 78 0f 11 87 88 00 00 00 0f 11 47 58 c3 90 <55> 48 89 e5 41 56 41 55 41 54 53 48 89 fb 48 8b 7f 08 e8 a9 b3 88
May 18 16:46:03 localhost kernel: RSP: 002b:00007f35bf585b78 EFLAGS: 00000246
May 18 16:46:03 localhost kernel: RAX: 00007f35c096bf83 RBX: 00007f35b80261b0 RCX: 0000000016cf0000
May 18 16:46:03 localhost kernel: RDX: 00000000000016ce RSI: 00007f35c0927470 RDI: 00007f35bf585c30
May 18 16:46:03 localhost kernel: RBP: 00007f35bf585e10 R08: 0000000000000308 R09: 0000000000000000
May 18 16:46:03 localhost kernel: R10: 00007f35bf585f60 R11: 00007f35bf585c30 R12: 00007f35b8025be0
May 18 16:46:03 localhost kernel: R13: 00007f35bf585f10 R14: 0000000800ed1950 R15: 00007f35bf585bf0
May 18 16:46:03 localhost kernel: </TASK>
May 18 16:46:03 localhost kernel: ---[ end trace 0000000000000000 ]---
|
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
pietinger Moderator
![Moderator Moderator](/images/ranks/rank-mod.gif)
Joined: 17 Oct 2006 Posts: 5394 Location: Bavaria
|
Posted: Thu May 18, 2023 3:22 pm Post subject: |
|
|
Does it happen when you do copying mass of data to (or from) an encrypted device/partition ? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
grknight Retired Dev
![Retired Dev Retired Dev](/images/ranks/rank-retired.gif)
Joined: 20 Feb 2015 Posts: 2010
|
Posted: Thu May 18, 2023 3:23 pm Post subject: |
|
|
The syslog/dmesg is saying that IRQs are disabled (likely temporarily) and something is asking for an IRQ. Cannot decipher more than that. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
vlynd Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 23 Jan 2012 Posts: 153
|
Posted: Thu May 18, 2023 3:49 pm Post subject: |
|
|
> The syslog/dmesg is saying that IRQs are disabled (likely temporarily) and something is asking for an IRQ. Cannot decipher more than that.
Could it be that I got some kernel config wrong?
Code: |
grep -i irq .config
CONFIG_IRQ_WORK=y
# IRQ subsystem
CONFIG_GENERIC_IRQ_PROBE=y
CONFIG_GENERIC_IRQ_SHOW=y
CONFIG_GENERIC_IRQ_EFFECTIVE_AFF_MASK=y
CONFIG_GENERIC_PENDING_IRQ=y
CONFIG_GENERIC_IRQ_MIGRATION=y
CONFIG_HARDIRQS_SW_RESEND=y
CONFIG_IRQ_DOMAIN=y
CONFIG_IRQ_DOMAIN_HIERARCHY=y
CONFIG_GENERIC_MSI_IRQ=y
CONFIG_IRQ_MSI_IOMMU=y
CONFIG_GENERIC_IRQ_MATRIX_ALLOCATOR=y
CONFIG_GENERIC_IRQ_RESERVATION_MODE=y
CONFIG_IRQ_FORCED_THREADING=y
CONFIG_SPARSE_IRQ=y
# CONFIG_GENERIC_IRQ_DEBUGFS is not set
# end of IRQ subsystem
# CONFIG_IRQ_TIME_ACCOUNTING is not set
CONFIG_X86_REROUTE_FOR_BROKEN_BOOT_IRQS=y
CONFIG_TRACE_IRQFLAGS_SUPPORT=y
CONFIG_TRACE_IRQFLAGS_NMI_SUPPORT=y
CONFIG_HAVE_IRQ_TIME_ACCOUNTING=y
CONFIG_HAVE_IRQ_EXIT_ON_IRQ_STACK=y
CONFIG_HAVE_SOFTIRQ_ON_OWN_STACK=y
CONFIG_SOFTIRQ_ON_OWN_STACK=y
# CONFIG_DUMMY_IRQ is not set
CONFIG_SERIAL_8250_SHARE_IRQ=y
CONFIG_SERIAL_8250_DETECT_IRQ=y
# CONFIG_IRQ_REMAP is not set
# IRQ chip support
# end of IRQ chip support
# CONFIG_IRQ_POLL is not set
# CONFIG_DEBUG_SHIRQ is not set
# CONFIG_DEBUG_IRQFLAGS is not set
# CONFIG_IRQSOFF_TRACER is not set
# CONFIG_PREEMPTIRQ_DELAY_TEST is not set
|
> Does it happen when you do copying mass of data to (or from) an encrypted device/partition ?
Yes, in most of the cases I was reading from an encrypted partition. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
pietinger Moderator
![Moderator Moderator](/images/ranks/rank-mod.gif)
Joined: 17 Oct 2006 Posts: 5394 Location: Bavaria
|
Posted: Thu May 18, 2023 4:53 pm Post subject: |
|
|
vlynd wrote: | Could it be that I got some kernel config wrong? |
There is nothing wrong ... but maye something missing. I compared it to mine and I have additionally this:
Code: | CONFIG_PCI_MSI_IRQ_DOMAIN=y
CONFIG_IRQ_REMAP=y |
and I know what is missing in your kernel config:
Code: | Device Drivers --->
[*] PCI support --->
[*] Message Signaled Interrupts (MSI and MSI-X) |
Dont worry, with this setting you will get automatically this ->
Selects: GENERIC_MSI_IRQ [=y]
AND
CONFIG_IRQ_REMAP -> Depends on: IOMMU_SUPPORT [=y] && X86_64 [=y] && X86_IO_APIC [=y] && PCI_MSI [=y] && ACPI [=y]
Because it is a very good setting you really should enable it ... but maybe it is not the reason of your problem.
P.S.: I asked beacuse I have seen this in your crash dump:
Code: | May 18 16:46:03 localhost kernel: ? crypt_endio+0x22/0x70
May 18 16:46:03 localhost kernel: crypt_endio+0x22/0x70
May 18 16:46:03 localhost kernel: blk_update_request+0xf9/0x440 |
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
vlynd Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 23 Jan 2012 Posts: 153
|
Posted: Thu May 18, 2023 5:33 pm Post subject: |
|
|
Thanks for your input.
I just enabled CONFIG_IRQ_REMAP:
Code: | grep CONFIG_IRQ_REMAP .config
CONFIG_IRQ_REMAP=y |
But unfortunately I can't find CONFIG_PCI_MSI_IRQ_DOMAIN inside the kernel config:
Code: |
grep -i msi .config
CONFIG_GENERIC_MSI_IRQ=y
CONFIG_IRQ_MSI_IOMMU=y
CONFIG_PCI_MSI=y
# CONFIG_MSI_LAPTOP is not set
# CONFIG_MSI_WMI is not set
|
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
pietinger Moderator
![Moderator Moderator](/images/ranks/rank-mod.gif)
Joined: 17 Oct 2006 Posts: 5394 Location: Bavaria
|
Posted: Thu May 18, 2023 6:56 pm Post subject: |
|
|
vlynd,
I hope you have never edited your .config manually. If yes, please read:
https://wiki.gentoo.org/wiki/User:Pietinger/Tutorials/Manual_kernel_configuration#Never_edit_.config
... and throw away your config !
If no: You surely know there are many options which depends on other options. You will not have them in your .config until you have enabled other options. And some of them are "only" calculated ... you can never enable them directly in "make menuconfig" ... BUT ... you can search in "make menuconfig" for them with /
A search for "PCI_MSI_IRQ_DOMAIN" gives me this option and it says:
Quote: | Selected by [y]:
- X86_LOCAL_APIC [=y] && (X86_64 [=y] || SMP [=y] || X86_32_NON_STANDARD [=n] || X86_UP_APIC [=n] || PCI_MSI [=y]) && PCI_MSI [=y] |
As long as you are missing something (e.g. IOMMU support) you will not get it. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
vlynd Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 23 Jan 2012 Posts: 153
|
Posted: Thu May 18, 2023 8:19 pm Post subject: |
|
|
pietinger,
no, I didn't edit the .config by hand, only with "make menuconfig".
IOMMU is also enabled, but PCI_MSI_IRQ_DOMAIN still doesn't show up. But anyways, maybe it's not the cause for the freeze.
Just updated to kernel 6.3.3. Maybe that and / or enabling CONFIG_IRQ_REMAP will fix the issue. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
pietinger Moderator
![Moderator Moderator](/images/ranks/rank-mod.gif)
Joined: 17 Oct 2006 Posts: 5394 Location: Bavaria
|
Posted: Thu May 18, 2023 9:54 pm Post subject: |
|
|
I dont think your problem is caused by a missing IRQ_REMAP ... you must find out why you dont have PCI_MSI_IRQ_DOMAIN
I searched for all dependencies:
Code: | Symbol: PCI_MSI [=y]
Selects: GENERIC_MSI_IRQ [=y]
Symbol: X86_LOCAL_APIC [=y]
Depends on: X86_64 [=y] || SMP [=y] || X86_32_NON_STANDARD [=n] || X86_UP_APIC [=n] || PCI_MSI [=y]
Selects: IRQ_DOMAIN_HIERARCHY [=y] && PCI_MSI_IRQ_DOMAIN [=y]
Symbol: IRQ_DOMAIN_HIERARCHY [=y]
Selects: IRQ_DOMAIN [=y]
Selected by [y]:
- GENERIC_MSI_IRQ_DOMAIN [=y]
- X86_LOCAL_APIC [=y] && (X86_64 [=y] || SMP [=y] || X86_32_NON_STANDARD [=n] || X86_UP_APIC [=n] || PCI_MSI [=y])
Symbol: GENERIC_MSI_IRQ_DOMAIN [=y]
Selects: IRQ_DOMAIN_HIERARCHY [=y] && GENERIC_MSI_IRQ [=y]
Selected by [y]: PCI_MSI_IRQ_DOMAIN [=y] && PCI [=y] && PCI_MSI [=y]
Symbol: PCI_MSI_IRQ_DOMAIN [=y]
Depends on: PCI [=y] && PCI_MSI [=y]
Selects: GENERIC_MSI_IRQ_DOMAIN [=y]
Selected by [y]: X86_LOCAL_APIC [=y] && (X86_64 [=y] || SMP [=y] || X86_32_NON_STANDARD [=n] || X86_UP_APIC [=n] || PCI_MSI [=y]) && PCI_MSI [=y] |
The first one you have enabled; all other are "calculated" options and they need only X86_64 (you surely have) ...
... AND ...
... SMP ... this is this one:
Code: | Processor type and features --->
[*] Symmetric multi-processing support |
(I cant believe you are missing it) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
vlynd Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 23 Jan 2012 Posts: 153
|
Posted: Fri May 19, 2023 8:47 am Post subject: |
|
|
Unfortunately, I have no clue why PCI_MSI_IRQ_DOMAIN is not showing up.
"Symmetric multi-processing support" is also enabled.
This is my complete .config: http://sprunge.us/Uxf0pQ |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
pietinger Moderator
![Moderator Moderator](/images/ranks/rank-mod.gif)
Joined: 17 Oct 2006 Posts: 5394 Location: Bavaria
|
Posted: Fri May 19, 2023 11:33 am Post subject: |
|
|
All is okay - you have 6.3 !
I see it is an Intel machine. First question: Is it a desktop or a notebook ?
Do you use an initramfs ?
There is one option you really should change because it leads to lowest cpu frequency => 3
Code: | 1
CONFIG_X86_EXTENDED_PLATFORM=y
2
# CONFIG_X86_INTEL_LPSS is not set
3
CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE=y
4
CONFIG_INTEL_MEI=m
CONFIG_INTEL_MEI_ME=m
5
CONFIG_EXTRA_FIRMWARE=""
6
# CONFIG_PINCTRL is not set
7
# CONFIG_INTEL_PCH_THERMAL is not set
# CONFIG_INTEL_TCC_COOLING is not set |
1. You dont need it
2. If it is a notebook - or if it is used by your mainboard - you really should enable it. You can check with booting Gentoo live CD (or Ubuntu live CD) and doing a "lsmod".
3. Change it to "schedutil": https://wiki.gentoo.org/wiki/User:Pietinger/Tutorials/Manual_Configuring_Kernel_Version_6.1#Part_3_-_Must_Haves
4. It is an intel machine
5. If you use an initramfs which loads your microcode then this is okay. If there is no initramfs you should configure your microcode: https://forums.gentoo.org/viewtopic-t-1065464.html
6. i2c needs pinctrl ! But if you dont miss anything it is okay.
7. The same as 2. Check if it is loaded when booting with a LiveCD
Most important: So ... NOW ... do you have problems anymore when copying ?
. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
NeddySeagoon Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
![](images/avatars/3946266373f47d606a2db3.jpg)
Joined: 05 Jul 2003 Posts: 54850 Location: 56N 3W
|
Posted: Fri May 19, 2023 4:09 pm Post subject: |
|
|
vlynd,
The output of would be good.
Code: | CONFIG_INTEL_MEI=m
CONFIG_INTEL_MEI_ME=m | is only required in a corporate environment, where corporate IT want to tamper with your install when you are not there.
Disable the Management Engine Interface if thats not your use case. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
pietinger Moderator
![Moderator Moderator](/images/ranks/rank-mod.gif)
Joined: 17 Oct 2006 Posts: 5394 Location: Bavaria
|
Posted: Fri May 19, 2023 6:40 pm Post subject: |
|
|
NeddySeagoon wrote: | [MEI] is only required in a corporate environment, where corporate IT want to tamper with your install when you are not there. |
We must be carefully ... ... we dont know if his sound works at the moment ... we have to wait for more information ...
... PO is not using SOUNDWIRE but has set some SOC options (for me it looks strange) ... BUT ... some sound modules NEED Intel's MEI to be able to work.
What is strange to me:
1. Missing Codecs:
Code: | # CONFIG_SND_HDA_CODEC_REALTEK is not set
# CONFIG_SND_HDA_CODEC_HDMI is not set |
2. No SOUNDWIRE:
Code: | # CONFIG_SOUNDWIRE is not set |
3. Very old modules AND incomplete SOF modules:
Code: | CONFIG_SND_AC97_CODEC=m
CONFIG_SND_INTEL8X0=m
CONFIG_SND_INTEL8X0M=m
CONFIG_SND_INTEL_DSP_CONFIG=m
CONFIG_SND_INTEL_SOUNDWIRE_ACPI=m
CONFIG_SND_SOC=y
CONFIG_SND_SOC_INTEL_MACH=y
CONFIG_SND_SOC_SOF_TOPLEVEL=y
CONFIG_SND_SOC_SOF_INTEL_TOPLEVEL=y
CONFIG_SND_SOC_I2C_AND_SPI=y |
I can imagine where this comes from: When booting our LIVE-CD (not installation CD) OR booting Ubuntu there is a lot of soundwire-modules ... you maybe need to be able to play DMSC-content (but you dont need for normal sound output). |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
vlynd Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 23 Jan 2012 Posts: 153
|
Posted: Fri May 19, 2023 6:44 pm Post subject: |
|
|
pietinger,
thank you for your time and your explanation. Yes, I'm using an initramfs (root is on an encrypted disk). Also, this is a desktop machine.
This is my updated kernel config: http://sprunge.us/rpCWmF
Didn't experience a problem / freeze when reading/writing to the encrypted disk.
NeddySeagoon,
here is the output of "lspci -nnk": http://sprunge.us/NBbvRC
The Management Engine Interface is indeed obsolete in my case - thanks! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
pietinger Moderator
![Moderator Moderator](/images/ranks/rank-mod.gif)
Joined: 17 Oct 2006 Posts: 5394 Location: Bavaria
|
Posted: Fri May 19, 2023 7:00 pm Post subject: |
|
|
vlynd wrote: | Didn't experience a problem / freeze when reading/writing to the encrypted disk. |
Great to hear this
Does your sound work ?
Here are some options I have seen also:
Code: | 1
CONFIG_GENERIC_CPU=y
2
CONFIG_X86_ACPI_CPUFREQ=y
3
# CONFIG_INTEL_IDLE is not set
4
# CONFIG_MFD_INTEL_LPSS_PCI is not set
5
# CONFIG_USB_UAS is not set |
1. Change it to CORE2 (better - faster)
2. Not necessary. Intels Pstate will do the job alone.
3. Maybe needed
4. Maybe needed (check "lspci -k" when booting with our Gentoo Install CD)
5. Enable it. (It speeds up every access to USB storage if device is able for it; if not it does not harm) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
NeddySeagoon Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
![](images/avatars/3946266373f47d606a2db3.jpg)
Joined: 05 Jul 2003 Posts: 54850 Location: 56N 3W
|
Posted: Fri May 19, 2023 9:10 pm Post subject: |
|
|
vlynd,
Code: | 00:12.0 Signal processing controller [1180]: Intel Corporation Cannon Lake PCH Thermal Controller [8086:a379] (rev 10)
DeviceName: Onboard - Other
Subsystem: ASRock Incorporation Cannon Lake PCH Thermal Controller [1849:a379] |
Requires Code: | CONFIG_INTEL_PCH_THERMAL=m | but that driver is not loaded.
The config you posted is from Code: | # Linux/x86 6.3.3-gentoo Kernel Configuration | but are you running the kernel that come from that config file?
What does show?
Code: | # CONFIG_PINCTRL_CANNONLAKE is not set | looks like a bad thing as you have a Cannon Lake chipset.
Code: | # CONFIG_GPIOLIB is not set | will also be a good thing os PINCTL and GPIO are often intermingled.
Your sound cannot work.
Code: | #
# HD-Audio
#
CONFIG_SND_HDA=m
CONFIG_SND_HDA_INTEL=m
# CONFIG_SND_HDA_HWDEP is not set
# CONFIG_SND_HDA_RECONFIG is not set
# CONFIG_SND_HDA_INPUT_BEEP is not set
# CONFIG_SND_HDA_PATCH_LOADER is not set
# CONFIG_SND_HDA_SCODEC_CS35L41_I2C is not set
# CONFIG_SND_HDA_CODEC_REALTEK is not set
# CONFIG_SND_HDA_CODEC_ANALOG is not set
# CONFIG_SND_HDA_CODEC_SIGMATEL is not set
# CONFIG_SND_HDA_CODEC_VIA is not set
# CONFIG_SND_HDA_CODEC_HDMI is not set
# CONFIG_SND_HDA_CODEC_CIRRUS is not set
# CONFIG_SND_HDA_CODEC_CS8409 is not set
# CONFIG_SND_HDA_CODEC_CONEXANT is not set
# CONFIG_SND_HDA_CODEC_CA0110 is not set
# CONFIG_SND_HDA_CODEC_CA0132 is not set
# CONFIG_SND_HDA_CODEC_CMEDIA is not set
# CONFIG_SND_HDA_CODEC_SI3054 is not set |
Code: | CONFIG_SND_HDA=m
CONFIG_SND_HDA_INTEL=m | is nte PCIe bus part. You also need the CODECs to support your hardware.
Set them all as modules for now. You must not mix and match built in with modules inside CONFIG_SND_HDA. That won't work by design.
is not required.
That will do to dip a toe in the water. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
vlynd Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 23 Jan 2012 Posts: 153
|
Posted: Sat May 20, 2023 7:58 pm Post subject: |
|
|
pietinger,
Yes, my sound is working!
Should I regardless enable CONFIG_SND_HDA_CODEC_REALTEK, CONFIG_SND_HDA_CODEC_HDMI and CONFIG_SOUNDWIRE?
MPD is working flawlessly; I'm using bluetooth speaker.
I don't need to be able to play DMSC-content, no. But yes, I think I booted an ubuntu live cd when installing gentoo (and wrote down the loaded modules).
Also, thanks for the kernel optimization tips!
---
NeddySeagoon,
my sound is indeed working. But I will enable the drivers nonetheless.
Is there any specific driver under CONFIG_GPIOLIB that I should enable?
Yes, I'm running the 6.3.3 that was built with the config I posted.
Code: | $ uname -a
Linux punica 6.3.3-gentoo-x86_64 #1 SMP PREEMPT_DYNAMIC Fri May 19 20:42:06 CEST 2023 x86_64 Intel(R) Core(TM) i7-9700F CPU @ 3.00GHz GenuineIntel GNU/Linux |
This is my updated kernel config:
http://sprunge.us/i533R2
BTW, I had no freeze since my first config update - thanks to both of you! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
NeddySeagoon Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
![](images/avatars/3946266373f47d606a2db3.jpg)
Joined: 05 Jul 2003 Posts: 54850 Location: 56N 3W
|
Posted: Sat May 20, 2023 8:37 pm Post subject: |
|
|
vlynd,
You are not using the kernel that came from that config.
What doesshow?
-- edit --
Your original post shows 6.3.2-gentoo-x86_64 #1 is use.
The config is for 6.3.3
We need a self consistent data set to work with. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
vlynd Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 23 Jan 2012 Posts: 153
|
Posted: Sat May 20, 2023 9:02 pm Post subject: |
|
|
NeddySeagoon,
During this thread, I did a world update and updated to 6.3.3
This was the first post with the 6.3.3 kernel. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
pietinger Moderator
![Moderator Moderator](/images/ranks/rank-mod.gif)
Joined: 17 Oct 2006 Posts: 5394 Location: Bavaria
|
Posted: Sun May 21, 2023 1:16 am Post subject: |
|
|
vlynd wrote: | Yes, my sound is working! ![Smile :-)](images/smiles/icon_smile.gif) |
Great ! Then there is nothing to do. Maybe it works because your mainboard is able to use the (very) old CONFIG_SND_AC97_CODEC=m (Do you see some of these modules in your "lsmod" ?)
vlynd wrote: | Should I regardless enable CONFIG_SND_HDA_CODEC_REALTEK, CONFIG_SND_HDA_CODEC_HDMI and CONFIG_SOUNDWIRE? |
I dont think your ever need SOUNDWIRE. HDMI is only necessary if you want to use internal speakers of a monitor (connected via DisplayPort or HDMI). Realtek is THE codec for almost all chipsets beginning with ALC... (with some exceptions). But as said before, if it works there is no need to change anything.
(I have an ALC897 in one machine and an ALC1220 in another machine: I need no soundwire or any SOC or SOF module; just these both codecs (I use speakers from monitor with DP) and the settings described in our ALSA Wiki article: https://wiki.gentoo.org/wiki/ALSA#Kernel )
vlynd wrote: | Also, thanks for the kernel optimization tips! |
You are very Welcome ! .... and ....
Have fun with Gentoo ! ![Cool 8)](images/smiles/icon_cool.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|