diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2017-06-22 15:55:17 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-06-30 21:34:59 -0400 |
commit | 001c7c3185d9b087f89f48a41bee27d2d06721f6 (patch) | |
tree | c869be82279688a5dbe5d1145da09ca2323aef92 /drivers/gpu/nvgpu/common/linux/pci.c | |
parent | 82c0c96290602b1baf296133c7f55ae1848e433a (diff) |
gpu: nvgpu: Per chip default big page size
Make default big page size query a HAL op instead of per-platform
constant. This allows querying for default big page size without
accessing Linux specific gk20a_platform structure.
JIRA NVGPU-38
Change-Id: Ibfbd1319764fdae5fdb06700fb64d23f6f3dd01a
Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-on: https://git-master/r/1507928
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/pci.c')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/pci.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/pci.c b/drivers/gpu/nvgpu/common/linux/pci.c index 87751351..5fcf717c 100644 --- a/drivers/gpu/nvgpu/common/linux/pci.c +++ b/drivers/gpu/nvgpu/common/linux/pci.c | |||
@@ -86,8 +86,6 @@ static struct gk20a_platform nvgpu_pci_device[] = { | |||
86 | .is_railgated = nvgpu_pci_tegra_is_railgated, | 86 | .is_railgated = nvgpu_pci_tegra_is_railgated, |
87 | .clk_round_rate = nvgpu_pci_clk_round_rate, | 87 | .clk_round_rate = nvgpu_pci_clk_round_rate, |
88 | 88 | ||
89 | .default_big_page_size = SZ_64K, | ||
90 | |||
91 | .ch_wdt_timeout_ms = 7000, | 89 | .ch_wdt_timeout_ms = 7000, |
92 | 90 | ||
93 | .honors_aperture = true, | 91 | .honors_aperture = true, |
@@ -121,8 +119,6 @@ static struct gk20a_platform nvgpu_pci_device[] = { | |||
121 | .is_railgated = nvgpu_pci_tegra_is_railgated, | 119 | .is_railgated = nvgpu_pci_tegra_is_railgated, |
122 | .clk_round_rate = nvgpu_pci_clk_round_rate, | 120 | .clk_round_rate = nvgpu_pci_clk_round_rate, |
123 | 121 | ||
124 | .default_big_page_size = SZ_64K, | ||
125 | |||
126 | .ch_wdt_timeout_ms = 7000, | 122 | .ch_wdt_timeout_ms = 7000, |
127 | 123 | ||
128 | .honors_aperture = true, | 124 | .honors_aperture = true, |
@@ -156,8 +152,6 @@ static struct gk20a_platform nvgpu_pci_device[] = { | |||
156 | .is_railgated = nvgpu_pci_tegra_is_railgated, | 152 | .is_railgated = nvgpu_pci_tegra_is_railgated, |
157 | .clk_round_rate = nvgpu_pci_clk_round_rate, | 153 | .clk_round_rate = nvgpu_pci_clk_round_rate, |
158 | 154 | ||
159 | .default_big_page_size = SZ_64K, | ||
160 | |||
161 | .ch_wdt_timeout_ms = 7000, | 155 | .ch_wdt_timeout_ms = 7000, |
162 | 156 | ||
163 | .honors_aperture = true, | 157 | .honors_aperture = true, |
@@ -191,8 +185,6 @@ static struct gk20a_platform nvgpu_pci_device[] = { | |||
191 | .is_railgated = nvgpu_pci_tegra_is_railgated, | 185 | .is_railgated = nvgpu_pci_tegra_is_railgated, |
192 | .clk_round_rate = nvgpu_pci_clk_round_rate, | 186 | .clk_round_rate = nvgpu_pci_clk_round_rate, |
193 | 187 | ||
194 | .default_big_page_size = SZ_64K, | ||
195 | |||
196 | .ch_wdt_timeout_ms = 7000, | 188 | .ch_wdt_timeout_ms = 7000, |
197 | 189 | ||
198 | .honors_aperture = true, | 190 | .honors_aperture = true, |