mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 09:57:08 +03:00
gpu: nvgpu: vgpu: perfbuffer support
Add vgpu support for ModeE perfbuffers - VM allocation is handled by the kernel, with final mapping handled by the RM server - Enabling/disabling the perfbuffer is handled by the RM server Bug 1880196 JIRA EVLR-1074 Change-Id: Ifbeb5ede6b07e2e112b930c602c22b66a58ac920 Signed-off-by: Peter Daifuku <pdaifuku@nvidia.com> Reviewed-on: https://git-master/r/1506747 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
cadd5120d3
commit
f7e37e6847
@@ -104,6 +104,7 @@ enum {
|
||||
TEGRA_VGPU_CMD_GET_GPU_FREQ_TABLE = 70,
|
||||
TEGRA_VGPU_CMD_CAP_GPU_CLK_RATE = 71,
|
||||
TEGRA_VGPU_CMD_PROF_MGT = 72,
|
||||
TEGRA_VGPU_CMD_PERFBUF_MGT = 73,
|
||||
TEGRA_VGPU_CMD_GET_TIMESTAMPS_ZIPPER = 74,
|
||||
};
|
||||
|
||||
@@ -488,6 +489,12 @@ struct tegra_vgpu_prof_mgt_params {
|
||||
u32 mode;
|
||||
};
|
||||
|
||||
struct tegra_vgpu_perfbuf_mgt_params {
|
||||
u64 vm_handle;
|
||||
u64 offset;
|
||||
u32 size;
|
||||
};
|
||||
|
||||
#define TEGRA_VGPU_GPU_FREQ_TABLE_SIZE 25
|
||||
|
||||
struct tegra_vgpu_get_gpu_freq_table_params {
|
||||
@@ -545,6 +552,7 @@ struct tegra_vgpu_cmd_msg {
|
||||
struct tegra_vgpu_suspend_resume_contexts resume_contexts;
|
||||
struct tegra_vgpu_clear_sm_error_state clear_sm_error_state;
|
||||
struct tegra_vgpu_prof_mgt_params prof_management;
|
||||
struct tegra_vgpu_perfbuf_mgt_params perfbuf_management;
|
||||
struct tegra_vgpu_get_timestamps_zipper_params get_timestamps_zipper;
|
||||
struct tegra_vgpu_get_gpu_freq_table_params get_gpu_freq_table;
|
||||
char padding[192];
|
||||
|
||||
Reference in New Issue
Block a user