drm/amdgpu: decouple sysfs creating of bad page node
authorGuchun Chen <guchun.chen@amd.com>
Fri, 31 Jul 2020 07:06:32 +0000 (15:06 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 4 Aug 2020 21:27:16 +0000 (17:27 -0400)
commitf848159b570ecdcd157ad5b52eb58e5cb3a075a7
tree51fdb66093b6df33518a139ab10573aa06041201
parenteb0c3cd48f5f27abf3ba92bd142b71ef76229706
drm/amdgpu: decouple sysfs creating of bad page node

Bad page information should not be exposed by sysfs when
bad page retirement is disabled, so decouple it from ras
sysfs group creating, and add one guard before creating.

Signed-off-by: Guchun Chen <guchun.chen@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