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: 9269991 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 5CE5A607D6 for ; Mon, 8 Aug 2016 23:48:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4EAC127FA9 for ; Mon, 8 Aug 2016 23:48:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 436A328113; Mon, 8 Aug 2016 23:48:46 +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=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4EA1427FE4 for ; Mon, 8 Aug 2016 23:48:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752335AbcHHXse (ORCPT ); Mon, 8 Aug 2016 19:48:34 -0400 Received: from resqmta-po-06v.sys.comcast.net ([96.114.154.165]:33805 "EHLO resqmta-po-06v.sys.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752288AbcHHXsa (ORCPT ); Mon, 8 Aug 2016 19:48:30 -0400 Received: from resomta-po-05v.sys.comcast.net ([96.114.154.229]) by resqmta-po-06v.sys.comcast.net with SMTP id WuGhbPGDXjWBpWuHQbODCe; 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 Cc: Shuah Khan , dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org 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 Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org 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; }