diff options
author | sujeet baranwal <sbaranwal@nvidia.com> | 2015-03-06 14:55:36 -0500 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2015-04-04 21:58:05 -0400 |
commit | 2155dfeaba1714bb00cb86af090aa056aec3acfd (patch) | |
tree | 545b791cbf1271750f8728e1e5ec30d107a4ef7b /drivers/gpu/nvgpu/gk20a/gk20a.c | |
parent | 895675e1d5790e2361b22edb50d702f7dd9a8edd (diff) |
gpu: nvgpu: Gpu characterstics enhancement
New members are added in nvgpu_gpu_characterstics to export more
information required specially from CUDA tools.
Change-Id: I907f3bcbd272405a13f47ef6236bc2cff01c6c80
Signed-off-by: Sujeet Baranwal <sbaranwal@nvidia.com>
Reviewed-on: http://git-master/r/679202
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a.c | 10 |
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; |