Re: [PATCH 1/2] drm/amdgpu: track MQD size for gfx and compute

2023-03-22 Thread Felix Kuehling
MQDs are smaller than a page. The BO size will always be exactly be one page. KFD can allocate MQDs with a suballocator. On some GPUs we allocate MQDs together with the queue's control stack in a single BO. And on some GPUs we allocate SDMA "MQDs" in bulk together with the HIQ MQD. So relying

Re: [PATCH 1/2] drm/amdgpu: track MQD size for gfx and compute

2023-03-22 Thread Christian König
Am 22.03.23 um 14:26 schrieb Alex Deucher: On Wed, Mar 22, 2023 at 4:48 AM Christian König wrote: Am 21.03.23 um 20:39 schrieb Alex Deucher: It varies by generation and we need to know the size to expose this via debugfs. I suspect we can't just use the BO size for this? We could, but it

Re: [PATCH 1/2] drm/amdgpu: track MQD size for gfx and compute

2023-03-22 Thread Alex Deucher
On Wed, Mar 22, 2023 at 4:48 AM Christian König wrote: > > Am 21.03.23 um 20:39 schrieb Alex Deucher: > > It varies by generation and we need to know the size > > to expose this via debugfs. > > I suspect we can't just use the BO size for this? We could, but it may be larger than the actual MQD.

Re: [PATCH 1/2] drm/amdgpu: track MQD size for gfx and compute

2023-03-22 Thread Christian König
Am 21.03.23 um 20:39 schrieb Alex Deucher: It varies by generation and we need to know the size to expose this via debugfs. I suspect we can't just use the BO size for this? If yes the series is Reviewed-by: Christian König Signed-off-by: Alex Deucher ---

[PATCH 1/2] drm/amdgpu: track MQD size for gfx and compute

2023-03-21 Thread Alex Deucher
It varies by generation and we need to know the size to expose this via debugfs. Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c | 2 ++ drivers/gpu/drm/amd/amdgpu/amdgpu_ring.h | 1 + 2 files changed, 3 insertions(+) diff --git