]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Jul 2025 16:27:50 +0000 (18:27 +0200)
commitcb2c378a7e467515d4aa34c6eb93874b2079d179
tree820a93358a7c9183e1ba0ffe30638366f6267423
parentd20d07f89fcd1dd843ad51d6fdd6d04581835e18
dpaa2-eth: Update dpni_get_single_step_cfg command

[ Upstream commit 9572594ecf027a2b1828e42c26fb55cbd3219708 ]

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>
Stable-dep-of: 2def09ead4ad ("dpaa2-eth: fix xdp_rxq_info leak")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/freescale/dpaa2/dpni-cmd.h
drivers/net/ethernet/freescale/dpaa2/dpni.c
drivers/net/ethernet/freescale/dpaa2/dpni.h