OSDN Git Service

soc: fsl: dpio: add support for irq coalescing per software portal
authorIoana Ciornei <ioana.ciornei@nxp.com>
Fri, 15 Oct 2021 09:01:24 +0000 (12:01 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 Oct 2021 13:32:40 +0000 (14:32 +0100)
commited1d2143fee53755ec601eb4d48a337a93933f71
tree4a730ca59c0a63de840a68a96d75311b2a0e2243
parent2cf0b6fe9bd3c05b499b26ba871651d7860c10f4
soc: fsl: dpio: add support for irq coalescing per software portal

In DPAA2 based SoCs, the IRQ coalesing support per software portal has 2
configurable parameters:
 - the IRQ timeout period (QBMAN_CINH_SWP_ITPR): how many 256 QBMAN
   cycles need to pass until a dequeue interrupt is asserted.
 - the IRQ threshold (QBMAN_CINH_SWP_DQRR_ITR): how many dequeue
   responses in the DQRR ring would generate an IRQ.

Add support for setting up and querying these IRQ coalescing related
parameters.

Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/soc/fsl/dpio/dpio-service.c
drivers/soc/fsl/dpio/qbman-portal.c
drivers/soc/fsl/dpio/qbman-portal.h
include/soc/fsl/dpaa2-io.h