gpu: nvgpu: init golden ctx image during nvgpu poweron

Safety build temporal requirement is that on FECS power up it should go
through entire initialization methods.
init_golden_image callback is being called from devctl/ioctl path and
triggers FECS method 10 and 11. As these methods are part of APP init,
not being called during resume and causing quiesce on safety build.
To fix this issue, calling the callback from poweron API.

Bug 4082813
Bug 4037712

Change-Id: I2d27203d3cb4326ae7d8bd6025693fd61d5237df
Signed-off-by: prsethi <prsethi@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2893218
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
prsethi
2023-04-24 16:43:11 +00:00
committed by mobile promotions
parent 1de86155d8
commit c49ac865de
4 changed files with 25 additions and 24 deletions

View File

@@ -986,16 +986,6 @@ static int nvgpu_ioctl_channel_alloc_obj_ctx(struct nvgpu_channel *ch,
{
struct gk20a *g = ch->g;
if (g->ops.gr.setup.init_golden_image != NULL) {
int err = g->ops.gr.setup.init_golden_image(g);
if (err != 0) {
nvgpu_err(g, "golden context image init failed (%d).",
err);
return -ENOSYS;
}
}
return g->ops.gr.setup.alloc_obj_ctx(ch, class_num,
nvgpu_obj_ctx_user_flags_to_common_flags(user_flags));
}