From patchwork Fri Sep 27 12:22:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aaron Ma X-Patchwork-Id: 1990255 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ubuntu.com (client-ip=185.125.189.65; helo=lists.ubuntu.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=patchwork.ozlabs.org) Received: from lists.ubuntu.com (lists.ubuntu.com [185.125.189.65]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4XFV4D2TGYz1xt8 for ; Fri, 27 Sep 2024 22:23:24 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=lists.ubuntu.com) by lists.ubuntu.com with esmtp (Exim 4.86_2) (envelope-from ) id 1suA0B-0000WB-Ru; Fri, 27 Sep 2024 12:23:15 +0000 Received: from smtp-relay-canonical-0.internal ([10.131.114.83] helo=smtp-relay-canonical-0.canonical.com) by lists.ubuntu.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1suA09-0000Vy-IX for kernel-team@lists.ubuntu.com; Fri, 27 Sep 2024 12:23:13 +0000 Received: from localhost.localdomain (unknown [222.129.37.69]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-canonical-0.canonical.com (Postfix) with ESMTPSA id DF4143F093 for ; Fri, 27 Sep 2024 12:23:11 +0000 (UTC) From: Aaron Ma To: kernel-team@lists.ubuntu.com Subject: [SRU][N][PATCH 00/11]Fix AST DP output after resume Date: Fri, 27 Sep 2024 20:22:53 +0800 Message-ID: <20240927122304.91471-1-aaron.ma@canonical.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" BugLink: https://bugs.launchpad.net/bugs/2083022 [Impact] After resume from suspend, the mini-DP output from ASPEED BMC card is either blank or mess up. [Fix] From upstream 6.11 kernel, 1, a fix of the blank screen after resume: 12c35c5582acb drm/ast: Fix black screen after resume 2, DP detection fix: 0ce91928ec62d drm/ast: astdp: Wake up during connector status detection 3, the patchset refactors the CRTC's mode-setting code: https://lore.kernel.org/all/20240627153638.8765-1-tzimmermann@suse.de/ [Test] Tested on hardware by vendor for 10 times of suspend and resume. The screen is OK. [Where problems could occur] It may break ASPEED drm support. Jammy Huang (1): drm/ast: Fix black screen after resume Thomas Zimmermann (10): drm/ast: Inline drm_simple_encoder_init() drm/ast: Implement atomic enable/disable for encoders drm/ast: Program mode for AST DP in atomic_mode_set drm/ast: Move mode-setting code into mode_set_nofb CRTC helper drm/ast: Handle primary-plane format setup in atomic_update drm/ast: Remove gamma LUT updates from DPMS code drm/ast: Only set VGA SCREEN_DISABLE bit in CRTC code drm/ast: Inline ast_crtc_dpms() into callers drm/ast: Use drm_atomic_helper_commit_tail() helper drm/ast: astdp: Wake up during connector status detection drivers/gpu/drm/ast/ast_dp.c | 7 + drivers/gpu/drm/ast/ast_drv.c | 5 + drivers/gpu/drm/ast/ast_drv.h | 1 + drivers/gpu/drm/ast/ast_mode.c | 278 +++++++++++++++++++++------------ drivers/gpu/drm/ast/ast_reg.h | 10 +- 5 files changed, 192 insertions(+), 109 deletions(-)