diff options
Diffstat (limited to 'drivers/gpu/nvgpu/gp106')
-rw-r--r-- | drivers/gpu/nvgpu/gp106/therm_gp106.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gp106/therm_gp106.c b/drivers/gpu/nvgpu/gp106/therm_gp106.c index 15aff89c..7bdf0b9e 100644 --- a/drivers/gpu/nvgpu/gp106/therm_gp106.c +++ b/drivers/gpu/nvgpu/gp106/therm_gp106.c | |||
@@ -15,6 +15,12 @@ | |||
15 | #include <linux/debugfs.h> | 15 | #include <linux/debugfs.h> |
16 | #include "hw_therm_gp106.h" | 16 | #include "hw_therm_gp106.h" |
17 | 17 | ||
18 | static void gp106_get_internal_sensor_limits(s32 *max_24_8, s32 *min_24_8) | ||
19 | { | ||
20 | *max_24_8 = (0x87 << 8); | ||
21 | *min_24_8 = ((-216) << 8); | ||
22 | } | ||
23 | |||
18 | static int gp106_get_internal_sensor_curr_temp(struct gk20a *g, u32 *temp_f24_8) | 24 | static int gp106_get_internal_sensor_curr_temp(struct gk20a *g, u32 *temp_f24_8) |
19 | { | 25 | { |
20 | int err = 0; | 26 | int err = 0; |
@@ -117,4 +123,6 @@ void gp106_init_therm_ops(struct gpu_ops *gops) { | |||
117 | #endif | 123 | #endif |
118 | gops->therm.elcg_init_idle_filters = gp106_elcg_init_idle_filters; | 124 | gops->therm.elcg_init_idle_filters = gp106_elcg_init_idle_filters; |
119 | gops->therm.get_internal_sensor_curr_temp = gp106_get_internal_sensor_curr_temp; | 125 | gops->therm.get_internal_sensor_curr_temp = gp106_get_internal_sensor_curr_temp; |
126 | gops->therm.get_internal_sensor_limits = | ||
127 | gp106_get_internal_sensor_limits; | ||
120 | } | 128 | } |