* [PATCH] drm/amdgpu: default noretry=0 for navi1x and newer (v2)
@ 2020-11-30 19:25 Alex Deucher
2020-11-30 19:52 ` Felix Kuehling
0 siblings, 1 reply; 3+ messages in thread
From: Alex Deucher @ 2020-11-30 19:25 UTC (permalink / raw)
To: amd-gfx; +Cc: Alex Deucher
There are no performance advantages to setting it to 1 and
it causes stability issues in some cases.
v2: simplify the code
Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/1374
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
---
drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c | 5 -----
1 file changed, 5 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c
index fede84509dbc..b07c47cacd28 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c
@@ -422,11 +422,6 @@ void amdgpu_gmc_noretry_set(struct amdgpu_device *adev)
switch (adev->asic_type) {
case CHIP_VEGA20:
- case CHIP_NAVI10:
- case CHIP_NAVI14:
- case CHIP_SIENNA_CICHLID:
- case CHIP_NAVY_FLOUNDER:
- case CHIP_DIMGREY_CAVEFISH:
/*
* noretry = 0 will cause kfd page fault tests fail
* for some ASICs, so set default to 1 for these ASICs.
--
2.25.4
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] drm/amdgpu: default noretry=0 for navi1x and newer (v2)
2020-11-30 19:25 [PATCH] drm/amdgpu: default noretry=0 for navi1x and newer (v2) Alex Deucher
@ 2020-11-30 19:52 ` Felix Kuehling
2020-11-30 20:30 ` Christian König
0 siblings, 1 reply; 3+ messages in thread
From: Felix Kuehling @ 2020-11-30 19:52 UTC (permalink / raw)
To: Alex Deucher, amd-gfx; +Cc: Alex Deucher
Am 2020-11-30 um 2:25 p.m. schrieb Alex Deucher:
> There are no performance advantages to setting it to 1 and
> it causes stability issues in some cases.
See my later email on the other thread. There was another consideration
besides performance. It had to do with retry fault handling, which
depended on being able to reroute the interrupts to the IH1 ring, which
the security policy doesn't allow on many boards. With Christian's
recent changes to reroute retry interrupts to a software ring, this
dependency is gone and it should now be safe to enable retry on most boards.
>
> v2: simplify the code
>
> Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/1374
> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
> ---
> drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c | 5 -----
> 1 file changed, 5 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c
> index fede84509dbc..b07c47cacd28 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c
> @@ -422,11 +422,6 @@ void amdgpu_gmc_noretry_set(struct amdgpu_device *adev)
>
> switch (adev->asic_type) {
> case CHIP_VEGA20:
> - case CHIP_NAVI10:
> - case CHIP_NAVI14:
> - case CHIP_SIENNA_CICHLID:
> - case CHIP_NAVY_FLOUNDER:
> - case CHIP_DIMGREY_CAVEFISH:
> /*
> * noretry = 0 will cause kfd page fault tests fail
> * for some ASICs, so set default to 1 for these ASICs.
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] drm/amdgpu: default noretry=0 for navi1x and newer (v2)
2020-11-30 19:52 ` Felix Kuehling
@ 2020-11-30 20:30 ` Christian König
0 siblings, 0 replies; 3+ messages in thread
From: Christian König @ 2020-11-30 20:30 UTC (permalink / raw)
To: Felix Kuehling, Alex Deucher, amd-gfx; +Cc: Alex Deucher
Am 30.11.20 um 20:52 schrieb Felix Kuehling:
> Am 2020-11-30 um 2:25 p.m. schrieb Alex Deucher:
>> There are no performance advantages to setting it to 1 and
>> it causes stability issues in some cases.
> See my later email on the other thread. There was another consideration
> besides performance. It had to do with retry fault handling, which
> depended on being able to reroute the interrupts to the IH1 ring, which
> the security policy doesn't allow on many boards. With Christian's
> recent changes to reroute retry interrupts to a software ring, this
> dependency is gone and it should now be safe to enable retry on most boards.
It's not the best solution from a performance point of view, but it
indeed seems to get things working as expected.
>
>
>> v2: simplify the code
>>
>> Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/1374
>> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
> Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
>
>
>> ---
>> drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c | 5 -----
>> 1 file changed, 5 deletions(-)
>>
>> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c
>> index fede84509dbc..b07c47cacd28 100644
>> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c
>> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gmc.c
>> @@ -422,11 +422,6 @@ void amdgpu_gmc_noretry_set(struct amdgpu_device *adev)
>>
>> switch (adev->asic_type) {
>> case CHIP_VEGA20:
>> - case CHIP_NAVI10:
>> - case CHIP_NAVI14:
>> - case CHIP_SIENNA_CICHLID:
>> - case CHIP_NAVY_FLOUNDER:
>> - case CHIP_DIMGREY_CAVEFISH:
>> /*
>> * noretry = 0 will cause kfd page fault tests fail
>> * for some ASICs, so set default to 1 for these ASICs.
> _______________________________________________
> amd-gfx mailing list
> amd-gfx@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-11-30 20:30 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-11-30 19:25 [PATCH] drm/amdgpu: default noretry=0 for navi1x and newer (v2) Alex Deucher
2020-11-30 19:52 ` Felix Kuehling
2020-11-30 20:30 ` Christian König
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).