summaryrefslogtreecommitdiffstats
path: root/include/linux/tegra_vgpu.h
diff options
context:
space:
mode:
authorRichard Zhao <rizhao@nvidia.com>2017-04-10 18:29:36 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2017-06-30 01:34:36 -0400
commit28093a374bef54b9b68fcb2f00ae7d0529e33a3f (patch)
tree208c7080f683a0231d5e3ebdf15b2740872e80ce /include/linux/tegra_vgpu.h
parentac292605b5d2c4c27c7d133601594b9692a32fed (diff)
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 <rizhao@nvidia.com> Reviewed-on: https://git-master/r/1474715 GVS: Gerrit_Virtual_Submit Reviewed-by: Aingara Paramakuru <aparamakuru@nvidia.com> Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'include/linux/tegra_vgpu.h')
-rw-r--r--include/linux/tegra_vgpu.h8
1 files changed, 8 insertions, 0 deletions
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 @@
21 21
22#include <nvgpu/types.h> 22#include <nvgpu/types.h>
23 23
24#ifdef CONFIG_TEGRA_19x_GPU
25#include <linux/tegra_vgpu_t19x.h>
26#endif
27
24enum { 28enum {
25 TEGRA_VGPU_MODULE_GPU = 0, 29 TEGRA_VGPU_MODULE_GPU = 0,
26}; 30};
@@ -454,6 +458,7 @@ struct tegra_vgpu_constants_params {
454 u8 force_preempt_mode; 458 u8 force_preempt_mode;
455 u32 default_timeslice_us; 459 u32 default_timeslice_us;
456 u32 preempt_ctx_size; 460 u32 preempt_ctx_size;
461 u32 channel_base;
457}; 462};
458 463
459struct tegra_vgpu_channel_cyclestats_snapshot_params { 464struct tegra_vgpu_channel_cyclestats_snapshot_params {
@@ -555,6 +560,9 @@ struct tegra_vgpu_cmd_msg {
555 struct tegra_vgpu_perfbuf_mgt_params perfbuf_management; 560 struct tegra_vgpu_perfbuf_mgt_params perfbuf_management;
556 struct tegra_vgpu_get_timestamps_zipper_params get_timestamps_zipper; 561 struct tegra_vgpu_get_timestamps_zipper_params get_timestamps_zipper;
557 struct tegra_vgpu_get_gpu_freq_table_params get_gpu_freq_table; 562 struct tegra_vgpu_get_gpu_freq_table_params get_gpu_freq_table;
563#ifdef CONFIG_TEGRA_19x_GPU
564 union tegra_vgpu_t19x_params t19x;
565#endif
558 char padding[192]; 566 char padding[192];
559 } params; 567 } params;
560}; 568};