mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: add max freq to gpu characteristics
Bug 200097029 Change-Id: Id63dad1629b1d1919cbbfb20b0cb85d4855f526d Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: http://git-master/r/1000724 Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
This commit is contained in:
committed by
Terje Bergstrom
parent
f0a9ce0469
commit
8d311e5a91
@@ -1962,6 +1962,7 @@ int gk20a_do_unidle(void)
|
||||
int gk20a_init_gpu_characteristics(struct gk20a *g)
|
||||
{
|
||||
struct nvgpu_gpu_characteristics *gpu = &g->gpu_characteristics;
|
||||
struct gk20a_platform *platform = platform_get_drvdata(g->dev);
|
||||
|
||||
gpu->L2_cache_size = g->ops.ltc.determine_L2_size_bytes(g);
|
||||
gpu->on_board_video_memory_size = 0; /* integrated GPU */
|
||||
@@ -2029,6 +2030,8 @@ int gk20a_init_gpu_characteristics(struct gk20a *g)
|
||||
|
||||
gpu->map_buffer_batch_limit = 256;
|
||||
|
||||
gpu->max_freq = platform->clk_round_rate(g->dev, UINT_MAX);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user