msm: rotator: Use MM_HEAP instead of IOMMU HEAP for kk_2.7.2

-IOMMU HEAP is in use for non-secure video plyabck and recording
-Use MM_HEAP instead of IOMMU HEAP for non-secure video plyabck
and recording scenarios
-made changes to enable MM_HEAP for device rotation

Change-Id: Ic67008799874a2fafc469a6045bcd0d3d5e5581b
Signed-off-by: srikarri <sridur@codeaurora.org>
gpu: ion: Do not write buffer size if IOMMU map fails

Return error when IOMMU map fails and prevent buffer
size from being over written.

Conflicts:
	drivers/gpu/ion/ion.c

Change-Id: Ib01770ba521bc29ef209e2d998b7aa21bb7d58d8
Signed-off-by: Susheel Khiani <skhiani@codeaurora.org>
msm: wfd: use MM_HEAP instead of IOMMU HEAP for kk_2.7.2

-IOMMU HEAP is in use for non-secure video plyabck and recording
-Use MM_HEAP instead of IOMMU HEAP for non-secure video playback

Change-Id: Iac5ec1b9f465ad5a46bb8925708760dc098201ae
signed-off-by: srikarri <sridur@codeaurora.org>
board-8960: Re-configure ION HEAP sizes for MM_HEAP and SF_HEAP
 - For IOMMU disabled configuration, reconfigure the ION HEAP sizes
 - Increase SF_HEAP size from 40 MB to 64 MB
 - Decrease MM_HEAP size from 120 MB to 96 MB

Change-Id: I37e14a786e6dc817ee73cb4150d17f88dfa3b0d2
Signed-off-by: Nirmal Abraham <nabrah@codeaurora.org>
Restore MM_HEAP size for IOMMU disabled configuration
- Change MM_HEAP size back to 120 MB to account for
  camera ZSL mode usecase.

Change-Id: I9cd7f8d2d9cf127f7d98d4585981e588c4966b47
Signed-off-by: Nirmal Abraham <nabrah@codeaurora.org>
msm: kgsl: Clean-up gpuaddr allocated from kgsl gen_pool

All GPU Mapping which are done using kgsl_mmu_map_global
API, allocates gpu address from kgsl gen_pool. Only calling
kgsl_mmu_unmap for such mappings doesn't free up the gpuaddr
assigned from KGSL gen_pool. This results in Kernel bug when
KGSL gen_pool is destroyed. This changes makes sure that
all KGSL gen_pool GPU address are freed before destroying
kgsl gen_pool.

Change-Id: Iba46f18e7fe4fba661f5fe142f3470f61a31baa0
Signed-off-by: Anshuman Dani <adani@codeaurora.org>
Revert "kgsl: fix genalloc BUG when detroying pagetable."

This reverts commit 4fa99798610a4d1ae5427db9a4de1303d62f5d71.