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/02/22 15:41] – [Generate] Sean Rhonenotes:kernel_parameters [2024/08/13 18:46] (current) – removed Sean Rhone
Line 1: Line 1:
-====== General ====== 
- 
-===== Modern Standby ===== 
- 
-  * 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 
- 
-===== 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]]) 
- 
-  sudo grubby --update-kernel='ALL' --args='iommu=pt' 
- 
-  iommu=pt 
- 
-===== 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 
- 
-===== NVMe ===== 
- 
-  * :!: 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' 
- 
-  nvme.poll_queues=16 
- 
-==== Verify ==== 
- 
-  dmesg | grep 'nvme' 
- 
-  cat '/proc/interrupts' 
- 
-===== 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 
-  * 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' 
- 
-  video=HDMI-A-1:1920x1080@74 
- 
-====== AMD ====== 
- 
-==== Memory Encryption ==== 
- 
-  * 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 --args='mem_encrypt=on' --update-kernel='ALL' 
- 
-  mem_encrypt=on 
- 
-====== AMDGPU ====== 
- 
-===== Overclocking ===== 
- 
-  * Allows use of Overdrive options for overclocking and increasing the Power Limit 
- 
-==== Generate ==== 
- 
-  * https://wiki.archlinux.org/title/AMDGPU#Boot_parameter 
-  * :!: This requires ''amdgpu.ppfeaturemask'' to not already be set 
- 
-  printf 'amdgpu.ppfeaturemask=0x%x\n' "$(($(cat /sys/module/amdgpu/parameters/ppfeaturemask) | 0x4000))" 
- 
-==== Kernel Option ==== 
- 
-  * 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=0xffffffff' --update-kernel='ALL' 
- 
-  amdgpu.ppfeaturemask=0xffffffff 
- 
-==== Verify ==== 
- 
-**** 
- 
-  cat '/sys/module/amdgpu/parameters/ppfeaturemask' 
- 
-====== Intel ====== 
- 
-===== IOMMU ===== 
- 
-  * TODO: HSI? 
- 
-  sudo grubby --update-kernel='ALL' --args='intel_iommu=on' 
- 
-  intel_iommu=on 
- 
-===== Optimizations ===== 
- 
-  * This enables Framebuffer compression, Panel self-refresh, and i915 Fastboot 
- 
-  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 ===== 
- 
-  * This enables GuC and HuC firmware loading if supported by the hardware 
- 
-  sudo grubby --update-kernel='ALL' --args='i915.enable_guc=3' 
- 
-  i915.enable_guc=3 
- 
-====== NVIDIA ====== 
- 
-===== Open Module ===== 
- 
-==== Blacklist nouveau ==== 
- 
-  sudo grubby --update-kernel='ALL' --args='modprobe.blacklist=nouveau' 
- 
-  modprobe.blacklist=nouveau 
- 
-==== Allow Unsupported 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 
- 
-==== Enable nvidia-modeset ==== 
- 
-  sudo grubby --update-kernel='ALL' --args='nvidia-drm.modeset=1' 
- 
-  nvidia-drm.modeset=1 
- 
-===== PAT ===== 
- 
-  * TODO: Find information about this 
- 
-  sudo grubby --update-kernel='ALL' --args='nvidia.NVreg_UsePageAttributeTable=1' 
- 
-  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 causes AoE2:DE to crash GNOME on-startup 
- 
-  sudo grubby --update-kernel='ALL' --args='nvidia.NVreg_EnableGpuFirmware=1' 
- 
-  nvidia.NVreg_EnableGpuFirmware=1' 
- 
-==== Verify ==== 
- 
-**** 
- 
-  nvidia-smi -q | grep 'GSP' 
- 
-====== Coreboot ====== 
- 
-===== Flashing ===== 
- 
-  * This is needed to relax permissions for Coreboot firmware to be flashed internally 
-  * :!: This should be removed after flashing 
- 
-  sudo grubby --update-kernel='ALL' --args='iomem=relaxed' 
- 
-  iomem=relaxed 
  
C:/www/wiki/data/attic/notes/kernel_parameters.1677098478.txt.gz · Last modified: (external edit)