From 28093a374bef54b9b68fcb2f00ae7d0529e33a3f Mon Sep 17 00:00:00 2001 From: Richard Zhao Date: Mon, 10 Apr 2017 15:29:36 -0700 Subject: gpu: nvgpu: vgpu: add t19x support - add commit_inst hal ops - add t19x cmds to cmd big union - add t19x vgpu driver and call t19x hal init - get guest channel_base to calculate hw channel id Jira VFND-3796 Change-Id: Ic2431233fd174afc2c84c4794e20552e6e88b1dc Signed-off-by: Richard Zhao Reviewed-on: https://git-master/r/1474715 GVS: Gerrit_Virtual_Submit Reviewed-by: Aingara Paramakuru Reviewed-by: Terje Bergstrom --- include/linux/tegra_vgpu.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/linux/tegra_vgpu.h') diff --git a/include/linux/tegra_vgpu.h b/include/linux/tegra_vgpu.h index eb510438..3f73d357 100644 --- a/include/linux/tegra_vgpu.h +++ b/include/linux/tegra_vgpu.h @@ -21,6 +21,10 @@ #include +#ifdef CONFIG_TEGRA_19x_GPU +#include +#endif + enum { TEGRA_VGPU_MODULE_GPU = 0, }; @@ -454,6 +458,7 @@ struct tegra_vgpu_constants_params { u8 force_preempt_mode; u32 default_timeslice_us; u32 preempt_ctx_size; + u32 channel_base; }; struct tegra_vgpu_channel_cyclestats_snapshot_params { @@ -555,6 +560,9 @@ struct tegra_vgpu_cmd_msg { 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; +#ifdef CONFIG_TEGRA_19x_GPU + union tegra_vgpu_t19x_params t19x; +#endif char padding[192]; } params; }; -- cgit v1.2.2