Skip to content

Commit 80a780a

Browse files
jokim-amdalexdeucher
authored andcommitted
drm/amdkfd: decrement queue count on mes queue destroy
Queue count should decrement on queue destruction regardless of HWS support type. Signed-off-by: Jonathan Kim <jonathan.kim@amd.com> Reviewed-by: Felix Kuehling <felix.kuehling@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
1 parent 121f17a commit 80a780a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2089,8 +2089,8 @@ static int destroy_queue_cpsch(struct device_queue_manager *dqm,
20892089
list_del(&q->list);
20902090
qpd->queue_count--;
20912091
if (q->properties.is_active) {
2092+
decrement_queue_count(dqm, qpd, q);
20922093
if (!dqm->dev->kfd->shared_resources.enable_mes) {
2093-
decrement_queue_count(dqm, qpd, q);
20942094
retval = execute_queues_cpsch(dqm,
20952095
KFD_UNMAP_QUEUES_FILTER_DYNAMIC_QUEUES, 0,
20962096
USE_DEFAULT_GRACE_PERIOD);

0 commit comments

Comments
 (0)