From patchwork Mon Sep 30 02:55:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Chia-Lin Kao (AceLan)" X-Patchwork-Id: 1990716 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 4XH5Kj5fpVz1xsc for ; Mon, 30 Sep 2024 12:55:36 +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 1sv6ZI-0006qa-8g; Mon, 30 Sep 2024 02:55:24 +0000 Received: from mail-pf1-f182.google.com ([209.85.210.182]) by lists.ubuntu.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1sv6ZG-0006qP-FV for kernel-team@lists.ubuntu.com; Mon, 30 Sep 2024 02:55:22 +0000 Received: by mail-pf1-f182.google.com with SMTP id d2e1a72fcca58-719ba0654f9so3251223b3a.3 for ; Sun, 29 Sep 2024 19:55:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727664920; x=1728269720; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=dRaLaEZElUzoVJ380HIpxlFegmjUXgAdYDxSDzM/2L8=; b=qKP+KzZUdUUa8LQLsSptyYXiiZApy8ea7l6ip0nTU1a/ZFU4nLQcV5HbYCWw1ZevJK at5007S2wCM/vBl66/6PoBX/J3FK8BpDfhwbkRNqqKflI8oswslCTFhQxKoA0H7PPPZe 5INuJjGYzKpySv4bQbLkzEG4ThEchpa1sl44RK+IxYUHvpA9NtLk8pbYCO+L9lwBGomb jame0ht+kymhdNjEpDKHD9OEidDXAkPHtZ3ssJXTNTm+29+G5ZilKiLiM1/1Dz1WlboD kvZ5hS4qr6ioY7MNuj/PEP13k9t9GR08WfX73mma7l4HVntH3d2hQoM2DY/v+ddu5sF1 JX4g== X-Gm-Message-State: AOJu0YxcOzUQ0S6Hf0p0W7nZuoY7qG/KUmKkb7961fVcGndAGlvRQenr XuMbbdiKcIU/DdxZHP3O+K3q76MUZ9+ZjD/VlysktRGhwfVyp/3xoU2AD5Oz X-Google-Smtp-Source: AGHT+IFKQWkhTRVe3nFHMHXEabblj8EawH5ODf0s6u80B0d95kl7qwF6aNHUAvUTUxACD5COL/sTmw== X-Received: by 2002:a05:6a00:b92:b0:714:3de8:a616 with SMTP id d2e1a72fcca58-71b26057a4cmr16191412b3a.19.1727664919892; Sun, 29 Sep 2024 19:55:19 -0700 (PDT) Received: from localhost (211-75-139-220.hinet-ip.hinet.net. [211.75.139.220]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71b2651608bsm5227803b3a.118.2024.09.29.19.55.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 29 Sep 2024 19:55:19 -0700 (PDT) From: "Chia-Lin Kao (AceLan)" To: kernel-team@lists.ubuntu.com Subject: [PATCH 0/1][SRU][N][O] The system hangs after resume with thunderbolt monitor(AMD GPU [1002:1900]) Date: Mon, 30 Sep 2024 10:55:16 +0800 Message-ID: <20240930025517.3895411-1-acelan.kao@canonical.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Received-SPF: pass client-ip=209.85.210.182; envelope-from=acelan@gmail.com; helo=mail-pf1-f182.google.com 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/2083182 [Impact] The system hangs on blackscreen with thunderbolt monitor while resume from suspend state. [Fix] The TBT monitor HPD will be triggered during the resume procedure and call the drm_client_modeset_probe() while struct drm_connector connector->dev->master is NULL. It will mess up the pipe topology after resume. AMD submitted a patch to fix this issue. https://lore.kernel.org/all/20240927170103.102180-3-Jerry.Zuo@amd.com/T/#e868f6b967ec79ae85c5a8a446be9b5d5c97e5427 [Test case] 1. Boot to OS 2. Plug thunderbolt monitor to the system. 3. Enter suspend 4. Press the power button to resume from suspend 5. Should not hang [Where problems could occur] Pretty low chance to introduce any regressions. The patch won't do anything bad to the system while resuming, the probing will be done after resumed. Tom Chung (1): UBUNTU: SAUCE: drm/amd/display: Fix system hang while resume with TBT monitor drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 6 ++++++ 1 file changed, 6 insertions(+) Acked-by: Guoqing Jiang Acked-by: Ivan Hu Acked-by: Ivan Hu