]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "dpaa2-eth: configure the cache stashing amount on a queue"
authorIoana Radulescu <ruxandra.radulescu@nxp.com>
Thu, 23 May 2019 14:38:22 +0000 (17:38 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 23 May 2019 16:37:22 +0000 (09:37 -0700)
commitce72ab53f1113d4ed3f0cd5ab6ef8cb52e29744e
treeab33e16d4ad4998efb7e60e69d942bed0f53d1da
parent2b3e6041c01b9e379615a4ff1a702c824e2d547f
Revert "dpaa2-eth: configure the cache stashing amount on a queue"

This reverts commit 1d82b22cab7fc87dcc79abcb3276f43a66f27bb0.

The reverted change instructed the QMan hardware block to fetch
RX frame annotation and beginning of frame data to cache before
the core would read them.

It turns out that in rare cases, it's possible that a QMan
stashing transaction is delayed long enough such that, by the time
it gets executed, the frame in question had already been dequeued
by the core and software processing began on it. If the core
manages to unmap the frame buffer _before_ the stashing transaction
is executed, an SMMU exception will be raised.

Unfortunately there is no easy way to work around this while keeping
the performance advantages brought by QMan stashing, so disable
it altogether.

Signed-off-by: Ioana Radulescu <ruxandra.radulescu@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c