drm/amdkfd: Fix GWS queue count
authorDavid Yat Sin <david.yatsin@amd.com>
Mon, 18 Apr 2022 15:55:58 +0000 (11:55 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 9 May 2022 07:14:38 +0000 (09:14 +0200)
commitce9be3baec9b58b3f6e4c721e6498ecfc37e5834
treeebbc85836cc6f0828b545e4275876bdf663af515
parent54e0b949bf590a644cb6f7600912e6d5902f0ad3
drm/amdkfd: Fix GWS queue count

[ Upstream commit 7c6b6e18c890f30965b0589b0a57645e1dbccfde ]

dqm->gws_queue_count and pdd->qpd.mapped_gws_queue need to be updated
each time the queue gets evicted.

Fixes: b8020b0304c8 ("drm/amdkfd: Enable over-subscription with >1 GWS queue")
Signed-off-by: David Yat Sin <david.yatsin@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c