Commit f2b76a18 authored by Ben Skeggs's avatar Ben Skeggs Committed by Dave Airlie

drm/nouveau/therm/tu102-: prepare for GSP-RM

- disable THERM completely when GSP-RM detected
Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230918202149.4343-21-skeggsb@gmail.com
parent fd7d5982
......@@ -23,6 +23,8 @@
*/
#include "priv.h"
#include <subdev/gsp.h>
static int
gp100_temp_get(struct nvkm_therm *therm)
{
......@@ -52,5 +54,8 @@ int
gp100_therm_new(struct nvkm_device *device, enum nvkm_subdev_type type, int inst,
struct nvkm_therm **ptherm)
{
if (nvkm_gsp_rm(device->gsp))
return -ENODEV;
return nvkm_therm_new_(&gp100_therm, device, type, inst, ptherm);
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment