Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6244bd65 authored by Shuah Khan's avatar Shuah Khan Committed by Inki Dae
Browse files

exynos-drm: Fix unsupported GEM memory type error message to be clear



Fix unsupported GEM memory type error message to include the memory type
information.

Signed-off-by: default avatarShuah Khan <shuahkh@osg.samsung.com>
Signed-off-by: default avatarInki Dae <inki.dae@samsung.com>
parent 09cb5b78
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -55,11 +55,11 @@ static int check_fb_gem_memory_type(struct drm_device *drm_dev,
	flags = exynos_gem->flags;

	/*
	 * without iommu support, not support physically non-continuous memory
	 * for framebuffer.
	 * Physically non-contiguous memory type for framebuffer is not
	 * supported without IOMMU.
	 */
	if (IS_NONCONTIG_BUFFER(flags)) {
		DRM_ERROR("cannot use this gem memory type for fb.\n");
		DRM_ERROR("Non-contiguous GEM memory is not supported.\n");
		return -EINVAL;
	}