drm/amdgpu: use IP version check in sysfs creation conditional logic
authorCe Sun <cesun102@amd.com>
Thu, 9 Jul 2026 06:22:51 +0000 (14:22 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 14 Jul 2026 23:12:36 +0000 (19:12 -0400)
commitb60d1d91444bc9c8e3b99d815be9647e129d017f
treec00c8672d226b713b168ca501bd274e824cd03bb
parent290b370657fe7373cb0f301355536bfc9900bcba
drm/amdgpu: use IP version check in sysfs creation conditional logic

avoid sysfs node creation faults when performing NPS mode switching

Signed-off-by: Ce Sun <cesun102@amd.com>
Reviewed-by: Tao Zhou <tao.zhou1@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c