mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 17:36:20 +03:00
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:
committed by
mobile promotions
parent
88256dd9cc
commit
beeeb1786b
@@ -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) {
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
*/
|
||||
|
||||
#include <unit/io.h>
|
||||
#include <unit/core.h>
|
||||
#include <unit/unit.h>
|
||||
#include <unit/unit-requirement-ids.h>
|
||||
|
||||
@@ -1027,6 +1028,11 @@ static int test_pd_cache_env_init(struct unit_module *m,
|
||||
{
|
||||
nvgpu_set_enabled(g, NVGPU_MM_UNIFIED_MEMORY, true);
|
||||
|
||||
g->log_mask = 0;
|
||||
if (verbose_lvl(m) >= 1) {
|
||||
g->log_mask = gpu_dbg_pd_cache;
|
||||
}
|
||||
|
||||
return UNIT_SUCCESS;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user