summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2025-03-19 16:56:00 +0300
committerAlex Deucher <alexander.deucher@amd.com>2025-03-21 19:16:34 +0300
commit5608ddf6e94c41a673170b2a7e3aad485fd8b88a (patch)
tree004b36160e66f9ec3e641f2dfcc3e30c6390a63b /drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c
parent3bae7916e7ac3464dcc56b773f832e468cd2946d (diff)
downloadlinux-5608ddf6e94c41a673170b2a7e3aad485fd8b88a.tar.xz
drm/amdgpu/mes: optimize compute loop handling
Break when we get to the end of the supported pipes rather than continuing the loop. Reviewed-by: Shaoyun.liu <Shaoyun.liu@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c
index b4eef396d419..e886d3d441d2 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c
@@ -147,7 +147,7 @@ int amdgpu_mes_init(struct amdgpu_device *adev)
for (i = 0; i < AMDGPU_MES_MAX_COMPUTE_PIPES; i++) {
/* use only 1st MEC pipes */
if (i >= adev->gfx.mec.num_pipe_per_mec)
- continue;
+ break;
adev->mes.compute_hqd_mask[i] = 0xc;
}