mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
gpu: nvgpu: Print the error on PG init failure
Print the error-code in cases where the nvgpu_pg_init kthread could not be created. Bug 2674712 Change-Id: I3ffe912bf5155346cb9bd87bfff7eb04fb605e6e Signed-off-by: Abhiroop Kaginalkar <akaginalkar@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/2180518 [akaginalkar: Rebased over pmu_pg re-arch] (cherry picked from commit d3f732a1300e8a29574969f9d7d33e19f5125f74) Reviewed-on: https://git-master.nvidia.com/r/2213705 Reviewed-by: Automatic_Commit_Validation_User 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
Alex Waterman
parent
7ee17a1173
commit
461602b19a
@@ -887,7 +887,7 @@ static int pmu_pg_task_init(struct gk20a *g, struct nvgpu_pmu_pg *pg)
|
||||
err = nvgpu_thread_create(&pg->pg_init.state_task, g,
|
||||
pmu_pg_task, thread_name);
|
||||
if (err != 0) {
|
||||
nvgpu_err(g, "failed to start nvgpu_pg_init thread");
|
||||
nvgpu_err(g, "failed to start nvgpu_pg_init thread (%d)", err);
|
||||
}
|
||||
|
||||
return err;
|
||||
|
||||
Reference in New Issue
Block a user