-
Notifications
You must be signed in to change notification settings - Fork 1.5k
nvidia: add RmForceExternalGpu registry key #984
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
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 |
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.
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+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.