Message ID | 1516932247-10750-5-git-send-email-hyun.kwon@xilinx.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <dri-devel-bounces@lists.freedesktop.org> 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 72BF660211 for <patchwork-dri-devel@patchwork.kernel.org>; Fri, 26 Jan 2018 02:05:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5F93328C54 for <patchwork-dri-devel@patchwork.kernel.org>; Fri, 26 Jan 2018 02:05:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5436A28C56; Fri, 26 Jan 2018 02:05:03 +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=-4.1 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 0143428C54 for <patchwork-dri-devel@patchwork.kernel.org>; Fri, 26 Jan 2018 02:05:02 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 3268F6E12F; Fri, 26 Jan 2018 02:04:36 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0628.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe48::628]) by gabe.freedesktop.org (Postfix) with ESMTPS id 5FDF76E0A7 for <dri-devel@lists.freedesktop.org>; Fri, 26 Jan 2018 02:04:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector1-xilinx-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=yvg61lEwGAzAXuEq7FjWjx2zSfJS4EmEkxWhcuUfAj8=; b=KK8SThcGLZgz18k7ggvxrShh6kPf2+ld7dQ319WXhqM6unQVwL9nwHFlz/qMlIe2WU30j3UZm9sxrIyzv/XRhq7ajxevRb0GA9HcM6B7vxzVs9gN8xcQGwQs8Mdg4yN6k5eAwfAU85bP5a0GvF7JbFdYJctBGC+SPFh6qxiAbZk= Received: from BN6PR02CA0043.namprd02.prod.outlook.com (10.173.146.157) by SN1PR02MB1344.namprd02.prod.outlook.com (10.162.0.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.444.14; Fri, 26 Jan 2018 02:04:17 +0000 Received: from SN1NAM02FT060.eop-nam02.prod.protection.outlook.com (2a01:111:f400:7e44::201) by BN6PR02CA0043.outlook.office365.com (2603:10b6:404:5f::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.444.14 via Frontend Transport; Fri, 26 Jan 2018 02:04:16 +0000 Authentication-Results: spf=pass (sender IP is 149.199.60.83) smtp.mailfrom=xilinx.com; lists.freedesktop.org; dkim=none (message not signed) header.d=none; lists.freedesktop.org; dmarc=bestguesspass action=none header.from=xilinx.com; Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 149.199.60.83 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.60.83; helo=xsj-pvapsmtpgw01; Received: from xsj-pvapsmtpgw01 (149.199.60.83) by SN1NAM02FT060.mail.protection.outlook.com (10.152.72.192) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.444.13 via Frontend Transport; Fri, 26 Jan 2018 02:04:16 +0000 Received: from unknown-38-66.xilinx.com ([149.199.38.66] helo=xsj-pvapsmtp01) by xsj-pvapsmtpgw01 with esmtp (Exim 4.63) (envelope-from <hyun.kwon@xilinx.com>) id 1eetNI-0005KE-5L; Thu, 25 Jan 2018 18:04:16 -0800 Received: from [127.0.0.1] (helo=xsj-smtp-dlp1.xlnx.xilinx.com) by xsj-pvapsmtp01 with esmtp (Exim 4.63) (envelope-from <hyun.kwon@xilinx.com>) id 1eetNH-0002nK-QO; Thu, 25 Jan 2018 18:04:15 -0800 Received: from xsj-pvapsmtp01 (mailhub.xilinx.com [149.199.38.66]) by xsj-smtp-dlp1.xlnx.xilinx.com (8.13.8/8.13.1) with ESMTP id w0Q24EU0016033; Thu, 25 Jan 2018 18:04:14 -0800 Received: from [172.19.2.244] (helo=xsjhyunkubuntu) by xsj-pvapsmtp01 with esmtp (Exim 4.63) (envelope-from <hyunk@smtp.xilinx.com>) id 1eetNG-0002mC-7w; Thu, 25 Jan 2018 18:04:14 -0800 Received: by xsjhyunkubuntu (Postfix, from userid 13638) id 3B08B2C694D; Thu, 25 Jan 2018 18:04:14 -0800 (PST) From: Hyun Kwon <hyun.kwon@xilinx.com> To: <dri-devel@lists.freedesktop.org> Subject: [RFC v2 04/10] drm: xlnx: zynqmp: use drm_format_width_bytes Date: Thu, 25 Jan 2018 18:04:01 -0800 Message-ID: <1516932247-10750-5-git-send-email-hyun.kwon@xilinx.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1516932247-10750-1-git-send-email-hyun.kwon@xilinx.com> References: <1516932247-10750-1-git-send-email-hyun.kwon@xilinx.com> X-RCIS-Action: ALLOW X-TM-AS-Product-Ver: IMSS-7.1.0.1224-8.2.0.1013-23618.006 X-TM-AS-User-Approved-Sender: Yes;Yes X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:149.199.60.83; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(979002)(2980300002)(438002)(199004)(189003)(81156014)(47776003)(2351001)(356003)(39060400002)(8676002)(90966002)(63266004)(4326008)(54906003)(51416003)(52956003)(2906002)(6266002)(50466002)(5660300001)(103686004)(186003)(36756003)(48376002)(76176011)(336011)(106466001)(42186006)(6916009)(50226002)(106002)(81166006)(498600001)(305945005)(2950100002)(8936002)(16586007)(59450400001)(107886003)(6666003)(26005)(107986001)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1101; SCL:1; SRVR:SN1PR02MB1344; H:xsj-pvapsmtpgw01; FPR:; SPF:Pass; PTR:unknown-60-83.xilinx.com; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; SN1NAM02FT060; 1:HiacFoHoShZj8kNi2yGw8DzTHdJ8AOX8l6LAjaQSLpYeM+QU1o587utOv+DXlVw0ATW9HCCmhLqv4B+Um3ifa4xay/Li4ebDWBMF1r2zcOeguzlWZ2/a9Mq1w22N5slI MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 28484701-f3f3-400e-d8fc-08d564611adf X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4604075)(4608076)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603307)(7153060); SRVR:SN1PR02MB1344; X-Microsoft-Exchange-Diagnostics: 1; SN1PR02MB1344; 3:xBTte84ytBbALhftYmcIBOFD8d1drnOckkV0LuWB6yghJi/BgJgQlnUuR419LanNZD+x/z6ZsRS5AZqSpfjUH5pTTP7Y5b/r4cxsF3NYdbY7t65VfJVHYZB9IvE8WWjhCEQdx5/Aydq/X9bGiB9z34GEQE7xoECWg3ld1P9VmX2vrTdQ4vf/1utKDjWSaVSrs6NsagRWR70/HWwusN5Vi/NQweHB90yPoogDHTodT2nyTZfKglv6aHSOOapZGw66cc6zOcQC2xIjdtOIt883pnB8tlBgNj+cCVhrzEokre8z/EVa3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62GR1blaHGGtA5/RF8SAFLWC/xt1qUSWGbxhBoEsneKJIOIcfmf3Z2ZzZN4/IV4Gdpn7LClh26n4ldTyBiZbosz5iLUrNTVvblNX7uqwk5rQoL8N+xvhMEdyoblug5VUkL4e8qeiHiAMOM1eI55 X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Microsoft-Antispam-PRVS: <SN1PR02MB1344AFA284B5AA043F019666D6E00@SN1PR02MB1344.namprd02.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(192813158149592); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040501)(2401047)(8121501046)(5005006)(10201501046)(3231064)(2400081)(944501161)(3002001)(93006095)(93004095)(6055026)(6041288)(20161123558120)(20161123562045)(201703131423095)(201703061421075)(201703161042150)(20161123564045)(20161123560045)(6042181)(6072148)(201708071742011); SRVR:SN1PR02MB1344; BCL:0; PCL:0; RULEID:; SRVR:SN1PR02MB1344; X-Microsoft-Exchange-Diagnostics: 1; SN1PR02MB1344; 4:azeNcA1JHS6DbxJjvFj9C0GgsPlo0oLnNctrNynBEa50hDzAPaRGshTuaG7kNKJVsPEuUWmcBcW5kdG5C+ymcfsAL7+rgfqQgC05tZr6wMQFWv87/EefzqmWxd+oKn/q4OkgevjrPaCvwIIEujludupQrAP3dQ1MmqYY2mN0GlglchzKh4mK+Iz4MEDqg0CM6De2vNbgMJawxKK3GlpJML/F5hO76Qe3qeRRpZqMxw6qbN2bPltH0woGRvIKcgO5dBXlkfc/k+Pn4IJfM5QnLUksTcHdzwK9SxxPlxIg4TWTtwJYNsA8AipXBRlbk2VM X-Forefront-PRVS: 05641FD966 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SN1PR02MB1344; 23:PLHCUSYH8IZXVwKzvubPshpjmCO0gzpXAw7Pz/y0e?= =?us-ascii?Q?DrpjMSJmCrXqltQjKAtITzHRQnIcsm1JBDLLgq3vGyC+vBGjUKwrHPSpMLm0?= =?us-ascii?Q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Qe8e0SCx4cgU38Omq55cyxNKyL64hZeYRIui SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Jan 2018 02:04:16.5776 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 28484701-f3f3-400e-d8fc-08d564611adf X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c; Ip=[149.199.60.83]; Helo=[xsj-pvapsmtpgw01] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR02MB1344 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development <dri-devel.lists.freedesktop.org> List-Unsubscribe: <https://lists.freedesktop.org/mailman/options/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=unsubscribe> List-Archive: <https://lists.freedesktop.org/archives/dri-devel> List-Post: <mailto:dri-devel@lists.freedesktop.org> List-Help: <mailto:dri-devel-request@lists.freedesktop.org?subject=help> List-Subscribe: <https://lists.freedesktop.org/mailman/listinfo/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=subscribe> Cc: Hyun Kwon <hyun.kwon@xilinx.com>, Daniel Vetter <daniel.vetter@ffwll.ch>, Emil Velikov <emil.l.velikov@gmail.com>, Michal Simek <michal.simek@xilinx.com>, Laurent Pinchart <laurent.pinchart@ideasonboard.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" <dri-devel-bounces@lists.freedesktop.org> X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/gpu/drm/xlnx/zynqmp_disp.c b/drivers/gpu/drm/xlnx/zynqmp_disp.c index d2e1034..fd6ddfe 100644 --- a/drivers/gpu/drm/xlnx/zynqmp_disp.c +++ b/drivers/gpu/drm/xlnx/zynqmp_disp.c @@ -2138,6 +2138,7 @@ static int zynqmp_disp_plane_mode_set(struct drm_plane *plane, for (i = 0; i < info->num_planes; i++) { unsigned int width = src_w / (i ? info->hsub : 1); unsigned int height = src_h / (i ? info->vsub : 1); + int width_bytes; paddr = drm_fb_cma_get_gem_addr(fb, plane->state, i); if (!paddr) { @@ -2146,7 +2147,8 @@ static int zynqmp_disp_plane_mode_set(struct drm_plane *plane, } layer->dma[i].xt.numf = height; - layer->dma[i].sgl[0].size = width * info->cpp[i]; + width_bytes = drm_format_plane_width_bytes(info, i, width); + layer->dma[i].sgl[0].size = width_bytes; layer->dma[i].sgl[0].icg = fb->pitches[i] - layer->dma[i].sgl[0].size; layer->dma[i].xt.src_start = paddr;
Signed-off-by: Hyun Kwon <hyun.kwon@xilinx.com> --- drivers/gpu/drm/xlnx/zynqmp_disp.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)