ion: Handle the memory mapping correctly on x86
authorVinil Cheeramvelil <vinil.cheeramvelil@intel.com>
Wed, 8 Jul 2015 02:35:06 +0000 (10:35 +0800)
committerJohn Stultz <john.stultz@linaro.org>
Tue, 16 Feb 2016 21:53:58 +0000 (13:53 -0800)
commit3607f99181ef9920e6b6017c3af461015f8575e1
tree85a48468fb773c4e0961830ec6969a35a715ede5
parentcb40c4a265fd15d118791f0c882b1659f2aa4299
ion: Handle the memory mapping correctly on x86

This patch modifies the ion page pool code to address
limitation in x86 PAT. When one physical page is mapped
to multiple virtual pages, the same cache policy
should be used. Add set_memory_wc/uc call to avoid aliases.
If not, all mappings will be cached(write back).

Change-Id: I98ee8902df0c80135dddfa998c4ca4c2bb44e40e
Signed-off-by: Zhebin Jin <zhebin.jin@intel.com>
Signed-off-by: Vinil Cheeramvelil <vinil.cheeramvelil@intel.com>
drivers/staging/android/ion/Kconfig
drivers/staging/android/ion/ion_page_pool.c
drivers/staging/android/ion/ion_priv.h
drivers/staging/android/ion/ion_system_heap.c