All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/amdgpu: increase IH ring buffer size to avoid overflow
@ 2017-03-15 20:18 Alex Deucher
       [not found] ` <1489609115-24006-1-git-send-email-alexander.deucher-5C7GfCeVMHo@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Alex Deucher @ 2017-03-15 20:18 UTC (permalink / raw)
  To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW; +Cc: Alex Deucher, Roger.He

From: "Roger.He" <Hongbo.He@amd.com>

We originally limited the IH to 4k on tonga since it
uses bus addresses directly rather than GPU MC addresses,
so it needs contigous physical memory.  This brings it
inline with other asics.

Signed-off-by: Roger.He <Hongbo.He@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
---
 drivers/gpu/drm/amd/amdgpu/tonga_ih.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/tonga_ih.c b/drivers/gpu/drm/amd/amdgpu/tonga_ih.c
index 2053220..3a5097a 100644
--- a/drivers/gpu/drm/amd/amdgpu/tonga_ih.c
+++ b/drivers/gpu/drm/amd/amdgpu/tonga_ih.c
@@ -289,7 +289,7 @@ static int tonga_ih_sw_init(void *handle)
 	int r;
 	struct amdgpu_device *adev = (struct amdgpu_device *)handle;
 
-	r = amdgpu_ih_ring_init(adev, 4 * 1024, true);
+	r = amdgpu_ih_ring_init(adev, 64 * 1024, true);
 	if (r)
 		return r;
 
-- 
2.5.5

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

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] drm/amdgpu: increase IH ring buffer size to avoid overflow
       [not found] ` <1489609115-24006-1-git-send-email-alexander.deucher-5C7GfCeVMHo@public.gmane.org>
@ 2017-03-15 21:05   ` Andres Rodriguez
       [not found]     ` <CAFQ_0eG9kP1YCLktyMT1h8RP6HkbdaeQKOSQeuiNFpKX6BYFQQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Andres Rodriguez @ 2017-03-15 21:05 UTC (permalink / raw)
  To: Alex Deucher; +Cc: Alex Deucher, Roger.He, Christian König, amd-gfx list

Hey Alex, Christian,

On a slightly unrelated note.

Have you also considered using system_highpri_wq instead of system_wq
for the delayed interrupt work?

There is a potential for multi-ms latency for systems under high CPU
load. And that is usually the case when users are running games.

Regards,
Andres


On Wed, Mar 15, 2017 at 4:18 PM, Alex Deucher <alexdeucher@gmail.com> wrote:
> From: "Roger.He" <Hongbo.He@amd.com>
>
> We originally limited the IH to 4k on tonga since it
> uses bus addresses directly rather than GPU MC addresses,
> so it needs contigous physical memory.  This brings it
> inline with other asics.
>
> Signed-off-by: Roger.He <Hongbo.He@amd.com>
> Acked-by: Alex Deucher <alexander.deucher@amd.com>
> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
> ---
>  drivers/gpu/drm/amd/amdgpu/tonga_ih.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/tonga_ih.c b/drivers/gpu/drm/amd/amdgpu/tonga_ih.c
> index 2053220..3a5097a 100644
> --- a/drivers/gpu/drm/amd/amdgpu/tonga_ih.c
> +++ b/drivers/gpu/drm/amd/amdgpu/tonga_ih.c
> @@ -289,7 +289,7 @@ static int tonga_ih_sw_init(void *handle)
>         int r;
>         struct amdgpu_device *adev = (struct amdgpu_device *)handle;
>
> -       r = amdgpu_ih_ring_init(adev, 4 * 1024, true);
> +       r = amdgpu_ih_ring_init(adev, 64 * 1024, true);
>         if (r)
>                 return r;
>
> --
> 2.5.5
>
> _______________________________________________
> 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] 4+ messages in thread

* Re: [PATCH] drm/amdgpu: increase IH ring buffer size to avoid overflow
       [not found]     ` <CAFQ_0eG9kP1YCLktyMT1h8RP6HkbdaeQKOSQeuiNFpKX6BYFQQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2017-03-16  1:34       ` Alex Deucher
       [not found]         ` <CADnq5_PSZXRvkmifBD2N2ELhf3-_15xx7e_MPWTKpPTbiBp=VA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Alex Deucher @ 2017-03-16  1:34 UTC (permalink / raw)
  To: Andres Rodriguez
  Cc: Alex Deucher, Roger.He, Christian König, amd-gfx list

On Wed, Mar 15, 2017 at 5:05 PM, Andres Rodriguez <andresx7@gmail.com> wrote:
> Hey Alex, Christian,
>
> On a slightly unrelated note.
>
> Have you also considered using system_highpri_wq instead of system_wq
> for the delayed interrupt work?
>
> There is a potential for multi-ms latency for systems under high CPU
> load. And that is usually the case when users are running games.


I vaguely recall some discussion about this last year on the amd-gfx
or dri-devel list, but beyond that, not that I know of.

Alex

>
> Regards,
> Andres
>
>
> On Wed, Mar 15, 2017 at 4:18 PM, Alex Deucher <alexdeucher@gmail.com> wrote:
>> From: "Roger.He" <Hongbo.He@amd.com>
>>
>> We originally limited the IH to 4k on tonga since it
>> uses bus addresses directly rather than GPU MC addresses,
>> so it needs contigous physical memory.  This brings it
>> inline with other asics.
>>
>> Signed-off-by: Roger.He <Hongbo.He@amd.com>
>> Acked-by: Alex Deucher <alexander.deucher@amd.com>
>> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
>> ---
>>  drivers/gpu/drm/amd/amdgpu/tonga_ih.c | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/drivers/gpu/drm/amd/amdgpu/tonga_ih.c b/drivers/gpu/drm/amd/amdgpu/tonga_ih.c
>> index 2053220..3a5097a 100644
>> --- a/drivers/gpu/drm/amd/amdgpu/tonga_ih.c
>> +++ b/drivers/gpu/drm/amd/amdgpu/tonga_ih.c
>> @@ -289,7 +289,7 @@ static int tonga_ih_sw_init(void *handle)
>>         int r;
>>         struct amdgpu_device *adev = (struct amdgpu_device *)handle;
>>
>> -       r = amdgpu_ih_ring_init(adev, 4 * 1024, true);
>> +       r = amdgpu_ih_ring_init(adev, 64 * 1024, true);
>>         if (r)
>>                 return r;
>>
>> --
>> 2.5.5
>>
>> _______________________________________________
>> 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] 4+ messages in thread

* Re: [PATCH] drm/amdgpu: increase IH ring buffer size to avoid overflow
       [not found]         ` <CADnq5_PSZXRvkmifBD2N2ELhf3-_15xx7e_MPWTKpPTbiBp=VA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2017-03-16  7:57           ` Christian König
  0 siblings, 0 replies; 4+ messages in thread
From: Christian König @ 2017-03-16  7:57 UTC (permalink / raw)
  To: Alex Deucher, Andres Rodriguez
  Cc: Alex Deucher, Roger.He, Christian König, amd-gfx list

Am 16.03.2017 um 02:34 schrieb Alex Deucher:
> On Wed, Mar 15, 2017 at 5:05 PM, Andres Rodriguez <andresx7@gmail.com> wrote:
>> Hey Alex, Christian,
>>
>> On a slightly unrelated note.
>>
>> Have you also considered using system_highpri_wq instead of system_wq
>> for the delayed interrupt work?
>>
>> There is a potential for multi-ms latency for systems under high CPU
>> load. And that is usually the case when users are running games.
>
> I vaguely recall some discussion about this last year on the amd-gfx
> or dri-devel list, but beyond that, not that I know of.

The question is for which delayed work?

Need to make a complete list, but for some it might make indeed sense 
while other doesn't.

We clearly don't need a high priority for gpu resets for example.

Christian.

>
> Alex
>
>> Regards,
>> Andres
>>
>>
>> On Wed, Mar 15, 2017 at 4:18 PM, Alex Deucher <alexdeucher@gmail.com> wrote:
>>> From: "Roger.He" <Hongbo.He@amd.com>
>>>
>>> We originally limited the IH to 4k on tonga since it
>>> uses bus addresses directly rather than GPU MC addresses,
>>> so it needs contigous physical memory.  This brings it
>>> inline with other asics.
>>>
>>> Signed-off-by: Roger.He <Hongbo.He@amd.com>
>>> Acked-by: Alex Deucher <alexander.deucher@amd.com>
>>> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
>>> ---
>>>   drivers/gpu/drm/amd/amdgpu/tonga_ih.c | 2 +-
>>>   1 file changed, 1 insertion(+), 1 deletion(-)
>>>
>>> diff --git a/drivers/gpu/drm/amd/amdgpu/tonga_ih.c b/drivers/gpu/drm/amd/amdgpu/tonga_ih.c
>>> index 2053220..3a5097a 100644
>>> --- a/drivers/gpu/drm/amd/amdgpu/tonga_ih.c
>>> +++ b/drivers/gpu/drm/amd/amdgpu/tonga_ih.c
>>> @@ -289,7 +289,7 @@ static int tonga_ih_sw_init(void *handle)
>>>          int r;
>>>          struct amdgpu_device *adev = (struct amdgpu_device *)handle;
>>>
>>> -       r = amdgpu_ih_ring_init(adev, 4 * 1024, true);
>>> +       r = amdgpu_ih_ring_init(adev, 64 * 1024, true);
>>>          if (r)
>>>                  return r;
>>>
>>> --
>>> 2.5.5
>>>
>>> _______________________________________________
>>> 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


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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-03-16  7:57 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-15 20:18 [PATCH] drm/amdgpu: increase IH ring buffer size to avoid overflow Alex Deucher
     [not found] ` <1489609115-24006-1-git-send-email-alexander.deucher-5C7GfCeVMHo@public.gmane.org>
2017-03-15 21:05   ` Andres Rodriguez
     [not found]     ` <CAFQ_0eG9kP1YCLktyMT1h8RP6HkbdaeQKOSQeuiNFpKX6BYFQQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-03-16  1:34       ` Alex Deucher
     [not found]         ` <CADnq5_PSZXRvkmifBD2N2ELhf3-_15xx7e_MPWTKpPTbiBp=VA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-03-16  7:57           ` Christian König

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.