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
Last revisionBoth sides next revision
notes:kernel_parameters [2023/02/22 15:50] Sean Rhonenotes:kernel_parameters [2024/04/29 16:55] – [Custom Resolution] Sean Rhone
Line 1: Line 1:
 +====== Information ======
 +
 +  * Various kernel options
 +  * https://www.kernel.org/doc/html/latest/admin-guide/kernel-parameters.html
 +
 ====== General ====== ====== General ======
 +
 +===== Low-Latency =====
 +
 +****
 +
 +  preempt='full' threadirqs nohz='off'
 +
 +===== 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
 +
 +  acpi_osi='Linux'
 +
 +  acpi_osi='Windows 2017'
 +
 +==== Spinesnap ====
 +
 +  * :!: Dell Latitude 5591 needs ''!'' also to force Windows OSI
 +  * :!: 2024/04/29: Forcing Windows OSI causes brightness buttons on the built-in keyboard to not function ((with ''dmesg'' Intel HID 5 button array seemingly isn't presented with Windows OSI))
 +
 +  acpi_osi='!' acpi_osi='Windows 2017'
  
 ===== Modern Standby ===== ===== Modern Standby =====
Line 5: Line 32:
   * https://fwupd.github.io/libfwupdplugin/hsi.html#org.fwupd.hsi.SuspendToIdle   * https://fwupd.github.io/libfwupdplugin/hsi.html#org.fwupd.hsi.SuspendToIdle
  
-  sudo grubby --args='mem_sleep_default=s2idle' --update-kernel='ALL' +  mem_sleep_default='s2idle'
- +
-  mem_sleep_default=s2idle+
  
 ===== IOMMU ===== ===== IOMMU =====
  
-  * If IOMMU is disabled in BIOS, this isn't needed 
   * :!: ''iommu=off'' should not be used ([[http://www.xillybus.com/tutorials/iommu-swiotlb-linux|source]])   * :!: ''iommu=off'' should not be used ([[http://www.xillybus.com/tutorials/iommu-swiotlb-linux|source]])
  
-  sudo grubby --update-kernel='ALL' --args='iommu=pt' +  iommu='pt'
- +
-  iommu=pt+
  
 ===== PCI ===== ===== PCI =====
  
-  sudo grubby --args='pci=pcie_bus_perf,realloc,pcie_scan_all,big_root_window' --update-kernel='ALL'+****
  
-  pci=pcie_bus_perf,realloc,pcie_scan_all,big_root_window+  pci='pcie_bus_perf,realloc,pcie_scan_all,big_root_window'
  
-===== NVMe =====+===== Interrupt Remapping =====
  
-  :!: This may need adjusted for different CPU core counts +****
-  :!: Using ''8'' when SMT is disabled with a 2700X does **not** work as-expected ((either don't use this with SMT off, or keep SMT on)) +
-  * This had no notable benefit in 2022 with a 2700x and SK hynix P31, and was shown in unrelated benchmarks in 2019 to lower performance+
  
-  sudo grubby --args='nvme.poll_queues=16' --update-kernel='ALL'+  intremap='off'
  
-  nvme.poll_queues=16+===== Custom Resolution =====
  
-==== Verify ====+  * https://docs.kernel.org/fb/modedb.html
  
-  dmesg | grep 'nvme'+  * Necessary for Wayland, and also works on Xorg as an alternative to ''xorg.conf'' 
 +  * :?: ''HDMI-A-1'' is the same for an AMD 6600 XT and Intel UHD 630; it's possible this works for all GPUs or there's some standard?
  
-  cat '/proc/interrupts'+==== Acer S721HL ====
  
-===== Custom Resolution =====+  * Increase refresh rate for 1080p from default 60Hz to 75Hz
  
-  * 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 +  video='HDMI-A-1:1920x1080MR@75'
-  * This is necessary for Wayland, but also carries over to Xorg +
-  * :!: Refresh rate mismatch between Moonlight clients and Gamestream hosts computers introduces stuttering+
  
-  sudo grubby --args='video=HDMI-A-1:1920x1080@74' --update-kernel='ALL'+==== TCL 55S405 ====
  
-  video=HDMI-A-1:1920x1080@74+  * Solves instability on some AMD GPUs at 4K@60Hz on HDMI 
 +  * 2024/04/29: From old notes and untested 
 + 
 +  video='HDMI-A-1:3840x2160MR@60'
  
 ====== AMD ====== ====== AMD ======
  
-==== Memory Encryption ====+===== Memory Encryption =====
  
   * https://fwupd.github.io/libfwupdplugin/hsi.html#org.fwupd.hsi.EncryptedRam   * https://fwupd.github.io/libfwupdplugin/hsi.html#org.fwupd.hsi.EncryptedRam
Line 58: Line 80:
   * Disable TSME in BIOS if using this   * Disable TSME in BIOS if using this
  
-  sudo grubby --args='mem_encrypt=on' --update-kernel='ALL' +  mem_encrypt='on'
- +
-  mem_encrypt=on+
  
 ====== AMDGPU ====== ====== AMDGPU ======
Line 82: Line 102:
 ====== Intel ====== ====== Intel ======
  
-===== IOMMU =====+===== i915 =====
  
-  TODO: HSI?+****
  
-  sudo grubby --update-kernel='ALL--args='intel_iommu=on'+  i915.enable_fbc='0i915.enable_psr='0' i915.panel_use_ssc='0' i915.nuclear_pageflip='1'
  
-  intel_iommu=on+===== IOMMU =====
  
-===== Optimizations =====+  * TODO: HSI?
  
-  * This enables Framebuffer compression, Panel self-refresh, and i915 Fastboot +  intel_iommu='on'
- +
-  sudo grubby --update-kernel='ALL--args='i915.enable_fbc=1 i915.enable_psr=1 i915.fastboot=1' +
- +
-  i915.enable_fbc=1 i915.enable_psr=1 i915.fastboot=1+
  
 ===== Firmware ===== ===== Firmware =====
  
-  * This enables GuC and HuC firmware loading if supported by the hardware +  * 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))
- +
-  sudo grubby --update-kernel='ALL' --args='i915.enable_guc=3'+
  
-  i915.enable_guc=3+  i915.enable_guc='3'
  
 ====== NVIDIA ====== ====== NVIDIA ======
Line 112: Line 126:
 ==== Blacklist nouveau ==== ==== Blacklist nouveau ====
  
-  sudo grubby --update-kernel='ALL' --args='modprobe.blacklist=nouveau'+****
  
-  modprobe.blacklist=nouveau+  modprobe.blacklist='nouveau'
  
 ==== Allow Unsupported GPUs ==== ==== Allow Unsupported GPUs ====
Line 120: Line 134:
   * https://github.com/NVIDIA/open-gpu-kernel-modules#compatible-gpus   * https://github.com/NVIDIA/open-gpu-kernel-modules#compatible-gpus
  
-  sudo grubby --update-kernel='ALL' --args='nvidia.NVreg_OpenRmEnableUnsupportedGpus=1' +  nvidia.NVreg_OpenRmEnableUnsupportedGpus='1'
- +
-  nvidia.NVreg_OpenRmEnableUnsupportedGpus=1+
  
 ==== Enable nvidia-modeset ==== ==== Enable nvidia-modeset ====
  
-  sudo grubby --update-kernel='ALL' --args='nvidia-drm.modeset=1'+****
  
-  nvidia-drm.modeset=1+  nvidia-drm.modeset='1'
  
 ===== PAT ===== ===== PAT =====
Line 134: Line 146:
   * TODO: Find information about this   * TODO: Find information about this
  
-  sudo grubby --update-kernel='ALL' --args='nvidia.NVreg_UsePageAttributeTable=1' +  nvidia.NVreg_UsePageAttributeTable='1'
- +
-  nvidia.NVreg_UsePageAttributeTable=1+
  
 ===== GSP ===== ===== GSP =====
Line 143: Line 153:
   * Allows loading of GSP firmware   * Allows loading of GSP firmware
   * This doesn't appear necessary for the open kernel module   * This doesn't appear necessary for the open kernel module
-  * :!: 2022/07/20 515.57: this causes AoE2:DE to crash GNOME on-startup+  * :!: 2022/07/20 515.57: this caused AoE2:DE to crash GNOME on-startup
  
-  sudo grubby --update-kernel='ALL' --args='nvidia.NVreg_EnableGpuFirmware=1' +  nvidia.NVreg_EnableGpuFirmware='1'
- +
-  nvidia.NVreg_EnableGpuFirmware=1'+
  
 ==== Verify ==== ==== Verify ====
Line 154: Line 162:
  
   nvidia-smi -q | grep 'GSP'   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 ====== ====== Coreboot ======
Line 162: Line 177:
   * :!: This should be removed after flashing   * :!: This should be removed after flashing
  
-  sudo grubby --update-kernel='ALL' --args='iomem=relaxed' +  iomem='relaxed'
- +
-  iomem=relaxed+
  
/var/www/wiki/data/pages/notes/kernel_parameters.txt · Last modified: 2024/04/29 17:12 by Sean Rhone