drm/amdgpu: fix sysfs interface pcie_replay_count error on navi asic
Subsystems (2)
PATCH 1/1 drm/amdgpu: fix sysfs interface pcie_replay_count error on navi asic
the asic callback function of get_pcie_replay_count is not implement on navi asic, it will cause null pinter error when read this interface.
--- drivers/gpu/drm/amd/amdgpu/nv.c | 11 +++++++++++ 1 file changed, 11 insertions(+)
drivers/gpu/drm/amd/amdgpu/nv.c +11 -0
@@ -539,6 +539,16 @@ static bool nv_need_reset_on_init(struct amdgpu_device *adev)return false; } +static uint64_t nv_get_pcie_replay_count (struct amdgpu_device *adev) +{ + +/* TODO +* dummy implement for pcie_replay_count sysfs interface +* */ + +return 0 ; +} +static void nv_init_doorbell_index (struct amdgpu_device *adev) { adev->doorbell_index.kiq =AMDGPU_NAVI10_DOORBELL_KIQ ;
@@ -586,6 +596,7 @@ static const struct amdgpu_asic_funcs nv_asic_funcs = .need_full_reset = &nv_need_full_reset, .get_pcie_usage = &nv_get_pcie_usage, .need_reset_on_init = &nv_need_reset_on_init, + .get_pcie_replay_count = &nv_get_pcie_replay_count, };static int nv_common_early_init (void *handle)
Signature · 6 lines
2.17.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): [email protected]
Russell, Kent
Reviewed-by Kent RussellI'll try to get on the actual implementation soon.
Kent
-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Wang, Kevin(Yang)
Sent: Tuesday, November 5, 2019 6:02 AM
To: [email protected]
Cc: Deucher, Alexander <[email protected]>; Yuan, Xiaojie <[email protected]>; Li, Candice <[email protected]>; Wang, Kevin(Yang) <[email protected]>; Zhang, Hawking <[email protected]>
Subject: [PATCH] drm/amdgpu: fix sysfs interface pcie_replay_count error on navi asic
the asic callback function of get_pcie_replay_count is not implement on navi asic, it will cause null pinter error when read this interface.
--- drivers/gpu/drm/amd/amdgpu/nv.c | 11 +++++++++++ 1 file changed, 11 insertions(+)
drivers/gpu/drm/amd/amdgpu/nv.c +9 -0
@@ -539,6 +539,16 @@ static bool nv_need_reset_on_init(struct amdgpu_device *adev)return false; } +static uint64_t nv_get_pcie_replay_count (struct amdgpu_device *adev) { + +/* TODO +* dummy implement for pcie_replay_count sysfs interface +* */ + +return 0 ; +} +static void nv_init_doorbell_index (struct amdgpu_device *adev) { adev->doorbell_index.kiq = AMDGPU_NAVI10_DOORBELL_KIQ; @@ -586,6 +596,7 @@ static const struct amdgpu_asic_funcs nv_asic_funcs = .need_full_reset = &nv_need_full_reset,
.get_pcie_usage = &nv_get_pcie_usage, .need_reset_on_init = &nv_need_reset_on_init,
+ .get_pcie_replay_count = &nv_get_pcie_replay_count,
};
static int nv_common_early_init(void *handle)
--
2.17.1
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx