]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drm/amdgpu: Fix KFD oversubscription by tracking queues correctly
authorJay Cornwall <Jay.Cornwall@amd.com>
Fri, 14 Jul 2017 01:21:53 +0000 (20:21 -0500)
committerOded Gabbay <oded.gabbay@gmail.com>
Fri, 14 Jul 2017 01:21:53 +0000 (20:21 -0500)
commit3447d220155bd9f4b5435ea6e9d58b536c7e94dd
treeea3d0555734e7e2644763fbad806d6e0394c36f4
parent5771a8c08880cdca3bfb4a3fc6d309d6bba20877
drm/amdgpu: Fix KFD oversubscription by tracking queues correctly

The number of compute queues available to the KFD was erroneously
calculated as 64. Only the first MEC can execute compute queues and
it has 32 queue slots.

This caused the oversubscription limit to be calculated incorrectly,
leading to a missing chained runlist command at the end of an
oversubscribed runlist.

v2: Remove unused num_mec field to avoid duplicate logic
v3: Separate num_mec removal into separate patches

Change-Id: I9e7bba2cc1928b624e3eeb1edb06fdb602e5294f
Signed-off-by: Jay Cornwall <Jay.Cornwall@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c