summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorMichael Chan <michael.chan@broadcom.com>2024-11-22 14:45:46 -0800
committerPaolo Abeni <pabeni@redhat.com>2024-11-26 15:29:31 +0100
commit3661c05c54e8db7064aa96a0774654740974dffc (patch)
tree191109e525bc600dd4d68ea4c234698d31e9e106 /tools/perf/scripts/python
parent1e9614cd956268e10a669c0593e7e54d03d0c087 (diff)
downloadlinux-3661c05c54e8db7064aa96a0774654740974dffc.tar.gz
linux-3661c05c54e8db7064aa96a0774654740974dffc.tar.bz2
linux-3661c05c54e8db7064aa96a0774654740974dffc.zip
bnxt_en: Unregister PTP during PCI shutdown and suspend
If we go through the PCI shutdown or suspend path, we shutdown the NIC but PTP remains registered. If the kernel continues to run for a little bit, the periodic PTP .do_aux_work() function may be called and it will read the PHC from the BAR register. Since the device has already been disabled, it will cause a PCIe completion timeout. Fix it by calling bnxt_ptp_clear() in the PCI shutdown/suspend handlers. bnxt_ptp_clear() will unregister from PTP and .do_aux_work() will be canceled. In bnxt_resume(), we need to re-initialize PTP. Fixes: a521c8a01d26 ("bnxt_en: Move bnxt_ptp_init() from bnxt_open() back to bnxt_init_one()") Cc: Richard Cochran <richardcochran@gmail.com> Reviewed-by: Somnath Kotur <somnath.kotur@broadcom.com> Reviewed-by: Pavan Chebbi <pavan.chebbi@broadcom.com> Reviewed-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com> Signed-off-by: Michael Chan <michael.chan@broadcom.com> Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions