mbox series

[v2,net-next,0/3] net: stmmac: re-configure tas basetime after ptp time adjust

Message ID 20210705102655.6280-1-xiaoliang.yang_1@nxp.com (mailing list archive)
Headers show
Series net: stmmac: re-configure tas basetime after ptp time adjust | expand

Message

Xiaoliang Yang July 5, 2021, 10:26 a.m. UTC
If the DWMAC Ethernet device has already set the Qbv EST configuration
before using ptp to synchronize the time adjustment, the Qbv base time
may change to be the past time of the new current time. This is not
allowed by hardware.

This patch calculates and re-configures the Qbv basetime after ptp time
adjustment.

v1->v2:
  Update est mutex lock to protect btr/ctr r/w to be atomic.
  Add btr_reserve to store basetime from qopt and used as origin base
time in Qbv re-configuration.

Xiaoliang Yang (3):
  net: stmmac: separate the tas basetime calculation function
  net: stmmac: add mutex lock to protect est parameters
  net: stmmac: ptp: update tas basetime after ptp adjust

 drivers/net/ethernet/stmicro/stmmac/stmmac.h  |  3 ++
 .../net/ethernet/stmicro/stmmac/stmmac_ptp.c  | 41 ++++++++++++++++-
 .../net/ethernet/stmicro/stmmac/stmmac_tc.c   | 46 +++++++++++++------
 include/linux/stmmac.h                        |  1 +
 4 files changed, 77 insertions(+), 14 deletions(-)

Comments

patchwork-bot+netdevbpf@kernel.org July 5, 2021, 5:20 p.m. UTC | #1
Hello:

This series was applied to netdev/net.git (refs/heads/master):

On Mon,  5 Jul 2021 18:26:52 +0800 you wrote:
> If the DWMAC Ethernet device has already set the Qbv EST configuration
> before using ptp to synchronize the time adjustment, the Qbv base time
> may change to be the past time of the new current time. This is not
> allowed by hardware.
> 
> This patch calculates and re-configures the Qbv basetime after ptp time
> adjustment.
> 
> [...]

Here is the summary with links:
  - [v2,net-next,1/3] net: stmmac: separate the tas basetime calculation function
    https://git.kernel.org/netdev/net/c/81c52c42afd9
  - [v2,net-next,2/3] net: stmmac: add mutex lock to protect est parameters
    https://git.kernel.org/netdev/net/c/b2aae654a479
  - [v2,net-next,3/3] net: stmmac: ptp: update tas basetime after ptp adjust
    https://git.kernel.org/netdev/net/c/e9e3720002f6

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html