login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
April
»
27
Re: [PATCH] ARM: dmabounce: fix partial sync in dma_sync_single_* API
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: FUJITA Tomonori
Subject:
Re: [PATCH] ARM: dmabounce: fix partial sync in dma_sync_single_* API
Date: Tuesday, April 27, 2010 - 3:50 pm
On Tue, 13 Apr 2010 14:27:04 +0900 FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> wrote:
quoted text
> On Mon, 12 Apr 2010 20:35:36 +0100 > Russell King - ARM Linux <linux@arm.linux.org.uk> wrote: > > > On Mon, Apr 05, 2010 at 12:39:32PM +0900, FUJITA Tomonori wrote: > > > I don't have arm hardware that uses dmabounce so I can't confirm the > > > problem but seems that dmabounce doesn't work for some drivers... > > > > Patch reviews fine, except for one niggle. I too don't have hardware > > I can test (well, I do except the kernel stopped supporting the UDA1341 > > audio codec on the SA1110 Neponset.) > > Thanks for reviewing. > > > > @@ -171,10 +172,17 @@ find_safe_buffer(struct dmabounce_device_info *device_info, dma_addr_t safe_dma_ > > > read_lock_irqsave(&device_info->lock, flags); > > > > > > list_for_each_entry(b, &device_info->safe_buffers, node) > > > - if (b->safe_dma_addr == safe_dma_addr) { > > > - rb = b; > > > - break; > > > - } > > > + if (for_sync) { > > > + if (b->safe_dma_addr <= safe_dma_addr && > > > + safe_dma_addr < b->safe_dma_addr + b->size) { > > > + rb = b; > > > + break; > > > + } > > > + } else > > > + if (b->safe_dma_addr == safe_dma_addr) { > > > + rb = b; > > > + break; > > > + } > > > > This is the niggle; I don't like this indentation style. If you want to > > indent this if () statement, then please format like this: > > > > } else { > > if (b->safe...) { > > ... > > } > > } > > > > or format it as: > > > > } else if (b->safe...) { > > ... > > } > > ok, here's the fixed patch. > > = > From: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> > Subject: [PATCH] ARM: dmabounce: fix partial sync in dma_sync_single_* API > > Some network drivers do a partial sync with > dma_sync_single_for_{device|cpu}. The dma_addr argument might not be > the same as one as passed into the mapping API. > > This adds some tricks to find_safe_buffer() for > dma_sync_single_for_{device|cpu}. > > Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> > --- > arch/arm/common/dmabounce.c | 30 +++++++++++++++++++++--------- > 1 files changed, 21 insertions(+), 9 deletions(-)
Ping? Is this going to be merged via the arm tree? --
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:
Re: [PATCH] ARM: dmabounce: fix partial sync in dma_sync_s ...
, Russell King - ARM Linux
, (Mon Apr 12, 12:35 pm)
Re: [PATCH] ARM: dmabounce: fix partial sync in dma_sync_s ...
, FUJITA Tomonori
, (Mon Apr 12, 10:27 pm)
Re: [PATCH] ARM: dmabounce: fix partial sync in dma_sync_s ...
, FUJITA Tomonori
, (Tue Apr 27, 3:50 pm)
Re: [PATCH] ARM: dmabounce: fix partial sync in dma_sync_s ...
, Russell King - ARM Linux
, (Thu Apr 29, 4:34 am)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
David Rientjes
Re: [take4] OOM documentation update [was: Linux killed Kenny, bastard!]
hooanon05
[PATCH 34/67] aufs lookup and dentry operations, header
Matthew Wilcox
Re: 2.6.22-rc3-mm1
David Schwartz
RE: how about mutual compatibility between Linux's GPLv2 and GPLv3?
Eduard - Gabriel Munteanu
Re: [PATCH] relay: add buffer-only functionality, allowing for early kernel tracing
git
:
Eric Wong
[PATCH/RFC] Add git-instaweb, instantly browse the working repo with gitweb
Johan Herland
Submitting patches to the User's Manual.
Miles Bader
Re: git diff woes
Johannes Schindelin
Re: [PATCH 05/21] Make parse_tag_buffer_internal() handle item == NULL
Johannes Sixt
Re: [PATCH] Fix handle leak in builtin-pack-objects
git-commits-head
:
Linux Kernel Mailing List
V4L/DVB (8018): Add em2860 chip ID
Linux Kernel Mailing List
x86: delay early cpu initialization until cpuid is done
Linux Kernel Mailing List
rt2x00: Move firmware checksumming to driver
Linux Kernel Mailing List
PCI: fix kernel oops on bridge removal
Linux Kernel Mailing List
rtl8187: use DMA-aware buffers with usb_control_msg
linux-netdev
:
Richard Cochran
Re: [PATCH v3 3/3] ptp: Added a clock that uses the eTSEC found on the MPC85xx.
David Miller
Re: [RFC] bridge: STP timer management range checking
Herbert Xu
Re: [RFC PATCH 00/17] virtual-bus
Evgeniy Polyakov
Re: [PATCH v2] tcp: splice as many packets as possible at once
David Dillow
Re: [PATCH] r8169: Reduce looping in the interrupt handler.
freebsd-current
:
Andrey
Re: RELENG_7 and HEAD: bge causes system hang
韓家標 Bill Hacker
Re: ZFS honesty
Robert Watson
Re: panic: Lock so_rcv_sx not exclusively locked
samira
sata atapi on ich9r
JoaoBR
Re: I like my rc.d boot messages :(
Colocation donated by:
Syndicate