drm/amd/display: call amdgpu_dm_fini when hw_fini.
authorRex Zhu <Rex.Zhu@amd.com>
Mon, 22 May 2017 05:11:15 +0000 (13:11 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Sep 2017 22:07:29 +0000 (18:07 -0400)
commit21de3396b44a67429c6b6a3f2d697fb261c76054
treea1ce9d63794512975739ab496c8f0a654c832281
parentc14833c6728e587d33777d416a9d0c21d3785ff8
drm/amd/display: call amdgpu_dm_fini when hw_fini.

to free up drm mode_config info.

fix issue: unload amdgpu, can't load amdgpu again.
[drm:drm_debugfs_init [drm]] *ERROR* Cannot create /sys/kernel/debug/dri/0
[drm:drm_minor_register [drm]] *ERROR* DRM: Failed to initialize /sys/kernel/debug/dri.

Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Andrey Grodzovsky<andrey.grodzovsky@amd.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
drivers/gpu/drm/amd/display/dc/core/dc.c