mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 02:22:34 +03:00
gpu: nvgpu: support upcoming GPU
In gpu_init_hal(), call NVGPU_NEXT_INIT_HAL() to initialize HAL of upcoming GPU All upcoming GPU related support is compiled only if CONFIG_TEGRA_GPU_NEXT is set Jira NVGPUT-42 Change-Id: I1563acd60f20fda50f4557a068398c1d5d224f3e Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1699312 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
a7a256d7c4
commit
b80ccedce0
@@ -4,6 +4,7 @@ ccflags-y += -I$(srctree.nvgpu)/drivers/gpu/nvgpu/include
|
||||
ccflags-y += -I$(srctree.nvgpu)/drivers/gpu/nvgpu
|
||||
ccflags-y += -I$(srctree.nvgpu)/include
|
||||
ccflags-y += -I$(srctree.nvgpu)/include/uapi
|
||||
ccflags-y += -I$(srctree.nvgpu-next)/drivers/gpu/nvgpu
|
||||
|
||||
ccflags-y += -I$(srctree)/drivers/devfreq
|
||||
|
||||
|
||||
@@ -29,6 +29,9 @@
|
||||
#include "gp106/hal_gp106.h"
|
||||
#include "gv100/hal_gv100.h"
|
||||
#include "gv11b/hal_gv11b.h"
|
||||
#if defined(CONFIG_TEGRA_GPU_NEXT)
|
||||
#include "nvgpu_gpuid_next.h"
|
||||
#endif
|
||||
|
||||
#include <nvgpu/log.h>
|
||||
|
||||
@@ -59,6 +62,12 @@ int gpu_init_hal(struct gk20a *g)
|
||||
if (gv100_init_hal(g))
|
||||
return -ENODEV;
|
||||
break;
|
||||
#if defined(CONFIG_TEGRA_GPU_NEXT)
|
||||
case NVGPU_GPUID_NEXT:
|
||||
if (NVGPU_NEXT_INIT_HAL(g))
|
||||
return -ENODEV;
|
||||
break;
|
||||
#endif
|
||||
|
||||
default:
|
||||
nvgpu_err(g, "no support for %x", ver);
|
||||
|
||||
Reference in New Issue
Block a user