diff options
author | Thomas Fleury <tfleury@nvidia.com> | 2017-01-19 19:05:08 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-01-31 19:23:13 -0500 |
commit | 9132bb52a6ac6a4845007b755feeb3a074069e72 (patch) | |
tree | 60bf2d23399c2bc8c6d327044cf9c1cb3eeab9e0 /drivers/gpu/nvgpu/pci.c | |
parent | 95a3eb454ca2f1b1b1a5677fe024eacae79bc0ed (diff) |
gpu: nvgpu: add flag for over power monitoring
On PG418, we hard code SW threshold table for over power
monitoring. On PG419, there is a dedicated INA for over
power monitoring. It is programmed in VBIOS devinit.
Added a platform flag to indicate if devinit has already
taken care of programming.
Jira DNVGPU-206
Change-Id: I28e70ac5621b692864a24e0eadb6d24b9957c0af
Signed-off-by: Thomas Fleury <tfleury@nvidia.com>
Reviewed-on: http://git-master/r/1291813
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/pci.c')
-rw-r--r-- | drivers/gpu/nvgpu/pci.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/pci.c b/drivers/gpu/nvgpu/pci.c index 88b743bc..dd8abc82 100644 --- a/drivers/gpu/nvgpu/pci.c +++ b/drivers/gpu/nvgpu/pci.c | |||
@@ -83,6 +83,7 @@ static struct gk20a_platform nvgpu_pci_device[] = { | |||
83 | 83 | ||
84 | .vidmem_is_vidmem = true, | 84 | .vidmem_is_vidmem = true, |
85 | .vbios_min_version = 0x86063000, | 85 | .vbios_min_version = 0x86063000, |
86 | .hardcode_sw_threshold = true, | ||
86 | }, | 87 | }, |
87 | { /* DEVICE=0x1c36 */ | 88 | { /* DEVICE=0x1c36 */ |
88 | /* ptimer src frequency in hz */ | 89 | /* ptimer src frequency in hz */ |
@@ -116,6 +117,7 @@ static struct gk20a_platform nvgpu_pci_device[] = { | |||
116 | 117 | ||
117 | .vidmem_is_vidmem = true, | 118 | .vidmem_is_vidmem = true, |
118 | .vbios_min_version = 0x86062d00, | 119 | .vbios_min_version = 0x86062d00, |
120 | .hardcode_sw_threshold = true, | ||
119 | }, | 121 | }, |
120 | { /* DEVICE=0x1c37 */ | 122 | { /* DEVICE=0x1c37 */ |
121 | /* ptimer src frequency in hz */ | 123 | /* ptimer src frequency in hz */ |
@@ -149,6 +151,7 @@ static struct gk20a_platform nvgpu_pci_device[] = { | |||
149 | 151 | ||
150 | .vidmem_is_vidmem = true, | 152 | .vidmem_is_vidmem = true, |
151 | .vbios_min_version = 0x86063000, | 153 | .vbios_min_version = 0x86063000, |
154 | .hardcode_sw_threshold = true, | ||
152 | } | 155 | } |
153 | }; | 156 | }; |
154 | 157 | ||