From bad0572cb1144ba08659aed88c311ae02c72c21c Mon Sep 17 00:00:00 2001 From: Aparna Das Date: Wed, 21 Dec 2016 12:35:08 -0800 Subject: 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 Reviewed-on: http://git-master/r/1275045 (cherry picked from commit 5a6c1de1e6997bfd803b4b95b3e44e282ba32f67) Reviewed-on: http://git-master/r/1283279 Reviewed-by: mobile promotions Tested-by: mobile promotions --- include/linux/tegra_vgpu.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/linux/tegra_vgpu.h') 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 { TEGRA_VGPU_CMD_GET_CONSTANTS = 62, TEGRA_VGPU_CMD_CHANNEL_CYCLESTATS_SNAPSHOT = 63, TEGRA_VGPU_CMD_TSG_OPEN = 64, + TEGRA_VGPU_CMD_GET_GPU_LOAD = 65, }; struct tegra_vgpu_connect_params { @@ -454,6 +455,10 @@ struct tegra_vgpu_channel_cyclestats_snapshot_params { u8 hw_overflow; }; +struct tegra_vgpu_gpu_load_params { + u32 load; +}; + struct tegra_vgpu_cmd_msg { u32 cmd; int ret; @@ -500,6 +505,7 @@ struct tegra_vgpu_cmd_msg { struct tegra_vgpu_gpu_clk_rate_params gpu_clk_rate; struct tegra_vgpu_constants_params constants; struct tegra_vgpu_channel_cyclestats_snapshot_params cyclestats_snapshot; + struct tegra_vgpu_gpu_load_params gpu_load; char padding[192]; } params; }; -- cgit v1.2.2