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: 5747531 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id BEC11BF440 for ; Fri, 30 Jan 2015 08:30:41 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D308920225 for ; Fri, 30 Jan 2015 08:30:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0BE4B20142 for ; Fri, 30 Jan 2015 08:30:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754557AbbA3Iaj (ORCPT ); Fri, 30 Jan 2015 03:30:39 -0500 Received: from mailout2.samsung.com ([203.254.224.25]:38490 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754513AbbA3Iai (ORCPT ); Fri, 30 Jan 2015 03:30:38 -0500 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 linux-samsung-soc@vger.kernel.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 Cc: jy0922.shim@samsung.com, sw0312.kim@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 Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, 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); }