From: Joerg Roedel <joerg.roedel@amd.com>
To: Stefan Richter <stefanr@s5r6.in-berlin.de>
Cc: Ben Dooks <ben-linux@fluff.org>, linux-kernel@vger.kernel.org
Subject: Re: dma-debug: check_for_stack background?
Date: Mon, 15 Jun 2009 10:13:55 +0200 [thread overview]
Message-ID: <20090615081355.GA5139@amd.com> (raw)
In-Reply-To: <4A356F0E.9020809@s5r6.in-berlin.de>
On Sun, Jun 14, 2009 at 11:43:42PM +0200, Stefan Richter wrote:
> Ben Dooks wrote:
>> On Sun, Jun 14, 2009 at 08:56:29PM +0200, Stefan Richter wrote:
>>> the DMA debug facility warns about mappings of on-stack memory.
>>> What's the problem with that?
> ...
>> I'm not sure if it is possible on all architectures, however the
>> DMA mapping documentation prohibts the use of stack memory.
>
> Ah, it has all been documented in plain sight for ages. Thanks for the
> pointer.
Problem is that the stack might go away or could be otherwise reused
while the DMA is in-flight. This could cause really hard to debug
problems.
Joerg
--
| Advanced Micro Devices GmbH
Operating | Karl-Hammerschmidt-Str. 34, 85609 Dornach bei München
System |
Research | Geschäftsführer: Thomas M. McCoy, Giuliano Meroni
Center | Sitz: Dornach, Gemeinde Aschheim, Landkreis München
| Registergericht München, HRB Nr. 43632
next prev parent reply other threads:[~2009-06-15 8:14 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-14 18:56 dma-debug: check_for_stack background? Stefan Richter
2009-06-14 21:20 ` Ben Dooks
2009-06-14 21:43 ` Stefan Richter
2009-06-15 8:13 ` Joerg Roedel [this message]
2009-06-16 6:16 ` FUJITA Tomonori
2009-06-16 6:41 ` Ming Lei
2009-06-16 8:14 ` Joerg Roedel
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=20090615081355.GA5139@amd.com \
--to=joerg.roedel@amd.com \
--cc=ben-linux@fluff.org \
--cc=linux-kernel@vger.kernel.org \
--cc=stefanr@s5r6.in-berlin.de \
/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