Kernel Config updates?

10 views
Skip to first unread message

Jerrod Frost

unread,
Jan 18, 2019, 5:27:42 PM1/18/19
to Sabayon Dev
I'm no guru at kernel configs, but figured I'd bring up a few things since I'm trying to fix ACPI issues that don't exist for other distros (Gentoo being one of them). unfortunately I've been unable to test my changes thanks to dracut being an issue and not wanting to work on my laptop. :(  Anywho, I figured someone better understanding could look at and review my suggestions:


CONFIG_GENERIC_IRQ_CHIP=y ? (what does this do, not in Gentoo Config)
CONFIG_IRQ_SIM=y ? (what does this do, not in Gentoo Config)
CONFIG_X86_REROUTE_FOR_BROKEN_BOOT_IRQS=y (not set for Gentoo)
CONFIG_X86_INTEL_MPX=y (this is dead and should be removed or not set)
CONFIG_EFI_MIXED (Gentoo uses Y)
CONFIG_ACPI_AC=y (Benefit to using Y? Gentoo is M)
CONFIG_ACPI_BATTERY=y (Benefit to using Y? Gentoo is M)
CONFIG_ACPI_BUTTON=y (Benefit to using Y? Gentoo is M)
CONFIG_ACPI_VIDEO=y (Benefit to using Y? Gentoo is M)
CONFIG_ACPI_FAN=y (Benefit to using Y? Gentoo is M)
CONFIG_ACPI_TAD=y (Benefit to using Y? Gentoo is M)
CONFIG_X86_ACPI_CPUFREQ=y (Benefit to using Y? Gentoo is M)
CONFIG_X86_POWERNOW_K8=y (Benefit to using Y? Gentoo is M)
CONFIG_X86_P4_CLOCKMOD=y (Benefit to using Y? Gentoo is M)
CONFIG_X86_SPEEDSTEP_LIB=y (Benefit to using Y? Gentoo is M)
CONFIG_PCCARD=y (Benefit to using Y? Gentoo is M. is PCMCIA still alive?)
CONFIG_EFI_VARS_PSTORE=m (Gentoo using Y?)
CONFIG_EFI_VARS_PSTORE_DEFAULT_DISABLE is not set (Gentoo using Y?)
CONFIG_EFI_FAKE_MEMMAP is not set (Gentoo using 8)
CONFIG_BFQ_GROUP_IOSCHED is not set (couldn't this boost IO speeds?)
CONFIG_SND_HDA_PREALLOC_SIZE=64 (this is default option, Pulseaudio setups recommend a minimum of 2048, Gentoo uses 4096)
CONFIG_ACPI_WMI=y (Benefit to using Y? Gentoo is M)
CONFIG_WMI_BMOF=y (Benefit to using Y? Gentoo is M)
CONFIG_INTEL_IOMMU_DEFAULT_ON is not set (Gentoo uses Y)
CONFIG_IRQ_REMAP is not set (Gentoo uses Y)
CONFIG_NET_CLS_CGROUP=m





Unknown, but possibly helpful options for overlayfs.
# CONFIG_OVERLAY_FS_REDIRECT_DIR is not set (Gentoo uses Y)
# CONFIG_OVERLAY_FS_INDEX is not set (Gentoo uses Y)
# CONFIG_OVERLAY_FS_METACOPY is not set (Gentoo uses Y)

Joost Ruis

unread,
Jan 20, 2019, 5:16:05 AM1/20/19
to Sabayon Dev
Thanks for opening this.

We for sure should properly set this one for all the kernels we support:
CONFIG_SND_HDA_PREALLOC_SIZE=64 (this is default option, Pulseaudio setups recommend a minimum of 2048, Gentoo uses 4096)

Not sure about the other options. 


--
You received this message because you are subscribed to the Google Groups "Sabayon Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sabayon-dev...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jerrod Frost

unread,
Jan 25, 2019, 12:16:09 PM1/25/19
to Sabayon Dev
CONFIG_GENERIC_IRQ_CHIP=y ? (Not requesting change, what does this do, not in Gentoo Config)
CONFIG_IRQ_SIM=y ? (Not requesting change, what does this do, not in Gentoo Config)
CONFIG_X86_REROUTE_FOR_BROKEN_BOOT_IRQS=y (not set for Gentoo, evidently breaks some systems)
CONFIG_X86_INTEL_MPX=y (Intel MPX is dead and should be removed or not set)

CONFIG_ACPI_AC=y (Benefit to using Y? Gentoo is M)
CONFIG_ACPI_BATTERY=y (Benefit to using Y? Gentoo is M)
CONFIG_ACPI_BUTTON=y (Benefit to using Y? Gentoo is M)
CONFIG_ACPI_VIDEO=y (Benefit to using Y? Gentoo is M)
CONFIG_ACPI_FAN=y (Benefit to using Y? Gentoo is M)
CONFIG_ACPI_TAD=y (Benefit to using Y? Gentoo is M)
CONFIG_X86_ACPI_CPUFREQ=y (Benefit to using Y? Gentoo is M)
CONFIG_X86_POWERNOW_K8=y (Benefit to using Y? Gentoo is M)
CONFIG_X86_P4_CLOCKMOD=y (Benefit to using Y? Gentoo is M)
CONFIG_X86_SPEEDSTEP_LIB=y (Benefit to using Y? Gentoo is M)
CONFIG_PCCARD=y (Benefit to using Y? Gentoo is M. is PCMCIA still alive?)
CONFIG_EFI_VARS_PSTORE=m (Gentoo using Y?, beneficial to troubleshooting?)

CONFIG_EFI_VARS_PSTORE_DEFAULT_DISABLE is not set (Gentoo using Y?)
CONFIG_BFQ_GROUP_IOSCHED is not set (couldn't this boost IO speeds?)
CONFIG_SND_HDA_PREALLOC_SIZE=64 (this is default option, Pulseaudio setups recommend a minimum of 2048, Gentoo uses 4096)
CONFIG_ACPI_WMI=y (Benefit to using Y? Gentoo is M)
CONFIG_WMI_BMOF=y (Benefit to using Y? Gentoo is M)
CONFIG_INTEL_IOMMU_DEFAULT_ON is not set (Gentoo uses Y)
CONFIG_IRQ_REMAP is not set (Gentoo uses Y)

Per Request from Geaaru for docker/vm admin purposes. (spectre issues appear to be mitigated already for bpf)
CONFIG_NET_CLS_CGROUP=m
CONFIG_BPFILTER=m
CONFIG_BPF_JIT=m

I'm curious about CONFIG_X86_REROUTE_FOR_BROKEN_BOOT_IRQS=y (not set for Gentoo)
This theoretically sounds like a good idea, but evidently for some systems it actually breaks boot?
https://bugzilla.kernel.org/show_bug.cgi?id=43074 
I'm curious if this my issue on my laptop and other ryzen laptops that causing the system to hang upon boot without the noapic flag.

CONFIG_EFI_VARS_PSTORE allows writing console messages, crash dumps, or anything else supported by pstore to EFI variables. Including as Y, but disabling by default may help with diagnosing issues?

Removed EFI_MIXED which allowed booting 64-bit kernels from 32-bit EFI firmware systems, but disabled booting from EFI boot stub. (very niche)
Removed EFI_FAKE_MEMMAP which was used for debugging EFI firmware problems. Not necessary for us.

Jerrod Frost

unread,
Jan 26, 2019, 2:23:28 PM1/26/19
to Sabayon Dev, skull...@sabayon.org, mud...@dark-lab.net
I can now say after kernel config changes
# CONFIG_X86_REROUTE_FOR_BROKEN_BOOT_IRQS is not set
CONFIG_IRQ_REMAP=Y

all I need to do is add ivrs_ioapic[4]=00:14.0 ivrs_ioapic[5]=00:00.2 to grub due to missing data in IVRS tables and it sets APIC to physical flat and I can now boot in my laptop without the noapic flag! 

The rest of the changes are nice (not required, but there is no harm in applying and could even result in some benefit), but not needed to fix booting issues due to bad APIC implementations.
Evidently this ability to set physical flat apic isn't a user selectable option. Its auto-detected by the kernel when specific options are set to Y or N. I say these config changes are a WIN.
Does anyone have any concerns with these changes? If not, Mudler or Skullbocks could you please apply the following kernel config changes?

# CONFIG_X86_REROUTE_FOR_BROKEN_BOOT_IRQS is not set
# CONFIG_X86_INTEL_MPX is not set
CONFIG_ACPI_AC=m
CONFIG_ACPI_BATTERY=m
CONFIG_ACPI_BUTTON=m
CONFIG_ACPI_VIDEO=m
CONFIG_ACPI_FAN=m
CONFIG_ACPI_TAD=m
CONFIG_X86_ACPI_CPUFREQ=m
CONFIG_X86_POWERNOW_K8=m
CONFIG_X86_P4_CLOCKMOD=m
CONFIG_X86_SPEEDSTEP_LIB=m
CONFIG_PCCARD=m
CONFIG_EFI_VARS_PSTORE=y
CONFIG_EFI_VARS_PSTORE_DEFAULT_DISABLE=y
CONFIG_BFQ_GROUP_IOSCHED=y
CONFIG_SND_HDA_PREALLOC_SIZE=4096
CONFIG_ACPI_WMI=m
CONFIG_WMI_BMOF=m
CONFIG_INTEL_IOMMU_DEFAULT_ON=y
CONFIG_IRQ_REMAP=y
CONFIG_NET_CLS_CGROUP=m
CONFIG_BPFILTER=m
CONFIG_BPF_JIT=m


Θεόφιλος Ιντζόγλου

unread,
Jan 27, 2019, 7:12:44 AM1/27/19
to sabay...@googlegroups.com
As you are considering making changes to the kernel config I am posting some
bug reports I found at bugzilla that require config options to be enabled in
the kernel:

CONFIG_CIFS_SMB2:
https://bugs.sabayon.org/show_bug.cgi?id=5580 which looks like a duplicate of
https://bugs.sabayon.org/show_bug.cgi?id=5350
The bug report applies to 4.4.x and 4.9.x version linux kernels

ACPI_EC_DEBUGFS:
https://bugs.sabayon.org/show_bug.cgi?id=5519

CONFIG_DRM_LOAD_EDID_FIRMWARE:
https://bugs.sabayon.org/show_bug.cgi?id=5732 (this one is reported by me if
you need any more info)
--
() ascii ribbon campaign - against html mail
/\ - against microsoft attachments



Jerrod Frost

unread,
Jan 27, 2019, 8:19:09 AM1/27/19
to Θεόφιλος Ιντζόγλου, sabay...@googlegroups.com
Thanks for the report. I'll dig into those and see if we can get them applied as well.

Jerrod Frost

unread,
Jan 27, 2019, 4:21:04 PM1/27/19
to Θεόφιλος Ιντζόγλου, sabay...@googlegroups.com
Is there a specific reason you need 4.4 or 4.9 kernel? The SMB2 option doesn't even exist for the latest 4.19 kernel. I presume because it's now default.

I researched the other two. They seem harmless enough and were even requested and applied for Ubuntu and Redhat via bug queues. I'll recompile, test, and submit the change request.

Sławomir Nizio

unread,
Feb 5, 2019, 5:04:08 PM2/5/19
to sabay...@googlegroups.com
> As you are considering making changes to the kernel config I am posting some
> bug reports I found at bugzilla that require config options to be enabled in
> the kernel:
>
> CONFIG_CIFS_SMB2:
> https://bugs.sabayon.org/show_bug.cgi?id=5580 which looks like a duplicate of
> https://bugs.sabayon.org/show_bug.cgi?id=5350
> The bug report applies to 4.4.x and 4.9.x version linux kernels
>
> ACPI_EC_DEBUGFS:
> https://bugs.sabayon.org/show_bug.cgi?id=5519
>
> CONFIG_DRM_LOAD_EDID_FIRMWARE:
> https://bugs.sabayon.org/show_bug.cgi?id=5732 (this one is reported by me if
> you need any more info)

CONFIG_IRQ_REMAP:
https://bugs.sabayon.org/show_bug.cgi?id=5628

Jerrod Frost

unread,
Feb 5, 2019, 11:35:49 PM2/5/19
to Sławomir Nizio, sabay...@googlegroups.com
Nice find and addition! One more bug we can close!

Reply all
Reply to author
Forward
0 new messages