drm/exynos: Add fallback option to get non physically contiguous memory for fb
authorVikas Sajjan <vikas.sajjan@linaro.org>
Tue, 6 Aug 2013 11:52:04 +0000 (17:22 +0530)
committerInki Dae <inki.dae@samsung.com>
Thu, 5 Sep 2013 04:43:42 +0000 (13:43 +0900)
commita1bfacf4006a3bb410b0fa85e203f9249d2d35e9
treef2ed42c25ddaa50d61dd4675c23f9e7577e49231
parent3b28802e37bb1ca1cab584f679c42e72a7e384f8
drm/exynos: Add fallback option to get non physically contiguous memory for fb

While trying to get boot-logo up on exynos5420 SMDK which has eDP panel
connected with resolution 2560x1600, following error occured even with
IOMMU enabled:
[0.880000] [drm:lowlevel_buffer_allocate] *ERROR* failed to allocate buffer.
[0.890000] [drm] Initialized exynos 1.0.0 20110530 on minor 0

To address the cases where physically contiguous memory MAY NOT be a
mandatory requirement for fb, the patch adds a feature to get non physically
contiguous memory for fb if physically contiguous memory allocation fails
and if IOMMU is supported.

Signed-off-by: Vikas Sajjan <vikas.sajjan@linaro.org>
Signed-off-by: Arun Kumar <arun.kk@samsung.com>
Reviewed-by: Rob Clark <robdclark@gmail.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
drivers/gpu/drm/exynos/exynos_drm_fbdev.c