mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 09:12:24 +03:00
gpu: nvgpu: Print flags after all flags are set
Without this change, nvgpu would print out some flags as disabled in dmesg but enable them shortly after. This leads to confusion when examining UMD and nvgpu reporting in UMDs. This patch adds code to print out the flags after all flags are set. Bug 4031904 Change-Id: I67b9a4567886fd5e076f7ac3b8f284b52c03d7e4 Signed-off-by: Martin Radev <mradev@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2871606 Reviewed-by: svcacv <svcacv@nvidia.com> Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svc-mobile-misra <svc-mobile-misra@nvidia.com> Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com> Reviewed-by: Alex Waterman <alexw@nvidia.com> Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com> Reviewed-by: Seema Khowala <seemaj@nvidia.com> GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
8d091a4548
commit
ac9a59075e
@@ -1055,7 +1055,6 @@ int nvgpu_finalize_poweron(struct gk20a *g)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
nvgpu_print_enabled_flags(g);
|
|
||||||
return err;
|
return err;
|
||||||
|
|
||||||
done:
|
done:
|
||||||
|
|||||||
@@ -537,6 +537,9 @@ int gk20a_pm_finalize_poweron(struct device *dev)
|
|||||||
/* Initialize linux specific flags */
|
/* Initialize linux specific flags */
|
||||||
gk20a_init_linux_characteristics(g);
|
gk20a_init_linux_characteristics(g);
|
||||||
|
|
||||||
|
/* Print out the NvGPU flags for debug purposes after all flags are set. */
|
||||||
|
nvgpu_print_enabled_flags(g);
|
||||||
|
|
||||||
err = nvgpu_init_os_linux_ops(l);
|
err = nvgpu_init_os_linux_ops(l);
|
||||||
if (err)
|
if (err)
|
||||||
goto done;
|
goto done;
|
||||||
|
|||||||
Reference in New Issue
Block a user