xCuri0 / ReBarUEFI

Resizable BAR for (almost) any UEFI system
MIT License
1.29k stars 57 forks source link

ReBAR working on Windows but not Linux #119

Closed Sid127 closed 3 months ago

Sid127 commented 3 months ago

System

As the title says, I have ReBAR working (via NvStrapsReBar) on a test installation of Windows 10, but my BAR stays at 256mb on Arch Linux running kernel 6.7.0, nvidia driver 550.40.07 on the open kernel module with the NVreg_EnableResizableBar=1 option set.

image

My system requires pci=realloc for the BAR to be assigned to the GPU on linux, otherwise there is just a single 32 bit non-prefetchable memory region assigned, accompanied with No device found in nvidia-smi.

I have attached dmesg.log, the output of lspci -vv, and the contents of /proc/iomem.

Any help would be appreciated :)

Sid127 commented 3 months ago

update: tried Pop!_OS' live ISO, and I correctly have a resized BAR there. Meaning this is an Arch Linux specific thing

Sid127 commented 3 months ago

update 2: sorted, was probably one of the hugepages-related tweaks I had lingering around my system: image