mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Johannes Thoma <johannes@johannesthoma.com>
To: linux-kernel@vger.kernel.org
Subject: Question about cacheline aligned memory for DMA transfers
Date: Wed, 6 May 2015 13:39:56 +0200 (CEST)	[thread overview]
Message-ID: <530602563.487644.1430912396946.JavaMail.open-xchange@oxbaltgw03.schlund.de> (raw)

Dear list,

I am working on a memory corruption problem with a patched 2.6.21 kernel in the
USB driver. In order to better understand the problem I would like to ask how
current kernels handle the case where the same cacheline is used for a DMA-able
object and another object.

Does kmalloc return only memory that is cache line aligned? If not, do all
architectures handle cache line misalign
ed dma accesses correctly like the powerpc (although not yet in 2.6.21)
architecture does?

Thanks for any insights.

- Johannes

PS: Please CC me I am not on the list.

             reply	other threads:[~2015-05-06 11:40 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-06 11:39 Johannes Thoma [this message]
2015-05-07  7:09 ` Clemens Ladisch

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=530602563.487644.1430912396946.JavaMail.open-xchange@oxbaltgw03.schlund.de \
    --to=johannes@johannesthoma.com \
    --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®