From: "Christian König" <christian.koenig@amd.com>
To: Yifan Zhang <yifan1.zhang@amd.com>, amd-gfx@lists.freedesktop.org
Cc: Alexander.Deucher@amd.com, Ray.Huang@amd.com
Subject: Re: [PATCH v2 2/3] drm/amdgpu: convert code name to ip version for noretry set
Date: Wed, 2 Mar 2022 08:47:22 +0100 [thread overview]
Message-ID: <082dd387-ecc5-1e87-4664-6aa7da53df8f@amd.com> (raw)
In-Reply-To: <20220301150121.3785743-2-yifan1.zhang@amd.com>
Am 01.03.22 um 16:01 schrieb Yifan Zhang:
> Use IP version rather than codename for noretry set.
>
> 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):
Maybe sort those?
Apart from that Acked-by: Christian König <christian.koenig@amd.com>
Regards,
Christian.
> /*
> * 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:
> default:
> /* Raven currently has issues with noretry
> * regardless of what we decide for other
next prev parent reply other threads:[~2022-03-02 7:47 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
2022-03-02 7:52 ` Paul Menzel
2022-03-02 7:47 ` Christian König [this message]
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=082dd387-ecc5-1e87-4664-6aa7da53df8f@amd.com \
--to=christian.koenig@amd.com \
--cc=Alexander.Deucher@amd.com \
--cc=Ray.Huang@amd.com \
--cc=amd-gfx@lists.freedesktop.org \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox