]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amdgpu: Skip err_count sysfs creation on VF unsupported RAS blocks
authorVictor Skvortsov <victor.skvortsov@amd.com>
Tue, 21 Jan 2025 03:00:22 +0000 (22:00 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 13 Feb 2025 02:02:59 +0000 (21:02 -0500)
commit04893397766a2b2f1bc7fe5c6414e4c0846ed171
tree711f2e2818ea5cb8964608235469107632742064
parent16b85a0942c0b0f1611bcaa42cc98f020e34b1cf
drm/amdgpu: Skip err_count sysfs creation on VF unsupported RAS blocks

VFs are not able to query error counts for all RAS blocks. Rather than
returning error for queries on these blocks, skip sysfs the creation
all together.

Signed-off-by: Victor Skvortsov <victor.skvortsov@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c
drivers/gpu/drm/amd/amdgpu/amdgpu_virt.h