mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 01:50:07 +03:00
gpu: nvgpu: resolve CE debugfs NULL access issues
CE_APP is created only when CONFIG_NVGPU_DGPU is enabled. Consequently, create CE debugfs entries only when CONFIG_NVGPU_DGPU is enabled to avoid NULL access failures. Bug 200747304 Change-Id: Idf0829927b6578da4007f3c5c5ca5ae8f0ed11db Signed-off-by: Debarshi Dutta <ddutta@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2558712 Reviewed-by: svcacv <svcacv@nvidia.com> Reviewed-by: svc_kernel_abi <svc_kernel_abi@nvidia.com> Reviewed-by: Sachin Nikam <snikam@nvidia.com> Reviewed-by: Vaibhav Kachore <vkachore@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:
committed by
mobile promotions
parent
43980bfe06
commit
493df6cb6e
@@ -511,8 +511,6 @@ void gk20a_debug_init(struct gk20a *g, const char *debugfs_symlink)
|
||||
#ifdef CONFIG_NVGPU_SUPPORT_CDE
|
||||
gk20a_cde_debugfs_init(g);
|
||||
#endif
|
||||
if (!g->is_virtual)
|
||||
nvgpu_ce_debugfs_init(g);
|
||||
nvgpu_alloc_debugfs_init(g);
|
||||
nvgpu_hal_debugfs_init(g);
|
||||
gk20a_fifo_debugfs_init(g);
|
||||
@@ -522,6 +520,8 @@ void gk20a_debug_init(struct gk20a *g, const char *debugfs_symlink)
|
||||
#endif
|
||||
nvgpu_ltc_debugfs_init(g);
|
||||
#ifdef CONFIG_NVGPU_DGPU
|
||||
if (!g->is_virtual)
|
||||
nvgpu_ce_debugfs_init(g);
|
||||
if (g->pci_vendor_id) {
|
||||
nvgpu_xve_debugfs_init(g);
|
||||
nvgpu_bios_debugfs_init(g);
|
||||
|
||||
Reference in New Issue
Block a user