mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-25 02:52:51 +03:00
gpu: nvgpu: compile out fb and ramin non-fusa code
fbpa related functions are not supported on igpu safety. Don't compile them if CONFIG_NVGPU_DGPU is not set. Also compile out fb and ramin hals that are dgpu specific. Update the tests for the same. JIRA NVGPU-4529 Change-Id: I1cd976c3bd17707c0d174a62cf753590512c3a37 Signed-off-by: Sagar Kamble <skamble@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2265402 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
Alex Waterman
parent
1ec4a4f8ec
commit
f3421645b2
@@ -62,9 +62,11 @@ void nvgpu_ecc_free(struct gk20a *g)
|
||||
g->ops.fb.fb_ecc_free(g);
|
||||
}
|
||||
|
||||
#ifdef CONFIG_NVGPU_DGPU
|
||||
if (g->ops.fb.fbpa_ecc_free != NULL) {
|
||||
g->ops.fb.fbpa_ecc_free(g);
|
||||
}
|
||||
#endif
|
||||
|
||||
if (g->ops.pmu.ecc_free != NULL) {
|
||||
g->ops.pmu.ecc_free(g);
|
||||
|
||||
Reference in New Issue
Block a user