]> git.ipfire.org Git - thirdparty/u-boot.git/commit
net: lpc32xx: Use IRAM for transmit buffer
authorGregory CLEMENT <gregory.clement@bootlin.com>
Wed, 17 Apr 2019 09:41:42 +0000 (11:41 +0200)
committerTom Rini <trini@konsulko.com>
Fri, 26 Apr 2019 22:58:20 +0000 (18:58 -0400)
commit32dfc12b703faf9e6ab1e544a05ec5dba7d45449
tree9a23c1cac15d16ef05b891698830d83844e14c1b
parent5f626e78491c95dbf3e5036cc0c67aea8b1746fd
net: lpc32xx: Use IRAM for transmit buffer

Since the introduction of the driver, some memory in IRAM is reserved for
the TX buffers.

However there are not used but instead of it, it is the buffer provided
by the net stack which is used. As stated in the comment of the driver,
not using the IRAM buffer could cause cache issue and lower the
throughput.

For the second argument it is less the case for transmitting buffers
because the throughput gain in IRAM is mitigated by the time to copy the
data from RAM to IRAM, but the first argument is still valid and indeed
this patch fixes issue seen with Ethernet on some boards

Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
drivers/net/lpc32xx_eth.c