gpu: nvgpu: Enable debug printing on boot

Enable the log.h debug printing to print log messages on
boot based on the NVGPU_DEFAULT_DBG_MASK define. Previously
this only affected the legacy gk20a_dbg() function which
is being slowly phased out.

Change-Id: I74caed3bcdeec5481fb34e3151cfbc1acaabf233
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Reviewed-on: http://git-master/r/1505922
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Alex Waterman
2017-06-20 12:52:23 -07:00
committed by mobile promotions
parent f78d8c116c
commit 476b84ea86

View File

@@ -882,6 +882,7 @@ static int gk20a_probe(struct platform_device *dev)
set_gk20a(dev, gk20a); set_gk20a(dev, gk20a);
gk20a->dev = &dev->dev; gk20a->dev = &dev->dev;
gk20a->log_mask = NVGPU_DEFAULT_DBG_MASK;
nvgpu_kmem_init(gk20a); nvgpu_kmem_init(gk20a);