projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fd7d598
)
drm/nouveau/therm/tu102-: prepare for GSP-RM
author
Ben Skeggs
<bskeggs@redhat.com>
Mon, 18 Sep 2023 20:21:25 +0000
(06:21 +1000)
committer
Dave Airlie
<airlied@redhat.com>
Tue, 31 Oct 2023 05:08:13 +0000
(15:08 +1000)
- 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
drivers/gpu/drm/nouveau/nvkm/subdev/therm/gp100.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/nouveau/nvkm/subdev/therm/gp100.c
b/drivers/gpu/drm/nouveau/nvkm/subdev/therm/gp100.c
index 44f021392b955d9f708bd1c77475b6680c22dd31..5392833d361483950259464673a8e7a3d464628f 100644
(file)
--- 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);
}