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 <skamble@nvidia.com>
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 <automaticguardword@nvidia.com>
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
GVS: Gerrit_Virtual_Submit
This commit is contained in:
Sagar Kamble
2020-07-09 14:52:01 +05:30
committed by mobile promotions
parent 363b183756
commit 1c34f50227

View File

@@ -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;