summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Waterman <alexw@nvidia.com>2016-12-01 14:19:30 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2017-01-04 18:53:56 -0500
commitbe42a5bffb1ddc24618a1a52615fbad02abad786 (patch)
treedaf891f500dfaab636e3829ba3e885475d90dd5d
parentce6b4bac7aba37b229efdd8abc3c72a8061fcfa1 (diff)
gpu: nvgpu: Disable ASPM for PCI platforms
Disable ASPM on boot for PCIe platforms. Bug 200256272 Change-Id: I0dc63c1a5a9941a5ecdc6a5d691c0b780fb9a6b5 Signed-off-by: Alex Waterman <alexw@nvidia.com> Reviewed-on: http://git-master/r/1263272 (cherry picked from commit bf576ea8a88326d107b3a91d196fe6d6018185f6) Reviewed-on: http://git-master/r/1274478 GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
-rw-r--r--drivers/gpu/nvgpu/pci.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/pci.c b/drivers/gpu/nvgpu/pci.c
index 7cc058e4..7dd5ce03 100644
--- a/drivers/gpu/nvgpu/pci.c
+++ b/drivers/gpu/nvgpu/pci.c
@@ -66,6 +66,8 @@ static struct gk20a_platform nvgpu_pci_device[] = {
66 .enable_slcg = true, 66 .enable_slcg = true,
67 .enable_blcg = true, 67 .enable_blcg = true,
68 68
69 .disable_aspm = true,
70
69 /* power management callbacks */ 71 /* power management callbacks */
70 .is_railgated = nvgpu_pci_tegra_is_railgated, 72 .is_railgated = nvgpu_pci_tegra_is_railgated,
71 .clk_round_rate = nvgpu_pci_clk_round_rate, 73 .clk_round_rate = nvgpu_pci_clk_round_rate,
@@ -94,6 +96,8 @@ static struct gk20a_platform nvgpu_pci_device[] = {
94 .enable_slcg = true, 96 .enable_slcg = true,
95 .enable_blcg = true, 97 .enable_blcg = true,
96 98
99 .disable_aspm = true,
100
97 /* power management callbacks */ 101 /* power management callbacks */
98 .is_railgated = nvgpu_pci_tegra_is_railgated, 102 .is_railgated = nvgpu_pci_tegra_is_railgated,
99 .clk_round_rate = nvgpu_pci_clk_round_rate, 103 .clk_round_rate = nvgpu_pci_clk_round_rate,
@@ -122,6 +126,8 @@ static struct gk20a_platform nvgpu_pci_device[] = {
122 .enable_slcg = true, 126 .enable_slcg = true,
123 .enable_blcg = true, 127 .enable_blcg = true,
124 128
129 .disable_aspm = true,
130
125 /* power management callbacks */ 131 /* power management callbacks */
126 .is_railgated = nvgpu_pci_tegra_is_railgated, 132 .is_railgated = nvgpu_pci_tegra_is_railgated,
127 .clk_round_rate = nvgpu_pci_clk_round_rate, 133 .clk_round_rate = nvgpu_pci_clk_round_rate,