From patchwork Thu Oct 12 21:15:11 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leo Li X-Patchwork-Id: 10002939 Return-Path: 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 6C31A602BF for ; Thu, 12 Oct 2017 21:30:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5DF6828EE0 for ; Thu, 12 Oct 2017 21:30:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 52AAF28EE2; Thu, 12 Oct 2017 21:30:14 +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 2F2C628EE0 for ; Thu, 12 Oct 2017 21:30:13 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7E17C6E985; Thu, 12 Oct 2017 21:30:12 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org X-Greylist: delayed 109884 seconds by postgrey-1.35 at gabe; Thu, 12 Oct 2017 21:30:11 UTC Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0063.outbound.protection.outlook.com [104.47.34.63]) by gabe.freedesktop.org (Postfix) with ESMTPS id 728D26E984; Thu, 12 Oct 2017 21:30:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amd-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=/mkLWRWFgxbUiTRdL9kn4j6yX8IBAiCkz/7AkBjD/JQ=; b=nXm7m5AbwLr06r5cylUcl+50A9Uf+e6y7rN35QvJXN4A5cce650WIWx5rjB2SjjrNIvaxKu250QIfSU3IF0TnZmsRSFlIdFQ5pQPflvrPuWfqZxio6thiRbp/QGN8q1p+xbKqCF7nV1Rdm6Z+Y185jbWWoE7ONI+WLsNstUb/+Y= Received: from SN1PR12CA0037.namprd12.prod.outlook.com (10.162.96.175) by MWHPR12MB1455.namprd12.prod.outlook.com (10.172.55.136) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.77.7; Thu, 12 Oct 2017 21:16:01 +0000 Received: from BY2NAM03FT034.eop-NAM03.prod.protection.outlook.com (2a01:111:f400:7e4a::203) by SN1PR12CA0037.outlook.office365.com (2a01:111:e400:5174::47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.77.21 via Frontend Transport; Thu, 12 Oct 2017 21:16:01 +0000 Authentication-Results: spf=none (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; gmail.com; dkim=none (message not signed) header.d=none; gmail.com; dmarc=permerror action=none header.from=amd.com; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) Received: from SATLEXCHOV02.amd.com (165.204.84.17) by BY2NAM03FT034.mail.protection.outlook.com (10.152.84.211) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.20.77.10 via Frontend Transport; Thu, 12 Oct 2017 21:16:01 +0000 Received: from SATLEXDAG04.amd.com (10.181.40.9) by SATLEXCHOV02.amd.com (10.181.40.72) with Microsoft SMTP Server (TLS) id 14.3.361.1; Thu, 12 Oct 2017 16:15:46 -0500 Received: from leodev.amd.com (10.180.168.240) by satlexdag04.amd.com (10.181.40.9) with Microsoft SMTP Server id 14.3.361.1; Thu, 12 Oct 2017 17:15:46 -0400 From: To: , Subject: [PATCH 6/6] drm/amd/display: Remove useless pcrtc pointer Date: Thu, 12 Oct 2017 17:15:11 -0400 Message-ID: <1507842911-16975-7-git-send-email-sunpeng.li@amd.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1507842911-16975-1-git-send-email-sunpeng.li@amd.com> References: <1507842911-16975-1-git-send-email-sunpeng.li@amd.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:165.204.84.17; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(346002)(376002)(39860400002)(2980300002)(428002)(199003)(189002)(106466001)(50226002)(68736007)(5003940100001)(53416004)(16586007)(2906002)(316002)(2876002)(105586002)(53936002)(5660300001)(50986999)(101416001)(76176999)(39060400002)(478600001)(110136005)(48376002)(47776003)(97736004)(356003)(6666003)(72206003)(2950100002)(189998001)(305945005)(36756003)(54906003)(4326008)(86362001)(50466002)(33646002)(86152003)(77096006)(8676002)(8936002)(81166006)(81156014)(2101003); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR12MB1455; H:SATLEXCHOV02.amd.com; FPR:; SPF:None; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2NAM03FT034; 1:7TojEn0bGe+TwnD5sB96G28G/q717H5bGjnujEnOEEi9xm/mOjkUuIp2j1YRqPnCuIkDcYRaTsJRi5p54Adr5H5fUrcG7te88BYnATPfX7KIFKDkmxRpX5S73jL2w25R X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: dfe2d350-57b6-43af-49fb-08d511b670b5 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254152)(2017052603199)(201703131423075)(201703031133081)(201702281549075); SRVR:MWHPR12MB1455; X-Microsoft-Exchange-Diagnostics: 1; MWHPR12MB1455; 3:o4Eq0mNqnlxZDFMdnFesdaThRJDOZFzsTse6KgujLJMdnzrhMht7YmUhGIQNDEy0xqBl4BM9P59JpsiY4prfYsV8J7Kd5YRM3885Z1iqhWvOd0VGK3nhZDotH+RV/NmHKulXoXmuySX788x6yk3l0ijxW+RnGO/Atk0pYgKQ/Du9q9tgijr0+i0rkGKKKwqrqDZKcpjSQ8C517Hh/PDg+bfsPqYQOO75i75C5+iPFz3Cw0PTBFncK7bvGD5kfwld6iUfRGw7xv0VuXXfZlqRE+u4k0J2TT9F7gH2gfojDT8/9h/TDRVVBhp788HD65INOi37zeD5Jn6WVLZohhw4PjGevpM4aifEw8qivgZ3m+o=; 25:U9WPC83lnlyt3jYMyU6kqFh/UT+8AMbe+scZcVC8LtnCWveMsNER9ecObQ0/elKN92t7TfW/yFJCZhAqT7PzosBU7kl+8hVkjzO5Lzdb3cswF8LnnKwbwq5sbPnnZ7ff/4OisAw/i6qtI5T5YUuBqWuNOqcGHvn29hH8SjjVqjpHn0gAAhnmpQwpttXJpPtryfuJT5FssgQYawgmolEY0zSQVsiN4EWN3e8EiBDmxDljCnpVewcEAJrey9gUOUFOiSKtpYuZr2yC738omk8yMtHymcL7VD4BjdoT+b3rhKO8o/oSn2eNEw+aJZSWhaBQQI5m9sYb9Azz3i2cEg4rVQ== X-MS-TrafficTypeDiagnostic: MWHPR12MB1455: X-Microsoft-Exchange-Diagnostics: 1; MWHPR12MB1455; 31:0mD5YJAu0pLXSHBwqv6EkRhGwPLttl+UR2STpwuxsGDNqGa15VswyLpTerKSA+Dpr9tLhMZl05LeIlDyJyAZBU7zi7fpVKtGedM+kv+KFxmB9rRuDgH2YwZQbb0uAIuPIrgJT+BR0TkE/+nCgXzAxGsFn6/gT3YodnmTipP749Hi/Cpp1Dsy1F5c0gb0pEUPqwfg6nlIhzj6G2ZaTyandn66BYUmAUmN8ytvJOHF7vU=; 20:CnU5rswUukTDWiR3cW59C9S+D3l01Cf4aHvfN5gNvXDQcDN8apu+pHdBEHrY3OOBWFcH28jiEL/Eo8dltaGYmNo2jvy5bvn+CN2WQqpx4z//XhS5jFIPhXrpWLk+CA8iO7CzojnHV+fWX+thjcCMK1FysTPlxhe1IHs88v96riI4s3oDwqUpQ7fyxvsyrTX5ffFES6RfKr1uOwfAf9CwcG73oENXbKW+UEdMFY+NL8ln+ZcOvNYeJf6ZbdqFShe9r5GTqgir54iwLPzIrJGAHI9n80rHDiEH5dVEjWWxp7GIRfFxxXKmnyBUORRGkGbvD5rZa6IaPTo45HlQdUv2xh5fYg8anti+PoT7KSUG0S2ELs+9WF2bNQilH6UCCEV3v6G+7u/BNuzeqxIX73KBkgt5xI7rANYfMW7iX5KY6/tjPi8O+dfQ2ATAvBLrF7//2urYF3+Y7ftIak7MZOtcVYRogDrIxPKly310iTlWGGRzPdgVfJXVtJSTdDzEFp30 X-Exchange-Antispam-Report-Test: UriScan:(767451399110); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(5005006)(8121501046)(100000703101)(100105400095)(93006095)(93003095)(10201501046)(3002001)(6055026)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(20161123555025)(20161123562025)(20161123564025)(20161123558100)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:MWHPR12MB1455; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:MWHPR12MB1455; X-Microsoft-Exchange-Diagnostics: 1; MWHPR12MB1455; 4:RpPcXF9ki2rTJOfhzLuqVMbWAuIw2aWxi8SoaaAPDhvvM3z+xMppyWUQiYUJqlMvXUj+6kbsNeBVg08if1rnjFhTctVZz7DWMhOOu9qrVJo0Hcdrf8y6tTs2v+WECdatjT0NvyKPHUqppkOamYXEIJ12At+1dEak+yp6TvrRLeuATjiKNDR4KXULv9+wrreqTlUmNULltJxlDE6A9YpDUhEyWrpLMzbNotcfiWA3/44xGVa4JXMWBdQAnrzTCURKlEc2LhXLaCYg9fwhBdiaY9pOjywLJMzK1RT8XP71C2s= X-Forefront-PRVS: 04583CED1A X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; MWHPR12MB1455; 23:YLzXU4mhvcrO9WzWs6BidvYJpXIxfjZQS9omVRvLl?= =?us-ascii?Q?vKOtrWyNowr+C3k1Tu+H+VmX5KWwpa6GSI1bxv6Sl1vbvUOCnfbPnF7+jY65?= =?us-ascii?Q?Fc0tFa+r8nDOdobZGMCQEEkGTvG+Wsk4DHwFK2lYVI1JDHLN1WvZMUBGDoeP?= =?us-ascii?Q?F5ShBGbFhayve6HRrt1w3artOr8EOrk3bzlf4lj7ZvwyQXp/Gq5kSlO6zqUU?= =?us-ascii?Q?Nrq8sH3OuEvgNVlR9nU6giYovArLtiop8uCr+mYljlHrQlM0mWkFiBl3J0LT?= =?us-ascii?Q?CRqu40bekhNQJV0JCpK9j45cFPHY/vTGsGv6WnzUASwLddyS7r4ULwh2Z25q?= =?us-ascii?Q?h/0qC3IVAESuxXPAaON1u/agnw+9QYDqwvAdF48PDlzDeaOfF+g1DJrhHoxI?= =?us-ascii?Q?n8z5tKbF4XZVlB/KFV/YgdlrL7hN9/2uhg1QIwRzCfMPxRrriayThsvrpZzV?= =?us-ascii?Q?WX4HEjlhQAuziR23ZE7awPeWQU17hz2yBvbCYKNY6to6mvdgLXecPnEoLe5h?= =?us-ascii?Q?T9wa1w0QfFC3T8H/vmuFu5cFDl0lGsamOvn16XpMY3Ko2++zwrGMUw8QnS9H?= =?us-ascii?Q?wit0ovE0LwclydDuFzJOgS4FIjJhiFbg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Oko9/CcO9/RpC/ykbYmbsiZsTOWKrsRbQQ8uJIq44yqkfT3UNisZo7CaUnROFcvlq0y2psZiphMeDFLlYRIn/OBmqJcDFI+Ei1O8L1fEXSjTU484ctigdb1abP8nPE1KU/TBCRoFPByRwrpdsRAM=; 24:UD5XbgF9w1QXuoEUkul5QRy3AqiNey9tETekWfRoEZMeB8KMR5Wp6CFn8HNcRg6tj+hga3aQomTVI5+YgHGUsRw0ue+rDRU6UlIB2HnDKII=; 7:jafTnSHTmLm4/L8XD5kgzHTNUJNLIBc6HcQG1PR06JhFNf4b7C7q1t8tQZhGc1mowtIWlsMpBOK4WnLPOCaXVFaFDtSQfs8Gr2lzSCY90RcFP62aZ2pzS9UiSJ2KjXMs7jTMXFnK9xzhPy0VhXgD5EgtRMXRGEigff1GsS6wFPfZ/b8vkELs3YV2Pj3KdsE3fnWu9hDuWEJKrnphbOSWYBGSb3zR2nYfB9XVQb784sE= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; MWHPR12MB1455; 20:H7ZlzanuvbcTqqh7yGT6cA0f2F4ev75YVNEVs2Q7L5+j7KY+sjkubOJ6RmFbTdrQUAAWBc10V7kGomxoy+JyIWf+48UnPTcI896L/czNBfEjk/GQNKPEeOLDdGzELn32PGQP9AcM49puE9BmSlZnMyGdoNkP/YI2PId/kyWnswYbjQxwuBuKrM1Ri1wbxdM34eI1AUad7HpwScqTDC0kpSlJlMhDM0nL3WnE1odysS8hUopiUco5eVot009r2KxI X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Oct 2017 21:16:01.4036 (UTC) X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d; Ip=[165.204.84.17]; Helo=[SATLEXCHOV02.amd.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR12MB1455 Cc: "Leo \(Sunpeng\) Li" , dri-devel@lists.freedesktop.org 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: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: "Leo (Sunpeng) Li" in amdgpu_dm_atomic_commit_tail. Just use crtc instead. Signed-off-by: Leo (Sunpeng) Li Reviewed-by: Alex Deucher --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c index 67222ff..f9b5769 100644 --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c @@ -4004,7 +4004,7 @@ void amdgpu_dm_atomic_commit_tail( struct dm_atomic_state *dm_state; uint32_t i, j; uint32_t new_crtcs_count = 0; - struct drm_crtc *crtc, *pcrtc; + struct drm_crtc *crtc; struct drm_crtc_state *old_crtc_state, *new_crtc_state; struct amdgpu_crtc *new_crtcs[MAX_STREAMS]; struct dc_stream_state *new_stream = NULL; @@ -4200,11 +4200,11 @@ void amdgpu_dm_atomic_commit_tail( } /* update planes when needed per crtc*/ - for_each_new_crtc_in_state(state, pcrtc, new_crtc_state, j) { + for_each_new_crtc_in_state(state, crtc, new_crtc_state, j) { dm_new_crtc_state = to_dm_crtc_state(new_crtc_state); if (dm_new_crtc_state->stream) - amdgpu_dm_commit_planes(state, dev, dm, pcrtc, &wait_for_vblank); + amdgpu_dm_commit_planes(state, dev, dm, crtc, &wait_for_vblank); }