summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/gecko.py
diff options
context:
space:
mode:
authorChristopher S M Hall <christopher.s.hall@intel.com>2025-04-02 02:35:34 +0300
committerTony Nguyen <anthony.l.nguyen@intel.com>2025-04-11 19:13:28 +0300
commit1a931c4f5e6862e61a4b130cb76b422e1415f644 (patch)
tree22caef628d788fe46b59e34684263e426825b1fb /tools/perf/scripts/python/gecko.py
parent1f025759ba394dd53e434d2668cb0597886d9b69 (diff)
downloadlinux-1a931c4f5e6862e61a4b130cb76b422e1415f644.tar.xz
igc: add lock preventing multiple simultaneous PTM transactions
Add a mutex around the PTM transaction to prevent multiple transactors Multiple processes try to initiate a PTM transaction, one or all may fail. This can be reproduced by running two instances of the following: $ sudo phc2sys -O 0 -i tsn0 -m PHC2SYS exits with: "ioctl PTP_OFFSET_PRECISE: Connection timed out" when the PTM transaction fails Note: Normally two instance of PHC2SYS will not run, but one process should not break another. Fixes: a90ec8483732 ("igc: Add support for PTP getcrosststamp()") Signed-off-by: Christopher S M Hall <christopher.s.hall@intel.com> Reviewed-by: Corinna Vinschen <vinschen@redhat.com> Signed-off-by: Jacob Keller <jacob.e.keller@intel.com> Tested-by: Mor Bar-Gabay <morx.bar.gabay@intel.com> Acked-by: Vinicius Costa Gomes <vinicius.gomes@intel.com> Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/gecko.py')
0 files changed, 0 insertions, 0 deletions