From patchwork Tue May 21 03:22:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Klymenko, Anatoliy" X-Patchwork-Id: 13668879 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A3355C25B77 for ; Tue, 21 May 2024 03:23:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:CC:To:Message-ID:MIME-Version:Subject: Date:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=yaABF9NvBneALro8++fWKv/gduDO5MHU6qiHBn5KG9g=; b=T4N3+aogLkNE+x u5QZjSnvkmEcNuj7LRCo+Kh+6W9RLg6D5yLQ+F1wE/5ajpsBb3bSoSSWheEPLxPNvkxjRfsaOI5fD uDvsxnIBCSr/eWjZnvC/VHM2SKFHIf998X0e95HGWN7t2wDtowo/lvlBbX8s7vHJTj4CySckMFrjB tIx5wtBtI1ZJlF3RvcIpswiy6/AhbyQrfnkIfjQrqOlZvxlj+SKiq/gErOXKOAocI4czkj+Ew8c/3 0mWQYRL7u8eRbFVDIX0Lsd+RXG3/WF28AIDGYQfC/Q/TMh2ZzA/l2UHV+lBG2I2T9ITp4UqorABUU DqDceV9NcQ9OYJ4252yg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s9G6B-0000000GBox-0Mzx; Tue, 21 May 2024 03:23:35 +0000 Received: from mail-bn8nam04on20601.outbound.protection.outlook.com ([2a01:111:f403:2408::601] helo=NAM04-BN8-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s9G67-0000000GBkU-3ZH9 for linux-arm-kernel@lists.infradead.org; Tue, 21 May 2024 03:23:33 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NqYpnPfp53tVdv2XVCzDQ80Lol+8tFnbT2+sUDHnDm1/BAQIJ0k7a6UHhC1WcgFccBAVwSZUgsPNR16bUA8ojwQJo6e7CgtgH5bHaJd2UT80I5n0PbmjJAn1uvxSNAxIQZ4yMOUFXPJEpRg9ykMLZtMyY+EAsSC4T3yFTxJ4Cq4XtA7ZKJn/dvWyUJIHoUwVIbtZ6GaQ/tEmBxRN3qsCGrvdt458xF9z8War4JgdF+6+KJ3ChfAwHFo11F5RBmmH6RrVhM+PJdLaqJJcrPob52VXgIeUxXRtEDlLWEtpfTs+GDGEcOIA+ZXr90qzyjw74BdbH+Olf8tmN/bCGWXJLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=ILcX6jCnY1c7du0HMR52kxAwqcIOD6lLrdm3u8+eZV4=; b=CZxm0REpAYu1Wx427W2TUur5C+WNf2unkXrVT/7/t/BKYUGr4BPfnn8b+Lcj2rqWB3DOF+Yxa29RSHqo5XgOnduAy7zYHYNBBzN6hVFIPmnI1D8RblD/JQG/ICbiDc+XSXn+BUcDWw/ZJew/6+Ts9wiOlj0eXQjYhEFVG34ScV9Z03/maUWOsr7LZeX1HZbA2Ix7cnWNrM08Rf6jYHMwylAn8ZWexz3mPOcspX1AdmOUyznt5Rn61oSXhqMdOAHGyejg3B3av7QysIn2hH3yDV4CWvd2bCBFnwx3CbHWH2GA4RDvjki1hI6W2XVbQl1LANlVTaE6QHHyPc1HsvZ9IQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=ideasonboard.com smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ILcX6jCnY1c7du0HMR52kxAwqcIOD6lLrdm3u8+eZV4=; b=FOQRTBf4afTdr39BJRUMhI05EhPsxxEimGKVzSsAcLzX5AZ3zInaSRmUE8coS1X1n0v0dSMyOZ1ubO+XYLuGNOwtjpI5UHd11+BoSd6ztUuQTsYmc1XNQv/yEdTkVIWLCW5pfIGKV5b5TcybhWDd19rdqaexBAny9LxCzlYAMmM= Received: from MW4P221CA0026.NAMP221.PROD.OUTLOOK.COM (2603:10b6:303:8b::31) by LV8PR12MB9269.namprd12.prod.outlook.com (2603:10b6:408:1fe::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7587.31; Tue, 21 May 2024 03:23:09 +0000 Received: from MWH0EPF000989E8.namprd02.prod.outlook.com (2603:10b6:303:8b:cafe::34) by MW4P221CA0026.outlook.office365.com (2603:10b6:303:8b::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7587.36 via Frontend Transport; Tue, 21 May 2024 03:23:08 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB03.amd.com; pr=C Received: from SATLEXMB03.amd.com (165.204.84.17) by MWH0EPF000989E8.mail.protection.outlook.com (10.167.241.135) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7611.14 via Frontend Transport; Tue, 21 May 2024 03:23:08 +0000 Received: from SATLEXMB04.amd.com (10.181.40.145) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Mon, 20 May 2024 22:22:35 -0500 Received: from xsjanatoliy50.xilinx.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server id 15.1.2507.35 via Frontend Transport; Mon, 20 May 2024 22:22:34 -0500 From: Anatoliy Klymenko Date: Mon, 20 May 2024 20:22:31 -0700 Subject: [PATCH] drm: xlnx: zynqmp_dpsub: Enable plane in atomic update MIME-Version: 1.0 Message-ID: <20240520-dp-layer-enable-v1-1-c9b481209115@amd.com> X-B4-Tracking: v=1; b=H4sIAHYTTGYC/x3MSwqAMAwA0atI1gZqsf6uIi5SjRqQKimIIt7d4 vItZh6IrMIRuuwB5VOi7CGhyDMYVwoLo0zJYI0tjbMGpwM3ulmRA/mNsfauKmi27UgNpOpQnuX 6j/3wvh/BmHVXYQAAAA== To: Laurent Pinchart , Tomi Valkeinen , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Michal Simek CC: , , , Anatoliy Klymenko X-Mailer: b4 0.13.0 Received-SPF: None (SATLEXMB03.amd.com: anatoliy.klymenko@amd.com does not designate permitted sender hosts) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MWH0EPF000989E8:EE_|LV8PR12MB9269:EE_ X-MS-Office365-Filtering-Correlation-Id: 7ea75946-8e13-4d67-95fa-08dc7945563f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|82310400017|376005|7416005|1800799015|36860700004; X-Microsoft-Antispam-Message-Info: =?utf-8?q?Rlf9/F3IAxW33BadpI9dY0IrZMT0grB?= =?utf-8?q?D+4IRSnWzFc6YgZKVVeTZHgkSGvnFmUvKv35N9mpN9jcy+Ls/rslBJkvylrzSNG4l?= =?utf-8?q?aWAtT9Jx513+ITvhhsUvu0ViM0r3l7kGtz7O930uAfW+pleQKhCpsdLovv0xES0ZR?= =?utf-8?q?Xx7Ze4NpIs4G5JdfVK+78pprPFgfvbsuTK6NP3SZhtpIgNWNTYeMk5+hBRrsFNQCq?= =?utf-8?q?0evk7grNOTRcJVh6ZVKssPWbRA8lLWfKECDZV3+tytakRX1f9GPW89v30qG1m1MJL?= =?utf-8?q?NLjVJHVRveIAJE9/L5mDUPddY5L0Zzy4yVtwuKO7QBpoLIy6MMIIIGYxImUYRr8jr?= =?utf-8?q?GPzbPr2d/uHf+euJm65BaWFd07ld8uGf9zyzevrYRDDlqUZAQLdd1V0hboOy768t/?= =?utf-8?q?SlvL6JVR/eyVzIkiSWEK5R6mpNtYiHwB8oSGLvD3mFEx0Gmy45aAZjjeyBsydxlYb?= =?utf-8?q?m3tXNHhmQlr6rdH5I0kt46Ip2sWwnQRGuqNScYH4A9gVxcb+1LnE5uzo8P7qWtTcw?= =?utf-8?q?zhQCTvy52oRgBC8jcM/iKDyX6CQJu1LGnstI7baYIDcfAlgsw1iNMWmBrRWgNyZse?= =?utf-8?q?vDA/w0mXmtxC+DIPXcXzg7jV/+RRyYA82QrTgPec7uvS6BiB0pVoem1r+riXVx+We?= =?utf-8?q?dglLwrQ1wxvoX+66LimVI6eYknDjVwqUcWpW5DZOZbycYiGfSmIUM+qM9ogbu8R0B?= =?utf-8?q?2Om04pzNvzkw7l03BP9BaXIKYcd2DBdwp6dox9hJBMaZlKcRP0hLAnqS57biXk98G?= =?utf-8?q?gFJoUyTMOUqy2Nf74I0gSJVaz7Ii+IRNeodaS2VAeMlusU24ccMRdzMa8ousCbqqz?= =?utf-8?q?aWJznL2I2abpg1dndVoznvCGIBanBCx395fe6vzHweZ+o75lLFfZrK4AWvfXQVQxv?= =?utf-8?q?yf5rWm3dyUeSa2a3p8pLRE+en3bJ70gYqLG7m+NgucWGGpwjpoC1k4sJ9UqhZDPg8?= =?utf-8?q?MkeJynqrnXTJFrT96ykScjQtH1tBNuDo3EjvvgPXZoIZbaLyTEdlPwLjV57EwULUH?= =?utf-8?q?iJiIL546vDxSg9WPRxXuF6UHXFZGSkCJ0dGLIt6Onwy/BDN3qnk+JoNNi77YZFi82?= =?utf-8?q?gwdOniqKQvxC9d4dpV3NXhceV/vdueqROCwyciyWs/65HIfHtdFA9zAA944LHUWy8?= =?utf-8?q?d9KZtDd5K217sj6Fu+75alYsPTo1wa0H2ZgwqTgEp3E1O7KLUH1+gsqEEzZI6Z836?= =?utf-8?q?j9MueHRLOxSWP7gafv0nkzcewwIFRzq6FhUoc2ysrTT2gJO/rNe11IrHUSR+0wVEF?= =?utf-8?q?FTc1zSKk8WvG9Ck/dvzEqlzlNOA7DwdhGkeJxD7x0Oc74PzA+YOkQCSpZb3MVgUgn?= =?utf-8?q?+OZcguTO0dcU?= X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB03.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230031)(82310400017)(376005)(7416005)(1800799015)(36860700004);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 May 2024 03:23:08.4292 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 7ea75946-8e13-4d67-95fa-08dc7945563f 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=[SATLEXMB03.amd.com] X-MS-Exchange-CrossTenant-AuthSource: MWH0EPF000989E8.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: LV8PR12MB9269 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240520_202331_902603_DD8EA77B X-CRM114-Status: GOOD ( 14.63 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Unconditionally enable the DPSUB layer in the corresponding atomic plane update callback. Setting the new display mode may require disabling and re-enabling the CRTC. This effectively resets DPSUB to the default state with all layers disabled. The original implementation of the plane atomic update enables the corresponding DPSUB layer only if the framebuffer format has changed. This would leave the layer disabled after switching to a different display mode with the same framebuffer format. Signed-off-by: Anatoliy Klymenko --- drivers/gpu/drm/xlnx/zynqmp_kms.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) --- base-commit: 673087d8b023faf34b84e8faf63bbeea3da87bab change-id: 20240520-dp-layer-enable-7b561af29ca8 Best regards, diff --git a/drivers/gpu/drm/xlnx/zynqmp_kms.c b/drivers/gpu/drm/xlnx/zynqmp_kms.c index 43bf416b33d5..c4f038e34814 100644 --- a/drivers/gpu/drm/xlnx/zynqmp_kms.c +++ b/drivers/gpu/drm/xlnx/zynqmp_kms.c @@ -120,9 +120,8 @@ static void zynqmp_dpsub_plane_atomic_update(struct drm_plane *plane, zynqmp_disp_blend_set_global_alpha(dpsub->disp, true, plane->state->alpha >> 8); - /* Enable or re-enable the plane if the format has changed. */ - if (format_changed) - zynqmp_disp_layer_enable(layer); + /* Enable or re-enable the plane. */ + zynqmp_disp_layer_enable(layer); } static const struct drm_plane_helper_funcs zynqmp_dpsub_plane_helper_funcs = {