diff options
author | Thomas Fleury <tfleury@nvidia.com> | 2017-04-11 19:10:26 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-04-18 15:44:21 -0400 |
commit | 90a249b598824b115ff3678cf192d1caa96efa59 (patch) | |
tree | 3de7da86532f16007e34c63ed1193be9a7fa24c2 /drivers/gpu/nvgpu/gm206 | |
parent | 07b15f68c7e4a58df70992e7b314263ea48bffc3 (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/gm206')
-rw-r--r-- | drivers/gpu/nvgpu/gm206/bios_gm206.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gm206/bios_gm206.c b/drivers/gpu/nvgpu/gm206/bios_gm206.c index cf737fed..2c84ac62 100644 --- a/drivers/gpu/nvgpu/gm206/bios_gm206.c +++ b/drivers/gpu/nvgpu/gm206/bios_gm206.c | |||
@@ -303,6 +303,12 @@ int gm206_bios_init(struct gk20a *g) | |||
303 | return -EINVAL; | 303 | return -EINVAL; |
304 | } | 304 | } |
305 | 305 | ||
306 | /* WAR for missing INA3221 on HW2.5 RevA */ | ||
307 | g->power_sensor_missing = | ||
308 | (g->pci_vendor_id == PCI_VENDOR_ID_NVIDIA) && | ||
309 | (g->pci_device_id == 0x1c75) && | ||
310 | (g->gpu_characteristics.vbios_version == 0x86065300); | ||
311 | |||
306 | g->bios_blob.data = g->bios.data; | 312 | g->bios_blob.data = g->bios.data; |
307 | g->bios_blob.size = g->bios.size; | 313 | g->bios_blob.size = g->bios.size; |
308 | 314 | ||