diff options
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/module.c')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/module.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/module.c b/drivers/gpu/nvgpu/common/linux/module.c index 52348db0..741c86e7 100644 --- a/drivers/gpu/nvgpu/common/linux/module.c +++ b/drivers/gpu/nvgpu/common/linux/module.c | |||
@@ -1149,6 +1149,12 @@ static int gk20a_probe(struct platform_device *dev) | |||
1149 | if (err) | 1149 | if (err) |
1150 | goto return_err; | 1150 | goto return_err; |
1151 | 1151 | ||
1152 | np = nvgpu_get_node(gk20a); | ||
1153 | if (of_dma_is_coherent(np)) { | ||
1154 | __nvgpu_set_enabled(gk20a, NVGPU_USE_COHERENT_SYSMEM, true); | ||
1155 | __nvgpu_set_enabled(gk20a, NVGPU_SUPPORT_IO_COHERENCE, true); | ||
1156 | } | ||
1157 | |||
1152 | if (nvgpu_platform_is_simulation(gk20a)) | 1158 | if (nvgpu_platform_is_simulation(gk20a)) |
1153 | __nvgpu_set_enabled(gk20a, NVGPU_IS_FMODEL, true); | 1159 | __nvgpu_set_enabled(gk20a, NVGPU_IS_FMODEL, true); |
1154 | 1160 | ||
@@ -1208,12 +1214,6 @@ static int gk20a_probe(struct platform_device *dev) | |||
1208 | 1214 | ||
1209 | gk20a->mm.has_physical_mode = !nvgpu_is_hypervisor_mode(gk20a); | 1215 | gk20a->mm.has_physical_mode = !nvgpu_is_hypervisor_mode(gk20a); |
1210 | 1216 | ||
1211 | np = nvgpu_get_node(gk20a); | ||
1212 | if (of_dma_is_coherent(np)) { | ||
1213 | __nvgpu_set_enabled(gk20a, NVGPU_USE_COHERENT_SYSMEM, true); | ||
1214 | __nvgpu_set_enabled(gk20a, NVGPU_SUPPORT_IO_COHERENCE, true); | ||
1215 | } | ||
1216 | |||
1217 | return 0; | 1217 | return 0; |
1218 | 1218 | ||
1219 | return_err: | 1219 | return_err: |