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 [2023/07/23 16:54] Sean Rhonenotes:kernel_parameters [2024/04/29 17:12] (current) Sean Rhone
Line 1: Line 1:
 +====== Information ======
 +
 +  * Various kernel options
 +  * https://www.kernel.org/doc/html/latest/admin-guide/kernel-parameters.html
 +
 ====== General ====== ====== General ======
  
-===== Linux OSI =====+===== Low-Latency =====
  
-  sudo grubby --args='acpi_osi=Linux' --update-kernel='ALL'+****
  
-  acpi_osi=Linux+  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' 
 + 
 +===== Reboot ===== 
 + 
 +  * Does hard reboots 
 +  * :!: ''reboot=efi'' causes a Dell Latitude 5591 to not reboot 
 + 
 +  reboot='pci' 
 + 
 +  reboot='efi'
  
 ===== Modern Standby ===== ===== Modern Standby =====
Line 11: Line 41:
   * 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
 + 
 +===== Interrupt Remapping ===== 
 + 
 +**** 
 + 
 +  intremap='off'
  
 ===== Custom Resolution ===== ===== Custom Resolution =====
  
-  * 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 +  * https://docs.kernel.org/fb/modedb.html 
-  * This is necessary for Wayland, but also carries over to Xorg + 
-  * ''HDMI-A-1'' is the same for an AMD 6600 XT and Intel UHD 630it's possible this works for all GPUs?+  * 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 630it's possible this works for all GPUs or there's some standard? 
 + 
 +==== Acer S721HL ==== 
 + 
 +  * Increase refresh rate for 1080p from default 60Hz to 75Hz 
 + 
 +  video='HDMI-A-1:1920x1080MR@75' 
 + 
 +==== TCL 55S405 ====
  
-  sudo grubby --args='video=HDMI-A-1:1920x1080@74' --update-kernel='ALL'+  * Solves instability on some AMD GPUs at 4K@60Hz on HDMI 
 +  * 2024/04/29From old notes and untested
  
-  video=HDMI-A-1:1920x1080@74+  video='HDMI-A-1:3840x2160MR@60'
  
 ====== AMD ====== ====== AMD ======
Line 48: Line 89:
   * 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 71: Line 110:
  
 ====== Intel ====== ====== Intel ======
 +
 +===== i915 =====
 +
 +****
 +
 +  i915.enable_fbc='0' i915.enable_psr='0' i915.panel_use_ssc='0' i915.nuclear_pageflip='1'
  
 ===== IOMMU ===== ===== IOMMU =====
Line 76: Line 121:
   * TODO: HSI?   * TODO: HSI?
  
-  sudo grubby --update-kernel='ALL' --args='intel_iommu=on' +  intel_iommu='on'
- +
-  intel_iommu=on+
  
 ===== Firmware ===== ===== Firmware =====
  
-  * This enables GuC and HuC firmware loading ((do this even if unsure if the hardware will load it because seemingly not even Intel is aware of certain hardware pre-AL loading firmware; worst-case it just won't load)) +  * 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 +
- +
-===== Performance Test ===== +
- +
-  * 2023/07/19: This improved ''glxgears'' slightly but made no notable difference anywhere else +
-  * :!: ''idle=poll'' mentions it being undesired for HT/SMT, and also overheats a 5591 laptop instantly with TurboBoost enabled ((there's no benefit but if ''idle=poll'' must be tried: disable SST (speed shift tech), HT, TurboBoost, C-States, and SpeedStep))+
  
-  mitigations=off idle=poll ahci.mobile_lpm_policy=1 i915.enable_fbc=0 i915.enable_psr=0 i915.mitigations=off i915.enable_dc=0 i915.panel_use_ssc=0 i915.nuclear_pageflip=1 i915.edp_vswing=2 i915.enable_ips=0 i915.disable_power_well=1+  i915.enable_guc='3'
  
 ====== NVIDIA ====== ====== NVIDIA ======
Line 101: Line 135:
 ==== 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 109: Line 143:
   * 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 123: Line 155:
   * 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 132: Line 162:
   * 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 143: Line 171:
  
   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 151: Line 186:
   * :!: 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/attic/notes/kernel_parameters.1690145650.txt.gz · Last modified: 2023/07/23 16:54 by Sean Rhone