gpu: nvgpu: vgpu: add vgpu-next cmds support

vgpu-next cmds will be used if CONFIG_NVGPU_NEXT is set.

Jira GVSCI-15770

Change-Id: Iddb2c8b5c0ca412c99bfd01fd7d6411d4439131f
Signed-off-by: Richard Zhao <rizhao@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2863435
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Richard Zhao
2023-02-07 11:07:56 -08:00
committed by mobile promotions
parent 7cd377568f
commit 3edae21ca6

View File

@@ -28,6 +28,10 @@
#include <nvgpu/types.h> #include <nvgpu/types.h>
#include <nvgpu/ecc.h> /* For NVGPU_ECC_STAT_NAME_MAX_SIZE */ #include <nvgpu/ecc.h> /* For NVGPU_ECC_STAT_NAME_MAX_SIZE */
#ifdef CONFIG_NVGPU_NEXT
#include <tegra_vgpu_next.h>
#endif
enum { enum {
TEGRA_VGPU_MODULE_GPU = 0, TEGRA_VGPU_MODULE_GPU = 0,
}; };
@@ -752,6 +756,9 @@ struct tegra_vgpu_cmd_msg {
struct tegra_vgpu_alloc_obj_ctx_params alloc_obj_ctx; struct tegra_vgpu_alloc_obj_ctx_params alloc_obj_ctx;
struct tegra_vgpu_preemption_mode_params preemption_mode; struct tegra_vgpu_preemption_mode_params preemption_mode;
struct tegra_vgpu_l2_sector_promotion_params l2_promotion; struct tegra_vgpu_l2_sector_promotion_params l2_promotion;
#ifdef CONFIG_NVGPU_NEXT
TEGRA_VGPU_PARAMS_NEXT
#endif
char padding[184]; char padding[184];
} params; } params;
}; };