From 28b0d6cfa80086d7c437bbddc77777d1dafa260c Mon Sep 17 00:00:00 2001 From: Aparna Das Date: Wed, 18 Jan 2017 14:11:38 -0800 Subject: 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 Reviewed-on: http://git-master/r/1287728 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/vgpu/mm_vgpu.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'drivers/gpu/nvgpu/vgpu/mm_vgpu.c') 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) static void vgpu_mm_tlb_invalidate(struct vm_gk20a *vm) { - struct gk20a *g = gk20a_from_vm(vm); - struct tegra_vgpu_cmd_msg msg; - struct tegra_vgpu_as_invalidate_params *p = &msg.params.as_invalidate; - int err; - gk20a_dbg_fn(""); - msg.cmd = TEGRA_VGPU_CMD_AS_INVALIDATE; - msg.handle = vgpu_get_handle(g); - p->handle = vm->handle; - err = vgpu_comm_sendrecv(&msg, sizeof(msg), sizeof(msg)); - WARN_ON(err || msg.ret); + gk20a_err(dev_from_vm(vm), "%s: call to RM server not supported", + __func__); } static void vgpu_mm_mmu_set_debug_mode(struct gk20a *g, bool enable) -- cgit v1.2.2