netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David Miller <davem@davemloft.net>
To: sshah@solarflare.com
Cc: netdev@vger.kernel.org, linux-net-drivers@solarflare.com
Subject: Re: [PATCH net v2 0/2] sfc: Restrict PIO for 64bit arch in order to avoid data corruption
Date: Fri, 30 May 2014 17:38:20 -0700 (PDT)	[thread overview]
Message-ID: <20140530.173820.494414338220972060.davem@davemloft.net> (raw)
In-Reply-To: <5385AAF5.7090001@solarflare.com>

From: Shradha Shah <sshah@solarflare.com>
Date: Wed, 28 May 2014 10:23:01 +0100

> This patch series 
> Fixes: ee45fd92c739db5b7950163d91dfe5f016af6d24
> 
> The linux net driver uses memcpy_toio() in order to copy into
> the PIO buffers.
> Even on a 64bit machine this causes 32bit accesses to a write-
> combined memory region.
> There are hardware limitations that mean that only
> 64bit naturally aligned accesses are safe in all cases. Due to being
> write-combined memory region two 32bit accesses may be coalesced to
> form a 64bit non 64bit aligned access.
> Solution was to open-code the memory copy routines using pointers
> and to only enable PIO for x86_64 machines.
> 
> This bug fix applies to v3.13 and v3.14 stable branches.

You submited this twice and I'm still confused which ones I should
use.

Please resubmit this and address Sergei's feedback, thank you.

      parent reply	other threads:[~2014-05-31  0:38 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-28  9:23 [PATCH net v2 0/2] sfc: Restrict PIO for 64bit arch in order to avoid data corruption Shradha Shah
2014-05-28  9:28 ` [PATCH net v2 1/2] sfc: use 64-bit writes for PIO Shradha Shah
2014-05-28  9:30 ` [PATCH net v2 2/2] sfc: Restrict PIO to 64-bit architectures Shradha Shah
2014-05-31  0:38 ` David Miller [this message]

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=20140530.173820.494414338220972060.davem@davemloft.net \
    --to=davem@davemloft.net \
    --cc=linux-net-drivers@solarflare.com \
    --cc=netdev@vger.kernel.org \
    --cc=sshah@solarflare.com \
    /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;
as well as URLs for NNTP newsgroup(s).