LKML Archive on
help / color / mirror / Atom feed
From: Boris Brezillon <>
To: Ladislav Michl <>
	Boris Brezillon <>,
	Peter Ujfalusi <>,
	Roger Quadros <>,
	Aaro Koskinen <>,
	Tony Lindgren <>,
	"H. Nikolaus Schaller" <>,
	Andreas Kemnade <>
Subject: Re: [PATCH v2] mtd: onenand: omap2: Disable DMA for HIGHMEM buffers
Date: Fri, 20 Apr 2018 22:01:34 +0200	[thread overview]
Message-ID: <20180420220134.3021860f@bbrezillon> (raw)
In-Reply-To: <20180416065256.GA24455@lenoch>

Hi Ladislav,

On Mon, 16 Apr 2018 08:52:59 +0200
Ladislav Michl <> wrote:

> dma_map_single doesn't get the proper DMA address for vmalloced area,

That's not true, it returns the right DMA (physical) address, it's just

1/ the memory location is not necessarily physically contiguous
2/ in case your arch is VIVT ot VIPT, there may be several entries in
   the cache pointing to the same physical location, and the cache
   maintenance operations done by dma_map_single() will only operate on
   one of these entries.

> so disable DMA in this case.

The fix looks good though. Can you rephrase your commit message to make
it clearer.



  parent reply	other threads:[~2018-04-20 20:01 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-04-16  6:52 Ladislav Michl
2018-04-16 11:34 ` Peter Ujfalusi
2018-04-16 13:32   ` Ladislav Michl
2018-04-20 20:01 ` Boris Brezillon [this message]
2018-05-02  8:06   ` Ladislav Michl
2018-05-02  9:16     ` Boris Brezillon

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:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180420220134.3021860f@bbrezillon \ \ \ \ \ \ \ \ \ \ \ \
    --subject='Re: [PATCH v2] mtd: onenand: omap2: Disable DMA for HIGHMEM buffers' \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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).