diff options
author | Nitin Kumbhar <nkumbhar@nvidia.com> | 2018-07-04 13:28:31 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-07-06 10:35:50 -0400 |
commit | 0297eed338f9d164a20c1b9224dac7138e152786 (patch) | |
tree | 59f94ca592eff946b8cdb1c4f4c42f7e182db4fc /drivers/gpu/nvgpu/os | |
parent | 7c494c83cc7de9696cc931777a22d0d486b536c8 (diff) |
gpu: nvgpu: set NVGPU_DEFAULT_DBG_MASK for dgpu
During probe of the driver, set g->log_mask to the default
value of log_mask i.e. NVGPU_DEFAULT_DBG_MASK.
Bug 1987855
Change-Id: Ia92fff2427e10f4fa9828b7b8d95f8f7b0276915
Signed-off-by: Nitin Kumbhar <nkumbhar@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1770805
Reviewed-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Vijayakumar Subbu <vsubbu@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/os')
-rw-r--r-- | drivers/gpu/nvgpu/os/linux/pci.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/os/linux/pci.c b/drivers/gpu/nvgpu/os/linux/pci.c index 205986ec..f62dacab 100644 --- a/drivers/gpu/nvgpu/os/linux/pci.c +++ b/drivers/gpu/nvgpu/os/linux/pci.c | |||
@@ -649,6 +649,9 @@ static int nvgpu_pci_probe(struct pci_dev *pdev, | |||
649 | hash_init(l->ecc_sysfs_stats_htable); | 649 | hash_init(l->ecc_sysfs_stats_htable); |
650 | 650 | ||
651 | g = &l->g; | 651 | g = &l->g; |
652 | |||
653 | g->log_mask = NVGPU_DEFAULT_DBG_MASK; | ||
654 | |||
652 | nvgpu_init_gk20a(g); | 655 | nvgpu_init_gk20a(g); |
653 | 656 | ||
654 | nvgpu_kmem_init(g); | 657 | nvgpu_kmem_init(g); |