Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/amdgpu: Remove sys file compute_partition_mem_alloc_mode at module unload

Module reload would fail when create sys file that was not removed during
module unload.

Fixes: e0e9792ea2d4 ("drm/amdgpu: add an option to allow gpu partition allocate all available memory")
Signed-off-by: Xiaogang Chen <xiaogang.chen@amd.com>
Reviewed-by: Philip Yang <philip.yang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Xiaogang Chen and committed by
Alex Deucher
a094bcf2 504f0098

+2
+2
drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c
··· 2013 2013 (xcp_mgr->funcs && xcp_mgr->funcs->switch_partition_mode); 2014 2014 device_remove_file(adev->dev, &dev_attr_current_compute_partition); 2015 2015 2016 + device_remove_file(adev->dev, &dev_attr_compute_partition_mem_alloc_mode); 2017 + 2016 2018 if (xcp_switch_supported) 2017 2019 device_remove_file(adev->dev, 2018 2020 &dev_attr_available_compute_partition);