mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: compile out xve hal from safety build
xve functions are available only with DGPU hence compile them based on CONFIG_NVGPU_DGPU. JIRA NVGPU-3657 Change-Id: I4123043518935dd93e2104644d6f706fe7243f7f Signed-off-by: Sagar Kamble <skamble@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2149496 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svc-mobile-misra <svc-mobile-misra@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Alex Waterman <alexw@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
d33db35282
commit
cb4a27fb0f
@@ -179,6 +179,7 @@ int gk20a_finalize_poweron(struct gk20a *g)
|
||||
|
||||
g->power_on = true;
|
||||
|
||||
#ifdef CONFIG_NVGPU_DGPU
|
||||
/*
|
||||
* Before probing the GPU make sure the GPU's state is cleared. This is
|
||||
* relevant for rebind operations.
|
||||
@@ -187,6 +188,7 @@ int gk20a_finalize_poweron(struct gk20a *g)
|
||||
g->ops.xve.reset_gpu(g);
|
||||
g->gpu_reset_done = true;
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Do this early so any early VMs that get made are capable of mapping
|
||||
@@ -494,6 +496,7 @@ int gk20a_finalize_poweron(struct gk20a *g)
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_NVGPU_DGPU
|
||||
if (g->ops.xve.available_speeds != NULL) {
|
||||
u32 speed;
|
||||
|
||||
@@ -512,6 +515,7 @@ int gk20a_finalize_poweron(struct gk20a *g)
|
||||
goto done;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_TEGRA_GK20A_NVHOST)
|
||||
if (nvgpu_has_syncpoints(g) && (g->syncpt_unit_size != 0UL)) {
|
||||
|
||||
Reference in New Issue
Block a user