Thread (6 messages) flat view 6 messages, 3 authors, 2012-08-27

Question about ION carveout heap support partial cache flush

From: haojian.zhuang@gmail.com (Haojian Zhuang)
Date: 2012-08-27 13:43:10

On Mon, Aug 27, 2012 at 4:29 PM, Russell King - ARM Linux
[off-list ref] wrote:
On Mon, Aug 27, 2012 at 04:23:31PM +0800, zhangfei gao wrote:
quoted
On Mon, Aug 27, 2012 at 1:46 PM, Haojian Zhuang
[off-list ref] wrote:
quoted
Let me summerize it. First, user space address is mapped. Then,
flushing user space
address is triggered. It's a workaround of fixing non-existed virtual
address without fixing
vmap() or any other solution. It's just a quick fix.

Zhangfei,
I doubt that the issue may be caused by missing memory barrier.
Flushing is using
coprocessor instructions. It's a little different.
Is there any limitation that dmac_map_area & dmac_flush_range
supporting addr mapped from user space?
They DEFINITELY DO NOT SUPPORT FLUSHING USER SPACE.
I agree that those API are defined to support kernel space address only.
But the implementation is only flushing address by assembly code.

If we don't care the original goal of API, the problem should be caused
by address mapping isn't set up yet. I doubt that the first step isn't fully
finished. Since the second step is using coprocessor instruction, that's
a shortcut. If we add delay such as memory barrier, the first step can
be really finished before the second step running.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help