From patchwork Sat Aug 6 01:50:06 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shuah Khan X-Patchwork-Id: 9266213 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 075A76075A for ; Sun, 7 Aug 2016 05:51:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EACA127D4D for ; Sun, 7 Aug 2016 05:51:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DF52827F46; Sun, 7 Aug 2016 05:51:47 +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 342C727D4D for ; Sun, 7 Aug 2016 05:51:47 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 02A126E0F3; Sun, 7 Aug 2016 05:51:41 +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; Sat, 06 Aug 2016 01:58:18 UTC Received: from resqmta-po-02v.sys.comcast.net (resqmta-po-02v.sys.comcast.net [IPv6:2001:558:fe16:19:96:114:154:161]) by gabe.freedesktop.org (Postfix) with ESMTPS id B2B086E10C for ; Sat, 6 Aug 2016 01:58:18 +0000 (UTC) Received: from resomta-po-16v.sys.comcast.net ([96.114.154.240]) by resqmta-po-02v.sys.comcast.net with SMTP id VqkbboUY41zBdVqkbbirrF; Sat, 06 Aug 2016 01:50:09 +0000 Received: from mail.gonehiking.org ([73.181.52.62]) by comcast with SMTP id VqkZbrN0BorbqVqkabrTgU; Sat, 06 Aug 2016 01:50:09 +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 95C4A9F3DD; Fri, 5 Aug 2016 19:50:07 -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] exynos-drm: Fix unsupported GEM memory type error message to be clear Date: Fri, 5 Aug 2016 19:50:06 -0600 Message-Id: <1470448206-16538-1-git-send-email-shuahkh@osg.samsung.com> X-Mailer: git-send-email 2.7.4 X-CMAE-Envelope: MS4wfBIZqG+kCUVunZYucYi8KRKVXzmnFY2D/dm4OLFqqfu9Rac2gSaYLm0OIfaPsd5bKRrTsWWLfkFBpYBhOOcUgsbu+77ZsTWdEecKhRGX1Y0xMWR/Wiis sJg/E1Ff0NxLVUodzj7Jkiin5yWAZtU7Fh6jjTPn807wwmY4QRI0jgCb8Mmaxum5NKLgiSXVtKZUHpYK0Hj84eAIRiH3KWuf36kXyufFwUpDRmKUJMVMCQXB MSEaEZET9JZMhLf+Ld8Vby1m1fT8SMNgnuJWbDCX3dC42J4dYmwKyMbG2Dzw0OsMM7adJuN5VW0DEkOxKl5DcRTx2oxuKrFtFteAdXZJaZ6W/VbKfsavbL8E V8ROyylGaW9toKlHs4WzYLH2QtkYZ9OufnSEuv2NeeZBrotJeNe+W4nmTManf9DA0FiQnF3rTir+IfXsojmy33hmcr3ne1bs3cxnyeQ0w1jEqS9aWz8/HXwC s212BLx4OvDktyxY3ahWTqUvXNiz5W1epimPv6GzP6snyJdgOT4nr5VjDemill0frNAbKeAwmPZhLnT2zeTN+8OLHsYolbSoS7gaWSsJ4u8gG9lmZk4uY1Mo Kv5Sb6diPQqSmrITAibabRV8 X-Mailman-Approved-At: Sun, 07 Aug 2016 05:51:39 +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 --- drivers/gpu/drm/exynos/exynos_drm_fb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_fb.c b/drivers/gpu/drm/exynos/exynos_drm_fb.c index e016640..c9315df 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 + * without iommu support, not support physically non-contiguous memory * for framebuffer. */ if (IS_NONCONTIG_BUFFER(flags)) { - DRM_ERROR("cannot use this gem memory type for fb.\n"); + DRM_ERROR("Non-continguous GEM memory is not supported.\n"); return -EINVAL; }