From 461602b19af9ff2b5cf63f05c17c35378f564f01 Mon Sep 17 00:00:00 2001 From: Abhiroop Kaginalkar Date: Tue, 8 Oct 2019 15:36:33 -0700 Subject: [PATCH] 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 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 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/common/pmu/pg/pmu_pg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/nvgpu/common/pmu/pg/pmu_pg.c b/drivers/gpu/nvgpu/common/pmu/pg/pmu_pg.c index 82bbaf0e7..526e17cb5 100644 --- a/drivers/gpu/nvgpu/common/pmu/pg/pmu_pg.c +++ b/drivers/gpu/nvgpu/common/pmu/pg/pmu_pg.c @@ -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;