From patchwork Fri Jan 30 08:30:45 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Seung-Woo Kim X-Patchwork-Id: 5747541 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 7F24A9F358 for ; Fri, 30 Jan 2015 08:30:43 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C3A4420225 for ; Fri, 30 Jan 2015 08:30:42 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 3C2512024D for ; Fri, 30 Jan 2015 08:30:41 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 466206E826; Fri, 30 Jan 2015 00:30:40 -0800 (PST) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mailout2.samsung.com (mailout2.samsung.com [203.254.224.25]) by gabe.freedesktop.org (Postfix) with ESMTP id 6108A6E826 for ; Fri, 30 Jan 2015 00:30:38 -0800 (PST) Received: from epcpsbgr5.samsung.com (u145.gpu120.samsung.co.kr [203.254.230.145]) by mailout2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NIZ00178EB1ZB80@mailout2.samsung.com> for dri-devel@lists.freedesktop.org; Fri, 30 Jan 2015 17:30:37 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.113]) by epcpsbgr5.samsung.com (EPCPMTA) with SMTP id 4F.12.19034.C214BC45; Fri, 30 Jan 2015 17:30:37 +0900 (KST) X-AuditID: cbfee691-f79b86d000004a5a-96-54cb412c6e16 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 94.F6.20081.C214BC45; Fri, 30 Jan 2015 17:30:36 +0900 (KST) Received: from localhost.localdomain ([10.252.83.121]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0NIZ00D0XEAYU240@mmp1.samsung.com>; Fri, 30 Jan 2015 17:30:36 +0900 (KST) From: Seung-Woo Kim To: dri-devel@lists.freedesktop.org, linux-samsung-soc@vger.kernel.org, inki.dae@samsung.com Subject: [PATCH] drm/exynos: hdmi: replace fb size with mode size from win commit Date: Fri, 30 Jan 2015 17:30:45 +0900 Message-id: <1422606645-25491-1-git-send-email-sw0312.kim@samsung.com> X-Mailer: git-send-email 1.7.4.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrNLMWRmVeSWpSXmKPExsWyRsSkUFfX8XSIwffLjBZXvr5ns5h0fwKL xYt7F1ksZpzfx2QxY/JLNgdWj/vdx5k8+rasYvT4vEkugDmKyyYlNSezLLVI3y6BK+PIjEbG gs8cFQ/eXmVrYDzC3sXIwSEhYCJx6Z5hFyMnkCkmceHeerYuRi4OIYGljBL7bh9kgkiYSOx4 +J8dIrGIUeLXh3dQThuTRPO6i4wgVWwCOhL7l/xmBZkqIhAnMWF5LYjJLGAscfeSM4gpLBAs MXddPojJIqAqsWyBEEgfr4CbxJYVixkhNilILLj3FuwECYHHbBJT3m8FS7AICEh8m3yIBeJk WYlNB5gh6iUlDq64wTKBUXABI8MqRtHUguSC4qT0IlO94sTc4tK8dL3k/NxNjMAwPP3v2cQd jPcPWB9iFOBgVOLh9Xh8KkSINbGsuDL3EKMp0IaJzFKiyfnAYM8riTc0NjOyMDUxNTYytzRT EufVkf4ZLCSQnliSmp2aWpBaFF9UmpNafIiRiYNTqoGxbLlczEWp1LDMHZ90VJ7dPPP+WaCn 1VKV+J8fq62Ox/+6eLf3/6l9HIdalrU0FGW0KSWfL7yWGNbofDP/R+SjxQHLbDbp/lp/YU6W kanEgv3RrQzxpg5/laIv7g6WTIg8E2o82df2Y455gvCZ/JXaCT91NxbHPvy/VcM3Q7Ds5cXK wn9nlCuVWIozEg21mIuKEwEfWfB1PgIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrGLMWRmVeSWpSXmKPExsVy+t9jAV0dx9MhBvf3alhc+fqezWLS/Qks Fi/uXWSxmHF+H5PFjMkv2RxYPe53H2fy6NuyitHj8ya5AOaoBkabjNTElNQihdS85PyUzLx0 WyXv4HjneFMzA0NdQ0sLcyWFvMTcVFslF58AXbfMHKCdSgpliTmlQKGAxOJiJX07TBNCQ9x0 LWAaI3R9Q4LgeowM0EDCGsaMIzMaGQs+c1Q8eHuVrYHxCHsXIyeHhICJxI6H/6FsMYkL99az dTFycQgJLGKU+PXhHTuE08Yk0bzuIiNIFZuAjsT+Jb9Zuxg5OEQE4iQmLK8FMZkFjCXuXnIG MYUFgiXmrssHMVkEVCWWLRAC6eMVcJPYsmIxI8QmBYkF996yTWDkXsDIsIpRNLUguaA4KT3X UK84Mbe4NC9dLzk/dxMjOMyfSe1gXNlgcYhRgINRiYd3wdNTIUKsiWXFlbmHGCU4mJVEeFWt T4cI8aYkVlalFuXHF5XmpBYfYjQFWj6RWUo0OR8Yg3kl8YbGJmZGlkbmhhZGxuZK4rxK9m0h QgLpiSWp2ampBalFMH1MHJxSDYyJBxhncOy6+v71KuHAsNyYyHe7jh+KSTkkfbLQQkVVr/x+ 3ZRtS0suuQovPi8senIh+9SfiuFxdRzujKXPGFqfbAqfGLb76+lN9nKqvVfnrJ6z2KpK8POr OaqzjwZ/uVp3z2v2Swu3uwEFnJbVXW46u/QDHA8t5r3l++vPZ6+Q7ZWvdxf/7/+nxFKckWio xVxUnAgA9Z6qH4kCAAA= DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Cc: sw0312.kim@samsung.com 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-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP For default graphic window, mixer_win_commit() sets display size register as fb size. Calling setplane with smaller fb size than mode size to default window causes distorted display result. So this patch replaces fb size with mode size for display size from the mixer_win_commit(). Signed-off-by: Seung-Woo Kim Acked-by: Joonyoung Shim --- drivers/gpu/drm/exynos/exynos_mixer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_mixer.c b/drivers/gpu/drm/exynos/exynos_mixer.c index 6766271..086fe0e 100644 --- a/drivers/gpu/drm/exynos/exynos_mixer.c +++ b/drivers/gpu/drm/exynos/exynos_mixer.c @@ -584,8 +584,8 @@ static void mixer_graph_buffer(struct mixer_context *ctx, int win) /* setup display size */ if (ctx->mxr_ver == MXR_VER_128_0_0_184 && win == MIXER_DEFAULT_WIN) { - val = MXR_MXR_RES_HEIGHT(win_data->fb_height); - val |= MXR_MXR_RES_WIDTH(win_data->fb_width); + val = MXR_MXR_RES_HEIGHT(win_data->mode_height); + val |= MXR_MXR_RES_WIDTH(win_data->mode_width); mixer_reg_write(res, MXR_RESOLUTION, val); }