diff options
| author | Asad Kamal <[email protected]> | 2023-07-28 09:58:54 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2023-08-09 13:46:05 +0000 |
| commit | 8d759dc6644df4141a151293cb0e77fd8ca379ed (patch) | |
| tree | 0066fcb8ea23c8afb46ff95c68e1e06ea548ca3e /drivers/gpu/drm/amd/amdgpu/amdgpu_nbio.h | |
| parent | drm/amdgpu: Extend poison mode check to SDMA/VCN/JPEG (diff) | |
| download | kernel-8d759dc6644df4141a151293cb0e77fd8ca379ed.tar.gz kernel-8d759dc6644df4141a151293cb0e77fd8ca379ed.zip | |
drm/amdgpu: Add pcie usage callback to nbio
Add a callback in nbio to get pcie usage
Signed-off-by: Asad Kamal <[email protected]>
Reviewed-by: Lijo Lazar <[email protected]>
Reviewed-by: Shiwu Zhang <[email protected]>
Reviewed-by: Hawking Zhang <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_nbio.h')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_nbio.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_nbio.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_nbio.h index e352db9baaed..6cf7a8829a52 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_nbio.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_nbio.h @@ -100,6 +100,8 @@ struct amdgpu_nbio_funcs { u32 (*get_memory_partition_mode)(struct amdgpu_device *adev, u32 *supp_modes); u64 (*get_pcie_replay_count)(struct amdgpu_device *adev); + void (*get_pcie_usage)(struct amdgpu_device *adev, uint64_t *count0, + uint64_t *count1); }; struct amdgpu_nbio { @@ -112,6 +114,7 @@ struct amdgpu_nbio { }; int amdgpu_nbio_ras_sw_init(struct amdgpu_device *adev); +void amdgpu_nbio_get_pcie_usage(struct amdgpu_device *adev, uint64_t *count0, uint64_t *count1); int amdgpu_nbio_ras_late_init(struct amdgpu_device *adev, struct ras_common_if *ras_block); u64 amdgpu_nbio_get_pcie_replay_count(struct amdgpu_device *adev); |
