gpu: nvgpu: change set_err_notifier error message to info type for forced channel reset

Below error notifier message is not really warning/error as that
is user triggered reset and the notifier value set is already
consumed by userspace hence limit this message to INFO type.

nvgpu: 17000000.gp10b     nvgpu_set_err_notifier_locked:142  [ERR]  error notifier set to 43 for ch 460

Bug 3344409

Change-Id: Ia41cc85f30111ef72994f3ce8e5113e881c06b1b
Signed-off-by: Sagar Kamble <skamble@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2620974
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: Alex Waterman <alexw@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
GVS: Gerrit_Virtual_Submit
This commit is contained in:
Sagar Kamble
2021-11-04 00:19:10 +05:30
committed by mobile promotions
parent 7b29872bc4
commit 688a6aa17d

View File

@@ -139,8 +139,15 @@ void nvgpu_set_err_notifier_locked(struct nvgpu_channel *ch, u32 error)
notification->info32 = error;
notification->status = 0xffff;
nvgpu_err(ch->g,
"error notifier set to %d for ch %d", error, ch->chid);
if (error == NVGPU_CHANNEL_RESETCHANNEL_VERIF_ERROR) {
nvgpu_log_info(ch->g,
"error notifier set to %d for ch %d",
error, ch->chid);
} else {
nvgpu_err(ch->g,
"error notifier set to %d for ch %d",
error, ch->chid);
}
}
}