]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/amdgpu: add sw_fini interface for df_funcs
authorJack Zhang <Jack.Zhang1@amd.com>
Tue, 3 Sep 2019 02:15:23 +0000 (10:15 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 13 Sep 2019 22:42:15 +0000 (17:42 -0500)
commitf5e475208dbaf3447843d6213b12b0865c47d53c
tree9b0782191b29b868d07930725be49d52f308c781
parentc4a8cf4f6eb8db09e254855a70981db4fa40cec5
drm/amd/amdgpu: add sw_fini interface for df_funcs

add sw_fini interface of df_funcs.
This interface will remove sysfs file of df_cntr_avail
function.

The old behavior only create sysfs of df_cntr_avail
in sw_init, but never remove it for lack of sw_fini
interface. With this,driver will report create
sysfs fail when it's loaded for the second time.

Signed-off-by: Jack Zhang <Jack.Zhang1@amd.com>
Reviewed-by: Jonathan Kim <Jonathan.Kim@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/df_v1_7.c
drivers/gpu/drm/amd/amdgpu/df_v3_6.c
drivers/gpu/drm/amd/amdgpu/soc15.c