summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/linux/pci.c
diff options
context:
space:
mode:
authorKonsta Holtta <kholtta@nvidia.com>2017-06-05 10:40:44 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-06-06 14:05:03 -0400
commit80197d2c9daa8e2320cc0b15741904eb3c1b9ba7 (patch)
treef6c5d33058f59df536860b4b1209950a63dda5be /drivers/gpu/nvgpu/common/linux/pci.c
parent26487b82df0c6604cc40fd6480f7ad7ed4e3efb0 (diff)
gpu: nvgpu: split vidmem_is_vidmem
As the vidmem_is_vidmem flag has got two separate meanings in one bit, split it in two bits into the enabled() API: Add NVGPU_MM_HONORS_APERTURE bit, which is the same as vidmem_is_vidmem with its original meaning, and use it to test which aperture bits to write to hardware. Add NVGPU_MM_UNIFIED_MEMORY bit, which has the opposite meaning: that the GPU shares the SoC memory. When this flag is false, the GPU has its own local video memory. Jira NVGPU-86 Change-Id: I2d0bed3b1ede5a712be99323d3035b154bb23c3a Signed-off-by: Konsta Holtta <kholtta@nvidia.com> Reviewed-on: http://git-master/r/1496080 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/pci.c')
-rw-r--r--drivers/gpu/nvgpu/common/linux/pci.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/pci.c b/drivers/gpu/nvgpu/common/linux/pci.c
index 0a5095fe..b66a6658 100644
--- a/drivers/gpu/nvgpu/common/linux/pci.c
+++ b/drivers/gpu/nvgpu/common/linux/pci.c
@@ -86,7 +86,7 @@ static struct gk20a_platform nvgpu_pci_device[] = {
86 86
87 .ch_wdt_timeout_ms = 7000, 87 .ch_wdt_timeout_ms = 7000,
88 88
89 .vidmem_is_vidmem = true, 89 .honors_aperture = true,
90 .vbios_min_version = 0x86063000, 90 .vbios_min_version = 0x86063000,
91 .hardcode_sw_threshold = true, 91 .hardcode_sw_threshold = true,
92 .ina3221_dcb_index = 0, 92 .ina3221_dcb_index = 0,
@@ -121,7 +121,7 @@ static struct gk20a_platform nvgpu_pci_device[] = {
121 121
122 .ch_wdt_timeout_ms = 7000, 122 .ch_wdt_timeout_ms = 7000,
123 123
124 .vidmem_is_vidmem = true, 124 .honors_aperture = true,
125 .vbios_min_version = 0x86062d00, 125 .vbios_min_version = 0x86062d00,
126 .hardcode_sw_threshold = true, 126 .hardcode_sw_threshold = true,
127 .ina3221_dcb_index = 0, 127 .ina3221_dcb_index = 0,
@@ -156,7 +156,7 @@ static struct gk20a_platform nvgpu_pci_device[] = {
156 156
157 .ch_wdt_timeout_ms = 7000, 157 .ch_wdt_timeout_ms = 7000,
158 158
159 .vidmem_is_vidmem = true, 159 .honors_aperture = true,
160 .vbios_min_version = 0x86063000, 160 .vbios_min_version = 0x86063000,
161 .hardcode_sw_threshold = true, 161 .hardcode_sw_threshold = true,
162 .ina3221_dcb_index = 0, 162 .ina3221_dcb_index = 0,
@@ -191,7 +191,7 @@ static struct gk20a_platform nvgpu_pci_device[] = {
191 191
192 .ch_wdt_timeout_ms = 7000, 192 .ch_wdt_timeout_ms = 7000,
193 193
194 .vidmem_is_vidmem = true, 194 .honors_aperture = true,
195 .vbios_min_version = 0x86065600, 195 .vbios_min_version = 0x86065600,
196 .hardcode_sw_threshold = false, 196 .hardcode_sw_threshold = false,
197 .ina3221_dcb_index = 1, 197 .ina3221_dcb_index = 1,