]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdkfd: Fix a bug in SDMA RLC queue counting under HWS mode
authorYong Zhao <Yong.Zhao@amd.com>
Thu, 30 Jan 2020 00:55:47 +0000 (19:55 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 4 Feb 2020 15:32:41 +0000 (10:32 -0500)
commit0346a279e4e28febbd2161f9efad31f45fec1182
treee79e54f89ed10cdb38d5cb229ce20d824a061f52
parent1d3b39b856300d8397763591bc77de121523178b
drm/amdkfd: Fix a bug in SDMA RLC queue counting under HWS mode

The sdma_queue_count increment should be done before
execute_queues_cpsch(), which calls pm_calc_rlib_size() where
sdma_queue_count is used to calculate whether over_subscription is
triggered.

With the previous code, when a SDMA queue is created,
compute_queue_count in pm_calc_rlib_size() is one more than the
actual compute queue number, because the queue_count has been
incremented while sdma_queue_count has not. This patch fixes that.

Signed-off-by: Yong Zhao <Yong.Zhao@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c