Currently, drm framework only supports allocation and mapping of
non-contig gem buffers. In the next versions of drm (v3.7),
this option to choose contig/non-contig is not supported. So for now,
we just return error in case user asks for contig gem buffers.
BUG=chrome-os-partner:15569
TEST=Built kernel and booted on snow.
Change-Id: Ibb164e812f4d175b6601145dffab1aaec28de4f5
Signed-off-by: Prathyush K <prathyush.k@samsung.com>
Reviewed-on: https://gerrit.chromium.org/gerrit/38291
Reviewed-by: Sean Paul <seanpaul@chromium.org>
Reviewed-by: Michael Spang <spang@chromium.org>
Reviewed-by: Stéphane Marchesin <marcheu@chromium.org>
Tested-by: Akshu Agrawal <akshu@chromium.org>
DRM_DEBUG_KMS("%s\n", __FILE__);
+ if (!(args->flags & EXYNOS_BO_NONCONTIG)) {
+ DRM_ERROR("contig buffer allocation not supported.\n");
+ /*
+ * HACK: Currently we do not support CONTIG buffer
+ * allocation from user space. The drm framework
+ * supports non-contig buffers only. In the next versions
+ * the option to choose contig/non-contig buffers itself
+ * is not supported through this flag. For now, we just
+ * return error.
+ */
+ return -EINVAL;
+ }
+
/*
* alocate memory to be used for framebuffer.
* - this callback would be called by user application