diff options
Diffstat (limited to 'drivers/gpu/nvgpu')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/platform_gk20a_tegra.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/platform_gk20a_tegra.c b/drivers/gpu/nvgpu/gk20a/platform_gk20a_tegra.c index dee42476..60ffa381 100644 --- a/drivers/gpu/nvgpu/gk20a/platform_gk20a_tegra.c +++ b/drivers/gpu/nvgpu/gk20a/platform_gk20a_tegra.c | |||
@@ -82,6 +82,9 @@ int gk20a_tegra_secure_page_alloc(struct platform_device *pdev) | |||
82 | dma_addr_t iova; | 82 | dma_addr_t iova; |
83 | size_t size = PAGE_SIZE; | 83 | size_t size = PAGE_SIZE; |
84 | 84 | ||
85 | if (tegra_platform_is_linsim()) | ||
86 | return -EINVAL; | ||
87 | |||
85 | (void)dma_alloc_attrs(&tegra_vpr_dev, size, &iova, | 88 | (void)dma_alloc_attrs(&tegra_vpr_dev, size, &iova, |
86 | DMA_MEMORY_NOMAP, &attrs); | 89 | DMA_MEMORY_NOMAP, &attrs); |
87 | if (dma_mapping_error(&tegra_vpr_dev, iova)) | 90 | if (dma_mapping_error(&tegra_vpr_dev, iova)) |