Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1694061

[PATCH 0/2] net: ethernet: ti: cpts: fix tx timestamping timeout

From Grygorii Strashko <grygorii.strashko@ti.com>
Newsgroups linux.kernel
Subject [PATCH 0/2] net: ethernet: ti: cpts: fix tx timestamping timeout
Date 2017-07-22 02:00 +0200
Message-ID <u5PZU-2PH-5@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


With the low Ethernet connection speed cpdma notification about packet
processing can be received before CPTS TX timestamp event, which is set
when packet actually left CPSW while cpdma notification is sent when packet
pushed in CPSW fifo. As result, when connection is slow and CPU is fast
enough TX timestamping is not working properly.
Issue was discovered using timestamping tool on am57x boards with Ethernet link
speed forced to 100M and on am335x-evm with Ethernet link speed forced to 10M.

This series fixes it by introducing TX SKB queue to store PTP SKBs for which
Ethernet Transmit Event hasn't been received yet and then re-check this queue
with new Ethernet Transmit Events by scheduling CPTS overflow
work more often until TX SKB queue is not empty.
The internal CPTS workqueues are also converted to use kthread_worker.

Grygorii Strashko (2):
  net: ethernet: ti: cpts: convert to use kthread_worker
  net: ethernet: ti: cpts: fix tx timestamping timeout

 drivers/net/ethernet/ti/cpts.c | 112 +++++++++++++++++++++++++++++++++++++----
 drivers/net/ethernet/ti/cpts.h |   5 +-
 2 files changed, 106 insertions(+), 11 deletions(-)

-- 
2.10.1

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH 0/2] net: ethernet: ti: cpts: fix tx timestamping timeout Grygorii Strashko <grygorii.strashko@ti.com> - 2017-07-22 02:00 +0200
  [PATCH 1/2] net: ethernet: ti: cpts: convert to use kthread_worker Grygorii Strashko <grygorii.strashko@ti.com> - 2017-07-22 02:00 +0200
    Re: [PATCH 1/2] net: ethernet: ti: cpts: convert to use  kthread_worker Richard Cochran <richardcochran@gmail.com> - 2017-07-22 07:30 +0200
      Re: [PATCH 1/2] net: ethernet: ti: cpts: convert to use  kthread_worker Grygorii Strashko <grygorii.strashko@ti.com> - 2017-07-25 02:40 +0200
        Re: [PATCH 1/2] net: ethernet: ti: cpts: convert to use  kthread_worker Richard Cochran <richardcochran@gmail.com> - 2017-07-25 06:40 +0200

csiph-web