gpu: nvgpu: unit: use verbose_lvl in gmmu tests

Using the new verbose_lvl function, the gmmu tests can now enable the
proper log mask for debugging purposes.

JIRA NVGPU-2975

Change-Id: I666f14f1e49f1d1e5c213a96eb745a11ed44ba33
Signed-off-by: Nicolas Benech <nbenech@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/2085059
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
Reviewed-by: svc-mobile-misra <svc-mobile-misra@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Philip Elcan <pelcan@nvidia.com>
Reviewed-by: Alex Waterman <alexw@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Nicolas Benech
2019-03-29 11:24:57 -04:00
committed by mobile promotions
parent 88256dd9cc
commit beeeb1786b
2 changed files with 8 additions and 1 deletions

View File

@@ -21,6 +21,7 @@
*/
#include <unit/io.h>
#include <unit/core.h>
#include <unit/unit.h>
#include <unit/unit-requirement-ids.h>
@@ -344,7 +345,7 @@ static int init_mm(struct unit_module *m, struct gk20a *g)
static int test_nvgpu_gmmu_init(struct unit_module *m,
struct gk20a *g, void *args)
{
u64 debug_level = (u64) args;
int debug_level = verbose_lvl(m);
g->log_mask = 0;
if (debug_level >= 1) {