gpu: nvgpu: update nvgpu_(err/ecc) to support nvgpu-next errors

Update nvgpu_err and nvgpu_ecc units to support nvgpu-next errors.

Jira NVGPU-5286

Change-Id: Iaa36c408a46aec163ba3e375bb7c363aa96bdc8d
Signed-off-by: Antony Clince Alex <aalex@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2407382
Reviewed-by: automaticguardword <automaticguardword@nvidia.com>
Reviewed-by: Rajesh Devaraj <rdevaraj@nvidia.com>
Reviewed-by: Deepak Nibade <dnibade@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:
Antony Clince Alex
2020-09-02 16:29:17 +05:30
committed by Alex Waterman
parent db3764511b
commit f5f9cd9cba
2 changed files with 7 additions and 0 deletions

View File

@@ -172,6 +172,9 @@ struct nvgpu_ecc {
struct nvgpu_ecc_stat **sm_icache_ecc_corrected_err_count;
/** SM icache uncorrected error count. */
struct nvgpu_ecc_stat **sm_icache_ecc_uncorrected_err_count;
#if defined(CONFIG_NVGPU_NON_FUSA) && defined(CONFIG_NVGPU_NEXT)
#include "include/nvgpu/gr/nvgpu_next_gr_ecc.h"
#endif
/** GCC l1.5-cache corrected error count. */
struct nvgpu_ecc_stat *gcc_l15_ecc_corrected_err_count;

View File

@@ -704,4 +704,8 @@ void nvgpu_report_mmu_err(struct gk20a *g, u32 hw_unit,
void gr_intr_report_ctxsw_error(struct gk20a *g, u32 err_type, u32 chid,
u32 mailbox_value);
#if defined(CONFIG_NVGPU_HAL_NON_FUSA) && defined(CONFIG_NVGPU_NEXT)
#include "include/nvgpu/nvgpu_next_err.h"
#endif
#endif /* NVGPU_NVGPU_ERR_H */