From 9aa7de15c2a644e9c7e9c157e49087e66d4ac3d0 Mon Sep 17 00:00:00 2001 From: Peter Daifuku Date: Wed, 31 Aug 2016 17:04:56 -0700 Subject: gpu: nvgpu: vgpu: cyclestat snapshot support Add support for cyclestats snapshots in the virtual case Bug 1700143 JIRA EVLR-278 Change-Id: I376a8804d57324f43eb16452d857a3b7bb0ecc90 Signed-off-by: Peter Daifuku Reviewed-on: http://git-master/r/1211547 GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom --- include/linux/tegra_vgpu.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'include/linux/tegra_vgpu.h') diff --git a/include/linux/tegra_vgpu.h b/include/linux/tegra_vgpu.h index fdab9b06..be8b9ad1 100644 --- a/include/linux/tegra_vgpu.h +++ b/include/linux/tegra_vgpu.h @@ -97,6 +97,7 @@ enum { TEGRA_VGPU_CMD_SET_POWERGATE = 60, TEGRA_VGPU_CMD_SET_GPU_CLK_RATE = 61, TEGRA_VGPU_CMD_GET_CONSTANTS = 62, + TEGRA_VGPU_CMD_CHANNEL_CYCLESTATS_SNAPSHOT = 63, }; struct tegra_vgpu_connect_params { @@ -437,6 +438,15 @@ struct tegra_vgpu_constants_params { u16 gpc_tpc_mask[TEGRA_VGPU_MAX_GPC_COUNT]; }; +struct tegra_vgpu_channel_cyclestats_snapshot_params { + u64 handle; + u32 perfmon_start; + u32 perfmon_count; + u32 buf_info; /* client->srvr: get ptr; srvr->client: num pending */ + u8 subcmd; + u8 hw_overflow; +}; + struct tegra_vgpu_cmd_msg { u32 cmd; int ret; @@ -481,6 +491,7 @@ struct tegra_vgpu_cmd_msg { struct tegra_vgpu_set_powergate_params set_powergate; 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; char padding[192]; } params; }; -- cgit v1.2.2