diff options
author | Aparna Das <aparnad@nvidia.com> | 2017-01-18 17:11:38 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-02-14 14:15:27 -0500 |
commit | 28b0d6cfa80086d7c437bbddc77777d1dafa260c (patch) | |
tree | 3f7f9677aea0187ca523602c39acda0ce8f5ec6c /drivers/gpu/nvgpu/vgpu | |
parent | e7a0c0ae8b6791c6b8ee30270ebdbe6e95fbbc71 (diff) |
gpu: nvgpu: remove call to invalidate tlb
Guest doesn't explicitly send command to the RM server
to invalidate tlb which is done implicitly when mapping
or unmapping buffer. Remove support for this call.
Bug 1665111
Change-Id: Icf2edae7feffa35b1dbf87c227b3e98b506e6519
Signed-off-by: Aparna Das <aparnad@nvidia.com>
Reviewed-on: http://git-master/r/1287728
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/vgpu')
-rw-r--r-- | drivers/gpu/nvgpu/vgpu/mm_vgpu.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/drivers/gpu/nvgpu/vgpu/mm_vgpu.c b/drivers/gpu/nvgpu/vgpu/mm_vgpu.c index eb5f7749..c6780cf7 100644 --- a/drivers/gpu/nvgpu/vgpu/mm_vgpu.c +++ b/drivers/gpu/nvgpu/vgpu/mm_vgpu.c | |||
@@ -497,18 +497,10 @@ static void vgpu_mm_l2_flush(struct gk20a *g, bool invalidate) | |||
497 | 497 | ||
498 | static void vgpu_mm_tlb_invalidate(struct vm_gk20a *vm) | 498 | static void vgpu_mm_tlb_invalidate(struct vm_gk20a *vm) |
499 | { | 499 | { |
500 | struct gk20a *g = gk20a_from_vm(vm); | ||
501 | struct tegra_vgpu_cmd_msg msg; | ||
502 | struct tegra_vgpu_as_invalidate_params *p = &msg.params.as_invalidate; | ||
503 | int err; | ||
504 | |||
505 | gk20a_dbg_fn(""); | 500 | gk20a_dbg_fn(""); |
506 | 501 | ||
507 | msg.cmd = TEGRA_VGPU_CMD_AS_INVALIDATE; | 502 | gk20a_err(dev_from_vm(vm), "%s: call to RM server not supported", |
508 | msg.handle = vgpu_get_handle(g); | 503 | __func__); |
509 | p->handle = vm->handle; | ||
510 | err = vgpu_comm_sendrecv(&msg, sizeof(msg), sizeof(msg)); | ||
511 | WARN_ON(err || msg.ret); | ||
512 | } | 504 | } |
513 | 505 | ||
514 | static void vgpu_mm_mmu_set_debug_mode(struct gk20a *g, bool enable) | 506 | static void vgpu_mm_mmu_set_debug_mode(struct gk20a *g, bool enable) |