mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 09:57:08 +03:00
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>
This commit is contained in:
committed by
mobile promotions
parent
ac292605b5
commit
28093a374b
@@ -21,6 +21,10 @@
|
||||
|
||||
#include <nvgpu/types.h>
|
||||
|
||||
#ifdef CONFIG_TEGRA_19x_GPU
|
||||
#include <linux/tegra_vgpu_t19x.h>
|
||||
#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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user