diff --git a/drivers/gpu/nvgpu/Makefile.shared.configs b/drivers/gpu/nvgpu/Makefile.shared.configs index e50895a33..f555b2efb 100644 --- a/drivers/gpu/nvgpu/Makefile.shared.configs +++ b/drivers/gpu/nvgpu/Makefile.shared.configs @@ -105,10 +105,6 @@ NVGPU_COMMON_CFLAGS += -DCONFIG_NVGPU_KERNEL_MODE_SUBMIT CONFIG_NVGPU_FALCON_NON_FUSA := 1 NVGPU_COMMON_CFLAGS += -DCONFIG_NVGPU_FALCON_NON_FUSA -# nvgpu_semaphore_get_value -CONFIG_NVGPU_SW_SEMAPHORE :=1 -NVGPU_COMMON_CFLAGS += -DCONFIG_NVGPU_SW_SEMAPHORE - CONFIG_NVGPU_GR_FALCON_NON_SECURE_BOOT := 1 NVGPU_COMMON_CFLAGS += -DCONFIG_NVGPU_GR_FALCON_NON_SECURE_BOOT diff --git a/drivers/gpu/nvgpu/hal/init/hal_tu104.c b/drivers/gpu/nvgpu/hal/init/hal_tu104.c index 4f56036c5..ced16384c 100644 --- a/drivers/gpu/nvgpu/hal/init/hal_tu104.c +++ b/drivers/gpu/nvgpu/hal/init/hal_tu104.c @@ -1060,7 +1060,8 @@ static const struct gpu_ops tu104_ops = { .get_sync_ro_map = gv11b_syncpt_get_sync_ro_map, }, #endif /* CONFIG_TEGRA_GK20A_NVHOST */ -#ifdef CONFIG_NVGPU_KERNEL_MODE_SUBMIT +#if defined(CONFIG_NVGPU_KERNEL_MODE_SUBMIT) && \ + defined(CONFIG_NVGPU_SW_SEMAPHORE) .sema = { .get_wait_cmd_size = gv11b_sema_get_wait_cmd_size, .get_incr_cmd_size = gv11b_sema_get_incr_cmd_size,