mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 02:22:34 +03:00
gpu: nvgpu: compile-out unused apis from safety build
This patch does the following changes: - Compiles-out unused error reporting APIs and the related data structures from safety build. For this purpose, it introduces the new flag: CONFIG_NVGPU_INTR_DEBUG - Updates nvgpu_report_err_to_sdl() API with one more argument, hw_unit_id. This aids in finding whether an error to be reported is corrected or uncorrected from LUT. - Triggers SW quiesce, if an uncorrected error is reported to Safety_Services, in safety build. - Renames files in cic folder by replacing gv11b with ga10b, since error reporting for gv11b is not supported in dev-main. JIRA NVGPU-8002 Change-Id: Ic01e73b0208252abba1f615a2c98d770cdf41ca4 Signed-off-by: Rajesh Devaraj <rdevaraj@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2668466 Reviewed-by: Tejal Kudav <tkudav@nvidia.com> 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: Vaibhav Kachore <vkachore@nvidia.com> GVS: Gerrit_Virtual_Submit
This commit is contained in:
committed by
mobile promotions
parent
81c220b95b
commit
0699220b85
@@ -28,7 +28,7 @@
|
||||
#include <nvgpu/ptimer.h>
|
||||
#include <nvgpu/cic_mon.h>
|
||||
#include <hal/ptimer/ptimer_gk20a.h>
|
||||
#include <hal/cic/mon/cic_gv11b.h>
|
||||
#include <hal/cic/mon/cic_ga10b.h>
|
||||
#include <nvgpu/hw/gk20a/hw_timer_gk20a.h>
|
||||
|
||||
#include "nvgpu-ptimer.h"
|
||||
@@ -89,7 +89,7 @@ int test_setup_env(struct unit_module *m,
|
||||
/* Setup HAL */
|
||||
g->ops.ptimer.isr = gk20a_ptimer_isr;
|
||||
|
||||
g->ops.cic_mon.init = gv11b_cic_mon_init;
|
||||
g->ops.cic_mon.init = ga10b_cic_mon_init;
|
||||
|
||||
/* Create ptimer register space */
|
||||
if (nvgpu_posix_io_add_reg_space(g, PTIMER_REG_SPACE_START,
|
||||
|
||||
Reference in New Issue
Block a user