From 1c34f50227e9f308491758482d88c3c2f6605ffb Mon Sep 17 00:00:00 2001 From: Sagar Kamble Date: Thu, 9 Jul 2020 14:52:01 +0530 Subject: gpu: nvgpu: remove the root cap check in ctxsw device open The device node permission for the ctxsw should be set to "root:debug" instead. Bug 2823941 Change-Id: I523fdd298b70cac82c0a8d853f3e241a80a2ebf5 Signed-off-by: Sagar Kamble Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2372943 (cherry picked from commit 692eafdd03af2f7ab4164732f878d2699867ac63) Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2392715 Reviewed-by: automaticguardword Reviewed-by: Bibek Basu Reviewed-by: mobile promotions Tested-by: mobile promotions GVS: Gerrit_Virtual_Submit --- drivers/gpu/nvgpu/os/linux/ctxsw_trace.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/gpu/nvgpu/os/linux/ctxsw_trace.c b/drivers/gpu/nvgpu/os/linux/ctxsw_trace.c index 05e6ef09..2d36d9ce 100644 --- a/drivers/gpu/nvgpu/os/linux/ctxsw_trace.c +++ b/drivers/gpu/nvgpu/os/linux/ctxsw_trace.c @@ -321,11 +321,6 @@ int gk20a_ctxsw_dev_open(struct inode *inode, struct file *filp) nvgpu_log(g, gpu_dbg_fn|gpu_dbg_ctxsw, "g=%p", g); - if (!capable(CAP_SYS_ADMIN)) { - err = -EPERM; - goto free_ref; - } - err = gk20a_busy(g); if (err) goto free_ref; -- cgit v1.2.2