mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 01:50:07 +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)
|
int gk20a_init_gpu_characteristics(struct gk20a *g)
|
||||||
{
|
{
|
||||||
struct nvgpu_gpu_characteristics *gpu = &g->gpu_characteristics;
|
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->L2_cache_size = g->ops.ltc.determine_L2_size_bytes(g);
|
||||||
gpu->on_board_video_memory_size = 0; /* integrated GPU */
|
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->map_buffer_batch_limit = 256;
|
||||||
|
|
||||||
|
gpu->max_freq = platform->clk_round_rate(g->dev, UINT_MAX);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* NVGPU Public Interface Header
|
* NVGPU Public Interface Header
|
||||||
*
|
*
|
||||||
* Copyright (c) 2011-2015, NVIDIA CORPORATION. All rights reserved.
|
* Copyright (c) 2011-2016, NVIDIA CORPORATION. All rights reserved.
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify it
|
* This program is free software; you can redistribute it and/or modify it
|
||||||
* under the terms and conditions of the GNU General Public License,
|
* under the terms and conditions of the GNU General Public License,
|
||||||
@@ -179,6 +179,8 @@ struct nvgpu_gpu_characteristics {
|
|||||||
* num_maps */
|
* num_maps */
|
||||||
__u32 map_buffer_batch_limit;
|
__u32 map_buffer_batch_limit;
|
||||||
|
|
||||||
|
__u64 max_freq;
|
||||||
|
|
||||||
/* Notes:
|
/* Notes:
|
||||||
- This struct can be safely appended with new fields. However, always
|
- This struct can be safely appended with new fields. However, always
|
||||||
keep the structure size multiple of 8 and make sure that the binary
|
keep the structure size multiple of 8 and make sure that the binary
|
||||||
|
|||||||
Reference in New Issue
Block a user