Commit 5608ddf6 authored by Alex Deucher's avatar Alex Deucher
Browse files

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: default avatarShaoyun.liu <Shaoyun.liu@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 3bae7916
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
	}