drm/amdgpu: Rework pcie_bif ras sw_init
authorHawking Zhang <Hawking.Zhang@amd.com>
Mon, 13 Mar 2023 06:18:34 +0000 (14:18 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 15 Mar 2023 22:45:27 +0000 (18:45 -0400)
commitfdc94d3a8c887e4e06a7ff8dcb51d55cd70e16cf
tree0c5e36c606d8d27b6b92066bbbec16108c23d3bd
parentda9d669eab152dbd6e9410606a7c8c8a212a7959
drm/amdgpu: Rework pcie_bif ras sw_init

pcie_bif ras blocks needs to be initialized as early
as possible to handle fatal error detected in hw_init
phase. also align the pcie_bif ras sw_init with other
ras blocks

Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Stanley Yang <Stanley.Yang@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_nbio.c
drivers/gpu/drm/amd/amdgpu/amdgpu_nbio.h
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c