]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amdgpu: Remove sys file compute_partition_mem_alloc_mode at module unload
authorXiaogang Chen <xiaogang.chen@amd.com>
Tue, 7 Apr 2026 21:16:23 +0000 (16:16 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 17 Apr 2026 18:45:26 +0000 (14:45 -0400)
commita094bcf204cd86485624ac1a1fd3913337a89446
treed898bca93c7fec73f0b9f2735f193e78e7b12e98
parent504f0098ebd074ac8c0ce3471795d79f68e3d265
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>
drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c