From: Tom Rini <trini@ti.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [U-Boot, 1/3] pcnet: access descriptor rings & init block uncached
Date: Fri, 18 Apr 2014 17:01:53 -0400 [thread overview]
Message-ID: <20140418210153.GY5698@bill-the-cat> (raw)
In-Reply-To: <1396885308-61884-2-git-send-email-paul.burton@imgtec.com>
On Mon, Apr 07, 2014 at 04:41:46PM +0100, Paul Burton wrote:
> The prior accesses to the descriptor rings & init block via cached
> memory had a few issues:
>
> - The memory needs cache flushes or invalidation at the appropriate
> times, but was not necessarily aligned on cache line boundaries.
> This could lead to data being incorrectly lost or written back to
> RAM at the wrong time.
>
> - There are points where ordering of writes to the memory is
> important, but because it's cached memory the pcnet controller
> would see cache lines written back ordered by address. This could
> occasionally lead to hardware seeing descriptors in an incorrect
> state.
>
> - Flushing the cache constantly is inefficient.
>
> So, to avoid all of those issues simply access the descriptors & init
> block via uncached memory. The MIPS-specific UNCACHED_SDRAM macro is
> used to do this (retrieving an address in kseg1) as I could see no
> existing generic solution. Since the MIPS Malta board is the only user
> of the pcnet driver, hopefully this doesn't matter.
>
> Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Applied to u-boot/master, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140418/74915973/attachment.pgp>
next prev parent reply other threads:[~2014-04-18 21:01 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-04-07 15:41 [U-Boot] [PATCH 0/3] pcnet driver fixes Paul Burton
2014-04-07 15:41 ` [U-Boot] [PATCH 1/3] pcnet: access descriptor rings & init block uncached Paul Burton
2014-04-18 21:01 ` Tom Rini [this message]
2014-04-07 15:41 ` [U-Boot] [PATCH 2/3] pcnet: align rx buffers for cache invalidation Paul Burton
2014-04-18 21:01 ` [U-Boot] [U-Boot, " Tom Rini
2014-04-07 15:41 ` [U-Boot] [PATCH 3/3] pcnet: force ordering of descriptor accesses Paul Burton
2014-04-18 21:02 ` [U-Boot] [U-Boot, " Tom Rini
2014-04-17 19:44 ` [U-Boot] [PATCH 0/3] pcnet driver fixes Daniel Schwierzeck
2014-04-22 13:46 ` Tom Rini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20140418210153.GY5698@bill-the-cat \
--to=trini@ti.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox