Commit 82ffaf9a authored by Committed by Aaron Plattner
Once licensed, switching to a different feature requires a system reboot,...
Once licensed, switching to a different feature requires a system reboot, notify user about the same. Details: On licensed NMOS setup, if user restarts nvidia-gridd service and selected 'GRID Virtual Apps' license edition. There is mismatch in licensed feature type enabled in the driver and feature type read from gridd.conf/UI control. In this change, notify user that license features are still enabled in the driver even if license is released and hence restart is required. Set appropriate license status message to indicate the same. Fix: Added NV_CTRL_ATTR_NVML_GPU_GRID_LICENSABLE_FEATURES attribute to get feature code of the currently licensed feature. Used the existing NVML api nvmlDeviceGetGridLicensableFeatures to fetch this feature code. And then query this licensed feature code in nvidia-settings. Setting the restart required status message when there is mismatch in the queried licensed feature type and the feature type read from gridd.conf/UI. Testing done: Verified on NMOS, correct license status message is displayed.
Showing with 158 additions and 16 deletions