diff options
author | Aparna Das <aparnad@nvidia.com> | 2017-11-30 04:08:52 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-12-30 21:50:40 -0500 |
commit | 4f67a794ddbb9e5c1ce66461fabdf3f27708945a (patch) | |
tree | 7e4d379d6bb10792060a55b5648d53dee38ea69d /drivers/gpu/nvgpu/common/linux/vgpu/gp10b | |
parent | b983c67d846547d047156d12a64cb7b216598738 (diff) |
gpu: nvgpu: vgpu: add io coherency support
Modify command message parameter to support io
coherency.
Jira EVLR-2025
Change-Id: I38b21c72d85f559555c4d97dab73d0f715ecc655
Signed-off-by: Aparna Das <aparnad@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1614388
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/vgpu/gp10b')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/vgpu/gp10b/vgpu_mm_gp10b.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/vgpu/gp10b/vgpu_mm_gp10b.c b/drivers/gpu/nvgpu/common/linux/vgpu/gp10b/vgpu_mm_gp10b.c index 8c5a6d27..b857ea95 100644 --- a/drivers/gpu/nvgpu/common/linux/vgpu/gp10b/vgpu_mm_gp10b.c +++ b/drivers/gpu/nvgpu/common/linux/vgpu/gp10b/vgpu_mm_gp10b.c | |||
@@ -165,7 +165,10 @@ u64 vgpu_gp10b_locked_gmmu_map(struct vm_gk20a *vm, | |||
165 | p->pgsz_idx = pgsz_idx; | 165 | p->pgsz_idx = pgsz_idx; |
166 | p->iova = 0; | 166 | p->iova = 0; |
167 | p->kind = kind_v; | 167 | p->kind = kind_v; |
168 | p->cacheable = (flags & NVGPU_VM_MAP_CACHEABLE) ? 1 : 0; | 168 | if (flags & NVGPU_VM_MAP_CACHEABLE) |
169 | p->flags = TEGRA_VGPU_MAP_CACHEABLE; | ||
170 | if (flags & NVGPU_VM_MAP_IO_COHERENT) | ||
171 | p->flags |= TEGRA_VGPU_MAP_IO_COHERENT; | ||
169 | p->prot = prot; | 172 | p->prot = prot; |
170 | p->ctag_offset = ctag_offset; | 173 | p->ctag_offset = ctag_offset; |
171 | p->clear_ctags = clear_ctags; | 174 | p->clear_ctags = clear_ctags; |