mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 17:36:20 +03:00
gpu: nvgpu: Make missing DT prop print conditional
Below print is misleading and seems like an error. [INFO] Missing support-gpu-tools property, ret =-22 'support-gpu-tools' property was added to allow disabling debugger features on prod boards. The debugger/profiler support will be enabled by default, even if the property is missing. Make the INFO print conditional, more informational and less dramatic. Bug 3539518 Change-Id: I5fc50df30be23e1fd1ecc06282a0d50f3ca7ac64 Signed-off-by: Tejal Kudav <tkudav@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2668464 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
5339bd3466
commit
69bb38f606
@@ -59,10 +59,10 @@ void nvgpu_read_support_gpu_tools(struct gk20a *g)
|
|||||||
np = nvgpu_get_node(g);
|
np = nvgpu_get_node(g);
|
||||||
ret = of_property_read_u32(np, "support-gpu-tools", &val);
|
ret = of_property_read_u32(np, "support-gpu-tools", &val);
|
||||||
if (ret != 0) {
|
if (ret != 0) {
|
||||||
nvgpu_info(g, "Missing support-gpu-tools property, ret =%d", ret);
|
|
||||||
/* The debugger/profiler support should be enabled by default.
|
/* The debugger/profiler support should be enabled by default.
|
||||||
* So, set support_gpu_tools to 1 even if the property is missing. */
|
* So, set support_gpu_tools to 1 even if the property is missing. */
|
||||||
g->support_gpu_tools = 1;
|
g->support_gpu_tools = 1;
|
||||||
|
nvgpu_log_info(g, "GPU tools support enabled by default");
|
||||||
} else {
|
} else {
|
||||||
if (val != 0U) {
|
if (val != 0U) {
|
||||||
g->support_gpu_tools = 1;
|
g->support_gpu_tools = 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user