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
Next revisionBoth sides next revision
notes:kernel_parameters [2022/09/09 13:55] Sean Rhonenotes:kernel_parameters [2024/01/24 11:07] Sean Rhone
Line 1: Line 1:
 +====== Information ======
 +
 +  * Various kernel options
 +  * https://www.kernel.org/doc/html/latest/admin-guide/kernel-parameters.html
 +
 ====== General ====== ====== General ======
  
-===== IOMMU =====+===== Low-Latency =====
  
-  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]])+
  
-  sudo grubby --update-kernel='ALL--args='iommu=pt'+  preempt='fullthreadirqs nohz='off'
  
-  iommu=pt+===== OSI =====
  
-===== NVMe =====+  * 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
  
-  * :!: This may need adjusted for different CPU core counts +  acpi_osi='Linux'
-  * :!: 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))+
  
-  sudo grubby --args='nvme.poll_queues=16' --update-kernel='ALL'+  acpi_osi='Windows 2017'
  
-  nvme.poll_queues=16+===== Modern Standby =====
  
-==== Verify ====+  * https://fwupd.github.io/libfwupdplugin/hsi.html#org.fwupd.hsi.SuspendToIdle
  
-  dmesg grep 'nvme'+  mem_sleep_default='s2idle' 
 + 
 +===== IOMMU ===== 
 + 
 +  * :!: ''iommu=off'' should not be used ([[http://www.xillybus.com/tutorials/iommu-swiotlb-linux|source]]) 
 + 
 +  iommu='pt' 
 + 
 +===== PCI ===== 
 + 
 +**** 
 + 
 +  pci='pcie_bus_perf,realloc,pcie_scan_all,big_root_window' 
 + 
 +===== Interrupt Remapping ===== 
 + 
 +****
  
-  cat '/proc/interrupts'+  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   * 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
-  * :!: TODO: How to reduce-blank this? +  * Necessary for Wayland, and also seemingly works as an alternative to ''xorg.conf'' on Xorg 
-  * 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 630, it's possible this works for all GPUs?
-  * :!: Refresh rate mismatch between Moonlight clients and Gamestream hosts computers introduces stuttering+
  
-  video=HDMI-A-1:1920x1080@74+  video='HDMI-A-1:1920x1080@74'
  
-====== NVIDIA ======+====== AMD ======
  
-===== PAT =====+===== Memory Encryption =====
  
-  * TODOFind information about this+  * 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
  
-  sudo grubby --update-kernel='ALL' --args='nvidia.NVreg_UsePageAttributeTable=1'+  mem_encrypt='on'
  
-  nvidia.NVreg_UsePageAttributeTable=1+====== AMDGPU ======
  
-===== GSP =====+===== Overclocking =====
  
-  * https://us.download.nvidia.com/XFree86/Linux-x86_64/515.65.01/README/gsp.html +  * Allows use of Overdrive options for overclocking and increasing the Power Limit 
-  * Allows loading of GSP firmware +  * 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 
-  * This doesn't appear necessary for the open kernel module +  * :!: ''0xffffffff'' can be used to enable everything, but may cause issues with unstable features
-  * :!: 2022/07/20 515.57: this causes AoE2:DE to crash GNOME on-startup +
-  * :!: 2022/07/20 515.57: This doesn't appear beneficial+
  
-  sudo grubby --update-kernel='ALL' --args='nvidia.NVreg_EnableGpuFirmware=1'+  sudo grubby --args='amdgpu.ppfeaturemask=0xfff7ffff' --update-kernel='ALL'
  
-  nvidia.NVreg_EnableGpuFirmware=1'+  amdgpu.ppfeaturemask=0xfff7ffff
  
 ==== Verify ==== ==== Verify ====
Line 60: Line 79:
 **** ****
  
-  nvidia-smi -q | grep 'GSP'+  cat '/sys/module/amdgpu/parameters/ppfeaturemask'
  
-====== AMDGPU ======+====== Intel ======
  
-===== Overclocking =====+===== i915 =====
  
-  Allows use of Overdrive options for overclocking and increasing the Power Limit+****
  
-  sudo grubby --args='amdgpu.ppfeaturemask=0xffffffff--update-kernel='ALL'+  i915.enable_fbc='0' i915.enable_psr='0' i915.panel_use_ssc='0' i915.nuclear_pageflip='1' i915.edp_vswing='2'
  
-  amdgpu.ppfeaturemask=0xffffffff+===== 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' 
 + 
 +====== NVIDIA ====== 
 + 
 +===== Open Module ===== 
 + 
 +==== Blacklist nouveau ==== 
 + 
 +**** 
 + 
 +  modprobe.blacklist='nouveau' 
 + 
 +==== Allow Unsupported GPUs ==== 
 + 
 +  * https://github.com/NVIDIA/open-gpu-kernel-modules#compatible-gpus 
 + 
 +  nvidia.NVreg_OpenRmEnableUnsupportedGpus='1' 
 + 
 +==== Enable nvidia-modeset ==== 
 + 
 +**** 
 + 
 +  nvidia-drm.modeset='1' 
 + 
 +===== PAT ===== 
 + 
 +  * TODO: Find information about this 
 + 
 +  nvidia.NVreg_UsePageAttributeTable='1' 
 + 
 +===== GSP ===== 
 + 
 +  * 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 ==== ==== Verify ====
Line 76: Line 142:
 **** ****
  
-  cat '/sys/module/amdgpu/parameters/ppfeaturemask' | grep '0xffffffff'+  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 85: Line 158:
   * :!: 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/05/18 00:23 by Sean Rhone