1. 14 Mar, 2018 3 commits
    • Nikita Krishnia-INTERN's avatar
      Set default License Status message to request license server details when QDWS... · dff02b94
      Nikita Krishnia-INTERN authored
      Set default License Status message to request license server details when QDWS is selected and license features are enabled.
      
      Details:
      *On licensed setup, if license server details are modified through
       UI/gridd.conf and service is restarted, set default license status
       message to request license server details.
      *On failed attempt, handled the termination of license acquisition
       loop when vAPP is selected and license features are enabled
       on that system.
      
      Testing done:
      Verified on NMOS, correct license status message is displayed.
      Also, on failed attempt license acquisition loop stops when
      vAPP is selected.
      dff02b94
    • Nikita Krishnia-INTERN's avatar
      Once licensed, switching to a different feature requires a system reboot,... · 82ffaf9a
      Nikita Krishnia-INTERN authored
      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.
      82ffaf9a
    • Nikita Krishnia-INTERN's avatar
      Auto-reflect runtime changes in nvidia settings when the nvidia-gridd is restarted/stopped. · da89797d
      Nikita Krishnia-INTERN authored
      Issue and root cause:
      When 'Manage License' page is created , a timer callback is registered to
      query license state from nvidia-gridd with 1 sec time interval to
      update the 'Manage License' page. When nvidia-gridd service is stopped,
      there is no response against the Dbus request so the callback function exits with error
      which destroys the timer. Hence 'Manage License' page is never updated.
      
      Fix:
      Do not destroy the timer which updates the 'Manage license' page even if 'nvidia-gridd' service
      is stopped.
      Upon failure to communicate with nvidia-gridd to fetch licensing state info
      we are disabling all UI controls and notifying user about the issue via a message on the UI.
      
      Testing Done:
      Verified that if nvidia-gridd service is restarted then 'Manage License' page gets
      refreshed automatically.
      da89797d
  2. 04 Jan, 2018 5 commits
    • Devi Sravani Simhadri's avatar
      Fixing nvidia-settings to update config parameters into gridd.conf file... · 5ab3031e
      Devi Sravani Simhadri authored
      Fixing nvidia-settings to update config parameters into gridd.conf file correctly once the user clicks apply.
      
      Issue : By default, EnableUI config parameter is true for 5.0 drivers.
              nvidia-settings writes "EnableUI=TRUE" to gridd.conf file if the user
              has applied license via UI. Since the user config options in gridd.conf
              persist on driver upgrade we see the UI is enabled with 5.1 drivers.
              The same issue is also encountered on driver upgrade from 5.0 to 6.0
      
      Fix : User has to manually delete the gridd.conf file and create a new one with
            the gridd.conf.template file provided.
            Made the following changes:
            1. On launching nvidia-settings, if there is no gridd.conf file available,
               no new gridd.conf file will be created.  A new gridd.conf file will be
               created only when user clicks apply button via UI.
            2. While updating the griddConfig structure with the user provided values
               from UI, the corresponding config parameter will be updated only if it
               differs from the currently provided value by the user.
      5ab3031e
    • Nikita Krishnia-INTERN's avatar
      Modified logic to update status/messages on 'Manage License Page' and rename... · 2f557912
      Nikita Krishnia-INTERN authored
      Modified logic to update status/messages on 'Manage License Page' and rename "Tesla(unlicensed)" string to "GRID Virtual Apps"
      
      Details:
      - From nvidia-gridd, fetching license state from the state machine. Sending this
        license state instead of license status to nvidia-settings.
      - According to license state and featureType fetched from nvidia-gridd, setting
        license status on nvidia-settings side.
      - Updated all license status messages to latest reviewed strings.
      - Renamed "Tesla(unlicensed)" string to "GRID Virtual Apps".
      2f557912
    • Nikita Krishnia-INTERN's avatar
      Modifications in the sensitivity of Apply/Cancel button in 'Manage License'... · 2fb5615f
      Nikita Krishnia-INTERN authored
      Modifications in the sensitivity of Apply/Cancel button in 'Manage License' page of nvidia-settings:
      
      Issue:
      Apply/Cancel button is disabled post moving from "Quadro Virtual" "Datacenter
      Workstation" license edition to "Unlicensed Tesla" license edition.
      
      Fix:
      Apply/Cancel buttons are enabled only under following cases:
      * If the License Edition has changed, that is the corresponding feature type
        selection has changed.
      * If any of the textbox entry has changed.
      Also updating the license Acquiring, unlicensed and failed message strings on UI
      according to the feature type selection.
      2fb5615f
    • Nikita Krishnia-INTERN's avatar
      Setting feature type correctly on 'Manage GRID License' page creation. · 650de750
      Nikita Krishnia-INTERN authored
      Issue:
      When nvidia-settings is launched on a Quadro vDWS Edition licensed VM, the
      message shown on 'Manage GRID License' page as well as the one logged in
      /var/log/messages incorrectly states that the system has switched to Tesla
      (unlicensed) and user needs to reboot the system.
      
      Root cause and fix:
      Issue was observed because the feature type was not set correctly on page
      creation. Fixed it with this change.
      
      Testing done:
      Verified on NMOS and vGPU setup,correct feature type is displayed in the message
      over UI and in /var/log/messages as well.
      650de750
    • Trupti Pimparkar's avatar
  3. 30 Oct, 2017 1 commit
    • Nikita Krishnia-INTERN's avatar
      UI control modifications in 'Manage License' page of nvidia-settings: · 6bd0fa4d
      Nikita Krishnia-INTERN authored
      * Added a new cancel button, which clears all changes made in the fields.
      * If Primary server address is empty:
              * Apply/Cancel buttons and Secondary server address/port disabled.
              * Enable Apply/Cancel buttons and Secondary server address/port only
                when there is text entered in Primary server address textbox to nofity
                user that Primary server address is mandatory.
      * If Primary server address is non-empty:
              * User can edit Secondary server address/port.
      * Apply/Cancel buttons Grayed out after applying click.
      * Enable Apply/Cancel buttons when text entered in any of the textboxes is
        different than the earlier entered text.
      * On launch of 'Manage License' page, Apply/Cancel buttons are disabled.
      
      Testing done:
      Verified the above modified functionality of 'Manage License' page on NMOS and vGPU.
      6bd0fa4d
  4. 21 Sep, 2017 1 commit
  5. 22 Aug, 2017 2 commits
  6. 24 Jul, 2017 11 commits
  7. 29 Jun, 2017 1 commit
  8. 05 Jun, 2017 5 commits
    • Sachin Chitte's avatar
      Avoid restarting nvidia-gridd from nvidia-settings and send a dbus signal instead. · 5a764be8
      Sachin Chitte authored
      Now when nvidia-gridd service starts there is a retry loop for Service Provider licensing
      in nvidia-gridd which takes max 30 seconds to retry detecting SP platform and
      then falls back to Flexera licensing.
      So to apply any changes in license server details, we need to wait for 30 seconds
      to get changes applied.
      So there is a long pause of 30-40 seconds before license state gets updated in nvidia-settings.
      
      Solution :
      When user clicks 'Apply' button send dbus signal to nvidia-gridd
      so that on the side of nvidia-gridd, it will read gridd.conf parameters again and
      fetch license again, and hence there is no need to restart nvidia-gridd service everytime.
      
      send_dbus_method_call - moved code calling dbus method call to this function.
      LICENSE_DETAILS_UPDATE_REQUEST - notifies nvidia-gridd that license configuration
                                              information provided by user has changed.
      LICENSE_DETAILS_UPDATE_SUCCESS - returns if the nvidia-gridd able to read conf file and fetch
                                              the license.
      
      If nvidia-gridd is not running dbus_message_iter_get_arg_type returns the argument type
      other than DBUS_TYPE_INT32.
      We are showing popup warning message to users on failure of LICENSE_DETAILS_UPDATE_REQUEST request.
      
      clean up : Updated code to deafult port no 7070 only when user do not set any value.
      5a764be8
    • Sachin Chitte's avatar
      Show Manage GRID License page if gridd.conf file does not exist. · ce2e7b29
      Sachin Chitte authored
            Changed behavior to show page with message instead of not showing the page.
                 "'/etc/nvidia/gridd.conf' file does not exist.\n You do not have "
                 "permissions to create this file."
      ce2e7b29
    • Sachin Chitte's avatar
      Updated new grid license status messages. · 54014eb6
      Sachin Chitte authored
      54014eb6
    • Sachin Chitte's avatar
      Updated Manage GRID License page UI. · e58e8df0
      Sachin Chitte authored
      Added primary and secondary server and port info for the license server.
      Secondary server details are used if primary server fails to acquire the license.
      Corresponding gridd.conf keywords:
      - BackupServerAddress - FQDN or numeric IP address of the back-up license server.
      - BackupServerPort - port number of the back-up license server.
      e58e8df0
    • Sachin Chitte's avatar
      Select license edition radio button depending on feature type. · c0f088ab
      Sachin Chitte authored
      Earlier Tesla unlicensed mode button were getting selected always. Changed that logic
      to use feature type from gridd.conf and then select the toggle button.
      c0f088ab
  9. 06 Apr, 2017 4 commits
    • Sachin Chitte's avatar
      Show Manage GRID License page for licensable GRID gpus used on baremetal · 296f72e2
      Sachin Chitte authored
      GRID M6 is licensable gpu so we want to allow users to choose GRID virtual
      workstation and Unlicensed Tesla mode on baremetal setup.
      
      When virtualization mode is NV_CTRL_ATTR_NVML_GPU_VIRTUALIZATION_MODE_NONE we
      want to treat it same way like
      NV_CTRL_ATTR_NVML_GPU_VIRTUALIZATION_MODE_PASSTHROUGH.  So that it will show the
      GRID Virtual Workstation interface in case of baremetal setup.
      296f72e2
    • Sachin Chitte's avatar
      Updated code to open file as a stream, rather than fd · d7a154bd
      Sachin Chitte authored
      Added utility functions ReadConfigFileStream() and WriteConfigFileStream().
      d7a154bd
    • Sachin Chitte's avatar
      24a71856
    • Sachin Chitte's avatar
      Add manage GRID license page to nvidia-settings UI · d753454d
      Sachin Chitte authored
      First time if user does not find /etc/nvidia/gridd.conf file create one from
      available template /etc/nvidia/gridd.conf.template on the system.
      
      Only users with sufficient privileges can update server address and port number.
      
      If enableUI = FALSE do not show this Manage License page.
      In case of VGPU show
                  - current license state label, server address textbox, port no.
                    textbox and Apply button.
      In case of NMOS show Option to choose between
                   1.GRID virtual workstation 2. Tesla (Unlicensed)
      
      The License Edition section shows if your system has a valid GRID vGPU license.
      If no valid license is listed, enter the address of your local GRID License
      Server in the License Server box.
      The address can be a domain name or an IP address.  If you want to use a port
      number other than the default 7070, then enter it in the Port Number box.
      Click Apply to assign the settings.
      
      UpdateConfigFile() - used to parse gridd.conf and update it.
             NV_CTRL_ATTR_NVML_GPU_VIRTUALIZATION_MODE - used to decide the
             featureType.
      nvidia-settings will query current license status from gridd daemon using DBUS
      apis.
      update_manage_license_info() - queries the current license status.
      d753454d