From patchwork Tue Jun 9 03:45:14 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hyungwon Hwang X-Patchwork-Id: 6569241 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 AA1D79F2F4 for ; Tue, 9 Jun 2015 03:45:26 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id CEC5520494 for ; Tue, 9 Jun 2015 03:45:25 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 4D3252046F for ; Tue, 9 Jun 2015 03:45:23 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 489F46E5DF; Mon, 8 Jun 2015 20:45:22 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mailout3.samsung.com (mailout3.samsung.com [203.254.224.33]) by gabe.freedesktop.org (Postfix) with ESMTP id 4905C6E5DF for ; Mon, 8 Jun 2015 20:45:21 -0700 (PDT) Received: from epcpsbgr2.samsung.com (u142.gpu120.samsung.co.kr [203.254.230.142]) by mailout3.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0NPN00U6URRJXM00@mailout3.samsung.com> for dri-devel@lists.freedesktop.org; Tue, 09 Jun 2015 12:45:19 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [172.20.52.114]) by epcpsbgr2.samsung.com (EPCPMTA) with SMTP id 46.36.28411.F4166755; Tue, 9 Jun 2015 12:45:19 +0900 (KST) X-AuditID: cbfee68e-f79c56d000006efb-11-5576614f732d Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 99.46.25346.F4166755; Tue, 9 Jun 2015 12:45:19 +0900 (KST) Received: from localhost.localdomain ([10.252.82.145]) by mmp2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0NPN00MM9RRGZKD0@mmp2.samsung.com>; Tue, 09 Jun 2015 12:45:19 +0900 (KST) From: Hyungwon Hwang To: dri-devel@lists.freedesktop.org, linux-samsung-soc@vger.kernel.org, inki.dae@samsung.com Subject: [PATCH 1/2] drm/exynos: ipp: fix wrong index referencing a config element Date: Tue, 09 Jun 2015 12:45:14 +0900 Message-id: <1433821515-8952-1-git-send-email-human.hwang@samsung.com> X-Mailer: git-send-email 1.9.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrMLMWRmVeSWpSXmKPExsWyRsSkSNc/sSzUYO4yE4srX9+zWSyd0cdq Men+BBaLF/cusljMOL+PyWLG5JdsDmwe97uPM3n0bVnF6PF5k1wAcxSXTUpqTmZZapG+XQJX Rm/zLpaCE2wVy89eYm5gPMXaxcjJISFgIrFg2hY2CFtM4sK99UA2F4eQwFJGifcPDrDAFE3/ 08AOkZjOKLHl5D8mCOcHo0TToj1gVWwCehILrv0AquLgEBGIk5iwvBYkzCwQL7H+zlOwbcIC IRL7H25kAylhEVCVONztCxLmFXCTmDJnAzPELjmJk8cms4KMlxB4zSaxe9ZUsPEsAgIS3yYf YgHplRCQldh0AKpeUuLgihssExgFFzAyrGIUTS1ILihOSi8y0itOzC0uzUvXS87P3cQIDMvT /5717WC8ecD6EKMAB6MSD6+CclmoEGtiWXFl7iFGU6ANE5mlRJPzgcGfVxJvaGxmZGFqYmps ZG5ppiTOmyD1M1hIID2xJDU7NbUgtSi+qDQntfgQIxMHp1QD44rO5XVtv9/pBQZHurCG7yuK N775bPHRlY97vG5p+v8+8Lw/dcqiP4LvA+s19oZ8atXgCb9T8suhfJPBqsTUM3t14j9dfrfo 6LEDvOJL1CtiRdknsuaf/35cT/ZC0a8lC5nF5/vPc5EPf+3B+M84KZTlfgVL+1pzt/sBvBt9 T0f3RErwrpdQUWIpzkg01GIuKk4EAFBmSC1GAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrLLMWRmVeSWpSXmKPExsVy+t9jQV3/xLJQg0ML9S2ufH3PZrF0Rh+r xaT7E1gsXty7yGIx4/w+JosZk1+yObB53O8+zuTRt2UVo8fnTXIBzFENjDYZqYkpqUUKqXnJ +SmZeem2St7B8c7xpmYGhrqGlhbmSgp5ibmptkouPgG6bpk5QIuVFMoSc0qBQgGJxcVK+naY JoSGuOlawDRG6PqGBMH1GBmggYQ1jBm9zbtYCk6wVSw/e4m5gfEUaxcjJ4eEgInE9D8N7BC2 mMSFe+vZuhi5OIQEpjNKbDn5jwnC+cEo0bRoDwtIFZuAnsSCaz+AOjg4RATiJCYsrwUJMwvE S6y/8xRsqLBAiMT+hxvZQEpYBFQlDnf7goR5BdwkpszZwAyxS07i5LHJrBMYuRcwMqxiFE0t SC4oTkrPNdQrTswtLs1L10vOz93ECA76Z1I7GFc2WBxiFOBgVOLhVVAuCxViTSwrrsw9xCjB wawkwlvIChTiTUmsrEotyo8vKs1JLT7EaAq0fCKzlGhyPjAi80riDY1NzIwsjcwNLYyMzZXE eU/m+4QKCaQnlqRmp6YWpBbB9DFxcEo1ME6WuPSr/MCz/5ofVM0DlyUcXpWddPipmNf8g+uE t+73sLufN50ttO5FVvy8x07OSpKvvN9O38T0uc5I4KqGRybLEotF7xLCfS6lZ8dP3vF50c1r TlHfmeZZLtp4ZtYBo6SJ9TIrT+/JN5vVytWf91Wszuqfn5TlNB8t4bPH9fXLDa84nJ54c4IS S3FGoqEWc1FxIgC+KOBgkAIAAA== 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 Config depends on the opreation. So it must be referenced by an operation id, not a property id. Signed-off-by: Hyungwon Hwang --- drivers/gpu/drm/exynos/exynos_drm_ipp.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_ipp.c b/drivers/gpu/drm/exynos/exynos_drm_ipp.c index b7f1cbc..54c5cf4 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_ipp.c +++ b/drivers/gpu/drm/exynos/exynos_drm_ipp.c @@ -486,8 +486,7 @@ static int ipp_validate_mem_node(struct drm_device *drm_dev, unsigned int bpp; int i; - /* The property id should already be varified */ - ipp_cfg = &c_node->property.config[m_node->prop_id]; + ipp_cfg = &c_node->property.config[m_node->ops_id]; num_plane = drm_format_num_planes(ipp_cfg->fmt); /**