nouveau: add command-line GSP-RM registry support
authorTimur Tabi <ttabi@nvidia.com>
Wed, 17 Apr 2024 21:53:17 +0000 (16:53 -0500)
committerDanilo Krummrich <dakr@redhat.com>
Fri, 26 Apr 2024 16:06:39 +0000 (18:06 +0200)
commitb58a0bc904ffa091fc020f7fd00e91808fec820e
treea643a2d157a2c2a2c3ca164c89f19368ad918983
parent5284e4202aa0dc68bc9e903dd666a36e14704791
nouveau: add command-line GSP-RM registry support

Add the NVreg_RegistryDwords command line parameter, which allows
specifying additional registry keys to be sent to GSP-RM.  This
allows additional configuration, debugging, and experimentation
with GSP-RM, which uses these keys to alter its behavior.

Note that these keys are passed as-is to GSP-RM, and Nouveau does
not parse them.  This is in contrast to the Nvidia driver, which may
parse some of the keys to configure some functionality in concert with
GSP-RM.  Therefore, any keys which also require action by the driver
may not function correctly when passed by Nouveau.  Caveat emptor.

The name and format of NVreg_RegistryDwords is the same as used by
the Nvidia driver, to maintain compatibility.

Signed-off-by: Timur Tabi <ttabi@nvidia.com>
Signed-off-by: Danilo Krummrich <dakr@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240417215317.3490856-1-ttabi@nvidia.com
drivers/gpu/drm/nouveau/include/nvkm/subdev/gsp.h
drivers/gpu/drm/nouveau/nvkm/subdev/gsp/r535.c