From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thierry Reding Date: Mon, 17 Nov 2014 11:16:14 +0100 Subject: [U-Boot] [PATCH v3 29/30] net: rtl8169: Use non-cached memory if available In-Reply-To: <1415842036-28471-30-git-send-email-sjg@chromium.org> References: <1415842036-28471-1-git-send-email-sjg@chromium.org> <1415842036-28471-30-git-send-email-sjg@chromium.org> Message-ID: <20141117101613.GE20092@ulmo.nvidia.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wed, Nov 12, 2014 at 06:27:15PM -0700, Simon Glass wrote: [...] > diff --git a/drivers/net/rtl8169.c b/drivers/net/rtl8169.c > index fc8c31e..cd26c36 100644 > --- a/drivers/net/rtl8169.c > +++ b/drivers/net/rtl8169.c > @@ -41,6 +41,7 @@ > * Modified to use le32_to_cpu and cpu_to_le32 properly > */ > #include > +#include > #include > #include > #include > @@ -290,16 +291,15 @@ struct RxDesc { > * cases the driver will likely fail because the CPU needs to flush the cache > * when requeuing RX buffers, therefore descriptors written by the hardware > * may be discarded. > + * > + * This can be fixed by defining CONFIG_SYS_NONCACHED_MEMORY which will cause > + * the driver allocate descriptors from a pool of non-cached memory. Self-correct: s/driver allocate/driver to allocate/ Thierry -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 819 bytes Desc: not available URL: