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)
commita6dcfd9cc55432e4dcbe058d6ae9f07fb3452992
tree2c8c17e33d2f511e026f29ea684b587afa204249
parent482587e3145ef4100b52946660ae52b457d09194
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