diff options
author | Yong Zhao <Yong.Zhao@amd.com> | 2020-01-30 03:55:47 +0300 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2020-02-04 18:32:41 +0300 |
commit | f38abc15d157b7b31fa7f651dc8bf92858c963f8 (patch) | |
tree | e79e54f89ed10cdb38d5cb229ce20d824a061f52 /LICENSES | |
parent | c6a228be7f440ad5c341b3039f6033d4a8f070a4 (diff) | |
download | linux-f38abc15d157b7b31fa7f651dc8bf92858c963f8.tar.xz |
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>
Diffstat (limited to 'LICENSES')
0 files changed, 0 insertions, 0 deletions