diff options
author | Hawking Zhang <Hawking.Zhang@amd.com> | 2019-08-29 15:57:32 +0300 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2019-09-14 01:11:05 +0300 |
commit | 9ad1dc295b39ac725b56f7fdfeffd09de5a6dbce (patch) | |
tree | f77b88a3ea19cd1cf23ba6e09cd30de7f756c1d9 /drivers/gpu/drm/amd/amdgpu/amdgpu_nbio.h | |
parent | dda79907a77bc6bb34412762925ff1d6d3e2a67a (diff) | |
download | linux-9ad1dc295b39ac725b56f7fdfeffd09de5a6dbce.tar.xz |
drm/amdgpu: add ras_late_init callback function for nbio v7_4 (v3)
ras_late_init callback function will be used to do common ras
init in late init phase.
v2: call ras_late_fini to do cleanup when fails to enable interrupt
v3: rename sysfs/debugfs node name to pcie_bif_xxx
Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Tao Zhou <tao.zhou1@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_nbio.h')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_nbio.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_nbio.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_nbio.h index a04c5ea03418..51078da6188f 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_nbio.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_nbio.h @@ -81,12 +81,14 @@ struct amdgpu_nbio_funcs { void (*handle_ras_err_event_athub_intr_no_bifring)(struct amdgpu_device *adev); int (*init_ras_controller_interrupt)(struct amdgpu_device *adev); int (*init_ras_err_event_athub_interrupt)(struct amdgpu_device *adev); + int (*ras_late_init)(struct amdgpu_device *adev); }; struct amdgpu_nbio { const struct nbio_hdp_flush_reg *hdp_flush_reg; struct amdgpu_irq_src ras_controller_irq; struct amdgpu_irq_src ras_err_event_athub_irq; + struct ras_common_if *ras_if; const struct amdgpu_nbio_funcs *funcs; }; |