gpu: nvgpu: remove cap checks from fifo_sched & ctxsw_ring debugfs open

Debugfs can be mounted with root-only permissions hence remove the extra
cap checks in the debugfs open calls for fifo_sched & ctxsw_ring.

Bug 2823941

Change-Id: I41668a887635f34897886b872ad435b183b85959
Signed-off-by: Sagar Kamble <skamble@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2372982
Reviewed-by: automaticguardword <automaticguardword@nvidia.com>
Reviewed-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-by: Sami Kiminki <skiminki@nvidia.com>
Reviewed-by: Alex Waterman <alexw@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 16:58:19 +05:30
committed by Alex Waterman
parent 4a54ccc3ef
commit d0848abee5
2 changed files with 1 additions and 7 deletions

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2018-2019, NVIDIA CORPORATION. All rights reserved. * Copyright (c) 2018-2020, NVIDIA CORPORATION. All rights reserved.
* *
* This program is free software; you can redistribute it and/or modify it * This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU General Public License, * under the terms and conditions of the GNU General Public License,
@@ -101,9 +101,6 @@ static int gk20a_ctxsw_debugfs_ring_open(struct inode *inode,
{ {
struct gk20a **p; struct gk20a **p;
if (!capable(CAP_SYS_ADMIN))
return -EPERM;
p = __seq_open_private(file, &gk20a_fecs_trace_debugfs_ring_seq_ops, p = __seq_open_private(file, &gk20a_fecs_trace_debugfs_ring_seq_ops,
sizeof(struct gk20a *)); sizeof(struct gk20a *));
if (!p) if (!p)

View File

@@ -113,9 +113,6 @@ static int gk20a_fifo_sched_debugfs_open(struct inode *inode,
struct gk20a *g = inode->i_private; struct gk20a *g = inode->i_private;
int err; int err;
if (!capable(CAP_SYS_ADMIN))
return -EPERM;
err = seq_open(file, &gk20a_fifo_sched_debugfs_seq_ops); err = seq_open(file, &gk20a_fifo_sched_debugfs_seq_ops);
if (err) if (err)
return err; return err;