summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/pci.c
diff options
context:
space:
mode:
authorMahantesh Kumbar <mkumbar@nvidia.com>2016-11-09 09:10:28 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2017-01-10 00:23:22 -0500
commit4c449f0ec0c9393e0e5695e3d0c8077d7772840c (patch)
treeb5c72fa77435fb296a18a94e3c159855ce27c12e /drivers/gpu/nvgpu/pci.c
parent1c9b8c7868ca412a645cd36c2976aec3d7a80627 (diff)
gpu: nvgpu: enable RPPG
- enable RPPG support to engage/disengage RPPG if selected PSTATE supports JIRA DNVGPU-71 Change-Id: I188c8e6235a25ed8c342aef42b39d48cc6378db3 Signed-off-by: Mahantesh Kumbar <mkumbar@nvidia.com> Reviewed-on: http://git-master/r/1250509 (cherry picked from commit a6ef8204538bb94a53a09e569e727c02dab7fdd0) Reviewed-on: http://git-master/r/1270973 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/pci.c')
-rw-r--r--drivers/gpu/nvgpu/pci.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/drivers/gpu/nvgpu/pci.c b/drivers/gpu/nvgpu/pci.c
index 5716d034..760e5ce3 100644
--- a/drivers/gpu/nvgpu/pci.c
+++ b/drivers/gpu/nvgpu/pci.c
@@ -1,5 +1,5 @@
1/* 1/*
2 * Copyright (c) 2016, NVIDIA CORPORATION. All rights reserved. 2 * Copyright (c) 2016-2017, NVIDIA CORPORATION. All rights reserved.
3 * 3 *
4 * This program is free software; you can redistribute it and/or modify it 4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms and conditions of the GNU General Public License, 5 * under the terms and conditions of the GNU General Public License,
@@ -61,10 +61,12 @@ static struct gk20a_platform nvgpu_pci_device[] = {
61 /* power management configuration */ 61 /* power management configuration */
62 .railgate_delay = 500, 62 .railgate_delay = 500,
63 .can_railgate = false, 63 .can_railgate = false,
64 .can_elpg = false, 64 .can_elpg = true,
65 .enable_elpg = true,
65 .enable_elcg = false, 66 .enable_elcg = false,
66 .enable_slcg = true, 67 .enable_slcg = true,
67 .enable_blcg = true, 68 .enable_blcg = true,
69 .enable_mscg = false,
68 .default_pri_timeout = 0x3ff, 70 .default_pri_timeout = 0x3ff,
69 71
70 .disable_aspm = true, 72 .disable_aspm = true,
@@ -92,10 +94,12 @@ static struct gk20a_platform nvgpu_pci_device[] = {
92 /* power management configuration */ 94 /* power management configuration */
93 .railgate_delay = 500, 95 .railgate_delay = 500,
94 .can_railgate = false, 96 .can_railgate = false,
95 .can_elpg = false, 97 .can_elpg = true,
98 .enable_elpg = true,
96 .enable_elcg = false, 99 .enable_elcg = false,
97 .enable_slcg = true, 100 .enable_slcg = true,
98 .enable_blcg = true, 101 .enable_blcg = true,
102 .enable_mscg = false,
99 .default_pri_timeout = 0x3ff, 103 .default_pri_timeout = 0x3ff,
100 104
101 .disable_aspm = true, 105 .disable_aspm = true,
@@ -123,10 +127,12 @@ static struct gk20a_platform nvgpu_pci_device[] = {
123 /* power management configuration */ 127 /* power management configuration */
124 .railgate_delay = 500, 128 .railgate_delay = 500,
125 .can_railgate = false, 129 .can_railgate = false,
126 .can_elpg = false, 130 .can_elpg = true,
131 .enable_elpg = true,
127 .enable_elcg = false, 132 .enable_elcg = false,
128 .enable_slcg = true, 133 .enable_slcg = true,
129 .enable_blcg = true, 134 .enable_blcg = true,
135 .enable_mscg = false,
130 .default_pri_timeout = 0x3ff, 136 .default_pri_timeout = 0x3ff,
131 137
132 .disable_aspm = true, 138 .disable_aspm = true,