mirror of
https://github.com/torvalds/linux.git
synced 2026-05-23 22:52:19 +02:00
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>
This commit is contained in:
parent
3bae7916e7
commit
5608ddf6e9
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user