User Tools

Site Tools


notes:kernel_parameters

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
notes:kernel_parameters [2019/11/17 14:48] Sean Rhonenotes:kernel_parameters [2024/01/24 11:07] (current) Sean Rhone
Line 1: Line 1:
 ====== Information ====== ====== Information ======
  
-  * Kernel parameters that were useful at some point in time+  * Various kernel options 
 +  * https://www.kernel.org/doc/html/latest/admin-guide/kernel-parameters.html
  
-====== Old GRUB Settings ======+====== General ======
  
-  * :!: Use ''grubby'' instead unless it doesn't exist by-default +===== Low-Latency =====
- +
-===== UEFI =====+
  
 **** ****
  
-  sudo -e '/etc/default/grub&& sudo grub2-mkconfig -o '/boot/efi/EFI/fedora/grub.cfg'+  preempt='fullthreadirqs nohz='off'
  
-===== Legacy =====+===== OSI =====
  
-****+  https://forum.manjaro.org/t/how-to-choose-the-proper-acpi-kernel-argument/1405 
 +  https://learn.microsoft.com/en-us/windows-hardware/drivers/acpi/winacpi-osi
  
-  sudo -e '/etc/default/grub' && sudo grub2-mkconfig -o '/boot/grub2/grub.cfg'+  acpi_osi='Linux'
  
-====== Kernel Options ======+  acpi_osi='Windows 2017'
  
-===== blk_mq =====+===== Modern Standby =====
  
-  * I think the kernel at some point removed non-blk schedulers, so this isn't necessary+  * https://fwupd.github.io/libfwupdplugin/hsi.html#org.fwupd.hsi.SuspendToIdle
  
-  scsi_mod.use_blk_mq=y dm_mod.use_blk_mq=y+  mem_sleep_default='s2idle'
  
-===== Corsair USB Quirks =====+===== IOMMU =====
  
-  * https://github.com/ckb-next/ckb-next/wiki/Troubleshooting#usbhid-quirks+  * :!: ''iommu=off'' should not be used ([[http://www.xillybus.com/tutorials/iommu-swiotlb-linux|source]])
  
-  usbcore.quirks=1b1c:1b38:gn,1b1c:1b3c:gn+  iommu='pt'
  
-===== Blacklist Watchdogs =====+===== PCI =====
  
-  ''iTCO_wdt'' controls watchdog on some Intel platforms +****
-  ''sp5100_tco'' controls watchdog on some AMD platforms +
-  ''nowatchdog'' disables both soft and hard generic watchdogs +
-  Apparently this reduces power usage slightly+
  
-  modprobe.blacklist=iTCO_wdt,sp5100_tco nowatchdog+  pci='pcie_bus_perf,realloc,pcie_scan_all,big_root_window'
  
-===== Microcode and Security Patches =====+===== Interrupt Remapping =====
  
-  https://access.redhat.com/articles/3311301 +****
-  :!: This disables all protection+
  
-  spectre_v2=off nopti+  intremap='off'
  
-===== Modern Standby =====+===== Custom Resolution =====
  
-  * Use ''S0'' to suspend and wake quickly on supported systems +  * For an Acer S271H7 even though it can do 75Hz, this option sets one of the display timings too-high and 75Hz can't be reduced-blanked here; 74Hz is close enough 
-  * On a Dell XPS 13 9360, this used to be required, but the default ''deep'' option also works+  * Necessary for Wayland, and also seemingly works as an alternative to ''xorg.conf'' on Xorg 
 +  * ''HDMI-A-1'' is the same for an AMD 6600 XT and Intel UHD 630, it's possible this works for all GPUs?
  
-  mem_sleep_default=s2idle+  video='HDMI-A-1:1920x1080@74'
  
-===== dyntick-idle Disable =====+====== AMD ======
  
-  * KGPE-D16's [[https://www.coreboot.org/Board:asus/kgpe-d16#Installation_Notes|Coreboot installation notes]] mention needing this for better power saving+===== Memory Encryption =====
  
-  nohz=on+  * https://fwupd.github.io/libfwupdplugin/hsi.html#org.fwupd.hsi.EncryptedRam 
 +  * :!: Requires CPU SVM to be enabled in BIOS ((AMDGPU will likely panic on-boot if ''mem_encrypt'' is enabled without SVM)) 
 +  * Disable TSME in BIOS if using this
  
-===== intel_iommu =====+  mem_encrypt='on' 
 + 
 +====== AMDGPU ====== 
 + 
 +===== Overclocking ===== 
 + 
 +  * Allows use of Overdrive options for overclocking and increasing the Power Limit 
 +  * See [[https://github.com/torvalds/linux/blob/master/drivers/gpu/drm/amd/include/amd_shared.h#L203|amd_shared.h]] for more ''PP_FEATURE_MASK'' values 
 +  * :!: ''0xffffffff'' can be used to enable everything, but may cause issues with unstable features 
 + 
 +  sudo grubby --args='amdgpu.ppfeaturemask=0xfff7ffff' --update-kernel='ALL' 
 + 
 +  amdgpu.ppfeaturemask=0xfff7ffff 
 + 
 +==== Verify ====
  
 **** ****
  
-  intel_iommu=on+  cat '/sys/module/amdgpu/parameters/ppfeaturemask' 
 + 
 +====== Intel ======
  
 ===== i915 ===== ===== i915 =====
  
-  GuC firmware loading/submission **requires** PAVP to be enabled in BIOS +**** 
-  ''enable_guc'' nor ''enable_psr'' work on a Lenovo T500 ThinkPad+ 
 +  i915.enable_fbc='0i915.enable_psr='0i915.panel_use_ssc='0i915.nuclear_pageflip='1' i915.edp_vswing='2' 
 + 
 +===== IOMMU ===== 
 + 
 +  * TODO: HSI? 
 + 
 +  intel_iommu='on
 + 
 +===== Firmware ===== 
 + 
 +  * This enables GuC and HuC firmware loading ((do this even if unsure because seemingly not even Intel is aware of how certain hardware pre-12th-gen/AL loads the firmware; worst-case it just won't load)) 
 + 
 +  i915.enable_guc='3'
  
-  i915.enable_psr=1+====== NVIDIA ======
  
-  i915.enable_guc=3+===== Open Module =====
  
-===== radeon =====+==== Blacklist nouveau ====
  
 **** ****
  
-  radeon.deep_color=1+  modprobe.blacklist='nouveau'
  
-===== Backlight =====+==== Allow Unsupported GPUs ====
  
-  * https://www.freedesktop.org/software/systemd/man/kernel-command-line.html#systemd.restore_state= +  * https://github.com/NVIDIA/open-gpu-kernel-modules#compatible-gpus
-  * This prevents systemd from restoring previous backlight value on reboot +
-  * This is necessary for [[#power_management|Power Management]]+
  
-  systemd.restore_state=0+  nvidia.NVreg_OpenRmEnableUnsupportedGpus='1'
  
-===== DRM Debug =====+==== Enable nvidia-modeset ====
  
-  :!: This may make lower-end machines become very unresponsive; be prepared to have some safe way of rebooting+****
  
-  drm.debug=0xe+  nvidia-drm.modeset='1'
  
-===== Reboot =====+===== PAT =====
  
-  * ''efi'' is for UEFI systems +  * TODO: Find information about this
-  * ''pci'' is for Legacy systems and Coreboot with SeaBIOS payload +
-  * There are other values possible should either of those not work+
  
-  reboot=pci+  nvidia.NVreg_UsePageAttributeTable='1'
  
-  reboot=efi+===== GSP =====
  
-===== Custom Resolution =====+  * https://us.download.nvidia.com/XFree86/Linux-x86_64/515.65.01/README/gsp.html 
 +  * Allows loading of GSP firmware 
 +  * This doesn't appear necessary for the open kernel module 
 +  * :!: 2022/07/20 515.57: this caused AoE2:DE to crash GNOME on-startup 
 + 
 +  nvidia.NVreg_EnableGpuFirmware='1' 
 + 
 +==== Verify ==== 
 + 
 +**** 
 + 
 +  nvidia-smi -q | grep 'GSP' 
 + 
 +====== CORSAIR ====== 
 + 
 +  * https://github.com/ckb-next/ckb-next/wiki/Troubleshooting#usbhid-quirks 
 +  * :!: Seemingly only needed with the mouse plugged directly to the motherboard, and not through USB-C docks 
 + 
 +  usbcore.quirks='1b1c:1b75:bgmn' 
 + 
 +====== Coreboot ====== 
 + 
 +===== Flashing =====
  
-  * https://wiki.archlinux.org/index.php/kernel_mode_setting#Forcing_modes +  * This is needed to relax permissions for Coreboot firmware to be flashed internally 
-  * :!: This seems to only work on Wayland +  * :!: This should be removed after flashing
-  * :!: On Nightwane, using the refresh rate ''59'' in the below command works in Wayland, but not ''60''+
  
-  for p in /sys/class/drm/*/status; do con=${p%/status}; echo -n "${con#*/card?-}: "; cat $p; done+  iomem='relaxed'
  
-  video=HDMI-A-1:3840x2160MR@59 
/var/www/wiki/data/attic/notes/kernel_parameters.1574020125.txt.gz · Last modified: 2019/11/17 14:48 by Sean Rhone