]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdkfd: fix a memory leak issue
authorDennis Li <Dennis.Li@amd.com>
Wed, 2 Sep 2020 09:11:09 +0000 (17:11 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 15 Sep 2020 22:16:04 +0000 (18:16 -0400)
commit9242e1576e084b763c22b9b390d45a4d35f56d53
tree44a3abd573f8a5d336fa232fd9a06f35f61244dc
parent8924d969147badd7eee1a2c76db4546cbda949e5
drm/amdkfd: fix a memory leak issue

In the resume stage of GPU recovery, start_cpsch will call pm_init
which set pm->allocated as false, cause the next pm_release_ib has
no chance to release ib memory.

Add pm_release_ib in stop_cpsch which will be called in the suspend
stage of GPU recovery.

Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Dennis Li <Dennis.Li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c