netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC 0/3] net: macb: Use SRAM on SoC for RX rings and buffers
@ 2017-07-12 16:28 Alexander Dahl
  2017-07-12 16:28 ` [RFC 1/3] net: macb: Add register descriptions Alexander Dahl
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Alexander Dahl @ 2017-07-12 16:28 UTC (permalink / raw)
  To: linux-kernel; +Cc: netdev, linux-arm-kernel

Hei hei,

this is a small patch series for a problem we encoutered with a board
based on an AT91SAM9G20 SoC. I talked about it a few days ago on the
#armlinux IRC channel with Alexandre Belloni and Florian Fainelli. The
current state of those patches is 'prove of concept', but if this is
useful for someone I would like to get it upstream.

The first two patches are just adding some descriptive comments for
register and bit definitions, taken from the at91sam9g20 hardware
manual. Those may be of general interest, even without the third
patch.

The third patch is the main one. I tried to describe in the commit
message as clear as possible what problem is to be solved. If you
don't understand the reason please ask, I will happily change or
extend the message.

Regarding the third patch: It's just a proof of concept so far, I
changed some hardcoded values which probably should not be that low
for the normal usecase with RX buffers/rings in SD-RAM/DDR-RAM. It
would be good if this would be somehow configurable at boot time, so
maybe in device tree. However I would need an idea how to do this and
some help, that's why this series is just RFC.

I tested this with heavy load on the EBI bus (external SRAM), network
seems to work as usual and I get no receive overrun errors anymore.

An interesting question for me would be where this mac is used and
whether internal sram is available on those SoCs and in what sizes
(sam9g20 has 32k). A quick view in arch/arm/boot/dts just showed my
at91sam9 and sama5 platforms using the macb driver.

Greets
Alex

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

end of thread, other threads:[~2017-07-12 16:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-12 16:28 [RFC 0/3] net: macb: Use SRAM on SoC for RX rings and buffers Alexander Dahl
2017-07-12 16:28 ` [RFC 1/3] net: macb: Add register descriptions Alexander Dahl
2017-07-12 16:28 ` [RFC 2/3] net: macb: Add buffer descriptor names Alexander Dahl
2017-07-12 16:28 ` [RFC 3/3] net: macb: Use sram for rx buffers Alexander Dahl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).