mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 01:50:07 +03:00
gpu: nvgpu: address comments from common.rc code inspection CR review
- Move unnecessary headers under recovery flag. - Update doxygen documentation of one API to match the code. Jira NVGPU-6372 Change-Id: I9cf744c8014ea92f18cc10824e9fcaed9aa7d5de Signed-off-by: Shashank Singh <shashsingh@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2527118 (cherry picked from commit cb4b03a3b00321a4c07b3d9cc2768f7183e99c45) Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2531583 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: Rajesh Devaraj <rdevaraj@nvidia.com> Reviewed-by: Vaibhav Kachore <vkachore@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
85efe929ca
commit
57089a1b34
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2011-2020, NVIDIA CORPORATION. All rights reserved.
|
* Copyright (c) 2011-2021, NVIDIA CORPORATION. All rights reserved.
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||||
* copy of this software and associated documentation files (the "Software"),
|
* copy of this software and associated documentation files (the "Software"),
|
||||||
@@ -23,17 +23,18 @@
|
|||||||
#include <nvgpu/log.h>
|
#include <nvgpu/log.h>
|
||||||
#include <nvgpu/gk20a.h>
|
#include <nvgpu/gk20a.h>
|
||||||
#include <nvgpu/fifo.h>
|
#include <nvgpu/fifo.h>
|
||||||
|
#ifdef CONFIG_NVGPU_RECOVERY
|
||||||
#include <nvgpu/engines.h>
|
#include <nvgpu/engines.h>
|
||||||
#include <nvgpu/debug.h>
|
#include <nvgpu/debug.h>
|
||||||
|
#include <nvgpu/nvgpu_err.h>
|
||||||
|
#include <nvgpu/gr/gr.h>
|
||||||
|
#include <nvgpu/gr/gr_instances.h>
|
||||||
|
#endif
|
||||||
#include <nvgpu/channel.h>
|
#include <nvgpu/channel.h>
|
||||||
#include <nvgpu/tsg.h>
|
#include <nvgpu/tsg.h>
|
||||||
#include <nvgpu/error_notifier.h>
|
#include <nvgpu/error_notifier.h>
|
||||||
#include <nvgpu/nvgpu_err.h>
|
|
||||||
#include <nvgpu/pbdma_status.h>
|
#include <nvgpu/pbdma_status.h>
|
||||||
#include <nvgpu/debug.h>
|
|
||||||
#include <nvgpu/rc.h>
|
#include <nvgpu/rc.h>
|
||||||
#include <nvgpu/gr/gr.h>
|
|
||||||
#include <nvgpu/gr/gr_instances.h>
|
|
||||||
|
|
||||||
void nvgpu_rc_fifo_recover(struct gk20a *g, u32 eng_bitmask,
|
void nvgpu_rc_fifo_recover(struct gk20a *g, u32 eng_bitmask,
|
||||||
u32 hw_id, bool id_is_tsg,
|
u32 hw_id, bool id_is_tsg,
|
||||||
|
|||||||
@@ -163,8 +163,8 @@ void nvgpu_rc_ctxsw_timeout(struct gk20a *g, u32 eng_bitmask,
|
|||||||
* @param error_notifier [in] Error notifier type to be set.
|
* @param error_notifier [in] Error notifier type to be set.
|
||||||
* @param pbdma_status [in] Pointer to PBDMA status info.
|
* @param pbdma_status [in] Pointer to PBDMA status info.
|
||||||
*
|
*
|
||||||
* Do PBDMA fault recovery. For safety, just set error notifier as per
|
* Do PBDMA fault recovery. Set error notifier as per \a error_notifier and call
|
||||||
* \a error_notifier and print warning if quiesce is not triggered already.
|
* \a nvgpu_rc_tsg_and_related_engines to do the recovery.
|
||||||
*/
|
*/
|
||||||
void nvgpu_rc_pbdma_fault(struct gk20a *g, u32 pbdma_id, u32 error_notifier,
|
void nvgpu_rc_pbdma_fault(struct gk20a *g, u32 pbdma_id, u32 error_notifier,
|
||||||
struct nvgpu_pbdma_status_info *pbdma_status);
|
struct nvgpu_pbdma_status_info *pbdma_status);
|
||||||
|
|||||||
Reference in New Issue
Block a user