gpu: nvgpu: init nvs scheduler for vf

nvs does not have a clean cut. runlist submit path uses nvs worker no
matter whether the feature is enabled.

Jira GVSCI-15773

Change-Id: I6f6db1e766b8079ad6ca4a6b530b3ec27094f840
Signed-off-by: Richard Zhao <rizhao@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2863443
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-21 12:57:35 -08:00
committed by mobile promotions
parent da1da8f563
commit a587d94f5a

View File

@@ -478,7 +478,7 @@ static int nvgpu_nvs_worker_init(struct gk20a *g)
struct nvgpu_worker *worker = &g->scheduler->worker.worker;
struct nvgpu_nvs_worker *nvs_worker = &g->scheduler->worker;
if (g->is_virtual) {
if (nvgpu_is_legacy_vgpu(g)) {
return 0;
}