Open os369510 opened 3 years ago
@os369510 On-demand mode doesn't necessarily enable RTD3. It only does so if the GPU claims to support it in the json database NVIDIA provides. Have you run into a case where one of the GPUs which support RTD3 belong to a Desktop system?
@tseliot I thought the on-demand mode only configured if RTD3 is supported.
Supported Configurations
This feature is available only when the following conditions are satisfied:
* This feature is supported only on notebooks.
* This feature requires system hardware as well as ACPI support (ACPI "_PR0" and "_PR3" methods are needed to control PCIe power). The necessary hardware and ACPI support was first added in Intel Coffeelake chipset series. Hence, this feature is supported from Intel Coffeelake chipset series.
* This feature requires a Turing or newer GPU.
* This feature is supported with Linux kernel versions 4.18 and newer. With older kernel versions, it may not work as intended.
* This feature is supported when Linux kernel defines CONFIG_PM (CONFIG_PM=y). Typically, if the system supports S3 (suspend-to-RAM), then CONFIG_PM would be defined.
FWIT, if the ID is listed in json file which meaning it's supported GPU (This feature requires a Turing or newer GPU.
). We still need to consider other condition to enable it? (e.g. This feature is supported only on notebooks.
) or do you thing it's ok to always set to on-demand mode (if supported) and ask Nvidia to remove the notebook
condition since the nvidia driver might not reference chassis type.
Yes, we have some desktop/workstation those support many dGPU and the part of nvidia graphic are supporting RTD3 but the ubuntu-drivers install
do nothing to keep them in performance mode if bootvga is dGPU (Nvidia) but it's on-demand
mode if bootvga is iGPU (Intel). Which means they will have different behavior if user installs ubuntu with different bootvga device.
@tseliot @os369510 We should have a consistent logic selecting the default mode after Nvidia driver installed, if we would like to de-couple the on-demand from RTD3, then how about to always select on-demand mode?
So far, looks gpu-manager will select on-demand only for gpu supported RTD3 (Why? When on-demand is decoupled from RTD3).
It is confusing that end-user will get different default mode between the different cases of the bootvga when they are installing the nvidia driver.
@alex-tu-cc on-demand mode should be the default if the GPU is supported by the 460 driver or newer (the code for it comes from a time when 460 wasn't available yet).
I agree that on-demand mode should be default now. We just need to make sure that RTD3 is only applied to laptops though (checking the chassis should be enough).
If I understand it correctly, "prime-select on-demand" means: GUI Program only uses NV GPU as the user intended to.
Even if RTD3 is not supported, a user might want to reserve GPU to deep-learning or maybe bit-coin mining. For such use cases, the on-demand mode will be the proper one to use.
I think the latest commits in ubuntu-drivers-common and in nvidia-prime should solve the problem.
In a desktop with iGPU (Intel) + dGPU (Nvidia with RTD3 supports), if system boot from iGPU then the nvidia mode will be on-demand mode[1].
Which is conflict with the README Nvidia provided.
[1]