diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2023-09-19 06:21:25 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2023-10-31 15:08:13 +1000 |
commit | f2b76a18251d08aae035288190c562b28da9bf35 (patch) | |
tree | bbf1dcc0f766a1cf97d5e7299e2d91ce334358f7 /drivers | |
parent | fd7d598270724cc787982ea48bbe17ad383a8b7f (diff) | |
download | linux-stable-f2b76a18251d08aae035288190c562b28da9bf35.tar.gz linux-stable-f2b76a18251d08aae035288190c562b28da9bf35.tar.bz2 linux-stable-f2b76a18251d08aae035288190c562b28da9bf35.zip |
drm/nouveau/therm/tu102-: prepare for GSP-RM
- disable THERM completely when GSP-RM detected
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230918202149.4343-21-skeggsb@gmail.com
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/nouveau/nvkm/subdev/therm/gp100.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/therm/gp100.c b/drivers/gpu/drm/nouveau/nvkm/subdev/therm/gp100.c index 44f021392b95..5392833d3614 100644 --- a/drivers/gpu/drm/nouveau/nvkm/subdev/therm/gp100.c +++ b/drivers/gpu/drm/nouveau/nvkm/subdev/therm/gp100.c @@ -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); } |