mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Nicolas Morey-Chaisemartin <nmorey@kalray.eu>
To: One Thousand Gnomes <gnomes@lxorguk.ukuu.org.uk>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [Question] Missing data after DMA read transfer
Date: Thu, 21 Apr 2016 10:51:52 +0200	[thread overview]
Message-ID: <278aff83-5d3a-e755-a4c3-50bfccf08886@kalray.eu> (raw)
In-Reply-To: <20160421093512.4a63e2c2@lxorguk.ukuu.org.uk>



Le 04/21/2016 à 10:35 AM, One Thousand Gnomes a écrit :
>> But if I try to copy_from_user (using the address coming from userland, the one passed to get_user_pages), the data has not been written and I see the memset value.
>>
>> I manage to build a test case that fails all the time, but never at the same offset within the buffer.
>> It's always in the middle (never at the start nor end), for a few pages long (varies between runs).
> Always page aligned, always cache line aligned or arbitrarily aligned ?
>
> Alan
It's always page aligned for both start and end (meaning last "untransferred" byte is the last byte of a page)

Nicolas

  reply	other threads:[~2016-04-21  8:51 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-20 14:56 Nicolas Morey-Chaisemartin
2016-04-21  8:35 ` One Thousand Gnomes
2016-04-21  8:51   ` Nicolas Morey-Chaisemartin [this message]
2016-04-25  6:18 ` Nicolas Morey-Chaisemartin
2016-04-26 13:31   ` Nicolas Morey-Chaisemartin
2016-04-27  9:20   ` Nicolas Morey-Chaisemartin

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=278aff83-5d3a-e755-a4c3-50bfccf08886@kalray.eu \
    --to=nmorey@kalray.eu \
    --cc=gnomes@lxorguk.ukuu.org.uk \
    --cc=linux-kernel@vger.kernel.org \
    /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

all inboxes | Powered by JetHome®