From b1d303685b384d58064d8b18ec97e1302bcbba88 Mon Sep 17 00:00:00 2001 From: Lakshmanan M Date: Wed, 10 May 2017 14:22:15 +0530 Subject: gpu: nvgpu: Add gr_t19x support for gv11b ECC This CL covers the following modification, 1) Added gr_t19x support for gv11b ECC 2) Modified the gp10b platform config for gv11b sysfs support JIRA GPUT19X-85 JIRA GPUT19X-104 JIRA GPUT19X-100 JIRA GPUT19X-103 Bug 1825948 Bug 1825962 Bug 1775457 Change-Id: I0bf13f80a73cc2184147230d098e89a517554c01 Signed-off-by: Lakshmanan M Reviewed-on: http://git-master/r/1478952 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/gp10b/gr_gp10b.h | 48 +++++++++++++++++++------------------- 1 file changed, 24 insertions(+), 24 deletions(-) (limited to 'drivers/gpu/nvgpu/gp10b/gr_gp10b.h') diff --git a/drivers/gpu/nvgpu/gp10b/gr_gp10b.h b/drivers/gpu/nvgpu/gp10b/gr_gp10b.h index c4c206c3..588a7d8f 100644 --- a/drivers/gpu/nvgpu/gp10b/gr_gp10b.h +++ b/drivers/gpu/nvgpu/gp10b/gr_gp10b.h @@ -22,6 +22,12 @@ struct gpu_ops; +struct gr_gp10b_ecc_stat { + char **names; + u32 *counters; + struct hlist_node hash_node; +}; + enum { PASCAL_CHANNEL_GPFIFO_A = 0xC06F, PASCAL_A = 0xC097, @@ -45,12 +51,6 @@ int gr_gp10b_alloc_buffer(struct vm_gk20a *vm, size_t size, struct nvgpu_mem *mem); void gr_gp10b_create_sysfs(struct device *dev); -struct ecc_stat { - char **names; - u32 *counters; - struct hlist_node hash_node; -}; - struct gr_t18x { struct { u32 preempt_image_size; @@ -69,24 +69,24 @@ struct gr_t18x { } ctx_vars; struct { - struct ecc_stat sm_lrf_single_err_count; - struct ecc_stat sm_lrf_double_err_count; - - struct ecc_stat sm_shm_sec_count; - struct ecc_stat sm_shm_sed_count; - struct ecc_stat sm_shm_ded_count; - - struct ecc_stat tex_total_sec_pipe0_count; - struct ecc_stat tex_total_ded_pipe0_count; - struct ecc_stat tex_unique_sec_pipe0_count; - struct ecc_stat tex_unique_ded_pipe0_count; - struct ecc_stat tex_total_sec_pipe1_count; - struct ecc_stat tex_total_ded_pipe1_count; - struct ecc_stat tex_unique_sec_pipe1_count; - struct ecc_stat tex_unique_ded_pipe1_count; - - struct ecc_stat l2_sec_count; - struct ecc_stat l2_ded_count; + struct gr_gp10b_ecc_stat sm_lrf_single_err_count; + struct gr_gp10b_ecc_stat sm_lrf_double_err_count; + + struct gr_gp10b_ecc_stat sm_shm_sec_count; + struct gr_gp10b_ecc_stat sm_shm_sed_count; + struct gr_gp10b_ecc_stat sm_shm_ded_count; + + struct gr_gp10b_ecc_stat tex_total_sec_pipe0_count; + struct gr_gp10b_ecc_stat tex_total_ded_pipe0_count; + struct gr_gp10b_ecc_stat tex_unique_sec_pipe0_count; + struct gr_gp10b_ecc_stat tex_unique_ded_pipe0_count; + struct gr_gp10b_ecc_stat tex_total_sec_pipe1_count; + struct gr_gp10b_ecc_stat tex_total_ded_pipe1_count; + struct gr_gp10b_ecc_stat tex_unique_sec_pipe1_count; + struct gr_gp10b_ecc_stat tex_unique_ded_pipe1_count; + + struct gr_gp10b_ecc_stat l2_sec_count; + struct gr_gp10b_ecc_stat l2_ded_count; } ecc_stats; u32 fecs_feature_override_ecc_val; -- cgit v1.2.2