diff options
author | Richard Zhao <rizhao@nvidia.com> | 2017-04-10 18:29:36 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2017-06-30 01:34:36 -0400 |
commit | 28093a374bef54b9b68fcb2f00ae7d0529e33a3f (patch) | |
tree | 208c7080f683a0231d5e3ebdf15b2740872e80ce /drivers/gpu/nvgpu/common | |
parent | ac292605b5d2c4c27c7d133601594b9692a32fed (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 'drivers/gpu/nvgpu/common')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/module.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/module.c b/drivers/gpu/nvgpu/common/linux/module.c index c6794e44..30a2fcd9 100644 --- a/drivers/gpu/nvgpu/common/linux/module.c +++ b/drivers/gpu/nvgpu/common/linux/module.c | |||
@@ -41,6 +41,9 @@ | |||
41 | #include "intr.h" | 41 | #include "intr.h" |
42 | #ifdef CONFIG_TEGRA_19x_GPU | 42 | #ifdef CONFIG_TEGRA_19x_GPU |
43 | #include "nvgpu_gpuid_t19x.h" | 43 | #include "nvgpu_gpuid_t19x.h" |
44 | #ifdef CONFIG_TEGRA_GR_VIRTUALIZATION | ||
45 | #include "vgpu/vgpu_t19x.h" | ||
46 | #endif | ||
44 | #endif | 47 | #endif |
45 | #include "os_linux.h" | 48 | #include "os_linux.h" |
46 | 49 | ||
@@ -242,6 +245,10 @@ static struct of_device_id tegra_gk20a_of_match[] = { | |||
242 | #ifdef CONFIG_TEGRA_19x_GPU | 245 | #ifdef CONFIG_TEGRA_19x_GPU |
243 | { .compatible = TEGRA_19x_GPU_COMPAT_TEGRA, | 246 | { .compatible = TEGRA_19x_GPU_COMPAT_TEGRA, |
244 | .data = &t19x_gpu_tegra_platform }, | 247 | .data = &t19x_gpu_tegra_platform }, |
248 | #ifdef CONFIG_TEGRA_GR_VIRTUALIZATION | ||
249 | { .compatible = TEGRA_19x_VGPU_COMPAT_TEGRA, | ||
250 | .data = &t19x_vgpu_tegra_platform }, | ||
251 | #endif | ||
245 | #endif | 252 | #endif |
246 | #ifdef CONFIG_TEGRA_GR_VIRTUALIZATION | 253 | #ifdef CONFIG_TEGRA_GR_VIRTUALIZATION |
247 | { .compatible = "nvidia,tegra124-gk20a-vgpu", | 254 | { .compatible = "nvidia,tegra124-gk20a-vgpu", |