OSDN Git Service

drm/amdgpu: Remove redundant ras->supported
authorLuben Tuikov <luben.tuikov@amd.com>
Tue, 4 May 2021 00:02:22 +0000 (20:02 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 10 May 2021 22:07:56 +0000 (18:07 -0400)
commitacdae2169bae6993c61ded36ae0b2301c07c0a9e
tree2f91063454951ccccf04b433f0c8faacaaf084e7
parent71efc8701a47aa9e3de74bab06020da81757893f
drm/amdgpu: Remove redundant ras->supported

Remove redundant ras->supported, as this value
is also stored in adev->ras_features.

Use adev->ras_features, as that supercedes "ras",
since the latter is its member.

The dependency goes like this:
ras <== adev->ras_features <== hw_supported,
and is read as "ras depends on ras_features, which
depends on hw_supported." The arrows show the flow
of information, i.e. the dependency update.

"hw_supported" should also live in "adev".

Cc: Alexander Deucher <Alexander.Deucher@amd.com>
Cc: John Clements <john.clements@amd.com>
Cc: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Luben Tuikov <luben.tuikov@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
Reviewed-by: John Clements <John.Clements@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.h
drivers/gpu/drm/amd/amdgpu/soc15.c
drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega20_baco.c
drivers/gpu/drm/amd/pm/swsmu/smu11/smu_v11_0.c