msm: kgsl: Properly record the size of the sglist in the memdesc

It was possible to fail out of kgsl_sharedmem_alloc after a sglist was
allocated but before we saved the size of the allocation which caused
problems when the sglist was freed during cleanup.

CRs-fixed: 464289
Change-Id: Ic0dedbadd57ec4d9422b5e3a873243d0ffed51f7
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
msm_fb: display: add one more pipe_commit delay before free ion buffer

It is possible that two consective pipe_commits happen within
same vsync period.  This will cause iommu page fault due to an ion buffer
that is being fetched by mdp's pipe is freed. It needs one pipe_commit
delay to free ion buffer to prevent iommu page from happening. Therefore
an extra free stage is needed to empty ion buffer free list.
Also, ION_IOMMU_UNMAP_DELAYED flag is not necessary at mapping of an
ion buffer since one pipe_commit delay had been added.

Change-Id: I340e002e8dc30b6faa0c095ba042eab50e8b7c88
Signed-off-by: Kuogee Hsieh <khsieh@codeaurora.org>
Merge "msm: kgsl: Properly record the size of the sglist in the memdesc"
Merge "msm_fb: display: add one more pipe_commit delay before free ion buffer"
cpufreq: interactive: Fix uninitialized spinlock

Change-Id: I9959669e0f643ccd2bd1072fae440d8c20f1c9cc
Merge tag 'AU_LINUX_ANDROID_JB_2.5.04.02.02.40.243' of git://codeaurora.org/kernel/msm into cm-10.1

AU_LINUX_ANDROID_JB_2.5.04.02.02.40.243 based on quic/aosp/jb_2.5
msm: Add support for debuglevel

Change-Id: I3c2c62012e4a463c10631c4ed6f267a744b56341
Revert "M2: regulators: fixup: make RPM_VREG_ID_PM8921_S2 regulator sleep_selectable"

 * This is causing high power drain and instability.

This reverts commit 298d95f32f9d28f42fab9444e5bcc2db5b0ccb2b.

Change-Id: Ia4ee3ff562fa0bd93dd7699eb74a60c89a9603bd
Merge remote-tracking branch 'upstream/cm-10.1' into HEAD