From 69bb38f606e3539d4ee4797697ba8b7695aeea5b Mon Sep 17 00:00:00 2001 From: Tejal Kudav Date: Fri, 11 Feb 2022 05:50:53 +0000 Subject: [PATCH] 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 Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2668464 Tested-by: mobile promotions Reviewed-by: mobile promotions --- drivers/gpu/nvgpu/os/linux/driver_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/nvgpu/os/linux/driver_common.c b/drivers/gpu/nvgpu/os/linux/driver_common.c index 4623aafa2..b403d9b24 100644 --- a/drivers/gpu/nvgpu/os/linux/driver_common.c +++ b/drivers/gpu/nvgpu/os/linux/driver_common.c @@ -59,10 +59,10 @@ void nvgpu_read_support_gpu_tools(struct gk20a *g) np = nvgpu_get_node(g); ret = of_property_read_u32(np, "support-gpu-tools", &val); if (ret != 0) { - nvgpu_info(g, "Missing support-gpu-tools property, ret =%d", ret); /* The debugger/profiler support should be enabled by default. * So, set support_gpu_tools to 1 even if the property is missing. */ g->support_gpu_tools = 1; + nvgpu_log_info(g, "GPU tools support enabled by default"); } else { if (val != 0U) { g->support_gpu_tools = 1;