summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gm206/bios_gm206.h
diff options
context:
space:
mode:
authorAlex Waterman <alexw@nvidia.com>2016-09-08 15:13:39 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2016-10-18 15:24:25 -0400
commitcd452a6ed4cad388909b0372f04a0482609acb90 (patch)
treed1bcc16124454ca8d05192f17425d448cf61812e /drivers/gpu/nvgpu/gm206/bios_gm206.h
parentc284516ead33708e135eeaa53672d835849f25fb (diff)
gpu: nvgpu: implement PCIe Gen2 frequency swap
Implement the ability to swap between different PCIe bus speeds. This code is called during init in case the GPU is not running at the max supported PCIe bus speed. JIRA DNVGPU-89 Signed-off-by: Alex Waterman <alexw@nvidia.com> Reviewed-on: http://git-master/r/1218178 (cherry picked from commit 8dcd3e10f46f524c9bac9fd5dae0f0a899123c23) Change-Id: I21f96110578a68d5c5e30ae21776cff69aefba5d Reviewed-on: http://git-master/r/1227922 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gm206/bios_gm206.h')
-rw-r--r--drivers/gpu/nvgpu/gm206/bios_gm206.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gm206/bios_gm206.h b/drivers/gpu/nvgpu/gm206/bios_gm206.h
index 5aa20364..1ee4e14c 100644
--- a/drivers/gpu/nvgpu/gm206/bios_gm206.h
+++ b/drivers/gpu/nvgpu/gm206/bios_gm206.h
@@ -17,6 +17,8 @@
17#define PERF_PTRS_WIDTH 0x4 17#define PERF_PTRS_WIDTH 0x4
18#define PERF_PTRS_WIDTH_16 0x2 18#define PERF_PTRS_WIDTH_16 0x2
19 19
20#define NV_PCFG 0x88000
21
20enum { 22enum {
21 CLOCKS_TABLE = 2, 23 CLOCKS_TABLE = 2,
22 CLOCK_PROGRAMMING_TABLE, 24 CLOCK_PROGRAMMING_TABLE,