mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 02:22:34 +03:00
gpu: nvgpu: mc: address code inspection gaps
Address following issues uncovered during inspection: 1. Remove the doxygen comment from nvgpu_wait_for_deferred_interrupts definition. 2. Use NVGPU_MC_INTR_STALLING instead of hardcoding the index. 3. Define doxygen groups NVGPU_MC_UNIT_ENUMS, NVGPU_MC_INTR_TYPE_DEFINES, NVGPU_MC_INTR_UNIT_DEFINES and NVGPU_MC_INTR_ENABLE_DEFINES. 4. Update the doxygen comments. 5. Fix the cleanup, typo in the description of the test test_wait_for_deferred_interrupts. JIRA NVGPU-4795 Change-Id: Ifc6756832aabf9dd42ee174eb1373495e6d38c86 Signed-off-by: Sagar Kamble <skamble@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2287627 Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
Alex Waterman
parent
d794ec926c
commit
57f3968cb9
@@ -784,6 +784,9 @@ int test_wait_for_deferred_interrupts(struct unit_module *m, struct gk20a *g,
|
||||
nvgpu_atomic_set(&g->mc.sw_irq_nonstall_pending, 1);
|
||||
nvgpu_wait_for_deferred_interrupts(g);
|
||||
|
||||
/* disable the fault injection */
|
||||
nvgpu_posix_enable_fault_injection(cond_fi, false, 0);
|
||||
|
||||
return UNIT_SUCCESS;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user