summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gp106/hal_gp106.c
diff options
context:
space:
mode:
authorAlex Waterman <alexw@nvidia.com>2016-09-09 19:59:21 -0400
committerDeepak Nibade <dnibade@nvidia.com>2016-12-27 04:56:49 -0500
commit82bbd0cd5d3d82bacc5023830d0eeb21065dd5f2 (patch)
tree50cac71c5516404760b163a7de3675a6b526c797 /drivers/gpu/nvgpu/gp106/hal_gp106.c
parent4afc6a1659ec058fd44953ccff7a1030275bcc92 (diff)
gpu: nvgpu: implement PCIe Gen2 frequency swap
Implement the basic code to swap between PCIe bus speeds for the GPU. Other GPUs are not supported yet. Currently the following speeds can be used: Gen1 (2.5 MTPS) Gen2 (5.0 MTPS) gp106 on DPX2 does not support Gen3. JIRA DNVGPU-89 Change-Id: I8bebfc9d99b682bdcff406fa56e806097dd51499 Reviewed-on: http://git-master/r/1218177 Signed-off-by: Alex Waterman <alexw@nvidia.com> Reviewed-on: http://git-master/r/1227925 GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gp106/hal_gp106.c')
-rw-r--r--drivers/gpu/nvgpu/gp106/hal_gp106.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gp106/hal_gp106.c b/drivers/gpu/nvgpu/gp106/hal_gp106.c
index d07da835..2217dfea 100644
--- a/drivers/gpu/nvgpu/gp106/hal_gp106.c
+++ b/drivers/gpu/nvgpu/gp106/hal_gp106.c
@@ -29,6 +29,7 @@
29#include "gp10b/regops_gp10b.h" 29#include "gp10b/regops_gp10b.h"
30#include "gp10b/cde_gp10b.h" 30#include "gp10b/cde_gp10b.h"
31#include "gp106/therm_gp106.h" 31#include "gp106/therm_gp106.h"
32#include "gp106/xve_gp106.h"
32 33
33#include "gm206/bios_gm206.h" 34#include "gm206/bios_gm206.h"
34 35
@@ -210,6 +211,8 @@ int gp106_init_hal(struct gk20a *g)
210#endif 211#endif
211 gm206_init_bios(gops); 212 gm206_init_bios(gops);
212 gp106_init_therm_ops(gops); 213 gp106_init_therm_ops(gops);
214 gp106_init_xve_ops(gops);
215
213 gops->name = "gp10x"; 216 gops->name = "gp10x";
214 gops->get_litter_value = gp106_get_litter_value; 217 gops->get_litter_value = gp106_get_litter_value;
215 gops->chip_init_gpu_characteristics = gk20a_init_gpu_characteristics; 218 gops->chip_init_gpu_characteristics = gk20a_init_gpu_characteristics;