From: Florian Fainelli <f.fainelli@gmail.com>
To: linux-kernel@vger.kernel.org
Cc: dan.j.williams@intel.com, akpm@linux-foundation.org,
jkosina@suse.cz, horia.geanta@freescale.com,
computersforpeace@gmail.com,
Florian Fainelli <f.fainelli@gmail.com>
Subject: [PATCH 0/2] dma-debug: prevent early callers from crashing
Date: Thu, 13 Nov 2014 20:31:00 -0800 [thread overview]
Message-ID: <1415939462-28174-1-git-send-email-f.fainelli@gmail.com> (raw)
Hi Dan,
This patch series addresses a problem seen on the brcmstb ARM platform where
dma_debug_init is called by the ARM kernel at fs_initcall time, while some of
our callers using the DMA-API were running at arch_initcall time.
Unless CONFIG_DMA_API_DEBUG is set, this is completely silent.
First patch introduces a helper function to check whether a DMA-API debug
implementation is allowed to proceed, while the second patch introduces an
initialization flag and uses the helper. A complete writeup of how and why this
crashes is provided in patch 2.
Thank you!
Florian Fainelli (2):
dma-debug: introduce dma_debug_disabled
dma-debug: prevent early callers from crashing
lib/dma-debug.c | 43 ++++++++++++++++++++++++++++---------------
1 file changed, 28 insertions(+), 15 deletions(-)
--
1.9.1
next reply other threads:[~2014-11-14 4:31 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-14 4:31 Florian Fainelli [this message]
2014-11-14 4:31 ` [PATCH 1/2] dma-debug: introduce dma_debug_disabled Florian Fainelli
2014-11-14 4:31 ` [PATCH 2/2] dma-debug: prevent early callers from crashing Florian Fainelli
2014-11-15 2:02 ` Florian Fainelli
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=1415939462-28174-1-git-send-email-f.fainelli@gmail.com \
--to=f.fainelli@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=computersforpeace@gmail.com \
--cc=dan.j.williams@intel.com \
--cc=horia.geanta@freescale.com \
--cc=jkosina@suse.cz \
--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®