gpu: nvgpu: fixing unit tests for ga10b

- Add support for unit tests to run on orin platform.

JIRA NVGPU-9909 

Change-Id: I60a059840fd0d2733b0a1f2b3c1f722f8616868e
Signed-off-by: srajum <srajum@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2892228
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
Reviewed-by: svc-mobile-misra <svc-mobile-misra@nvidia.com>
Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com>
Reviewed-by: Dinesh T <dt@nvidia.com>
Reviewed-by: Ankur Kishore <ankkishore@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
srajum
2023-04-21 17:32:23 +05:30
committed by mobile promotions
parent b2345cd01a
commit 53941baa93

View File

@@ -1,7 +1,7 @@
/*
* GR MANAGER
*
* Copyright (c) 2020-2022, NVIDIA CORPORATION. All rights reserved.
* Copyright (c) 2020-2023, NVIDIA CORPORATION. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
@@ -489,8 +489,9 @@ u32 nvgpu_grmgr_get_gr_gpc_phys_id(struct gk20a *g, u32 gr_instance_id,
gpu_instance = &g->mig.gpu_instance[gpu_instance_id];
gr_syspipe = &gpu_instance->gr_syspipe;
nvgpu_assert(gpc_local_id < gr_syspipe->num_gpc);
#ifndef __NVGPU_UNIT_TEST_
nvgpu_assert(gpc_local_id < gr_syspipe->num_gpc);
#endif
nvgpu_log(g, gpu_dbg_mig,
"gpu_instance_id[%u] gpc_local_id[%u] physical_id[%u]",
gpu_instance_id, gpc_local_id,