hdmi-audio:mark the alsa ring buffer memory as uncached
authorRamesh Babu K V <ramesh.babu@intel.com>
Wed, 4 Apr 2012 08:30:41 +0000 (14:00 +0530)
committerbuildbot <buildbot@intel.com>
Thu, 12 Apr 2012 12:23:31 +0000 (05:23 -0700)
commitcdb498acb4ffe458b3c5813d825c5faaddd4c419
tree74d235a7a3a236c9f13de06efc7bb99294de8837
parentfdc11b431b54e0c1245bf609c88058ebce752b47
hdmi-audio:mark the alsa ring buffer memory as uncached

BZ: 29792

When mmap method of driver is called, driver remaps
the buffers to user space using remap_pfn_range().
However this doesn't guaranteed to mark the pages
as non-cacheble.

As per Documentation/x86/pat.txt, if RAM region is
mmap'ed then in addition remap_pfn_range() we need to use
set_memory_uc() for marking pages as uncacheble.

Change-Id: I0152bb0cea1d0aef4b2eca9f82e59d932b1939a6
Signed-off-by: Ramesh Babu K V <ramesh.babu@intel.com>
Reviewed-on: http://android.intel.com:8080/42472
Reviewed-by: Abdullah, Omair M <omair.m.abdullah@intel.com>
Reviewed-by: Vinnakota, Lakshmi N <lakshmi.n.vinnakota@intel.com>
Reviewed-by: Gupta, ArvindX K <arvindx.k.gupta@intel.com>
Reviewed-by: Hibare, PramodX <pramodx.hibare@intel.com>
Tested-by: Hibare, PramodX <pramodx.hibare@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
sound/drivers/intel_mid_hdmi/intel_mid_hdmi_audio.c