diff options
author | Aparna Das <aparnad@nvidia.com> | 2016-12-21 15:35:08 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-01-24 19:24:12 -0500 |
commit | bad0572cb1144ba08659aed88c311ae02c72c21c (patch) | |
tree | af05a5541dcff9cfd0c4b2a3a0b4e05f6f935575 /include/linux/tegra_vgpu.h | |
parent | 4feb078717fe7986bc0dfdfbfc3f10e5d1d1fa63 (diff) |
gpu: nvgpu: vgpu: retrieve gpu load
Add support to send command to RM server to retrieve
GPU load.
Bug 200261903
Change-Id: Ie3d0ba7ec91317e9a2911f71613ad78d20f9c1fb
Signed-off-by: Aparna Das <aparnad@nvidia.com>
Reviewed-on: http://git-master/r/1275045
(cherry picked from commit 5a6c1de1e6997bfd803b4b95b3e44e282ba32f67)
Reviewed-on: http://git-master/r/1283279
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'include/linux/tegra_vgpu.h')
-rw-r--r-- | include/linux/tegra_vgpu.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/tegra_vgpu.h b/include/linux/tegra_vgpu.h index 14449242..b83b9669 100644 --- a/include/linux/tegra_vgpu.h +++ b/include/linux/tegra_vgpu.h | |||
@@ -99,6 +99,7 @@ enum { | |||
99 | TEGRA_VGPU_CMD_GET_CONSTANTS = 62, | 99 | TEGRA_VGPU_CMD_GET_CONSTANTS = 62, |
100 | TEGRA_VGPU_CMD_CHANNEL_CYCLESTATS_SNAPSHOT = 63, | 100 | TEGRA_VGPU_CMD_CHANNEL_CYCLESTATS_SNAPSHOT = 63, |
101 | TEGRA_VGPU_CMD_TSG_OPEN = 64, | 101 | TEGRA_VGPU_CMD_TSG_OPEN = 64, |
102 | TEGRA_VGPU_CMD_GET_GPU_LOAD = 65, | ||
102 | }; | 103 | }; |
103 | 104 | ||
104 | struct tegra_vgpu_connect_params { | 105 | struct tegra_vgpu_connect_params { |
@@ -454,6 +455,10 @@ struct tegra_vgpu_channel_cyclestats_snapshot_params { | |||
454 | u8 hw_overflow; | 455 | u8 hw_overflow; |
455 | }; | 456 | }; |
456 | 457 | ||
458 | struct tegra_vgpu_gpu_load_params { | ||
459 | u32 load; | ||
460 | }; | ||
461 | |||
457 | struct tegra_vgpu_cmd_msg { | 462 | struct tegra_vgpu_cmd_msg { |
458 | u32 cmd; | 463 | u32 cmd; |
459 | int ret; | 464 | int ret; |
@@ -500,6 +505,7 @@ struct tegra_vgpu_cmd_msg { | |||
500 | struct tegra_vgpu_gpu_clk_rate_params gpu_clk_rate; | 505 | struct tegra_vgpu_gpu_clk_rate_params gpu_clk_rate; |
501 | struct tegra_vgpu_constants_params constants; | 506 | struct tegra_vgpu_constants_params constants; |
502 | struct tegra_vgpu_channel_cyclestats_snapshot_params cyclestats_snapshot; | 507 | struct tegra_vgpu_channel_cyclestats_snapshot_params cyclestats_snapshot; |
508 | struct tegra_vgpu_gpu_load_params gpu_load; | ||
503 | char padding[192]; | 509 | char padding[192]; |
504 | } params; | 510 | } params; |
505 | }; | 511 | }; |