mmap slower than ioremap

前端 未结 2 1624
盖世英雄少女心
盖世英雄少女心 2021-02-02 17:44

I am developing for an ARM device running Linux 2.6.37. I am trying to toggle an IO pin as fast as possible. I made a little kernel module and a user space application. I tried

2条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-02-02 18:06

    This is because ioremap_nocache() still enables the CPU write buffer in your VM mapping whereas pgprot_noncached() disables both bufferability and cacheability.

    Apples to apples comparison would be to use ioremap_strongly_ordered() instead.

提交回复
热议问题