AMD-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Das, Nirmoy" <nirmoy.das@linux.intel.com>
To: Alex Deucher <alexdeucher@gmail.com>, Nirmoy Das <nirmoy.das@intel.com>
Cc: "Alex Deucher" <alexander.deucher@amd.com>,
	dri-devel@lists.freedesktop.org,
	"Christian König" <christian.koenig@amd.com>,
	amd-gfx@lists.freedesktop.org
Subject: Re: [PATCH 1/2] drm/radeon: Do not use deprecated drm log API
Date: Tue, 17 Jan 2023 18:51:28 +0100	[thread overview]
Message-ID: <b1b8cc97-f102-8820-3b5d-1cce97fc398f@linux.intel.com> (raw)
In-Reply-To: <CADnq5_P-vC9zfEPUk7LwPWuS1s+e4nqZtEqWf2mo0BfnVwYqJA@mail.gmail.com>


On 1/17/2023 6:48 PM, Alex Deucher wrote:
> On Tue, Jan 17, 2023 at 12:45 PM Nirmoy Das <nirmoy.das@intel.com> wrote:
>> Replace deprecated DRM_DEBUG_KMS_RATELIMITED() and DRM_ERROR()
>> with proper APIs.
>>
>> Cc: Alex Deucher <alexander.deucher@amd.com>
>> Cc: Christian König <christian.koenig@amd.com>
>>
>> Signed-off-by: Nirmoy Das <nirmoy.das@intel.com>
>> ---
>>   drivers/gpu/drm/radeon/radeon_dp_auxch.c | 5 ++---
>>   1 file changed, 2 insertions(+), 3 deletions(-)
>>
>> diff --git a/drivers/gpu/drm/radeon/radeon_dp_auxch.c b/drivers/gpu/drm/radeon/radeon_dp_auxch.c
>> index 69379b95146e..76ce66efb5f8 100644
>> --- a/drivers/gpu/drm/radeon/radeon_dp_auxch.c
>> +++ b/drivers/gpu/drm/radeon/radeon_dp_auxch.c
>> @@ -158,7 +158,7 @@ radeon_dp_aux_transfer_native(struct drm_dp_aux *aux, struct drm_dp_aux_msg *msg
>>          } while (retry_count++ < 1000);
>>
>>          if (retry_count >= 1000) {
>> -               DRM_ERROR("auxch hw never signalled completion, error %08x\n", tmp);
>> +               pr_err("auxch hw never signalled completion, error %08x\n", tmp);
> Please use dev_err() instead so we get device identification on error
> messages.  Makes it much easier when you have multiple GPUs in a
> system.


Thanks for your quick review, Alex. I will resend with dev_err().


Nirmoy

>
> Alex
>
>>                  ret = -EIO;
>>                  goto done;
>>          }
>> @@ -168,8 +168,7 @@ radeon_dp_aux_transfer_native(struct drm_dp_aux *aux, struct drm_dp_aux_msg *msg
>>                  goto done;
>>          }
>>          if (tmp & AUX_RX_ERROR_FLAGS) {
>> -               DRM_DEBUG_KMS_RATELIMITED("dp_aux_ch flags not zero: %08x\n",
>> -                                         tmp);
>> +               drm_dbg_kms_ratelimited(dev, "dp_aux_ch flags not zero: %08x\n", tmp);
>>                  ret = -EIO;
>>                  goto done;
>>          }
>> --
>> 2.39.0
>>

      reply	other threads:[~2023-01-17 17:51 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-17 17:44 [PATCH 1/2] drm/radeon: Do not use deprecated drm log API Nirmoy Das
2023-01-17 17:44 ` [PATCH 2/2] drm_print: Remove deprecated DRM_DEBUG_KMS_RATELIMITED() Nirmoy Das
2023-01-17 17:59   ` Sam Ravnborg
2023-01-17 17:48 ` [PATCH 1/2] drm/radeon: Do not use deprecated drm log API Alex Deucher
2023-01-17 17:51   ` Das, Nirmoy [this message]

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=b1b8cc97-f102-8820-3b5d-1cce97fc398f@linux.intel.com \
    --to=nirmoy.das@linux.intel.com \
    --cc=alexander.deucher@amd.com \
    --cc=alexdeucher@gmail.com \
    --cc=amd-gfx@lists.freedesktop.org \
    --cc=christian.koenig@amd.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=nirmoy.das@intel.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox