diff --git a/drivers/gpu/nvgpu/Makefile.shared.configs b/drivers/gpu/nvgpu/Makefile.shared.configs index bc42b3eca..0ae6c3b6c 100644 --- a/drivers/gpu/nvgpu/Makefile.shared.configs +++ b/drivers/gpu/nvgpu/Makefile.shared.configs @@ -61,8 +61,10 @@ ifeq ($(CONFIG_NVGPU_DGPU),1) NVGPU_COMMON_CFLAGS += -DCONFIG_PCI_MSI endif +ifndef NVGPU_HVRTOS CONFIG_NVGPU_IVM_BUILD := 1 NVGPU_COMMON_CFLAGS += -DCONFIG_NVGPU_IVM_BUILD +endif CONFIG_NVGPU_LOGGING := 1 NVGPU_COMMON_CFLAGS += -DCONFIG_NVGPU_LOGGING @@ -161,8 +163,10 @@ NVGPU_COMMON_CFLAGS += -DCONFIG_NVGPU_TEGRA_FUSE # ifneq ($(profile),safety_release) +ifndef NVGPU_HVRTOS CONFIG_NVGPU_TRACE := 1 NVGPU_COMMON_CFLAGS += -DCONFIG_NVGPU_TRACE +endif CONFIG_NVGPU_FALCON_DEBUG := 1 NVGPU_COMMON_CFLAGS += -DCONFIG_NVGPU_FALCON_DEBUG @@ -182,8 +186,10 @@ endif # ifneq ($(profile),safety_debug) +ifneq ($(NVGPU_HVRTOS),1) CONFIG_NVGPU_SYSFS := 1 NVGPU_COMMON_CFLAGS += -DCONFIG_NVGPU_SYSFS +endif # ACR feature to enable old tegra ACR profile support CONFIG_NVGPU_ACR_LEGACY := 1 @@ -214,17 +220,21 @@ CONFIG_NVGPU_FECS_TRACE := 1 NVGPU_COMMON_CFLAGS += -DCONFIG_NVGPU_FECS_TRACE ifneq ($(CONFIG_NVGPU_DGPU),1) +ifneq ($(NVGPU_HVRTOS),1) CONFIG_NVGPU_IGPU_VIRT := 1 NVGPU_COMMON_CFLAGS += -DCONFIG_NVGPU_IGPU_VIRT endif +endif # Enable the usage of 3LSS error injection features. CONFIG_NVGPU_USE_3LSS_ERR_INJECTION := 1 NVGPU_COMMON_CFLAGS += -DCONFIG_NVGPU_USE_3LSS_ERR_INJECTION +ifneq ($(NVGPU_HVRTOS),1) # Enable nvlink support for normal build. CONFIG_NVGPU_NVLINK := 1 NVGPU_COMMON_CFLAGS += -DCONFIG_NVGPU_NVLINK +endif # Enable static_powergate support for normal build. CONFIG_NVGPU_STATIC_POWERGATE := 1 @@ -234,9 +244,11 @@ NVGPU_COMMON_CFLAGS += -DCONFIG_NVGPU_STATIC_POWERGATE CONFIG_MSSNVLINK0_RST_CONTROL := 1 NVGPU_COMMON_CFLAGS += -DCONFIG_MSSNVLINK0_RST_CONTROL +ifneq ($(NVGPU_HVRTOS),1) # Enable dgpu support for normal build. CONFIG_NVGPU_DGPU := 1 NVGPU_COMMON_CFLAGS += -DCONFIG_NVGPU_DGPU +endif CONFIG_NVGPU_VPR := 1 NVGPU_COMMON_CFLAGS += -DCONFIG_NVGPU_VPR @@ -267,8 +279,10 @@ NVGPU_COMMON_CFLAGS += -DCONFIG_NVGPU_HAL_NON_FUSA CONFIG_NVGPU_NON_FUSA := 1 NVGPU_COMMON_CFLAGS += -DCONFIG_NVGPU_NON_FUSA +ifneq ($(NVGPU_HVRTOS),1) CONFIG_NVGPU_CLK_ARB := 1 NVGPU_COMMON_CFLAGS += -DCONFIG_NVGPU_CLK_ARB +endif NVGPU_COMMON_CFLAGS += -DCONFIG_NVGPU_FALCON_NON_FUSA @@ -325,9 +339,11 @@ NVGPU_COMMON_CFLAGS += -DCONFIG_TEGRA_GR_VIRTUALIZATION_SERVER CONFIG_NVGPU_SM_DIVERSITY := 1 NVGPU_COMMON_CFLAGS += -DCONFIG_NVGPU_SM_DIVERSITY +ifndef NVGPU_HVRTOS # Enable Multi Instance GPU support for normal build CONFIG_NVGPU_MIG := 1 NVGPU_COMMON_CFLAGS += -DCONFIG_NVGPU_MIG +endif # Enable gsp scheduler for normal build CONFIG_NVGPU_GSP_SCHEDULER := 1 diff --git a/drivers/gpu/nvgpu/Makefile.sources b/drivers/gpu/nvgpu/Makefile.sources index 59f7c4939..9c8ee1515 100644 --- a/drivers/gpu/nvgpu/Makefile.sources +++ b/drivers/gpu/nvgpu/Makefile.sources @@ -74,6 +74,7 @@ srcs += os/posix/posix-vidmem.c endif endif +ifndef NVGPU_HVRTOS # POSIX sources shared between the POSIX and QNX builds. srcs += os/posix/bug.c \ os/posix/rwsem.c \ @@ -83,10 +84,12 @@ srcs += os/posix/bug.c \ os/posix/lock.c \ os/posix/thread.c \ os/posix/os_sched.c \ - os/posix/bitmap.c \ os/posix/kmem.c \ os/posix/file_ops.c \ os/posix/queue.c +endif + +srcs += os/posix/bitmap.c ifeq ($(NV_BUILD_CONFIGURATION_IS_SAFETY),0) srcs += os/posix/bsearch.c diff --git a/drivers/gpu/nvgpu/common/gsp_scheduler/gsp_runlist.c b/drivers/gpu/nvgpu/common/gsp_scheduler/gsp_runlist.c index b0debd816..b9c82a1f6 100644 --- a/drivers/gpu/nvgpu/common/gsp_scheduler/gsp_runlist.c +++ b/drivers/gpu/nvgpu/common/gsp_scheduler/gsp_runlist.c @@ -107,8 +107,8 @@ static int gsp_send_cmd_and_wait_for_ack(struct gk20a *g, tmp_size = GSP_CMD_HDR_SIZE + size; nvgpu_assert(tmp_size <= U64(U8_MAX)); - cmd->hdr.size = tmp_size; - cmd->hdr.unit_id = unit_id; + cmd->hdr.size = (u8)tmp_size; + cmd->hdr.unit_id = (u8)unit_id; err = nvgpu_gsp_cmd_post(g, cmd, GSP_NV_CMDQ_LOG_ID, gsp_handle_cmd_ack, &command_ack, U32_MAX); @@ -156,6 +156,8 @@ static void gsp_get_device_info(struct gk20a *g, u8 device_id, dev_info->rl_engine_id = device->rleng_id; dev_info->dev_pri_base = device->pri_base; dev_info->runlist_pri_base = device->rl_pri_base; + + (void)g; } static int gsp_sched_send_devices_info(struct gk20a *g, diff --git a/drivers/gpu/nvgpu/common/pmu/pg/pg_sw_ga10b.c b/drivers/gpu/nvgpu/common/pmu/pg/pg_sw_ga10b.c index 2e9aae920..6959762be 100644 --- a/drivers/gpu/nvgpu/common/pmu/pg/pg_sw_ga10b.c +++ b/drivers/gpu/nvgpu/common/pmu/pg/pg_sw_ga10b.c @@ -376,6 +376,8 @@ static void ga10b_pg_loading_rpc_handler(struct gk20a *g, struct nvgpu_pmu *pmu, "unsupported PG_LOADING rpc function : 0x%x", rpc->function); break; } + + (void)rpc_payload; } static int ga10b_pmu_elpg_statistics(struct gk20a *g, u32 pg_engine_id, @@ -552,6 +554,7 @@ static int ga10b_pmu_pg_aelpg_disable(struct gk20a *g, u8 ctrl_id) PMU_RPC_EXECUTE_CPB(status, pmu, PG, AP_CTRL_DISABLE, &rpc, 0); + (void)ctrl_id; return status; } @@ -568,6 +571,7 @@ static int ga10b_pmu_pg_aelpg_enable(struct gk20a *g, u8 ctrl_id) PMU_RPC_EXECUTE_CPB(status, pmu, PG, AP_CTRL_ENABLE, &rpc, 0); + (void)ctrl_id; return status; } diff --git a/drivers/gpu/nvgpu/common/pmu/pg/pg_sw_gm20b.c b/drivers/gpu/nvgpu/common/pmu/pg/pg_sw_gm20b.c index 8288d7278..df1095a7f 100644 --- a/drivers/gpu/nvgpu/common/pmu/pg/pg_sw_gm20b.c +++ b/drivers/gpu/nvgpu/common/pmu/pg/pg_sw_gm20b.c @@ -397,6 +397,7 @@ int gm20b_pmu_pg_aelpg_enable(struct gk20a *g, u8 ctrl_id) ap_cmd.enable_ctrl.ctrl_id = PMU_AP_CTRL_ID_GRAPHICS; status = nvgpu_pmu_ap_send_command(g, &ap_cmd, false); + (void)ctrl_id; return status; } @@ -410,6 +411,7 @@ int gm20b_pmu_pg_aelpg_disable(struct gk20a *g, u8 ctrl_id) ap_cmd.enable_ctrl.ctrl_id = PMU_AP_CTRL_ID_GRAPHICS; status = nvgpu_pmu_ap_send_command(g, &ap_cmd, false); + (void)ctrl_id; return status; } diff --git a/drivers/gpu/nvgpu/common/pmu/pg/pmu_aelpg.c b/drivers/gpu/nvgpu/common/pmu/pg/pmu_aelpg.c index 0ceb048a3..e466ae541 100644 --- a/drivers/gpu/nvgpu/common/pmu/pg/pmu_aelpg.c +++ b/drivers/gpu/nvgpu/common/pmu/pg/pmu_aelpg.c @@ -55,7 +55,7 @@ int nvgpu_aelpg_init_and_enable(struct gk20a *g, u32 ctrl_id) nvgpu_err(g, "PG AELPG init and Enable function not assigned"); return -EINVAL; } - status = g->pmu->pg->aelpg_init_and_enable(g, ctrl_id); + status = g->pmu->pg->aelpg_init_and_enable(g, (u8)ctrl_id); if (status != 0) { nvgpu_err(g, "aelpg_init_and_enable FAILED err=%d", @@ -75,7 +75,7 @@ int nvgpu_aelpg_enable(struct gk20a *g, u32 ctrl_id) nvgpu_err(g, "AELPG Enable function not assigned"); return -EINVAL; } - status = g->pmu->pg->aelpg_enable(g, ctrl_id); + status = g->pmu->pg->aelpg_enable(g, (u8)ctrl_id); if (status != 0) { nvgpu_err(g, "aelpg_enable FAILED err=%d", @@ -95,7 +95,7 @@ int nvgpu_aelpg_disable(struct gk20a *g, u32 ctrl_id) nvgpu_err(g, "AELPG Disable function not assigned"); return -EINVAL; } - status = g->pmu->pg->aelpg_disable(g, ctrl_id); + status = g->pmu->pg->aelpg_disable(g, (u8)ctrl_id); if (status != 0) { nvgpu_err(g, "aelpg_disable FAILED err=%d", diff --git a/drivers/gpu/nvgpu/hal/ltc/ltc_gm20b_dbg.c b/drivers/gpu/nvgpu/hal/ltc/ltc_gm20b_dbg.c index af83bb5ad..287dcbc26 100644 --- a/drivers/gpu/nvgpu/hal/ltc/ltc_gm20b_dbg.c +++ b/drivers/gpu/nvgpu/hal/ltc/ltc_gm20b_dbg.c @@ -49,6 +49,7 @@ bool gm20b_ltc_pri_is_ltc_addr(struct gk20a *g, u32 addr) bool gm20b_ltc_is_pltcg_ltcs_addr(struct gk20a *g, u32 addr) { + (void)g; return ((addr >= ltc_pltcg_ltcs_base_v()) && (addr < ltc_pltcg_extent_v())); } diff --git a/drivers/gpu/nvgpu/include/nvgpu/barrier.h b/drivers/gpu/nvgpu/include/nvgpu/barrier.h index 8387a97dc..7c944caf0 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/barrier.h +++ b/drivers/gpu/nvgpu/include/nvgpu/barrier.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017-2021, NVIDIA CORPORATION. All rights reserved. + * Copyright (c) 2017-2022, NVIDIA CORPORATION. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), @@ -32,6 +32,8 @@ #include #elif defined(__NVGPU_POSIX__) #include +#elif defined(NVGPU_HVRTOS) +#include #else #include #endif diff --git a/drivers/gpu/nvgpu/include/nvgpu/bug.h b/drivers/gpu/nvgpu/include/nvgpu/bug.h index fca6f2f34..f7ef47004 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/bug.h +++ b/drivers/gpu/nvgpu/include/nvgpu/bug.h @@ -24,6 +24,8 @@ #ifdef __KERNEL__ #include +#elif defined(NVGPU_HVRTOS) +#include #else #include #endif diff --git a/drivers/gpu/nvgpu/include/nvgpu/cond.h b/drivers/gpu/nvgpu/include/nvgpu/cond.h index d293a8be5..00d17e599 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/cond.h +++ b/drivers/gpu/nvgpu/include/nvgpu/cond.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017-2021, NVIDIA CORPORATION. All rights reserved. + * Copyright (c) 2017-2022, NVIDIA CORPORATION. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), @@ -25,6 +25,8 @@ #ifdef __KERNEL__ #include +#elif defined(NVGPU_HVRTOS) +#include #else #include #endif diff --git a/drivers/gpu/nvgpu/include/nvgpu/ecc.h b/drivers/gpu/nvgpu/include/nvgpu/ecc.h index c6ed70416..8a65a7031 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/ecc.h +++ b/drivers/gpu/nvgpu/include/nvgpu/ecc.h @@ -101,7 +101,6 @@ struct nvgpu_ecc_stat { struct nvgpu_list_node node; }; -#ifdef CONFIG_NVGPU_SYSFS /** * @brief Helper function to get struct nvgpu_ecc_stat from list node. * @@ -117,7 +116,6 @@ static inline struct nvgpu_ecc_stat *nvgpu_ecc_stat_from_node( (uintptr_t)node - offsetof(struct nvgpu_ecc_stat, node) ); } -#endif /** * The structure contains the error statistics assocaited with constituent diff --git a/drivers/gpu/nvgpu/include/nvgpu/lock.h b/drivers/gpu/nvgpu/include/nvgpu/lock.h index 75e6947fd..db4ab96a4 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/lock.h +++ b/drivers/gpu/nvgpu/include/nvgpu/lock.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018-2021, NVIDIA CORPORATION. All rights reserved. + * Copyright (c) 2018-2022, NVIDIA CORPORATION. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), @@ -25,6 +25,8 @@ #ifdef __KERNEL__ #include +#elif defined(NVGPU_HVRTOS) +#include #else #include #endif diff --git a/drivers/gpu/nvgpu/include/nvgpu/log.h b/drivers/gpu/nvgpu/include/nvgpu/log.h index 2648b643b..adcc09e81 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/log.h +++ b/drivers/gpu/nvgpu/include/nvgpu/log.h @@ -27,6 +27,8 @@ #include #elif defined(__NVGPU_POSIX__) #include +#elif defined(NVGPU_HVRTOS) +#include #else #include #endif diff --git a/drivers/gpu/nvgpu/include/nvgpu/nvgpu_mem.h b/drivers/gpu/nvgpu/include/nvgpu/nvgpu_mem.h index 5e9404381..e0ce021a3 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/nvgpu_mem.h +++ b/drivers/gpu/nvgpu/include/nvgpu/nvgpu_mem.h @@ -32,6 +32,8 @@ #include #elif defined(__NVGPU_POSIX__) #include +#elif defined(NVGPU_HVRTOS) +#include #else #include #endif diff --git a/drivers/gpu/nvgpu/include/nvgpu/periodic_timer.h b/drivers/gpu/nvgpu/include/nvgpu/periodic_timer.h index 83fd8d975..595d107a9 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/periodic_timer.h +++ b/drivers/gpu/nvgpu/include/nvgpu/periodic_timer.h @@ -25,6 +25,8 @@ #ifdef __KERNEL__ #include +#elif defined(NVGPU_HVRTOS) +#include #else #include #endif diff --git a/drivers/gpu/nvgpu/include/nvgpu/posix/utils.h b/drivers/gpu/nvgpu/include/nvgpu/posix/utils.h index 02f73e3b8..576b538ab 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/posix/utils.h +++ b/drivers/gpu/nvgpu/include/nvgpu/posix/utils.h @@ -424,6 +424,7 @@ */ #define MHZ_TO_HZ_ULL(a) ((u64)(a) * MHZ) +#ifndef NVGPU_HVRTOS /** * @brief Endian conversion. * @@ -443,6 +444,7 @@ static inline u32 be32_to_cpu(u32 x) */ return ntohl(x); } +#endif /* * Hamming weights. diff --git a/drivers/gpu/nvgpu/include/nvgpu/rwsem.h b/drivers/gpu/nvgpu/include/nvgpu/rwsem.h index d80f86473..548697285 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/rwsem.h +++ b/drivers/gpu/nvgpu/include/nvgpu/rwsem.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017-2021, NVIDIA CORPORATION. All rights reserved. + * Copyright (c) 2017-2022, NVIDIA CORPORATION. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), @@ -24,6 +24,8 @@ #ifdef __KERNEL__ #include +#elif defined(NVGPU_HVRTOS) +#include #else #include #endif diff --git a/drivers/gpu/nvgpu/include/nvgpu/sim.h b/drivers/gpu/nvgpu/include/nvgpu/sim.h index 10293457e..6df8f9ab0 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/sim.h +++ b/drivers/gpu/nvgpu/include/nvgpu/sim.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018-2021, NVIDIA CORPORATION. All rights reserved. + * Copyright (c) 2018-2022, NVIDIA CORPORATION. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), @@ -56,8 +56,8 @@ struct sim_nvgpu { #ifdef __KERNEL__ #include "linux/sim.h" #include "linux/sim_pci.h" -#elif defined(__NVGPU_POSIX__) -/* Nothing for POSIX-nvgpu. */ +#elif defined(__NVGPU_POSIX__) || defined(NVGPU_HVRTOS) +/* Nothing for POSIX-nvgpu and nvgpu_hvrtos. */ #else #include #include diff --git a/drivers/gpu/nvgpu/include/nvgpu/sort.h b/drivers/gpu/nvgpu/include/nvgpu/sort.h index 2ad62fd75..8bf09fc93 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/sort.h +++ b/drivers/gpu/nvgpu/include/nvgpu/sort.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017-2019, NVIDIA CORPORATION. All rights reserved. + * Copyright (c) 2017-2022, NVIDIA CORPORATION. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), diff --git a/drivers/gpu/nvgpu/include/nvgpu/string.h b/drivers/gpu/nvgpu/include/nvgpu/string.h index 35689fbac..f5d0641c2 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/string.h +++ b/drivers/gpu/nvgpu/include/nvgpu/string.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018-2021, NVIDIA CORPORATION. All rights reserved. + * Copyright (c) 2018-2022, NVIDIA CORPORATION. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), @@ -27,6 +27,8 @@ #ifdef __KERNEL__ #include +#elif defined(NVGPU_HVRTOS) +#include #endif struct gk20a; diff --git a/drivers/gpu/nvgpu/include/nvgpu/thread.h b/drivers/gpu/nvgpu/include/nvgpu/thread.h index 00b49616c..a784dd501 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/thread.h +++ b/drivers/gpu/nvgpu/include/nvgpu/thread.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017-2021, NVIDIA CORPORATION. All rights reserved. + * Copyright (c) 2017-2022, NVIDIA CORPORATION. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), @@ -25,6 +25,8 @@ #ifdef __KERNEL__ #include +#elif defined(NVGPU_HVRTOS) +#include #else #include #endif diff --git a/drivers/gpu/nvgpu/include/nvgpu/types.h b/drivers/gpu/nvgpu/include/nvgpu/types.h index 6507d1156..6c8f82cb1 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/types.h +++ b/drivers/gpu/nvgpu/include/nvgpu/types.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017-2021, NVIDIA CORPORATION. All rights reserved. + * Copyright (c) 2017-2022, NVIDIA CORPORATION. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), @@ -25,6 +25,8 @@ #ifdef __KERNEL__ #include #include +#elif defined(NVGPU_HVRTOS) +#include #else #include #endif diff --git a/drivers/gpu/nvgpu/include/nvgpu/vgpu/tegra_vgpu.h b/drivers/gpu/nvgpu/include/nvgpu/vgpu/tegra_vgpu.h index c47a7d827..90c91c379 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/vgpu/tegra_vgpu.h +++ b/drivers/gpu/nvgpu/include/nvgpu/vgpu/tegra_vgpu.h @@ -756,6 +756,9 @@ struct tegra_vgpu_cmd_msg { } params; }; +_Static_assert(sizeof(struct tegra_vgpu_cmd_msg) <= 512U, + "size of tegra_vgpu_cmd_msg greater than ivc frame"); + enum { TEGRA_VGPU_GR_INTR_NOTIFY = 0, TEGRA_VGPU_GR_INTR_SEMAPHORE_TIMEOUT = 1, @@ -870,6 +873,9 @@ struct tegra_vgpu_intr_msg { } info; }; +_Static_assert(sizeof(struct tegra_vgpu_intr_msg) <= 64U, + "size of tegra_vgpu_intr_msg greater than ivc frame"); + #define TEGRA_VGPU_QUEUE_SIZES \ 512, \ sizeof(struct tegra_vgpu_intr_msg) diff --git a/drivers/gpu/nvgpu/include/nvgpu/vm.h b/drivers/gpu/nvgpu/include/nvgpu/vm.h index 6091b4d00..3fb9859c7 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/vm.h +++ b/drivers/gpu/nvgpu/include/nvgpu/vm.h @@ -92,6 +92,8 @@ struct nvgpu_os_buffer; #include #elif defined(__NVGPU_POSIX__) #include +#elif defined(NVGPU_HVRTOS) +#include #else /* QNX include goes here. */ #include