OSDN Git Service

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)
commit9572594ecf027a2b1828e42c26fb55cbd3219708
tree3943ed2a35ed721e3c01b1d3f57983f512ec72a5
parent8a4fc54b07d756f1884af6c47ec84dfa3da663df
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