summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/gr_gk20a.h
diff options
context:
space:
mode:
authorVinod G <vinodg@nvidia.com>2018-08-29 15:32:25 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2018-08-31 21:57:23 -0400
commitf187e0bf442c3b0a08c46b21196f06a18c8220a0 (patch)
tree48820c076f6ab4a2bad6ab6053d26293c99326c3 /drivers/gpu/nvgpu/gk20a/gr_gk20a.h
parentb25d5d86caa049201ddcea77cf1a733a85090698 (diff)
gpu: nvgpu: Move SM_MASK_TYPE setting to TSG level
Moved the SM_MASK_TYPE variable from GR to TSG struct. SM error registers are context based. In dbg_session IOCTL to SET_SM_MASK_TYPE, kernel code iterate the TSG associated with first channel and set the mask_type to that context. Bug 200412641 Change-Id: Ic91944037ad2447f403b4803d5266ae6250ba4c9 Signed-off-by: Vinod G <vinodg@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1809322 Reviewed-by: svc-misra-checker <svc-misra-checker@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gr_gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gr_gk20a.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gr_gk20a.h b/drivers/gpu/nvgpu/gk20a/gr_gk20a.h
index 0d32cca3..303e1f53 100644
--- a/drivers/gpu/nvgpu/gk20a/gr_gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/gr_gk20a.h
@@ -420,11 +420,6 @@ struct gr_gk20a {
420 u32 no_of_sm; 420 u32 no_of_sm;
421 struct sm_info *sm_to_cluster; 421 struct sm_info *sm_to_cluster;
422 422
423#define NVGPU_SM_EXCEPTION_TYPE_MASK_NONE (0x0U)
424#define NVGPU_SM_EXCEPTION_TYPE_MASK_FATAL (0x1U << 0)
425 u32 sm_exception_mask_type;
426 u32 sm_exception_mask_refcount;
427
428#if defined(CONFIG_GK20A_CYCLE_STATS) 423#if defined(CONFIG_GK20A_CYCLE_STATS)
429 struct nvgpu_mutex cs_lock; 424 struct nvgpu_mutex cs_lock;
430 struct gk20a_cs_snapshot *cs_data; 425 struct gk20a_cs_snapshot *cs_data;