From patchwork Sun Jan 1 15:59:40 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Grodzovsky X-Patchwork-Id: 9492953 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 C057B60415 for ; Sun, 1 Jan 2017 18:34:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AFF96205AD for ; Sun, 1 Jan 2017 18:34:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 93741223B2; Sun, 1 Jan 2017 18:34:20 +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 C7E1C205AD for ; Sun, 1 Jan 2017 18:34:19 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id AF17C6E3AF; Sun, 1 Jan 2017 18:34:14 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org X-Greylist: delayed 9245 seconds by postgrey-1.35 at gabe; Sun, 01 Jan 2017 18:34:13 UTC Received: from NAM02-CY1-obe.outbound.protection.outlook.com (mail-cys01nam02on0058.outbound.protection.outlook.com [104.47.37.58]) by gabe.freedesktop.org (Postfix) with ESMTPS id 4F1A26E3AF for ; Sun, 1 Jan 2017 18:34:13 +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=c2eDxH9p4AoriGdPcgFjfddHmTX7YBSG6Ai/9ibXd70=; b=eQWZHjBtFRfqAHaDDZhkVRb54wk1jl6KmSQtwIY0vTbI76HNt0c1IW5n6wvRd71e6YsQgk7YkETU2hDdMUfz2PDlzJNDaiUctw6nb5tts3zYpReJ6kMC7vyAU6uLvfmeHgNW8w5Sq4zWLqkxiCNshwxZ4Cyq+Rzfmde/z2EOOl0= Received: from BN1PR12CA0038.namprd12.prod.outlook.com (10.160.77.48) by CY4PR12MB1160.namprd12.prod.outlook.com (10.168.164.140) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.803.11; Sun, 1 Jan 2017 16:00:06 +0000 Received: from DM3NAM03FT051.eop-NAM03.prod.protection.outlook.com (2a01:111:f400:7e49::207) by BN1PR12CA0038.outlook.office365.com (2a01:111:e400:49::48) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.817.10 via Frontend Transport; Sun, 1 Jan 2017 16:00:06 +0000 Authentication-Results: spf=none (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; lists.freedesktop.org; dkim=none (message not signed) header.d=none;lists.freedesktop.org; dmarc=permerror action=none header.from=amd.com; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) Received: from SATLEXCHOV01.amd.com (165.204.84.17) by DM3NAM03FT051.mail.protection.outlook.com (10.152.83.56) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.803.8 via Frontend Transport; Sun, 1 Jan 2017 16:00:05 +0000 Received: from SCYBEXDAG01.amd.com (10.34.11.11) by SATLEXCHOV01.amd.com (10.181.40.71) with Microsoft SMTP Server (TLS) id 14.3.319.2; Sun, 1 Jan 2017 10:00:04 -0600 Received: from agrodzovsky-All-Series.amd.com (172.29.227.109) by SCYBEXDAG01.amd.com (10.34.11.11) with Microsoft SMTP Server id 14.3.319.2; Mon, 2 Jan 2017 00:00:00 +0800 From: Andrey Grodzovsky To: Subject: [PATCH 2/2] drm/amd/dal: Switch to page_flip_target hook in DAL. Date: Sun, 1 Jan 2017 10:59:40 -0500 Message-ID: <1483286380-15865-3-git-send-email-Andrey.Grodzovsky@amd.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1483286380-15865-1-git-send-email-Andrey.Grodzovsky@amd.com> References: <1483286380-15865-1-git-send-email-Andrey.Grodzovsky@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)(7916002)(39860400002)(39450400003)(39840400002)(39410400002)(39850400002)(2980300002)(428002)(189002)(199003)(47776003)(450100001)(5003940100001)(6666003)(6916009)(92566002)(2950100002)(36756003)(50466002)(8936002)(50226002)(356003)(53416004)(97736004)(68736007)(105586002)(4326007)(48376002)(77096006)(106466001)(8676002)(5660300001)(54906002)(2906002)(2351001)(101416001)(38730400001)(305945005)(81166006)(86362001)(110136003)(189998001)(50986999)(76176999)(626004)(81156014); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR12MB1160; H:SATLEXCHOV01.amd.com; FPR:; SPF:None; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; DM3NAM03FT051; 1:MUF37CPUIl3nGR4EBmQvwJMk1TDhXYiJBB5EDJh1Q/1W84Xt37fQvYEu5uGk+FZI1kjcnkbTcn95IrVLEYWqIz2hwgWwkD6teJN1dIKjcaGUVB1b4DzHiaGAndXwXwRGlpKSANxpn6+Pqa0p5/acF5ULVQJshVllb7UnJW5xSYF75eqdTxkOTXcbfZvbhOrKAVXDYwgiGjp0G8LiRNGQyo4DWE2Q+2D/tFq6zeQg7RYA26yQ0c1Tmnx4bErFWxW8hJKgUzLL2m8E7h7a4r8q9RHWqvxfmYwywYvmjbS3+aJE9TZLu+d7SElppzV1Tj11EQ3jVQImG0CCRNQIHAgleo6qeKrqpVD8MnflKZU5JXnz80P3JjoiSCm5JAv4WLd30C0hxtQlL4jaPeE4rqcTJpO0aJbSy70EtkqGRCX2FC/L4SGiP3h+08M48uY3FmG+L4HmJfCc+T1+SMXtGg3toyJLiIaULebvwS3sqIpjJXde9CwVjP+RpCUYwz1iITAG X-MS-Office365-Filtering-Correlation-Id: 4ea425da-708c-4b39-20b0-08d4325f40d5 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:CY4PR12MB1160; X-Microsoft-Exchange-Diagnostics: 1; CY4PR12MB1160; 3:mV2iJFpSnU5dbd7seY46y2l8pGYCpz3C1jGWGRi/EbW8TwYVM0jVSJQrwaes4VICrCi04lDNG3rDiwKrVOT/Kk8oxhWPRhqOnlNfIbEovUdiK8bj9iFRet1+8QGAyjP44VVE81pTOAmjDvR2X7kkEmG5bFEYZzIuhFyXSzVxVgg/aviTgKpDe4HCl9l/+D8pNqfyht4d/+JxxAYVh0W7YseGnUkJ0vHCY1wNetXooH+agv1oZTEUBRdCs0iuAQo8uR7b7G094Kntk/h0ewaqzDyJ2bC2J5MymoSnFEMorHdXCGXSWvDtq1dfRmVvypGAdy+4DwyW3fV1YI4c/TDjl3zFSX6/64ac3d5mf05ohTVek3H9DdMaH+yOzHqtdVUx X-Microsoft-Exchange-Diagnostics: 1; CY4PR12MB1160; 25:cut/2uY2Qmy8Nda90GnW3bUXEtV+ic18fWecW6tO1C126y7mPaZeOqThP2xh0CPTl+wzHFKkN3ZdoON4Nc9Q799hrBfwNjyNgQlywVb31DlpocDfPA3ahGrMqenDrr5sJ+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gd4L1V98kMibdjYt+LMvi6rKL6rIAOdnoLNF02c0xa6jlEBT0BYWEyvTFMxkdkwuCg6Kk/KEvosdze8hZ+6/+JJNRKupFTd0QevOpKncxAioEPz/z+hRHX9H+wFrdL+0UElP7JOwimZaHdagfqglHSljcaVskzJSF2ujMPMfE5XTauZUvAE7d9CTjrYsj/7Ngj2V1UYV1Qa0Gb6KpGMKhMgZbEYtTh59Fd2rMO803/Capss0itmP8iNg+T6IMyIZsnTFi1/1iNUqnBZkHngrWuXUAbr1R7mzI4sgfDVxEfhjHNN568d+l4KowtIV0HMkovdJrSAuFcoyycfc0FhCtZMRJVos6MgtcOlTpeUJHQMUsb9Xxg8CLRTyg22WkT/aj+vDuZvBzZ74NBAatG8z4ubm7f0ils3gu09xUPIchnvKuBf2YTc7w2AXlTjTAulV/25Xp5ZwTMMfd1IoQUt8X7n61epY50AopyxJyY/KLoZEUep+Mpd5LvHsMbHA X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(767451399110); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(13016025)(13018025)(8121501046)(5005006)(3002001)(10201501046)(6055026)(6041248)(20161123564025)(20161123562025)(20161123555025)(20161123560025)(6072148); SRVR:CY4PR12MB1160; BCL:0; PCL:0; RULEID:; SRVR:CY4PR12MB1160; X-Microsoft-Exchange-Diagnostics: 1; CY4PR12MB1160; 4:4DRQ8iFAlAZDX9Pht8C8WcoowzvHui5RtKo+xijA66kbyVTWztRP0n8s5b7ZhiSa1vC9YWgcaTdhsuPDKm4YS5TC1tq7tXDREoo5FTSGdAXm248xoDWIDJt15PFcrNrmOAoLqwCYVRbDVsjjI4bwime8dMIBJk+QG9Dc+SVYmcwJSAmR78Rb+X7BRQ/7FHt1i5Et79ixAKAUTLY/jh6xgqXhveUKt93vMD5xRwwurgw3uVRNPs+AY9FH6OvO6HbZx65y9Bk6wCVfH0DYQs87mwmOz32lW6D07BxStkA3TpcOF+7Pt8zGvf1EJpG1NscMXYXCejsWuqEKkSykK5GzHfvxvB/tq1or14hq/p50i8mLecJKnXn+TpodRuYLs/8vdCHndOBYXstznqDtmKG/7pJVBckaONhRALg4MgYqMGxEag9qG3+43bbbDU5/ohgxIglUBb392F0Owa5MhkKiAHjYMEXg/xCPdwtcHUtq4H+llwJB9qAC2RN8La9fAlCti7DK9w1T+QC87GlPhzZQVkQw4fszy6wmrSXCplKzIoLCKPYi3hE6ixabkXKMXfo4voF5DOEibLcbTa2WU9XroHwTDvbzP5Bq8KoiKQfVT7F2NaLBcbca4151PnZhjyF7o0adOe9GDuMyTe6lpdf0FS+Ceq8vxDBTQFnJDK/9orA= X-Forefront-PRVS: 0174BD4BDA X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY4PR12MB1160; 23:FgOYkbPhQW++NibnzZ2Lklkc+1ZzmSWiSKo3ZytJH?= =?us-ascii?Q?5XbwiH/O3pI7VysjEGlT/OuCxzIIbwXYcJlNgGfhpDzddEcQQO6gEERVy5bw?= =?us-ascii?Q?ki1q175w+EzIy+zYTUfp+fMiesZ78N17iZjAZGKb6EAgXwQJugCVoAxvDchW?= =?us-ascii?Q?TgpFZdsOrilo1BUWyIPF4ItZRjoZEYuGGHhDkvyi01KyZVlMKoIqYJVNl2/h?= =?us-ascii?Q?fPEUkcs6/v4TyanWfKW/Kh1gCj5EUZgDA4mZa1KMURYuBTzZmBCtqkaBZGRI?= =?us-ascii?Q?67cpMixLdMdaDcz+sYS+zhZSS+/SjgB/pxLnI25GImBMTB21SRfn5yNkP6/3?= =?us-ascii?Q?7OOClLo9OQ/PZJa1N97G6Ik2ZlxeqawFObZCgCgk8j637aY4Of7qCyHTpPuD?= =?us-ascii?Q?kvzdurONfrZeGgXLneS9pXb80Y+V3EjmZXyRTGGr/nkBY3Pr8hCS3NwsuJ5G?= =?us-ascii?Q?Xvntkx12o3+jk2IBWJIwL/4amd2b+R/BXw3uSxhL6NUxK7afbRDcdlVMCtSw?=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+QQ==; 20:BdOC9tyXSNsXtHXAdRsyFPgbgBegiCbUfJEtLeg56xXqHitgZEjz9hZCF6P8rLdJv2xRV6tbwd5camDxl2Fwt7/0sHYTyatIzpiYkUgqzrt1+r2roJkkApz0G+I1uuVPTzZpbjMk8GUhf5pgzpv2kJxJC/WgdK79+V8YpZUWnz1MzSxqcJzmIb8ALNPJ8CDnD7YTOLaejxmKBcT88bGmWOP2Kn/NH/0Wdpcp75vp0xyH0MY8P2L0ML7IpLrT9Pc1 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Jan 2017 16:00:05.6292 (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=[SATLEXCHOV01.amd.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR12MB1160 Cc: Alexander.Deucher@amd.com, Michel.Daenzer@amd.com, Andrey Grodzovsky 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 This change shows the usage of proposed target_vblank field in drivers using the atomic code path. Signed-off-by: Andrey Grodzovsky Reviewed-by: Harry Wentland Reviewed-by: Alex Deucher --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_types.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_types.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_types.c index b44cd1a..eba3caa 100644 --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_types.c +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_types.c @@ -1057,7 +1057,8 @@ static int dm_crtc_funcs_atomic_set_property( static int amdgpu_atomic_helper_page_flip(struct drm_crtc *crtc, struct drm_framebuffer *fb, struct drm_pending_vblank_event *event, - uint32_t flags) + uint32_t flags, + uint32_t target_vblank) { struct drm_plane *plane = crtc->primary; struct amdgpu_crtc *acrtc = to_amdgpu_crtc(crtc); @@ -1078,6 +1079,7 @@ static int amdgpu_atomic_helper_page_flip(struct drm_crtc *crtc, goto fail; } crtc_state->event = event; + crtc_state->target_vblank = target_vblank; plane_state = drm_atomic_get_plane_state(state, plane); if (IS_ERR(plane_state)) { @@ -1130,7 +1132,7 @@ static int amdgpu_atomic_helper_page_flip(struct drm_crtc *crtc, .destroy = amdgpu_dm_crtc_destroy, .gamma_set = amdgpu_dm_atomic_crtc_gamma_set, .set_config = drm_atomic_helper_set_config, - .page_flip = amdgpu_atomic_helper_page_flip, + .page_flip_target = amdgpu_atomic_helper_page_flip, .atomic_duplicate_state = drm_atomic_helper_crtc_duplicate_state, .atomic_destroy_state = drm_atomic_helper_crtc_destroy_state, .atomic_set_property = dm_crtc_funcs_atomic_set_property @@ -2757,7 +2759,7 @@ int amdgpu_dm_atomic_commit( fb, crtc->state->event, acrtc->flip_flags, - drm_crtc_vblank_count(crtc)); + crtc->state->target_vblank); /*clean up the flags for next usage*/ acrtc->flip_flags = 0; if (ret)