Message ID | 20180607110614.335-6-m.szyprowski@samsung.com |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp1948468lji; Thu, 7 Jun 2018 04:06:29 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJ2rWPYP7KvjGGVJnhPHZ5AG7Xdly4eJb6sQBpblrIG14HX40pnPKwF1k3e/xb4Pa0uQztx X-Received: by 2002:a62:3a59:: with SMTP id h86-v6mr1357636pfa.209.1528369589102; Thu, 07 Jun 2018 04:06:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528369589; cv=none; d=google.com; s=arc-20160816; b=VkcxmRxdCxpv2b39DwApI7qCZ0uCgkw0f7p+u5UGgyQUdCOIdhnpT1VGxU5X67vVpW sizM4Bx5rpZAXdZ7X/A6Bo+eAlPDvZ/Fzq2L27MI5COqKsjv8+y8pRmkjcmyyEfckQro 1O369CcBNWu23MhdN85mZN2xopkAm1l8odvCE0ovOifrLZi6pDBrb1h1dWbSAxkgfkUn eAiYN+Ogqziu77MHmPXlY/gxODyX2fGAb6mxegnh2DvcoMMWXHUDka18CiB4VxxMuJmE 928B0I1VKdwbFIz+gRqmJ9DjCQcFwvrYRduYXiS4E3IupI3a2MFT5YMHyBz6PrVNpTnJ vw9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature:dkim-filter :arc-authentication-results; bh=LtNshPPAPPEe3h7c0YMBi6/H+cMYe84KwVpvccZdlyU=; b=w8fOeo9gWe8VVcdHx1scJaJ5pUoVXUkNCHadexyKIxIpoNc0PY8Xol3oT6RaJ6yHRr unHOiTFrwp+kfwdBC564I0RfgvuI9AwliRdfWl54aO2hPaKl/7ajpUzuPvnSEDhop80B 7CFutvwYoI/BkEc7HUKSk9+CEKqS0ju8OshEqH8jmSoVI6zeOUyME8ilJ8f3aIf/+xJj 2cTZQgL743W1moCWPUH18cUHDd25m4jgdAme/UIkfgLfr+6QLFDHNm40EuTvyQ5SsR6u k2r556LKxP0b9WKbHaZhLSDAr6areeTrAWlzWvyGFhQQGRFenKHZFY9qYavJqVLQrLzW Moow== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@samsung.com header.s=mail20170921 header.b=tKavnv5J; spf=pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-samsung-soc-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: <linux-samsung-soc-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p8-v6si15144102pgd.96.2018.06.07.04.06.28; Thu, 07 Jun 2018 04:06:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@samsung.com header.s=mail20170921 header.b=tKavnv5J; spf=pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-samsung-soc-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753410AbeFGLG2 (ORCPT <rfc822;riku.voipio@linaro.org> + 3 others); Thu, 7 Jun 2018 07:06:28 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:44688 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753319AbeFGLGZ (ORCPT <rfc822;linux-samsung-soc@vger.kernel.org>); Thu, 7 Jun 2018 07:06:25 -0400 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20180607110623euoutp01025a31b3f92a2a6b5c4680d0d267900a~13AnMMJCT1848218482euoutp01Q; Thu, 7 Jun 2018 11:06:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20180607110623euoutp01025a31b3f92a2a6b5c4680d0d267900a~13AnMMJCT1848218482euoutp01Q DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1528369583; bh=mMnAnhDIqnqAnRDLD8VjTEwjoXGkAUdTro+aXoq5CKM=; h=From:To:Cc:Subject:Date:In-reply-to:References:From; b=tKavnv5JYmdcUgkIaGQJoLShJupnaKbrzLUIfzD8hnigmICUjpDj0ZcNfKeqQRySK YepxaAaDvahkVhi9FqDLb1WZx0z53s63//bJeoFjtiEuMFAHy2YKnJExXZ7P+V8fvP /NsBWg3t/XeiHEZqzUrjVlfgr5zb6T3EC7Zfz4bk= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20180607110622eucas1p120670fb449dc76229302517654b7f30a~13AmajbOq2078420784eucas1p18; Thu, 7 Jun 2018 11:06:22 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id AE.43.10409.DA1191B5; Thu, 7 Jun 2018 12:06:22 +0100 (BST) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20180607110621eucas1p1e193753ad51a65dfe303cae44577bd8f~13AluRaZO2078420784eucas1p16; Thu, 7 Jun 2018 11:06:21 +0000 (GMT) X-AuditID: cbfec7f5-f95739c0000028a9-81-5b1911addfaf Received: from eusync1.samsung.com ( [203.254.199.211]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id E0.CB.04183.DA1191B5; Thu, 7 Jun 2018 12:06:21 +0100 (BST) Received: from AMDC2765.digital.local ([106.116.147.25]) by eusync1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0P9Y0097E9IGLAA0@eusync1.samsung.com>; Thu, 07 Jun 2018 12:06:21 +0100 (BST) From: Marek Szyprowski <m.szyprowski@samsung.com> To: dri-devel@lists.freedesktop.org, linux-samsung-soc@vger.kernel.org Cc: Marek Szyprowski <m.szyprowski@samsung.com>, Inki Dae <inki.dae@samsung.com>, Seung-Woo Kim <sw0312.kim@samsung.com>, Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>, Andrzej Pietrasiewicz <andrzej.p@samsung.com> Subject: [PATCH 5/9] drm/exynos: gsc: Use real buffer width for configuring the hardware Date: Thu, 07 Jun 2018 13:06:10 +0200 Message-id: <20180607110614.335-6-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.17.1 In-reply-to: <20180607110614.335-1-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprHIsWRmVeSWpSXmKPExsWy7djPc7rrBCWjDe63MFnMetnOYrFxxnpW iytf37NZTLo/gcVixvl9TBZrj9xlt5gx+SWbA7vH/e7jTB59W1YxenzeJBfAHMVlk5Kak1mW WqRvl8CVseF8YMFPzoqmtS3sDYz7OboYOTgkBEwkplwp6GLk4hASWMEocfvcWiYI5zOjxNK2 O+xdjOxgRRdNIcLLGCWWdy9mhnAamCSW/9vO1sXIycEmYCjR9bYLzBYRcJNoOjyTFaSIWeAx o8Ta3ZvZQRLCAlESl/62gxWxCKhKNK5fwwhi8wpYS/xvus8KYksIyEus3nCAGcTmFLCROL9s E9hFEgI/WSUOzp7HDFHkIjH73GoWCFtY4tXxLewQtozE5cndLBANzYwS7TNmsUM4PYwSW+fs YIOospY4fPwi2DpmAT6JSdumM0MCg1eio00IosRDYvL0g+wQf/YzSjSfWcc0gVFyASPDKkbx 1NLi3PTUYuO81HK94sTc4tK8dL3k/NxNjMBYO/3v+NcdjPv+JB1iFOBgVOLhbbgvHi3EmlhW XJl7iFGCg1lJhDfxkli0EG9KYmVValF+fFFpTmrxIUZpDhYlcd44jbooIYH0xJLU7NTUgtQi mCwTB6dUA6PcuV3LtwlrMwa498251WrCbVW/r+Hk2V9K28qXXpbfsOiwRB6bijuD04dQndwb JtldNft/rXyR9PbC9ZmJ54PTjvEuiCiZwDvbjkGb44+ZlE/K77yTt4Lq6xM1nDuaDrmICi6p nWKqtf5nT/lC28oZi1gju2/oX/5m2VVh49UmkG11+EdSjxJLcUaioRZzUXEiAKnrq82xAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrNJMWRmVeSWpSXmKPExsVy+t/xy7prBSWjDd6uVLSY9bKdxWLjjPWs Fle+vmezmHR/AovFjPP7mCzWHrnLbjFj8ks2B3aP+93HmTz6tqxi9Pi8SS6AOYrLJiU1J7Ms tUjfLoErY8P5wIKfnBVNa1vYGxj3c3QxsnNICJhIXDTtYuTiEBJYwijxquk7E4TTxCRxYck+ 9i5GTg42AUOJrrddbCC2iICbRNPhmawgRcwCjxklPm47xQqSEBaIkji5eD8ziM0ioCrRuH4N I4jNK2At8b/pPliNhIC8xOoNB8BqOAVsJM4v28QEYgsB1bx9cJp9AiPPAkaGVYwiqaXFuem5 xUZ6xYm5xaV56XrJ+bmbGIFBsu3Yzy07GLveBR9iFOBgVOLhvfFQPFqINbGsuDL3EKMEB7OS CG/iJbFoId6UxMqq1KL8+KLSnNTiQ4zSHCxK4rznDSqjhATSE0tSs1NTC1KLYLJMHJxSDYyi +z8EhVgJHN42I0f5c5N1qwOTdvKfhd+zmaSnZ8292XYs50TlEt8A08Y8sbO7LinKPZvy+8VN pve1Gbp/t3m//15vtbYy5diO9SYZ+i53Ms4cDJnXWdJ96aTc6onMbCuNba8umTm9p05V9UWO 5rLyLP3Xhzqe+71Y8pCHI9vm6P1w3oav+QVKLMUZiYZazEXFiQCXNNZIDgIAAA== X-CMS-MailID: 20180607110621eucas1p1e193753ad51a65dfe303cae44577bd8f X-Msg-Generator: CA CMS-TYPE: 201P X-CMS-RootMailID: 20180607110621eucas1p1e193753ad51a65dfe303cae44577bd8f References: <20180607110614.335-1-m.szyprowski@samsung.com> <CGME20180607110621eucas1p1e193753ad51a65dfe303cae44577bd8f@eucas1p1.samsung.com> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: <linux-samsung-soc.vger.kernel.org> X-Mailing-List: linux-samsung-soc@vger.kernel.org |
Series |
Exynos DRM IPP fixes
|
expand
|
diff --git a/drivers/gpu/drm/exynos/exynos_drm_gsc.c b/drivers/gpu/drm/exynos/exynos_drm_gsc.c index e99dd1e4ba65..ee27f7fdc7ab 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_gsc.c +++ b/drivers/gpu/drm/exynos/exynos_drm_gsc.c @@ -577,7 +577,7 @@ static void gsc_src_set_size(struct gsc_context *ctx, cfg &= ~(GSC_SRCIMG_HEIGHT_MASK | GSC_SRCIMG_WIDTH_MASK); - cfg |= (GSC_SRCIMG_WIDTH(buf->buf.width) | + cfg |= (GSC_SRCIMG_WIDTH(buf->buf.pitch[0] / buf->format->cpp[0]) | GSC_SRCIMG_HEIGHT(buf->buf.height)); gsc_write(cfg, GSC_SRCIMG_SIZE); @@ -868,7 +868,7 @@ static void gsc_dst_set_size(struct gsc_context *ctx, /* original size */ cfg = gsc_read(GSC_DSTIMG_SIZE); cfg &= ~(GSC_DSTIMG_HEIGHT_MASK | GSC_DSTIMG_WIDTH_MASK); - cfg |= GSC_DSTIMG_WIDTH(buf->buf.width) | + cfg |= GSC_DSTIMG_WIDTH(buf->buf.pitch[0] / buf->format->cpp[0]) | GSC_DSTIMG_HEIGHT(buf->buf.height); gsc_write(cfg, GSC_DSTIMG_SIZE);
DMA hardware should respect buffer pitch, so use the width calculated from the buffer pitch instead of the virtual one. Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> --- drivers/gpu/drm/exynos/exynos_drm_gsc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.17.1 -- To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html