]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/amd/powerplay: not free hwmgr/smumgr in asic private functions.
authorRex Zhu <Rex.Zhu@amd.com>
Mon, 2 Jan 2017 10:37:36 +0000 (18:37 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 27 Jan 2017 16:12:59 +0000 (11:12 -0500)
commit4c283acf69cf85f4e72c380b055a8fdba01d272e
tree876e9e597d69859bc1b2c6f3dd22fcc34795e994
parent6f4dc24a88a015ca31c8dbb79f9ad3bcc34f386e
drm/amd/powerplay: not free hwmgr/smumgr in asic private functions.

struct smumgr/hwmgr will be freed on amd_powerplay_destory

and if we free them in one of asic private functions, other private
date may not be freed. for example: power state and power table
in hwmgr.

Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/hwmgr/cz_hwmgr.c
drivers/gpu/drm/amd/powerplay/smumgr/cz_smumgr.c