All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Zhao, Yong" <Yong.Zhao-5C7GfCeVMHo@public.gmane.org>
To: "Kuehling, Felix" <Felix.Kuehling-5C7GfCeVMHo@public.gmane.org>,
	"amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org"
	<amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org>
Subject: Re: [PATCH 6/6] drm/amdkfd: Improve KFD IOCTL printing
Date: Mon, 30 Sep 2019 18:05:33 +0000	[thread overview]
Message-ID: <DM6PR12MB27786C334D48B9EC6329B68CF0820@DM6PR12MB2778.namprd12.prod.outlook.com> (raw)
In-Reply-To: <30b9f4d8-0365-27fb-b6b4-ba2d20b9cb81-5C7GfCeVMHo@public.gmane.org>


[-- Attachment #1.1: Type: text/plain, Size: 2360 bytes --]

Okay, I will change dev_err back to dev_dbg. The hex printing is still very useful.

Yong
________________________________
From: Kuehling, Felix <Felix.Kuehling-5C7GfCeVMHo@public.gmane.org>
Sent: Monday, September 30, 2019 11:47 AM
To: Zhao, Yong <Yong.Zhao-5C7GfCeVMHo@public.gmane.org>; amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org <amd-gfx@lists.freedesktop.org>
Subject: Re: [PATCH 6/6] drm/amdkfd: Improve KFD IOCTL printing

On 2019-09-27 11:41 p.m., Zhao, Yong wrote:
> The code use hex define, so should the printing. Also, printf a message
> if there is a failure.
>
> Change-Id: Ia7cc7690553bb043915b3d8c0157216c64421a60
> Signed-off-by: Yong Zhao <Yong.Zhao-5C7GfCeVMHo@public.gmane.org>
> ---
>   drivers/gpu/drm/amd/amdkfd/kfd_chardev.c | 5 +++--
>   1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c b/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c
> index c28ba0c1d7ac..d1ab09c0f522 100644
> --- a/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c
> +++ b/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c
> @@ -1840,7 +1840,7 @@ static long kfd_ioctl(struct file *filep, unsigned int cmd, unsigned long arg)
>        } else
>                goto err_i1;
>
> -     dev_dbg(kfd_device, "ioctl cmd 0x%x (#%d), arg 0x%lx\n", cmd, nr, arg);
> +     dev_dbg(kfd_device, "ioctl cmd 0x%x (#0x%x), arg 0x%lx\n", cmd, nr, arg);
>
>        process = kfd_get_process(current);
>        if (IS_ERR(process)) {
> @@ -1895,7 +1895,8 @@ static long kfd_ioctl(struct file *filep, unsigned int cmd, unsigned long arg)
>                kfree(kdata);
>
>        if (retcode)
> -             dev_dbg(kfd_device, "ret = %d\n", retcode);
> +             dev_err(kfd_device, "ioctl cmd (#0x%x), arg 0x%lx, ret = %d\n",
> +                             nr, arg, retcode);

NAK. We don't want to spam the kernel log with cryptic error messages
every time ioctl functions fail. Please leave this as a dev_dbg message.
Failing ioctl functions could be perfectly normal for a number of
reasons (system call interrupted by signal, running out of event slots,
timeouts on event waiting, etc). But every bug report will incorrectly
blame any unrelated problem on those messages if they happen to appear
in the kernel log.

Regards,
   Felix


>
>        return retcode;
>   }

[-- Attachment #1.2: Type: text/html, Size: 4987 bytes --]

[-- Attachment #2: Type: text/plain, Size: 153 bytes --]

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

  parent reply	other threads:[~2019-09-30 18:05 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-09-28  3:41 [PATCH 1/6] drm/amdkfd: Update parameter type of pasid to uint16_t Zhao, Yong
     [not found] ` <20190928034132.28340-1-Yong.Zhao-5C7GfCeVMHo@public.gmane.org>
2019-09-28  3:41   ` [PATCH 2/6] drm/amdgpu: Delete useless header file reference Zhao, Yong
2019-09-28  3:41   ` [PATCH 3/6] drm/amdkfd: Delete unnecessary function declarations Zhao, Yong
2019-09-28  3:41   ` [PATCH 4/6] drm/amdkfd: Use array to probe kfd2kgd_calls Zhao, Yong
     [not found]     ` <20190928034132.28340-4-Yong.Zhao-5C7GfCeVMHo@public.gmane.org>
2019-09-30 15:42       ` Kuehling, Felix
     [not found]         ` <39dcbd3e-1bb9-8729-6368-0e87fdfcdbd3-5C7GfCeVMHo@public.gmane.org>
2019-09-30 18:04           ` Zhao, Yong
2019-09-28  3:41   ` [PATCH 6/6] drm/amdkfd: Improve KFD IOCTL printing Zhao, Yong
     [not found]     ` <20190928034132.28340-6-Yong.Zhao-5C7GfCeVMHo@public.gmane.org>
2019-09-30 15:47       ` Kuehling, Felix
     [not found]         ` <30b9f4d8-0365-27fb-b6b4-ba2d20b9cb81-5C7GfCeVMHo@public.gmane.org>
2019-09-30 18:05           ` Zhao, Yong [this message]
2019-09-28  3:41   ` [PATCH 5/6] drm/amdgpu: Add the HDP flush support for Navi Zhao, Yong
     [not found]     ` <20190928034132.28340-5-Yong.Zhao-5C7GfCeVMHo@public.gmane.org>
2019-09-30 15:57       ` Kuehling, Felix
     [not found]         ` <9e4b4889-4937-bb42-d0f9-79766fd87138-5C7GfCeVMHo@public.gmane.org>
2019-09-30 18:08           ` Zhao, Yong
2019-09-30 15:54   ` [PATCH 1/6] drm/amdkfd: Update parameter type of pasid to uint16_t Kuehling, Felix
     [not found]     ` <4674ca17-3d2b-f44a-bf0b-8d17d3b4fe9c-5C7GfCeVMHo@public.gmane.org>
2019-09-30 21:57       ` Zhao, Yong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=DM6PR12MB27786C334D48B9EC6329B68CF0820@DM6PR12MB2778.namprd12.prod.outlook.com \
    --to=yong.zhao-5c7gfcevmho@public.gmane.org \
    --cc=Felix.Kuehling-5C7GfCeVMHo@public.gmane.org \
    --cc=amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.