mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 09:12:24 +03:00
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>
This commit is contained in:
committed by
mobile promotions
parent
4feb078717
commit
bad0572cb1
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user