Skip to content

Commit

Permalink
Change driver parameter name
Browse files Browse the repository at this point in the history
Signed-off-by: Mike McKiernan <[email protected]>
  • Loading branch information
mikemckiernan committed May 31, 2024
1 parent 10bc62f commit 3d96791
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions gpu-operator/custom-driver-params.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,21 @@ Customizing NVIDIA GPU Driver Parameters during Installation
************************************************************

The NVIDIA Driver kernel modules accept a number of parameters which can be used to customize the behavior of the driver.
Most of the parameters are documented in the `NVIDIA Driver README <https://download.nvidia.com/XFree86/Linux-x86_64/510.47.03/README/>`_.
By default, the GPU Operator loads the kernel modules with default values.
Starting with v1.10, the GPU Operator provides the ability to pass custom parameters to the kernel modules that get loaded as part of the
NVIDIA Driver installation (e.g. ``nvidia``, ``nvidia-modeset``, ``nvidia-uvm``, and ``nvidia-peermem``).
On a machine with the driver already installed, you can list the parameter names and values with the ``cat /proc/driver/nvidia/params`` command.
You can pass custom parameters to the kernel modules that get loaded as part of the
NVIDIA Driver installation (``nvidia``, ``nvidia-modeset``, ``nvidia-uvm``, and ``nvidia-peermem``).

To pass custom parameters, execute the following steps.

Create a configuration file named ``<module>.conf``, where ``<module>`` is the name of the kernel module the parameters are for.
The file should contain parameters as key-value pairs -- one parameter per line.
In the below example, we are passing one parameter to the ``nvidia`` module, which is disabling the use of
`GSP firmware <https://download.nvidia.com/XFree86/Linux-x86_64/510.47.03/README/gsp.html>`_.
In the following example, the GPU firmware logging parameter is passed to the ``nvidia`` module.

.. code-block:: console
$ cat nvidia.conf
NVreg_EnableGpuFirmware=0
NVreg_EnableGpuFirmwareLogs=2
Create a ``ConfigMap`` for the configuration file.
If multiple modules are being configured, pass multiple files when creating the ``ConfigMap``.
Expand Down

0 comments on commit 3d96791

Please sign in to comment.