From 48d17e9c53d18c2d982815333d9f2a04c0f6deb6 Mon Sep 17 00:00:00 2001 From: Sagar Kamble Date: Fri, 22 Oct 2021 23:40:33 +0530 Subject: [PATCH] gpu: nvgpu: fix the unit test traceability gk20a_tsg_unbind_channel_check_hw_next was not added to Targets in unit test specification. Add it. __attribute__ in debug.h is captured by Doxygen as function with no tests. However it is not really a function and applies to non-fusa function so skip it in Doxygen. JIRA NVGPU-7211 Change-Id: I2adadaebbf4e43768eb408dd10aaa20b1e13eccc Signed-off-by: Sagar Kamble Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2615256 (cherry picked from commit e829afb55a17dc0dacf17c71633f5689324171d7) Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2623629 Reviewed-by: svcacv Reviewed-by: Vaibhav Kachore Reviewed-by: mobile promotions Tested-by: mobile promotions GVS: Gerrit_Virtual_Submit --- drivers/gpu/nvgpu/include/nvgpu/debug.h | 6 +++++- userspace/units/fifo/tsg/nvgpu-tsg.h | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/nvgpu/include/nvgpu/debug.h b/drivers/gpu/nvgpu/include/nvgpu/debug.h index 65f8199b0..7ec1e9313 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/debug.h +++ b/drivers/gpu/nvgpu/include/nvgpu/debug.h @@ -1,7 +1,7 @@ /* * GK20A Debug functionality * - * Copyright (c) 2014-2019, NVIDIA CORPORATION. All rights reserved. + * Copyright (c) 2014-2021, 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"), @@ -30,6 +30,8 @@ struct gk20a; struct gpu_ops; +/** @cond DOXYGEN_SHOULD_SKIP_THIS */ + struct nvgpu_debug_context { void (*fn)(void *ctx, const char *str); void *ctx; @@ -63,4 +65,6 @@ static inline void gk20a_debug_init(struct gk20a *g, const char *debugfs_symlink static inline void gk20a_debug_deinit(struct gk20a *g) {} #endif +/** @endcond DOXYGEN_SHOULD_SKIP_THIS */ + #endif /* NVGPU_DEBUG_H */ diff --git a/userspace/units/fifo/tsg/nvgpu-tsg.h b/userspace/units/fifo/tsg/nvgpu-tsg.h index 5d8d0db9d..6a271b961 100644 --- a/userspace/units/fifo/tsg/nvgpu-tsg.h +++ b/userspace/units/fifo/tsg/nvgpu-tsg.h @@ -201,7 +201,7 @@ int test_tsg_release(struct unit_module *m, * * Test Type: Feature * - * Targets: nvgpu_tsg_unbind_channel_check_hw_state + * Targets: nvgpu_tsg_unbind_channel_check_hw_state, gk20a_tsg_unbind_channel_check_hw_next * * Input: test_fifo_init_support() run for this GPU *