From patchwork Mon Aug 8 23:48:20 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shuah Khan X-Patchwork-Id: 9270039 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id CE38F6075A for ; Tue, 9 Aug 2016 01:02:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C00C4280DE for ; Tue, 9 Aug 2016 01:02:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B4CCB281F9; Tue, 9 Aug 2016 01:02:07 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id E9352280DE for ; Tue, 9 Aug 2016 01:02:06 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 4991B6E53D; Tue, 9 Aug 2016 01:02:01 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org X-Greylist: delayed 488 seconds by postgrey-1.35 at gabe; Mon, 08 Aug 2016 23:56:33 UTC Received: from resqmta-ch2-11v.sys.comcast.net (resqmta-po-11v.sys.comcast.net [IPv6:2001:558:fe16:19:96:114:154:170]) by gabe.freedesktop.org (Postfix) with ESMTPS id 8DACB6E52C for ; Mon, 8 Aug 2016 23:56:33 +0000 (UTC) Received: from resomta-po-05v.sys.comcast.net ([96.114.154.229]) by resqmta-po-11v.sys.comcast.net with SMTP id WuGxb20aDEp5XWuHQb2pMA; Mon, 08 Aug 2016 23:48:24 +0000 Received: from mail.gonehiking.org ([73.181.52.62]) by comcast with SMTP id WuHObnRk2C5sCWuHObZHX6; Mon, 08 Aug 2016 23:48:24 +0000 Received: from shuah-XPS-13-9350.sisa.samsung.com (shuah-xps.internal [192.168.1.87]) by mail.gonehiking.org (Postfix) with ESMTP id B11729F302; Mon, 8 Aug 2016 17:48:21 -0600 (MDT) From: Shuah Khan To: inki.dae@samsung.com, jy0922.shim@samsung.com, sw0312.kim@samsung.com, kyungmin.park@samsung.com, airlied@linux.ie, kgene@kernel.org, k.kozlowski@samsung.com Subject: [PATCH v2] exynos-drm: Fix unsupported GEM memory type error message to be clear Date: Mon, 8 Aug 2016 17:48:20 -0600 Message-Id: <1470700100-13306-1-git-send-email-shuahkh@osg.samsung.com> X-Mailer: git-send-email 2.7.4 X-CMAE-Envelope: MS4wfIX+nQdjTD2ed9PPOxF6EpIttcCSvAXkmO3YHqycudxkX/dDn0hGjjk9nqBQKmlOw9ircCwRPKesy4h65LpxCJX0d7o2FiQnMTYYd4Tp5U1/6jhdvcZ6 CaIYmmHmONa4SiYbLYbmMKHiCzw52DNNTAjD4QMAeM0H1nbkPOjxQF5MD2ziZEA5ZMzTwO3AI6M0R/IxU0fd7X92RrSas7bSeerqM9z3KdD2KkTiwHgKD1q5 hpAslgK0xj5jrVgHhajcUccXJu6zkLrlHFhF8XovC3nzXNqoFZBP2bvX/7LJr5zghfdL1LfJLFMfD87BZoNYIa7ui3bl6RG6rR27diqXhXmnYdX90zijma7C fw573uVuML0aKslW8HTrPxfJM6MwXeQY6Xhz9XElrN4t5BYK6seGWxK09r3NbO2oh3BgovnvWsWJIZ9PEf85hOKI1CJIiDJ1Yn7HPPW2h3GfiZX1APf5jR8V kIq0SrehbTgjDF2xzcXq/AcAho2ME5s6lQLh7Giv6uL9sV5hj++m2H2SlhBMinqFEMWnStEGghXCCcsvQo2xYblepgRQe7jvomvzOYcBC8hvtrHpzoAWz2GD uLaLlFjC0Z0o0BxUMhRghk4l X-Mailman-Approved-At: Tue, 09 Aug 2016 01:02:00 +0000 Cc: linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, Shuah Khan , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Fix unsupported GEM memory type error message to include the memory type information. Signed-off-by: Shuah Khan Reviewed-by: Krzysztof Kozlowski Reviewed-by: Javier Martinez Canillas --- Changes since v1: -- Comment changed to read clearly drivers/gpu/drm/exynos/exynos_drm_fb.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_fb.c b/drivers/gpu/drm/exynos/exynos_drm_fb.c index e016640..40ce841 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_fb.c +++ b/drivers/gpu/drm/exynos/exynos_drm_fb.c @@ -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; }