mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Randy Dunlap <rdunlap@infradead.org>
To: Marian Mihailescu <marian.mihailescu@adelaide.edu.au>,
	linux-kernel@vger.kernel.org
Cc: Bart Van Assche <bart.vanassche@sandisk.com>,
	iommu@lists.linux-foundation.org,
	Vladimir Murzin <vladimir.murzin@arm.com>
Subject: Re: CONFIG_DMA_NOOP_OPS breaks ARM arch
Date: Sun, 15 Oct 2017 20:58:24 -0700	[thread overview]
Message-ID: <04535c78-d418-b2b2-89db-ab4732a05984@infradead.org> (raw)
In-Reply-To: <ffa1481b-de82-f163-6cc9-fbb24615572f@infradead.org>

On 10/15/17 20:29, Randy Dunlap wrote:
> On 10/15/17 20:27, Randy Dunlap wrote:
>> On 10/15/17 19:27, Marian Mihailescu wrote:
>>> After commit 7844572c633964c864d9f32dc3f2a8ffe5d70371, dma_noop_ops
>>> are built only for architectures that use it.
>>>
>>> For ARM architecture, CONFIG_DMA_NOOP_OPS is not selected, and cannot
>>> be selected.

What kernel version are you looking at?
I see that it is selected:

--- a/arch/arm/Kconfig
+++ b/arch/arm/Kconfig
@@ -22,6 +22,7 @@ config ARM
 	select CLONE_BACKWARDS
 	select CPU_PM if (SUSPEND || CPU_IDLE)
 	select DCACHE_WORD_ACCESS if HAVE_EFFICIENT_UNALIGNED_ACCESS
+	select DMA_NOOP_OPS if !MMU
 	select EDAC_SUPPORT
 	select EDAC_ATOMIC_SCRUB
 	select GENERIC_ALLOCATOR


That's in commit ID 1c51c429f30ea10428337f3a33c12059ba59f668 from May 24, 2017.

>>> However, arch/arm/include/asm/dma-mapping.h is referencing dma_noop_ops:
>>>
>>> static inline const struct dma_map_ops *get_arch_dma_ops(struct bus_type *bus)
>>> {
>>> return IS_ENABLED(CONFIG_MMU) ? &arm_dma_ops : &dma_noop_ops;
>>> }
>>>
>>> I will let a maintainer suggest the best resolution for this :)
>>>
>>
>> add Bart and iommu mailing list.
>>
> 
> and add Vladimir.
> 
> 


-- 
~Randy

  reply	other threads:[~2017-10-16  3:58 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-16  2:27 Marian Mihailescu
2017-10-16  3:27 ` Randy Dunlap
2017-10-16  3:29   ` Randy Dunlap
2017-10-16  3:58     ` Randy Dunlap [this message]
2017-10-16  5:27       ` Marian Mihailescu
2017-10-16  8:12         ` Vladimir Murzin
2017-10-16 11:14           ` Robin Murphy

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=04535c78-d418-b2b2-89db-ab4732a05984@infradead.org \
    --to=rdunlap@infradead.org \
    --cc=bart.vanassche@sandisk.com \
    --cc=iommu@lists.linux-foundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=marian.mihailescu@adelaide.edu.au \
    --cc=vladimir.murzin@arm.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

all inboxes | Powered by JetHome®