mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 02:22:34 +03:00
gpu: nvgpu: remove sudo restrictions on gpu nodes.
When SMC modes are enabled, devices are created with sudo-only access permissions. Those permissions are relaxed to allow non-sudo processes to allow job submission. Also, allow only root users to poweroff explicitely via the device power node. Bug 3374078 Change-Id: Ieb869399c3ada3588708cf2bc99a580414023cb7 Signed-off-by: Debarshi Dutta <ddutta@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2590584 Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
f3164a4672
commit
79ab0ba6c4
@@ -136,7 +136,7 @@ int gk20a_power_write(struct file *filp, const char __user *buf,
|
||||
if (err) {
|
||||
nvgpu_err(g, "power_node_write failed at busy");
|
||||
kfree(userinput);
|
||||
return -EINVAL;
|
||||
return err;
|
||||
}
|
||||
} else {
|
||||
nvgpu_err(g, "1/0 are the valid values to power-on the GPU");
|
||||
|
||||
Reference in New Issue
Block a user