summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/gk20a.h
diff options
context:
space:
mode:
authorThomas Fleury <tfleury@nvidia.com>2017-04-11 19:10:26 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-04-18 15:44:21 -0400
commit90a249b598824b115ff3678cf192d1caa96efa59 (patch)
tree3de7da86532f16007e34c63ed1193be9a7fa24c2 /drivers/gpu/nvgpu/gk20a/gk20a.h
parent07b15f68c7e4a58df70992e7b314263ea48bffc3 (diff)
gpu: nvgpu: missing power sensor detection
Monitoring INA3221 is currently missing on some customer designs. Use PCI vendor/device ids and VBIOS version to identify such device, and set power_sensor_missing flag. This flag is subsequently used to skip power device and power policy programming in PMU. Bug 1903258 Change-Id: Ia6b5ce563b5cc3593e138635639025b830e4535e Signed-off-by: Thomas Fleury <tfleury@nvidia.com> Reviewed-on: http://git-master/r/1460936 (cherry picked from commit 42f236c210931d28d2699858bb0663b91cf11046) Reviewed-on: http://git-master/r/1463104 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gk20a.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.h b/drivers/gpu/nvgpu/gk20a/gk20a.h
index 763cccaf..60d04b64 100644
--- a/drivers/gpu/nvgpu/gk20a/gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/gk20a.h
@@ -1158,6 +1158,10 @@ struct gk20a {
1158 struct nvgpu_mem_alloc_tracker *vmallocs; 1158 struct nvgpu_mem_alloc_tracker *vmallocs;
1159 struct nvgpu_mem_alloc_tracker *kmallocs; 1159 struct nvgpu_mem_alloc_tracker *kmallocs;
1160#endif 1160#endif
1161
1162 /* Some boards might be missing power sensor, preventing
1163 * from monitoring power, current and voltage */
1164 bool power_sensor_missing;
1161}; 1165};
1162 1166
1163static inline unsigned long gk20a_get_gr_idle_timeout(struct gk20a *g) 1167static inline unsigned long gk20a_get_gr_idle_timeout(struct gk20a *g)