mirror of
https://github.com/torvalds/linux.git
synced 2026-04-19 07:13:56 -04:00
drm/amdgpu: Add pcie replay count callback to nbio
Add a callback in nbio to get pcie replay count. Signed-off-by: Lijo Lazar <lijo.lazar@amd.com> Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
@@ -45,6 +45,14 @@ int amdgpu_nbio_ras_sw_init(struct amdgpu_device *adev)
|
||||
return 0;
|
||||
}
|
||||
|
||||
u64 amdgpu_nbio_get_pcie_replay_count(struct amdgpu_device *adev)
|
||||
{
|
||||
if (adev->nbio.funcs && adev->nbio.funcs->get_pcie_replay_count)
|
||||
return adev->nbio.funcs->get_pcie_replay_count(adev);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
int amdgpu_nbio_ras_late_init(struct amdgpu_device *adev, struct ras_common_if *ras_block)
|
||||
{
|
||||
int r;
|
||||
|
||||
Reference in New Issue
Block a user