]> git.baikalelectronics.ru Git - kernel.git/commit
dpaa2-eth: Update dpni_get_single_step_cfg command
authorRadu Bulie <radu-andrei.bulie@nxp.com>
Fri, 18 Feb 2022 20:22:00 +0000 (22:22 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 19 Feb 2022 16:27:16 +0000 (16:27 +0000)
commita0c27dc4a1d02e858735fa238ecaf1a30e89c142
tree3943ed2a35ed721e3c01b1d3f57983f512ec72a5
parent3f160c49d3d2dac3c12e2e67c6267c5713354c1b
dpaa2-eth: Update dpni_get_single_step_cfg command

dpni_get_single_step_cfg is an MC firmware command used for
retrieving the contents of SINGLE_STEP 1588 register available
in a DPMAC.

This patch adds a new version of this command that returns as an extra
argument the physical base address of the aforementioned register.
The address will be used to directly modify the contents of the
SINGLE_STEP register instead of invoking the MC command
dpni_set_single_step_cgf. The former approach introduced huge delays on
the TX datapath when one step PTP events were transmitted. This led to low
throughput and high latencies observed in the PTP correction field.

Signed-off-by: Radu Bulie <radu-andrei.bulie@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/dpaa2/dpni-cmd.h
drivers/net/ethernet/freescale/dpaa2/dpni.c
drivers/net/ethernet/freescale/dpaa2/dpni.h