From: Tejun Heo <tj@kernel.org>
To: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Vladimir Barinov <vladimir.barinov@cogentembedded.com>,
"linux-ide@vger.kernel.org" <linux-ide@vger.kernel.org>,
linux-renesas-soc@vger.kernel.org, dmaengine@vger.kernel.org,
Harvey Hunt <harvey.hunt@imgtec.com>
Subject: Re: rcar_sata DMA warnings on Salvator-X
Date: Tue, 1 Mar 2016 12:12:18 -0500 [thread overview]
Message-ID: <20160301171218.GH3965@htj.duckdns.org> (raw)
In-Reply-To: <CAMuHMdVL9tYbp6qEqn1wJGat-CwNqtALW82keyZvXDcuDd5SDA@mail.gmail.com>
Hello,
On Mon, Feb 29, 2016 at 02:44:16PM +0100, Geert Uytterhoeven wrote:
> sata_rcar ee300000.sata: DMA-API: cpu touching an active dma mapped
> cacheline [cln=0x000000000090ff40]
> ------------[ cut here ]------------
> WARNING: at lib/dma-debug.c:604
> Modules linked in:
>
> CPU: 2 PID: 329 Comm: udevd Not tainted
...
> [<ffffff8004222b00>] debug_dma_assert_idle+0x180/0x1d0
> [<ffffff800412b0fc>] wp_page_copy.isra.109+0xfc/0x57c
> [<ffffff800412f118>] handle_mm_fault+0x125c/0x1300
> [<ffffff8004092894>] do_page_fault+0x184/0x328
> [<ffffff8004082250>] do_mem_abort+0x40/0x9c
So, somehow udev has mmapped a page which is dma mapped and trying to
falut that in?
> Mapped at:
> [<ffffff8004220a08>] dma_entry_alloc+0x98/0xac
> [<ffffff8004222390>] debug_dma_alloc_coherent+0x48/0xe0
> [<ffffff80042926d8>] dmam_alloc_coherent+0xa8/0xf8
> [<ffffff80042c77dc>] ata_bmdma_port_start+0x40/0x5c
> [<ffffff80042b6974>] ata_host_start+0xf8/0x19c
And that region was originally allocated by ata_bmdma_port_start()?
The only thing which gets allocated there is the PRD table which is
the scatter-gather list for the DMA engine and has no reason to be
ever accessed from userland. Any chance you can find out what udev is
doing at that point?
Thanks.
--
tejun
next prev parent reply other threads:[~2016-03-01 17:12 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-24 12:42 rcar_sata DMA warnings on Salvator-X Geert Uytterhoeven
2016-02-25 21:40 ` Tejun Heo
2016-02-25 21:42 ` Tejun Heo
2016-02-26 8:21 ` Geert Uytterhoeven
2016-02-29 13:44 ` Geert Uytterhoeven
2016-03-01 17:12 ` Tejun Heo [this message]
2016-03-02 7:35 ` Dirk Behme
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=20160301171218.GH3965@htj.duckdns.org \
--to=tj@kernel.org \
--cc=dmaengine@vger.kernel.org \
--cc=geert@linux-m68k.org \
--cc=harvey.hunt@imgtec.com \
--cc=linux-ide@vger.kernel.org \
--cc=linux-renesas-soc@vger.kernel.org \
--cc=vladimir.barinov@cogentembedded.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).