]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/amdgpu: hide VRAM sysfs attributes on GPUs without VRAM
authorChristian König <christian.koenig@amd.com>
Tue, 7 Oct 2025 08:10:52 +0000 (10:10 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 13 Oct 2025 18:14:15 +0000 (14:14 -0400)
commit33cc891b56b93cad1a83263eaf2e417436f70c82
tree23e4f98cd006b64ae4197815388d3f870bfb8bf0
parent74de0eaa00eac2e0cbad1dda6dcf8f44ab27629e
drm/amdgpu: hide VRAM sysfs attributes on GPUs without VRAM

Otherwise accessing them can cause a crash.

Signed-off-by: Christian König <christian.koenig@amd.com>
Tested-by: Mangesh Gadre <Mangesh.Gadre@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Arunpravin Paneer Selvam <Arunpravin.PaneerSelvam@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c