All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] dma-debug: prevent early callers from crashing
@ 2014-11-14  4:31 Florian Fainelli
  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
  0 siblings, 2 replies; 4+ messages in thread
From: Florian Fainelli @ 2014-11-14  4:31 UTC (permalink / raw)
  To: linux-kernel
  Cc: dan.j.williams, akpm, jkosina, horia.geanta, computersforpeace,
	Florian Fainelli

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-11-15  2:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-14  4:31 [PATCH 0/2] dma-debug: prevent early callers from crashing Florian Fainelli
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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.