num_me of gfx as start point for ME for compute
Subsystems (2)
cover num_me of gfx as start point for ME for compute
To support future soc's which could have more than one me engine for GFX
Sunil Khatri (3):
drm/amdgpu: select compute ME engines dynamically drm/amdgpu: select compute ME engines dynamically drm/amdgpu: select compute ME engines dynamically
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 2 +- drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c | 2 +- drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
Signature · 1 line
2.34.1
PATCH 1/3 drm/amdgpu: select compute ME engines dynamically
GFX ME right now is one but this could change in
future SOC's. Use no of ME for GFX as start point
for ME for compute for GFX10.
--- drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c +1 -1
@@ -9332,7 +9332,7 @@ static void gfx_v10_ip_dump(void *handle)for (j =0 ; j < adev->gfx.mec.num_pipe_per_mec; j++) {for (k =0 ; k < adev->gfx.mec.num_queue_per_pipe; k++) {/* ME0 is for GFX so start from 1 for CP */ -nv_grbm_select (adev,1 + i, j, k,0 ); +nv_grbm_select (adev, adev->gfx.me.num_me + i, j, k,0 );for (reg =0 ; reg < reg_count; reg++) { adev->gfx.ip_dump_compute_queues[index + reg] =
Signature · 1 line
2.34.1
PATCH 2/3 drm/amdgpu: select compute ME engines dynamically
In reply to Sunil KhatriGFX ME right now is one but this could change in
future SOC's. Use no of ME for GFX as start point
for ME for compute for GFX11.
--- drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c +1 -1
@@ -6456,7 +6456,7 @@ static void gfx_v11_ip_dump(void *handle)for (j =0 ; j < adev->gfx.mec.num_pipe_per_mec; j++) {for (k =0 ; k < adev->gfx.mec.num_queue_per_pipe; k++) {/* ME0 is for GFX so start from 1 for CP */ -soc21_grbm_select (adev,1 +i, j, k,0 ); +soc21_grbm_select (adev, adev->gfx.me.num_me + i, j, k,0 );for (reg =0 ; reg < reg_count; reg++) { adev->gfx.ip_dump_compute_queues[index + reg] = RREG32(SOC15_REG_ENTRY_OFFSET(
Signature · 1 line
2.34.1
PATCH 3/3 drm/amdgpu: select compute ME engines dynamically
In reply to Sunil KhatriGFX ME right now is one but this could change in
future SOC's. Use no of ME for GFX as start point
for ME for compute for GFX12.
--- drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c +1 -1
@@ -4946,7 +4946,7 @@ static void gfx_v12_ip_dump(void *handle)for (j =0 ; j < adev->gfx.mec.num_pipe_per_mec; j++) {for (k =0 ; k < adev->gfx.mec.num_queue_per_pipe; k++) {/* ME0 is for GFX so start from 1 for CP */ -soc24_grbm_select (adev,1 +i, j, k,0 ); +soc24_grbm_select (adev, adev->gfx.me.num_me + i, j, k,0 );for (reg =0 ; reg < reg_count; reg++) { adev->gfx.ip_dump_compute_queues[index + reg] = RREG32(SOC15_REG_ENTRY_OFFSET(
Signature · 1 line
2.34.1
Re: [PATCH v1 3/3] drm/amdgpu: select compute ME engines dynamically
Makes sense, although the pattern elsewhere is to just start at 1 for mec. Not sure if it's worth the effort to fix all of those cases up too.
Series is:
Quoted 26 lines · Sunil Khatri
GFX ME right now is one but this could change in
future SOC's. Use no of ME for GFX as start point
for ME for compute for GFX12.Signed-off-by Sunil Khatri <[email protected]>--- drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c +1
-2@@ -4946,7 +4946,7 @@ static void gfx_v12_ip_dump(void *handle)for (j =0 ; j < adev->gfx.mec.num_pipe_per_mec; j++) {for (k =0 ; k < adev->gfx.mec.num_queue_per_pipe; k++) {/* ME0 is for GFX so start from 1 for CP */ -soc24_grbm_select (adev,1 +i, j, k,0 ); +soc24_grbm_select (adev, adev->gfx.me.num_me + i, j, k,0 );for (reg =0 ; reg < reg_count; reg++) { adev->gfx.ip_dump_compute_queues[index + reg] = RREG32(SOC15_REG_ENTRY_OFFSET( --2.34.1
Khatri, Sunil
Acked-by Alex DeucherRE: [PATCH v1 3/3] drm/amdgpu: select compute ME engines dynamically
[AMD Official Use Only - AMD Internal Distribution Only]
Thanks Alex
-----Original Message-----
From: Alex Deucher <[email protected]>
Sent: Tuesday, July 9, 2024 7:27 PM
To: Khatri, Sunil <[email protected]>
Cc: Deucher, Alexander <[email protected]>; Koenig, Christian <[email protected]>; [email protected]
Subject: Re: [PATCH v1 3/3] drm/amdgpu: select compute ME engines dynamically
Makes sense, although the pattern elsewhere is to just start at 1 for mec. Not sure if it's worth the effort to fix all of those cases up too. True, but will keep a check on gfx13 and onwards and may be we would have a more than one ME for gfx in some chip and then we have to take care of it explicitly.
Series is:
Quoted 28 lines · Sunil Khatri
GFX ME right now is one but this could change in future SOC's. Use no of ME for GFX as start point for ME for compute for GFX12.
Signed-off-by Sunil Khatri <[email protected]>--- drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/gfx_v12_0.c +2
-1@@ -4946,7 +4946,7 @@ static void gfx_v12_ip_dump(void *handle)for (j =0 ; j < adev->gfx.mec.num_pipe_per_mec; j++) {for (k =0 ; k < adev->gfx.mec.num_queue_per_pipe; k++) {/* ME0 is for GFX so start from 1 for CP */ -soc24_grbm_select (adev,1 +i, j, k,0 ); +soc24_grbm_select (adev, + adev->gfx.me.num_me + i, j, k,0 );for (reg =0 ; reg < reg_count; reg++) { adev->gfx.ip_dump_compute_queues[index + reg] =RREG32(SOC15_REG_ENTRY_OFFSET(
--
2.34.1