]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: fix pplib finish bug
authorMonk Liu <Monk.Liu@amd.com>
Thu, 19 May 2016 06:36:34 +0000 (14:36 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 9 Jun 2016 14:48:56 +0000 (10:48 -0400)
commitd4e9ccbd739ef58d3d186e6f0f12ba299548af99
tree2c8c17e33d2f511e026f29ea684b587afa204249
parent20fbeadc048adf661b2b5c2572156f73440bd9c4
drm/amdgpu: fix pplib finish bug

1,should use late_fini to kfree all resource otherwise
the released pointer maybe accessed in IRQ ip fini routine.

2,hwmgr should not be kfree by pem_fini which is invoked
by hw fini path.

Signed-off-by: Monk Liu <Monk.Liu@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
drivers/gpu/drm/amd/amdgpu/amdgpu_powerplay.c
drivers/gpu/drm/amd/powerplay/eventmgr/eventmgr.c