From 4dac924aba27aa46267fb39f3ed968318292a7f5 Mon Sep 17 00:00:00 2001 From: Prateek Sethi Date: Fri, 4 May 2018 10:30:18 +0530 Subject: gpu: nvgpu: nvhost: PC_SAMPLING ioctl failure. NVGPU_DBG_GPU_IOCTL_PC_SAMPLING ioctl is not handled properly for HV case for both Linux and QNX. Currently guest vm is trying to perform gpu memory read and write operations which supposed to be done by RM server, causing the crash. This patch is supposed to fix ioctl failure. Bug 2052040 Change-Id: Ia0773959b84739a1bced858331764751520a3561 Signed-off-by: Prateek Sethi Reviewed-on: https://git-master.nvidia.com/r/1708102 Reviewed-by: svc-mobile-coverity Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Sourab Gupta GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom Tested-by: Sourab Gupta Reviewed-by: Vijayakumar Subbu Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/vgpu/gr_vgpu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/gpu/nvgpu/vgpu/gr_vgpu.h') diff --git a/drivers/gpu/nvgpu/vgpu/gr_vgpu.h b/drivers/gpu/nvgpu/vgpu/gr_vgpu.h index d6b25b97..c4b3944e 100644 --- a/drivers/gpu/nvgpu/vgpu/gr_vgpu.h +++ b/drivers/gpu/nvgpu/vgpu/gr_vgpu.h @@ -70,5 +70,5 @@ int vgpu_gr_resume_contexts(struct gk20a *g, int vgpu_gr_commit_inst(struct channel_gk20a *c, u64 gpu_va); int vgpu_gr_init_sm_id_table(struct gk20a *g); int vgpu_gr_init_fs_state(struct gk20a *g); - +int vgpu_gr_update_pc_sampling(struct channel_gk20a *ch, bool enable); #endif -- cgit v1.2.2