diff options
author | Lijo Lazar <lijo.lazar@amd.com> | 2023-07-27 12:15:49 +0300 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2023-08-08 00:14:06 +0300 |
commit | 900af4e4887ca980c8d57889e3d33e36b7586f38 (patch) | |
tree | d58f425083e336efa99b5524364848d4ee53258e /drivers/gpu/drm/amd/amdgpu/amdgpu_nbio.c | |
parent | 7be199bdb7d2f852e61d4fbbf820366a87b8ad69 (diff) | |
download | linux-900af4e4887ca980c8d57889e3d33e36b7586f38.tar.xz |
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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_nbio.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_nbio.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_nbio.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_nbio.c index a3bc00577a7c..d085687a47ea 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_nbio.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_nbio.c @@ -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; |