diff options
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/driver_common.c')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/driver_common.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/driver_common.c b/drivers/gpu/nvgpu/common/linux/driver_common.c index 8086cb29..015046dd 100644 --- a/drivers/gpu/nvgpu/common/linux/driver_common.c +++ b/drivers/gpu/nvgpu/common/linux/driver_common.c | |||
@@ -73,9 +73,15 @@ static void nvgpu_init_vars(struct gk20a *g) | |||
73 | dev->dma_parms = &l->dma_parms; | 73 | dev->dma_parms = &l->dma_parms; |
74 | dma_set_max_seg_size(dev, UINT_MAX); | 74 | dma_set_max_seg_size(dev, UINT_MAX); |
75 | 75 | ||
76 | /* 34 bit mask - can be expanded for later chips is needed. */ | 76 | /* |
77 | dma_set_mask(dev, DMA_BIT_MASK(34)); | 77 | * A default of 16GB is the largest supported DMA size that is |
78 | dma_set_coherent_mask(dev, DMA_BIT_MASK(34)); | 78 | * acceptable to all currently supported Tegra SoCs. |
79 | */ | ||
80 | if (!platform->dma_mask) | ||
81 | platform->dma_mask = DMA_BIT_MASK(34); | ||
82 | |||
83 | dma_set_mask(dev, platform->dma_mask); | ||
84 | dma_set_coherent_mask(dev, platform->dma_mask); | ||
79 | 85 | ||
80 | nvgpu_init_list_node(&g->profiler_objects); | 86 | nvgpu_init_list_node(&g->profiler_objects); |
81 | 87 | ||