mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 09:12:24 +03:00
gpu: nvgpu: Add CIC specific debug logging API
Add gpu_dbg_cic bit to log_mask to enable/disable Central Interrupt Controller debug logs. Define CIC specific debug print API with "CIC |" prefix to help grep CIC related logs. NVGPU-6521 Change-Id: I86deee761ad9125001cd48d94b43bb2979174d42 Signed-off-by: Tejal Kudav <tkudav@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2518692 Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: svc_kernel_abi <svc_kernel_abi@nvidia.com> GVS: Gerrit_Virtual_Submit
This commit is contained in:
committed by
mobile promotions
parent
84534a050f
commit
bced5c5785
@@ -1051,6 +1051,11 @@ grmgr:
|
|||||||
include/nvgpu/mig.h,
|
include/nvgpu/mig.h,
|
||||||
include/nvgpu/gops/grmgr.h ]
|
include/nvgpu/gops/grmgr.h ]
|
||||||
|
|
||||||
|
cic:
|
||||||
|
owner: Tejal K
|
||||||
|
safe: yes
|
||||||
|
sources: [ include/nvgpu/nvgpu_cic.h ]
|
||||||
|
|
||||||
##
|
##
|
||||||
## HAL units. Currently they are under common but this needs to change.
|
## HAL units. Currently they are under common but this needs to change.
|
||||||
## We are moving these to a top level directory.
|
## We are moving these to a top level directory.
|
||||||
|
|||||||
@@ -76,5 +76,6 @@ enum nvgpu_log_type {
|
|||||||
#define gpu_dbg_zbc BIT(35) /* Gr ZBC */
|
#define gpu_dbg_zbc BIT(35) /* Gr ZBC */
|
||||||
#define gpu_dbg_vab BIT(36) /* VAB */
|
#define gpu_dbg_vab BIT(36) /* VAB */
|
||||||
#define gpu_dbg_runlists BIT(38) /* Runlist related debugging. */
|
#define gpu_dbg_runlists BIT(38) /* Runlist related debugging. */
|
||||||
|
#define gpu_dbg_cic BIT(39) /* Interrupt Handling debugging. */
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
42
drivers/gpu/nvgpu/include/nvgpu/nvgpu_cic.h
Normal file
42
drivers/gpu/nvgpu/include/nvgpu/nvgpu_cic.h
Normal file
@@ -0,0 +1,42 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 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"),
|
||||||
|
* to deal in the Software without restriction, including without limitation
|
||||||
|
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||||
|
* and/or sell copies of the Software, and to permit persons to whom the
|
||||||
|
* Software is furnished to do so, subject to the following conditions:
|
||||||
|
*
|
||||||
|
* The above copyright notice and this permission notice shall be included in
|
||||||
|
* all copies or substantial portions of the Software.
|
||||||
|
*
|
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
||||||
|
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||||
|
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||||
|
* DEALINGS IN THE SOFTWARE.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef NVGPU_CIC_H
|
||||||
|
#define NVGPU_CIC_H
|
||||||
|
|
||||||
|
#include <nvgpu/log.h>
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @file
|
||||||
|
*
|
||||||
|
* Public structs and APIs exposed by Central Interrupt Controller
|
||||||
|
* (CIC) unit.
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Requires a string literal for the format - notice the string
|
||||||
|
* concatination.
|
||||||
|
*/
|
||||||
|
#define cic_dbg(g, fmt, args...) \
|
||||||
|
nvgpu_log((g), gpu_dbg_cic, "CIC | " fmt, ##args)
|
||||||
|
|
||||||
|
#endif /* NVGPU_CIC_H */
|
||||||
Reference in New Issue
Block a user