[PATCH] drm/amdkfd: decrement queue count on mes queue destroy
Felix Kuehling
felix.kuehling at amd.com
Tue Jun 13 22:02:00 UTC 2023
On 2023-06-13 17:48, Jonathan Kim wrote:
> Queue count should decrement on queue destruction regardless of HWS
> support type.
>
> Signed-off-by: Jonathan Kim <jonathan.kim at amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling at amd.com>
> ---
> drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c b/drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c
> index 8a39a9e0ed5a..f515cb8f30ca 100644
> --- a/drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c
> +++ b/drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c
> @@ -2089,8 +2089,8 @@ static int destroy_queue_cpsch(struct device_queue_manager *dqm,
> list_del(&q->list);
> qpd->queue_count--;
> if (q->properties.is_active) {
> + decrement_queue_count(dqm, qpd, q);
> if (!dqm->dev->kfd->shared_resources.enable_mes) {
> - decrement_queue_count(dqm, qpd, q);
> retval = execute_queues_cpsch(dqm,
> KFD_UNMAP_QUEUES_FILTER_DYNAMIC_QUEUES, 0,
> USE_DEFAULT_GRACE_PERIOD);
More information about the amd-gfx
mailing list