diff options
Diffstat (limited to 'drivers/gpu/nvgpu')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gk20a.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gk20a.c b/drivers/gpu/nvgpu/gk20a/gk20a.c index 1000eba2..4ddb244b 100644 --- a/drivers/gpu/nvgpu/gk20a/gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/gk20a.c | |||
@@ -1962,6 +1962,7 @@ int gk20a_do_unidle(void) | |||
1962 | int gk20a_init_gpu_characteristics(struct gk20a *g) | 1962 | int gk20a_init_gpu_characteristics(struct gk20a *g) |
1963 | { | 1963 | { |
1964 | struct nvgpu_gpu_characteristics *gpu = &g->gpu_characteristics; | 1964 | struct nvgpu_gpu_characteristics *gpu = &g->gpu_characteristics; |
1965 | struct gk20a_platform *platform = platform_get_drvdata(g->dev); | ||
1965 | 1966 | ||
1966 | gpu->L2_cache_size = g->ops.ltc.determine_L2_size_bytes(g); | 1967 | gpu->L2_cache_size = g->ops.ltc.determine_L2_size_bytes(g); |
1967 | gpu->on_board_video_memory_size = 0; /* integrated GPU */ | 1968 | gpu->on_board_video_memory_size = 0; /* integrated GPU */ |
@@ -2029,6 +2030,8 @@ int gk20a_init_gpu_characteristics(struct gk20a *g) | |||
2029 | 2030 | ||
2030 | gpu->map_buffer_batch_limit = 256; | 2031 | gpu->map_buffer_batch_limit = 256; |
2031 | 2032 | ||
2033 | gpu->max_freq = platform->clk_round_rate(g->dev, UINT_MAX); | ||
2034 | |||
2032 | return 0; | 2035 | return 0; |
2033 | } | 2036 | } |
2034 | 2037 | ||