From patchwork Tue Jun 21 05:33:59 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Koba Ko X-Patchwork-Id: 1645834 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=canonical.com header.i=@canonical.com header.a=rsa-sha256 header.s=20210705 header.b=T1gsoEsd; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4LRwDl1xjNz9sGp for ; Tue, 21 Jun 2022 15:34:15 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1o3WWe-0004av-1g; Tue, 21 Jun 2022 05:34:08 +0000 Received: from smtp-relay-internal-0.internal ([10.131.114.225] helo=smtp-relay-internal-0.canonical.com) by huckleberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1o3WWc-0004ao-MV for kernel-team@lists.ubuntu.com; Tue, 21 Jun 2022 05:34:06 +0000 Received: from mail-pl1-f197.google.com (mail-pl1-f197.google.com [209.85.214.197]) (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-internal-0.canonical.com (Postfix) with ESMTPS id 6A5403F324 for ; Tue, 21 Jun 2022 05:34:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1655789646; bh=jqFyKjaAKcNVX62Tw3w+yUz3MfLLRSf7RrmcA86eaP0=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=T1gsoEsdhtZtSnGOX9hnkntHpCyqfzWVI80OsfPOvugyu7I0KN2nPA9n42pb5dpXN YVK89Mk4tZgOCiwpj3mf21Kux/zNabb4diWwXbg1UsVu9MQVeXLVhvRQJqPATD9pAd oSirZDvej2BfFx4RzGbbgHkp0Hd9L5o4B6KohdXPG1ClJtY58s+LFROcyMGzzoe68T 3Urso8pfuhFoPjEJk1w5BwfuG9nDXbP0qMSUoBfDA3bPiBZSY0+wEQTkL7QmHjWguT eKpB9jnvWL9TZu+SlieYXaXGvJicA2xXcWwrjlPLUgstoNin+Hwx6PNkR8A/irfE9d ZjPZRe6KdYM8w== Received: by mail-pl1-f197.google.com with SMTP id l6-20020a170902ec0600b0016a1fd93c28so3179988pld.17 for ; Mon, 20 Jun 2022 22:34:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=jqFyKjaAKcNVX62Tw3w+yUz3MfLLRSf7RrmcA86eaP0=; b=7y5xeDUgak06au4o/B0uaKMp5yuZn9bx2FzTnK6WroXRBS8SgVLDvEwQqMtuQErcwS 8PIt53CXmFKrljU/U2VyZnbgeiVdhiGl4L+rkIGcskgvVF+ZvJrfi33oTiqaVg8nuYeO QH1hooQhPWvkTlPge4k6dRKixNBnTRWCCrdXKC63eXYSR9Fbdkcbh7trZLaMUJU6sgZR h1pvE+TaT/5exw57MIl884IGJhAVkZk292LForVGmlU1X1ufKJlpqAMKu+rBPUuBCAJ8 XPdyDLGUbQj9Bf+1xq+UYfbdRw3mqd8jBMv66Mt76JFB48Ixtns2Y84bXyiHUHj2pxsj Rkqg== X-Gm-Message-State: AJIora81c4elCLS0LPqQAmDTgrfNgjm5PmHBf4BMVitd/rBQRTOrqsKo QYDVNDLOhssHyS0gD0/yynroY6enAdMvKUsFQMjfkzc6/pdSiqlYbYUxP39lo7FOF5ZCDCD7YVK 9stTCP2OQ9/OEMp36zAXGwezmozS204ZA/cnN72r4sQ== X-Received: by 2002:a63:d806:0:b0:408:9e5d:68b9 with SMTP id b6-20020a63d806000000b004089e5d68b9mr24109508pgh.22.1655789644526; Mon, 20 Jun 2022 22:34:04 -0700 (PDT) X-Google-Smtp-Source: AGRyM1ueHpXTcocinxh08IlfvAv7V0IGhXqDrM919ASpsmHKuUqtiEsz9Hsa7DIYOiCvxplzApHAIQ== X-Received: by 2002:a63:d806:0:b0:408:9e5d:68b9 with SMTP id b6-20020a63d806000000b004089e5d68b9mr24109496pgh.22.1655789644104; Mon, 20 Jun 2022 22:34:04 -0700 (PDT) Received: from canonical.com (211-75-139-218.hinet-ip.hinet.net. [211.75.139.218]) by smtp.gmail.com with ESMTPSA id j14-20020aa7928e000000b00525133f98adsm5876991pfa.146.2022.06.20.22.34.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Jun 2022 22:34:03 -0700 (PDT) From: Koba Ko To: kernel-team@lists.ubuntu.com Subject: [PATCH 0/2 V2][SRU][U/J/OEM-5.14/OEM-5.17] UBUNTU: SAUCE: Fix WD22TB4 suspend and resume, two external monitor can not output Date: Tue, 21 Jun 2022 13:33:59 +0800 Message-Id: <20220621053401.22009-1-koba.ko@canonical.com> X-Mailer: git-send-email 2.34.1 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/1979267 [Impact] Resume SUT from suspend mode, found external monitors can not output, but display setting can recognize external monitors. [Fix] The WD22TB4 Thunderbolt dock at least will revert its DP_MAX_LINK_RATE from HBR3 to HBR2 after system suspend/resume if the DP_DP13_DPCD_REV registers are not read subsequently also as required. Fix this by reading DP_DP13_DPCD_REV registers as well, matching what is done during connector detection. While at it also fix up the same call in drm_dp_mst_dump_topology(). [Test Case] 1. Connect two 4K external monitor to WD22TB4. 2. Put SUT into suspend mode and wait 30sec 3. Resume SUT from suspend mode, found external monitors can not output. [Where problems could occur] low V2: Add "UBUNTU: SAUCE:" Imre Deak (1): drm/dp/mst: Read the extended DPCD capabilities during system resume drivers/gpu/drm/drm_dp_mst_topology.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) Acked-by: Tim Gardner