mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: add CONFIG_NVGPU_RECOVERY
Add CONFIG_NVGPU_RECOVERY in order to conditionally compile recovery code. This code will be removed from safety build when sw quiesce state is implemented, and negative tests are disabled or modified such that they do not expect recovery to happen. Added static inline functions for recovery handlers, when CONFIG_NVGPU_RECOVERY is not defined. These inline functions can later be wired to the sw quiesce functions. Also moved gv11b recovery code to non-fusa, as it will ultimately be removed from safety build. Jira NVGPU-3871 Change-Id: Ia705b059fab6120899c7e15082f2a0f51ff51dc9 Signed-off-by: Thomas Fleury <tfleury@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2166074 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
83e28e54eb
commit
c7b41f106d
@@ -71,7 +71,9 @@
|
||||
#include "hal/fuse/fuse_gm20b.h"
|
||||
#include "hal/fuse/fuse_gp10b.h"
|
||||
#include "hal/fuse/fuse_gp106.h"
|
||||
#ifdef CONFIG_NVGPU_RECOVERY
|
||||
#include "hal/rc/rc_gv11b.h"
|
||||
#endif
|
||||
#include "hal/fifo/fifo_gk20a.h"
|
||||
#include "hal/fifo/fifo_gv11b.h"
|
||||
#include "hal/fifo/fifo_tu104.h"
|
||||
@@ -863,7 +865,9 @@ static const struct gpu_ops tu104_ops = {
|
||||
.init_pbdma_map = gk20a_fifo_init_pbdma_map,
|
||||
.is_preempt_pending = gv11b_fifo_is_preempt_pending,
|
||||
.reset_enable_hw = gv11b_init_fifo_reset_enable_hw,
|
||||
#ifdef CONFIG_NVGPU_RECOVERY
|
||||
.recover = gv11b_fifo_recover,
|
||||
#endif
|
||||
.intr_set_recover_mask = gv11b_fifo_intr_set_recover_mask,
|
||||
.intr_unset_recover_mask = gv11b_fifo_intr_unset_recover_mask,
|
||||
.setup_sw = nvgpu_fifo_setup_sw,
|
||||
|
||||
Reference in New Issue
Block a user