summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/gk20a.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gk20a.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.c b/drivers/gpu/nvgpu/gk20a/gk20a.c
index 3389aca5..84fc3e93 100644
--- a/drivers/gpu/nvgpu/gk20a/gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/gk20a.c
@@ -1927,6 +1927,8 @@ int gk20a_init_gpu_characteristics(struct gk20a *g)
1927 gpu->on_board_video_memory_size = 0; /* integrated GPU */ 1927 gpu->on_board_video_memory_size = 0; /* integrated GPU */
1928 1928
1929 gpu->num_gpc = g->gr.gpc_count; 1929 gpu->num_gpc = g->gr.gpc_count;
1930 gpu->max_gpc_count = g->gr.gpc_count;
1931
1930 gpu->num_tpc_per_gpc = g->gr.max_tpc_per_gpc_count; 1932 gpu->num_tpc_per_gpc = g->gr.max_tpc_per_gpc_count;
1931 1933
1932 gpu->bus_type = NVGPU_GPU_BUS_TYPE_AXI; /* always AXI for now */ 1934 gpu->bus_type = NVGPU_GPU_BUS_TYPE_AXI; /* always AXI for now */
@@ -1962,9 +1964,15 @@ int gk20a_init_gpu_characteristics(struct gk20a *g)
1962 gpu->dbg_gpu_ioctl_nr_last = NVGPU_DBG_GPU_IOCTL_LAST; 1964 gpu->dbg_gpu_ioctl_nr_last = NVGPU_DBG_GPU_IOCTL_LAST;
1963 gpu->ioctl_channel_nr_last = NVGPU_IOCTL_CHANNEL_LAST; 1965 gpu->ioctl_channel_nr_last = NVGPU_IOCTL_CHANNEL_LAST;
1964 gpu->as_ioctl_nr_last = NVGPU_AS_IOCTL_LAST; 1966 gpu->as_ioctl_nr_last = NVGPU_AS_IOCTL_LAST;
1965
1966 gpu->gpu_va_bit_count = 40; 1967 gpu->gpu_va_bit_count = 40;
1967 1968
1969 memcpy(gpu->chipname, g->ops.name, strlen(g->ops.name));
1970 gpu->max_fbps_count = g->ops.gr.get_max_fbps_count(g);
1971 gpu->fbp_en_mask = g->ops.gr.get_fbp_en_mask(g);
1972 gpu->max_ltc_per_fbp = g->ops.gr.get_max_ltc_per_fbp(g);
1973 gpu->max_lts_per_ltc = g->ops.gr.get_max_lts_per_ltc(g);
1974 g->ops.gr.get_rop_l2_en_mask(g);
1975
1968 gpu->reserved = 0; 1976 gpu->reserved = 0;
1969 1977
1970 return 0; 1978 return 0;