gpu: nvgpu: gsp sched: enable scheduler for embedded-linux

NV_BUILD_CONFIGURATION_VARIANT_IS_EMBEDDED is not enabled for embedded
linux and a precise check for embedded-linux should be made for enabling
gsp scheduler on linux platforms.

NVGPU-9297

Change-Id: I2a8fc30670a9a751ecdc051e4f8ca5db8c798595
Signed-off-by: rmylavarapu <rmylavarapu@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2836359
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
Reviewed-by: svc-mobile-misra <svc-mobile-misra@nvidia.com>
Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com>
Reviewed-by: Mahantesh Kumbar <mkumbar@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
rmylavarapu
2023-01-03 06:25:43 +00:00
committed by mobile promotions
parent 77841cc9bb
commit 0c1fc6bcde
2 changed files with 3 additions and 2 deletions

View File

@@ -59,7 +59,7 @@ endif
# Support for remap
CONFIG_NVGPU_REMAP := y
ifeq ($(NV_BUILD_CONFIGURATION_VARIANT_IS_EMBEDDED),1)
ifeq ($(NV_BUILD_SYSTEM_TYPE),embedded-linux))
# Enable gsp scheduler support
CONFIG_NVGPU_GSP_SCHEDULER := y
endif

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2022, NVIDIA CORPORATION. All rights reserved.
* Copyright (c) 2023, 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"),
@@ -221,6 +221,7 @@ int nvgpu_gsp_sched_bootstrap_hs(struct gk20a *g)
goto de_init;
}
nvgpu_info(g, "gsp scheduler bootstrapped.\n");
return status;
de_init:
nvgpu_gsp_sched_sw_deinit(g);