mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 17:36:20 +03:00
gpu: nvgpu: sim: defer sim buffers allocation
Allocate sim buffers only after chip specific memory properties are enabled. JIRA NVGPU-5281 Signed-off-by: Seshendra Gadagottu <sgadagottu@nvidia.com> Change-Id: I7b64b3a51b8cd66dbefd22a09216b2caaeccacbf Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2324083 Reviewed-by: automaticguardword <automaticguardword@nvidia.com> Reviewed-by: Alex Waterman <alexw@nvidia.com> Reviewed-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit
This commit is contained in:
committed by
Alex Waterman
parent
c37c1b5474
commit
62c06723dd
@@ -443,7 +443,9 @@ int gk20a_pm_finalize_poweron(struct device *dev)
|
||||
|
||||
if (g->sim) {
|
||||
if (g->sim->sim_init_late)
|
||||
g->sim->sim_init_late(g);
|
||||
err = g->sim->sim_init_late(g);
|
||||
if (err)
|
||||
goto done;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_NVGPU_DGPU
|
||||
@@ -530,6 +532,7 @@ int gk20a_pm_finalize_poweron(struct device *dev)
|
||||
done:
|
||||
if (err != 0) {
|
||||
nvgpu_disable_irqs(g);
|
||||
nvgpu_remove_sim_support_linux(g);
|
||||
}
|
||||
|
||||
nvgpu_mutex_release(&g->power_lock);
|
||||
|
||||
Reference in New Issue
Block a user