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)
committerHuang, Tao <huangtao@rock-chips.com>
Tue, 27 Oct 2015 08:42:39 +0000 (16:42 +0800)
commita7858114c4ed07a97e56e3f82badd0f66dbcd747
tree104074c751d15614a72de723d2141b90772a8209
parent20a191e67fd648f2db54a7d62ee1f5c80c7acb3a
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>
(cherry picked from commit 6db47cc7e2f1d8dd8fc84912202ed749d6781a76)

Conflicts:
drivers/staging/android/ion/Kconfig
drivers/staging/android/ion/ion_priv.h
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