login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
August
»
22
Re: [patch 2.6.27-rc3] at91_mci: don't use coherent dma buffers
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Nicolas Ferre
Subject:
Re: [patch 2.6.27-rc3] at91_mci: don't use coherent dma buffers
Date: Friday, August 22, 2008 - 1:40 am
Pierre, Andrew, Based on Andrew comments, I rewrite this email.. You can add my...
quoted text
> David Brownell : >> From: David Brownell <dbrownell@users.sourceforge.net> >> >> At91_mci is abusing dma_free_coherent(), which may not be called >> with IRQs disabled. I saw "mkfs.ext3" on an MMC card objecting >> voluminously as each write completed: >> >> WARNING: at arch/arm/mm/consistent.c:368 dma_free_coherent+0x2c/0x224() >> [<c002726c>] (dump_stack+0x0/0x14) from [<c00387d4>] >> (warn_on_slowpath+0x4c/0x68) >> [<c0038788>] (warn_on_slowpath+0x0/0x68) from [<c0028768>] >> (dma_free_coherent+0x2c/0x224) >> r6:00008008 r5:ffc06000 r4:00000000 >> [<c002873c>] (dma_free_coherent+0x0/0x224) from [<c01918ac>] >> (at91_mci_irq+0x374/0x420) >> [<c0191538>] (at91_mci_irq+0x0/0x420) from [<c0065d9c>] >> (handle_IRQ_event+0x2c/0x6c) >> ... >> >> This bug has been around for a LONG time. The MM warning is >> from late 2005, but the driver merged a year later ... so I'm >> puzzled why nobody noticed this before now. >> >> The fix involves noting that this buffer shouldn't be DMA-coherent; >> it's just used for normal DMA writes. So replace it with standard >> kmalloc() buffering and DMA mapping calls. >> >> This is the quickie fix. A better one would not rely on allocating >> large bounce buffers. (Note that dma_alloc_coherent could have failed >> too, but that case was ignored... kmalloc is a bit more likely to >> fail though.) >> >> Signed-off-by: David Brownell <dbrownell@users.sourceforge.net> > > ...
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com> Kind regards, -- Nicolas Ferre --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[patch 2.6.27-rc3] at91_mci: don't use coherent dma buffers
, David Brownell
, (Mon Aug 18, 4:07 pm)
Re: [patch 2.6.27-rc3] at91_mci: don't use coherent dma bu ...
, Pierre Ossman
, (Thu Aug 21, 6:50 am)
Re: [patch 2.6.27-rc3] at91_mci: don't use coherent dma bu ...
, Nicolas Ferre
, (Fri Aug 22, 12:40 am)
Re: [patch 2.6.27-rc3] at91_mci: don't use coherent dma bu ...
, Nicolas Ferre
, (Fri Aug 22, 1:40 am)
Re: [patch 2.6.27-rc3] at91_mci: don't use coherent dma bu ...
, Pierre Ossman
, (Wed Aug 27, 12:01 pm)
Re: [patch 2.6.27-rc3] at91_mci: don't use coherent dma bu ...
, Andrew Morton
, (Wed Aug 27, 12:11 pm)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Greg Kroah-Hartman
[PATCH 01/75] platform: prefix MODALIAS with "platform:"
stephane eranian
Re: perf_counters issue with PERF_SAMPLE_GROUP
Mathieu Desnoyers
Re: Linux 2.6.25-rc2
Eric Sandeen
Re: [PATCH] xfs: do not pass unused params to xfs_flush_pages
Daniel Hazelton
Re: x86: 4kstacks default
linux-netdev
:
Andi Kleen
Re: RFC: Nagle latency tuning
Herbert Xu
Re: Oops in tun: bisected to Limit amount of queued packets per device
gregkh
Patch "IPv6: keep route for tentative address" has been added to the 2.6.34-stable...
Patrick McHardy
Re: [rfc 02/13] [RFC 02/13] netfilter: nf_conntrack_sip: Add callid parser
Krzysztof Oledzki
Re: Error: an inet prefix is expected rather than "0/0".
git
:
Johannes Schindelin
[PATCH] fetch: refuse to fetch into the current branch in a non-bare repository
Junio C Hamano
Re: [PATCH] http-push: making HTTP push more robust and more user-friendly
Oliver Kullmann
Re: how to move with history?
Alex Riesen
Re: git exclude patterns for directory
Andreas Ericsson
Re: why not TortoiseGit
linux-kvm
:
Avi Kivity
Re: KVM_EXIT_HALT and KVM_CREATE_IRQCHIP
Uri Lublin
Re: [PATCH] qemu: qemu_fopen_fd: differentiate between reader and writer user
Chris Wright
[PATCH qemu-kvm] device assignment: default requires IOMMU
Xu, Dongxiao
RE: [PATCH 0/3] KVM: VMX: Support hosted VMM coexsitence.
James Thomason
Re: Guest Hang Bugs
openbsd-bugs
:
openbsd
Re: pxammc0 unhandled interrupt
Î ÏÏλη ÏÏο internet
Καλό Καλοκαίρι ...
Zak B. Elep
Re: kernel/5995
Mrs.Fiona Wagner
Inquiries
Rodolfo Gouveia
Re: can't boot latest bsd panic: _bus_dmamem_unmap
Colocation donated by:
Syndicate