File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed
drivers/gpu/drm/amd/amdgpu Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -53,6 +53,14 @@ u64 amdgpu_nbio_get_pcie_replay_count(struct amdgpu_device *adev)
53
53
return 0 ;
54
54
}
55
55
56
+ void amdgpu_nbio_get_pcie_usage (struct amdgpu_device * adev , uint64_t * count0 ,
57
+ uint64_t * count1 )
58
+ {
59
+ if (adev -> nbio .funcs -> get_pcie_usage )
60
+ adev -> nbio .funcs -> get_pcie_usage (adev , count0 , count1 );
61
+
62
+ }
63
+
56
64
int amdgpu_nbio_ras_late_init (struct amdgpu_device * adev , struct ras_common_if * ras_block )
57
65
{
58
66
int r ;
Original file line number Diff line number Diff line change @@ -100,6 +100,8 @@ struct amdgpu_nbio_funcs {
100
100
u32 (* get_memory_partition_mode )(struct amdgpu_device * adev ,
101
101
u32 * supp_modes );
102
102
u64 (* get_pcie_replay_count )(struct amdgpu_device * adev );
103
+ void (* get_pcie_usage )(struct amdgpu_device * adev , uint64_t * count0 ,
104
+ uint64_t * count1 );
103
105
};
104
106
105
107
struct amdgpu_nbio {
@@ -112,6 +114,7 @@ struct amdgpu_nbio {
112
114
};
113
115
114
116
int amdgpu_nbio_ras_sw_init (struct amdgpu_device * adev );
117
+ void amdgpu_nbio_get_pcie_usage (struct amdgpu_device * adev , uint64_t * count0 , uint64_t * count1 );
115
118
int amdgpu_nbio_ras_late_init (struct amdgpu_device * adev , struct ras_common_if * ras_block );
116
119
u64 amdgpu_nbio_get_pcie_replay_count (struct amdgpu_device * adev );
117
120
You can’t perform that action at this time.
0 commit comments