All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Christian König" <ckoenig.leichtzumerken@gmail.com>
To: Paul Menzel <pmenzel@molgen.mpg.de>, Yifan Zhang <yifan1.zhang@amd.com>
Cc: alexander.deucher@amd.com, Ray.Huang@amd.com,
	christian.koenig@amd.com, amd-gfx@lists.freedesktop.org
Subject: Re: [PATCH v2 2/3] drm/amdgpu: convert code name to ip version for noretry set
Date: Wed, 2 Mar 2022 08:46:21 +0100	[thread overview]
Message-ID: <54c29b0b-fe03-7c59-061c-15a87965e477@gmail.com> (raw)
In-Reply-To: <d356df33-4f6f-e8a2-08c3-cfee6b904c37@molgen.mpg.de>

Am 01.03.22 um 16:24 schrieb Paul Menzel:
> Dear Yifan,
>
>
> Thank you for your patch.
>
> Am 01.03.22 um 16:01 schrieb Yifan Zhang:
>> Use IP version rather than codename for noretry set.
>
> Why?

Why not?

>
>> Signed-off-by: Yifan Zhang <yifan1.zhang@amd.com>
>> ---
>>   drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c | 17 ++++++++---------
>>   1 file changed, 8 insertions(+), 9 deletions(-)
>>
>> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c 
>> b/drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c
>> index ab75e189bc0b..fbc22b7b6315 100644
>> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c
>> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c
>> @@ -559,14 +559,14 @@ void amdgpu_gmc_noretry_set(struct 
>> amdgpu_device *adev)
>>   {
>>       struct amdgpu_gmc *gmc = &adev->gmc;
>>   -    switch (adev->asic_type) {
>> -    case CHIP_VEGA10:
>> -    case CHIP_VEGA20:
>> -    case CHIP_ARCTURUS:
>> -    case CHIP_ALDEBARAN:
>> -    case CHIP_BEIGE_GOBY:
>> -    case CHIP_YELLOW_CARP:
>> -    case CHIP_RENOIR:
>> +    switch (adev->ip_versions[GC_HWIP][0]) {
>> +    case IP_VERSION(9, 0, 1):
>> +    case IP_VERSION(9, 4, 0):
>> +    case IP_VERSION(9, 4, 1):
>> +    case IP_VERSION(9, 4, 2):
>> +    case IP_VERSION(10, 3, 5):
>> +    case IP_VERSION(10, 3, 3):
>> +    case IP_VERSION(9, 3, 0):
>
> I think, sorting these entries might be useful.
>
> Should the names be added as comments for those not having them 
> memorized?
>
>>           /*
>>            * noretry = 0 will cause kfd page fault tests fail
>>            * for some ASICs, so set default to 1 for these ASICs.
>> @@ -576,7 +576,6 @@ void amdgpu_gmc_noretry_set(struct amdgpu_device 
>> *adev)
>>           else
>>               gmc->noretry = amdgpu_noretry;
>>           break;
>> -    case CHIP_RAVEN:
>
> Why remove this?
>
>>       default:
>>           /* Raven currently has issues with noretry
>>            * regardless of what we decide for other
>
>
> Kind regards,
>
> Paul


  reply	other threads:[~2022-03-02  7:46 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-01 15:01 [PATCH v2 1/3] drm/amdgpu: move amdgpu_gmc_noretry_set after ip_versions populated Yifan Zhang
2022-03-01 15:01 ` [PATCH v2 2/3] drm/amdgpu: convert code name to ip version for noretry set Yifan Zhang
2022-03-01 15:24   ` Paul Menzel
2022-03-02  7:46     ` Christian König [this message]
2022-03-02  7:52       ` Paul Menzel
2022-03-02  7:47   ` Christian König
2022-03-01 15:01 ` [PATCH v2 3/3] drm/amdgpu: set noretry=1 for gc 10.3.6 Yifan Zhang
2022-03-01 15:11 ` [PATCH v2 1/3] drm/amdgpu: move amdgpu_gmc_noretry_set after ip_versions populated Alex Deucher
2022-03-02  8:49 ` Huang Rui

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=54c29b0b-fe03-7c59-061c-15a87965e477@gmail.com \
    --to=ckoenig.leichtzumerken@gmail.com \
    --cc=Ray.Huang@amd.com \
    --cc=alexander.deucher@amd.com \
    --cc=amd-gfx@lists.freedesktop.org \
    --cc=christian.koenig@amd.com \
    --cc=pmenzel@molgen.mpg.de \
    --cc=yifan1.zhang@amd.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 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.