mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 1/2] soc: fsl: dpio: Add prefetch instruction
@ 2018-12-14 16:04 Ioana Ciocoi Radulescu
  2018-12-14 16:04 ` [PATCH 2/2] soc: fsl: dpio: Change bpid type to u16 Ioana Ciocoi Radulescu
  0 siblings, 1 reply; 2+ messages in thread
From: Ioana Ciocoi Radulescu @ 2018-12-14 16:04 UTC (permalink / raw)
  To: Leo Li, Roy Pledge; +Cc: linux-kernel, linux-arm-kernel, Ioana Ciornei

In dpaa2_io_store_next(), if the current dequeue entry is not
the last, prefetch the next one as most likely it will be
requested shortly by the consumer driver.

This brings a ~3% improvement for dpaa2 ethernet driver
IP forwarding with small size frames.

Signed-off-by: Ioana Radulescu <ruxandra.radulescu@nxp.com>
---
 drivers/soc/fsl/dpio/dpio-service.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/soc/fsl/dpio/dpio-service.c b/drivers/soc/fsl/dpio/dpio-service.c
index 5583d28..56a35c0 100644
--- a/drivers/soc/fsl/dpio/dpio-service.c
+++ b/drivers/soc/fsl/dpio/dpio-service.c
@@ -613,6 +613,7 @@ struct dpaa2_dq *dpaa2_io_store_next(struct dpaa2_io_store *s, int *is_last)
 		if (!(dpaa2_dq_flags(ret) & DPAA2_DQ_STAT_VALIDFRAME))
 			ret = NULL;
 	} else {
+		prefetch(&s->vaddr[s->idx]);
 		*is_last = 0;
 	}
 
-- 
2.7.4


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-12-14 16:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-14 16:04 [PATCH 1/2] soc: fsl: dpio: Add prefetch instruction Ioana Ciocoi Radulescu
2018-12-14 16:04 ` [PATCH 2/2] soc: fsl: dpio: Change bpid type to u16 Ioana Ciocoi Radulescu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®