gpu: nvgpu: bypass_smmu debugfs changed to read only

bypass_smmu is set based on whether device_is_iommuable
or not during probe. It cannot be changed during runtime.

Change-Id: I69fd29c87ea3873652a4eb95764f52dc40abf483
Signed-off-by: Seema Khowala <seemaj@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1640381
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Seema Khowala
2018-01-17 11:18:08 -08:00
committed by mobile promotions
parent 42e938e001
commit 2deab755e7

View File

@@ -334,7 +334,7 @@ void gk20a_debug_init(struct gk20a *g, const char *debugfs_symlink)
l->debugfs_bypass_smmu = l->debugfs_bypass_smmu =
debugfs_create_bool("bypass_smmu", debugfs_create_bool("bypass_smmu",
S_IRUGO|S_IWUSR, S_IRUGO,
l->debugfs, l->debugfs,
&g->mm.bypass_smmu); &g->mm.bypass_smmu);
l->debugfs_disable_bigpage = l->debugfs_disable_bigpage =