diff options
| author | Yong Zhao <Yong.Zhao@amd.com> | 2020-02-05 14:48:38 -0500 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2020-02-26 14:20:13 -0500 |
| commit | b42902f4af8fecd2781f71ad166e8a807edb1053 (patch) | |
| tree | dde095cc875667c409a900dfc49b17da6fc0d5ac /drivers/gpu/drm/amd/amdkfd/kfd_packet_manager.c | |
| parent | e6945304187deae0a28ebc65008ec11277f1c0f0 (diff) | |
| download | linux-b42902f4af8fecd2781f71ad166e8a807edb1053.tar.gz linux-b42902f4af8fecd2781f71ad166e8a807edb1053.tar.bz2 linux-b42902f4af8fecd2781f71ad166e8a807edb1053.zip | |
drm/amdkfd: Count active CP queues directly
The previous code of calculating active CP queues is problematic if
some SDMA queues are inactive. Fix that by counting CP queues directly.
Signed-off-by: Yong Zhao <Yong.Zhao@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdkfd/kfd_packet_manager.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdkfd/kfd_packet_manager.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_packet_manager.c b/drivers/gpu/drm/amd/amdkfd/kfd_packet_manager.c index 377bde0e781c..efdb75e7677b 100644 --- a/drivers/gpu/drm/amd/amdkfd/kfd_packet_manager.c +++ b/drivers/gpu/drm/amd/amdkfd/kfd_packet_manager.c @@ -48,8 +48,7 @@ static void pm_calc_rlib_size(struct packet_manager *pm, process_count = pm->dqm->processes_count; queue_count = pm->dqm->active_queue_count; - compute_queue_count = queue_count - pm->dqm->sdma_queue_count - - pm->dqm->xgmi_sdma_queue_count; + compute_queue_count = pm->dqm->active_cp_queue_count; /* check if there is over subscription * Note: the arbitration between the number of VMIDs and |
