mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 17:36:20 +03:00
gpu: nvgpu: debugfs: only create railgate_residency if not is_virtual
Dump railgate_residency causes kernel crash since vgpu does not control railgate_residency. So create railgate_residency only on native driver. Bug 2848790 Signed-off-by: Richard Zhao <rizhao@nvidia.com> Change-Id: I08d65e1c1c5bf813f0c47d5bffad5a01ea62adf8 Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2349293 Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
Alex Waterman
parent
6b1302f23c
commit
246b5fcf4d
@@ -273,11 +273,13 @@ static int gk20a_railgating_debugfs_init(struct gk20a *g)
|
|||||||
struct nvgpu_os_linux *l = nvgpu_os_linux_from_gk20a(g);
|
struct nvgpu_os_linux *l = nvgpu_os_linux_from_gk20a(g);
|
||||||
struct dentry *d;
|
struct dentry *d;
|
||||||
|
|
||||||
|
if (!g->is_virtual) {
|
||||||
d = debugfs_create_file(
|
d = debugfs_create_file(
|
||||||
"railgate_residency", S_IRUGO|S_IWUSR, l->debugfs, g,
|
"railgate_residency", S_IRUGO|S_IWUSR, l->debugfs, g,
|
||||||
&railgate_residency_fops);
|
&railgate_residency_fops);
|
||||||
if (!d)
|
if (!d)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user