Skip to contentSkip to conversation

drm/amdgpu: increase IH ring buffer size to avoid overflow

PATCH In review Alex Deucher 3 participants 4 messages Mar 15, 2017 – Mar 16, 2017 3 messages not in the archive

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/amdgpu: increase IH ring buffer size to avoid overflow

From: "Roger.He" <[email protected]>

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.

---
 drivers/gpu/drm/amd/amdgpu/tonga_ih.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/tonga_ih.c +1 -1
index 2053220..3a5097a 100644
@@ -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;
 
Signature · 6 lines
2.5.5

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

A message that is not in the archive (sent off-list or not yet received): 1489609115-24006-1-git-send-email-alexander.deucher-5C7GfCeVMHo@public.gmane.org

#2 lore raw

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

Quoted 30 lines · Alex Deucher

From: "Roger.He" <[email protected]>

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.

---
 drivers/gpu/drm/amd/amdgpu/tonga_ih.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/tonga_ih.c +1 -2
index 2053220..3a5097a 100644
@@ -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

Quoted 4 lines

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

A message that is not in the archive (sent off-list or not yet received): CAFQ_0eG9kP1YCLktyMT1h8RP6HkbdaeQKOSQeuiNFpKX6BYFQQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org

#4 lore raw
Quoted 9 lines · Andres Rodriguez

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

Quoted 33 lines

Regards,
Andres

Quoted 27 lines · Alex Deucher

From: "Roger.He" <[email protected]>

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.

---
 drivers/gpu/drm/amd/amdgpu/tonga_ih.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/tonga_ih.c +1 -1
index 2053220..3a5097a 100644
@@ -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;
 
Quoted 7 lines
Quoted 7 lines

--
2.5.5

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

A message that is not in the archive (sent off-list or not yet received): CADnq5_PSZXRvkmifBD2N2ELhf3-_15xx7e_MPWTKpPTbiBp=VA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org

#6 lore raw

Am 16.03.2017 um 02:34 schrieb Alex Deucher:

Quoted 5 lines · Andres Rodriguez
Quoted 4 lines

Hey Alex, Christian,

On a slightly unrelated note.

Quoted 8 lines
Quoted 5 lines

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.

Quoted 38 lines

Alex

Quoted 35 lines

Regards,
Andres

Quoted 30 lines · Alex Deucher

From: "Roger.He" <[email protected]>

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.

---
  drivers/gpu/drm/amd/amdgpu/tonga_ih.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/tonga_ih.c +1 -2
index 2053220..3a5097a 100644
@@ -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

Quoted 8 lines
Quoted 4 lines
Quoted 4 lines

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx