mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: reset CE engines if CONFIG_NVGPU_CE is disabled
If CONFIG_NVGPU_CE is disabled, nvgpu right now does not even reset the CE engines or initialize prod values. This ultimately needs to be fixed by adding appropriate initialization for CE engines even if CONFIG_NVGPU_CE is disabled. For now, add the code to at least reset CE engines if CONFIG_NVGPU_CE is disabled Bug 2526212 Change-Id: Id0a6fbfe44ef7af62715bcee65bef056359f1c19 Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2165861 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: Vinod Gopalakrishnakurup <vinodg@nvidia.com> Reviewed-by: Seshendra Gadagottu <sgadagottu@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
8eebce0ac6
commit
3baaa28992
@@ -47,6 +47,9 @@
|
||||
#include <nvgpu/channel_sync.h>
|
||||
#include <nvgpu/gr/gr.h>
|
||||
#include <nvgpu/nvgpu_init.h>
|
||||
#ifndef CONFIG_NVGPU_CE
|
||||
#include <nvgpu/engines.h>
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_NVGPU_TRACE
|
||||
#include <trace/events/gk20a.h>
|
||||
@@ -490,6 +493,8 @@ int nvgpu_finalize_poweron(struct gk20a *g)
|
||||
nvgpu_err(g, "failed to init ce");
|
||||
goto done;
|
||||
}
|
||||
#else
|
||||
g->ops.mc.reset(g, nvgpu_engine_get_all_ce_reset_mask(g));
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_NVGPU_DGPU
|
||||
|
||||
Reference in New Issue
Block a user