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:
Thomas Fleury
2019-08-01 11:31:29 -04:00
committed by mobile promotions
parent 83e28e54eb
commit c7b41f106d
11 changed files with 88 additions and 8 deletions

View File

@@ -119,7 +119,7 @@ rc:
owner: Seema K
sources: [ hal/rc/rc_gk20a.c,
hal/rc/rc_gk20a.h,
hal/rc/rc_gv11b_fusa.c,
hal/rc/rc_gv11b.c,
hal/rc/rc_gv11b.h ]
fbpa: