Hi Micheal,

The mmap is just a device impl. with remap pfn for dma_alloc_coherant memory.
The pages are mapped to user space in mmap device routine, for further info need to dig into impl.

With Regards,
Annamalai

On 26 June 2012 18:43, Michael Hope <michael.hope@linaro.org> wrote:
On 27 June 2012 10:21, Bernhard Rosenkränzer
<bernhard.rosenkranzer@linaro.org> wrote:
> Hi Michael,
>
> On 27 June 2012 00:09, Michael Hope <michael.hope@linaro.org> wrote:
>> On 26 June 2012 23:11, Annamalai Lakshmanan
>> <annamalai.lakshmanan@linaro.org> wrote:
>>> It looks like the latest optmizations are not taking this scenario into
>>> consideration and thus causing issues for specific case as mentioned above.
>>> I have not tried disabling NEON flag though.
>>
>> Hi Bero.  Let me know if these are cortex-strings related and if I can help,
>
> Yes, it seems cortex-strings related. The attached file is the current
> memcpy() implementation -- pretty much an exact copy of the
> cortex-strings one with a bit of Bionic glue.

Hi Annamalai.  The new routine uses the hardware support for unaligned
loads and stores which is fine on conventional memory.  Is there
something special about device memory on your SOC?

-- Michael