Repository navigation
nvidia: add RmForceExternalGpu registry key - #984
roger-pmta wants to merge 1 commit into
Conversation
|
Workaround for #979 |
|
Full write-up with 590 and TB5 posted at https://egpu.io/forums/builds/2023-14-lenovo-thinkpad-x1-carbon-gen-11-13th10cu-rtx-5080-32gbps-tb4-sonnet-breakaway-box-850-t5-linux-rocky-10-1/, will wait for a reply/update from NVIDIA. |
|
Hi. Sorry, I'm not really familiar with eGPU details to know what kind of effects such a change can invoke, but I can make a couple of comments: I'm actually surprised that this works. You've declared a top level module param, but are reading it as if it's an RM registry dword. The typical way to read top level params is to just declare them as extern vars and read them directly, like e.g. here. The However, the registry dword is IMO the better thing to use here, for two reasons:
To use this, revert your |
30e7a6d to
a9844a8
Compare
|
Thanks for the feedback @mtijanic! Updated the patch with your suggestions and confirmed working 🙌 |
|
I'm curious why you decided to make this as registry dwords, not kernel module option so it would be visible in modinfo? |
Thunderbolt 4/5 eGPU enclosures fail automatic external GPU detection
because they are not in the approved TB3 bridge list and do not report
the required slot capabilities (HotPlug+ and Surprise+).
Add RmForceExternalGpu registry key to bypass bridge detection and
unconditionally set PDB_PROP_GPU_IS_EXTERNAL_GPU, enabling proper eGPU
handling throughout the driver.
Usage:
Global (all GPUs):
NVreg_RegistryDwords="RmForceExternalGpu=1"
Per-device (specific GPU only):
NVreg_RegistryDwordsPerDevice="pci=DDDD:BB:DD.F;RmForceExternalGpu=1"
The per-device option allows targeting specific GPUs in multi-GPU systems.
a9844a8 to
70913fc
Compare
|
Confirmed working on RTX 5090 + Gigabyte Aorus RTX 5090 AI Box (TB5) / Fedora 43 / kernel 7.0.0-rc7 alongside PR #1109, which makes the ReBAR resize non-fatal (and adds a |
|
I've been struggling recently with a new Gigabyte AI Box with RTX 5090 hitting issues on my MS-S1 Strix Halo machine as well that likely could benefit from this change. Is there anything remaining to be done to help get this merged in @roger-pmta ? |
|
@pstreet I guess only nvidia engineers good will... or you can build your fork, like I did for archlinux with few patches including this in nvidia-open-egpu-dkms |
Thunderbolt 4/5 eGPU enclosures fail automatic external GPU detection
because they are not in the approved TB3 bridge list and do not report
the required slot capabilities (
HotPlug+andSurprise+).Add
RmForceExternalGpuregistry key to bypass bridge detection andunconditionally set
PDB_PROP_GPU_IS_EXTERNAL_GPU,enabling proper eGPUhandling throughout the driver.
Usage:
Global (all GPUs):
Per-device (specific GPU only):
The per-device option allows targeting specific GPUs in multi-GPU systems.