From 688a6aa17df0cd023b739c06416e1de22ab64f51 Mon Sep 17 00:00:00 2001 From: Sagar Kamble Date: Thu, 4 Nov 2021 00:19:10 +0530 Subject: [PATCH] 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 Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2620974 Tested-by: mobile promotions Reviewed-by: Alex Waterman Reviewed-by: mobile promotions GVS: Gerrit_Virtual_Submit --- drivers/gpu/nvgpu/os/linux/linux-channel.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/nvgpu/os/linux/linux-channel.c b/drivers/gpu/nvgpu/os/linux/linux-channel.c index 9c604ab0b..2b064b3c5 100644 --- a/drivers/gpu/nvgpu/os/linux/linux-channel.c +++ b/drivers/gpu/nvgpu/os/linux/linux-channel.c @@ -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); + } } }