Message ID | 20211125101025.20214-13-chris.chiu@canonical.com |
---|---|
State | New |
Headers | show
Return-Path: <kernel-team-bounces@lists.ubuntu.com> 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=DfpDhN+Q; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=<UNKNOWN>) 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 4J0DDL2DHmz9s5P for <incoming@patchwork.ozlabs.org>; Thu, 25 Nov 2021 21:11:14 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from <kernel-team-bounces@lists.ubuntu.com>) id 1mqBiW-0005lk-VY; Thu, 25 Nov 2021 10:11:01 +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 <chris.chiu@canonical.com>) id 1mqBiJ-0005PP-AF for kernel-team@lists.ubuntu.com; Thu, 25 Nov 2021 10:10:47 +0000 Received: from mail-pf1-f197.google.com (mail-pf1-f197.google.com [209.85.210.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 5FF5B4001F for <kernel-team@lists.ubuntu.com>; Thu, 25 Nov 2021 10:10:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1637835044; bh=qn++C5HdfToBwkg+3hetQMnvSTs3J7Xu/hZPgJVkP7I=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=DfpDhN+QSbwASyfOFgduPVcjP6QOlJgRWcD/aKrcq+6qq6PXKFkhDPk0f2vzRVhKU VTD8AOa9117bxrdhDZrVoUjZ1T241uKKI88q6xk8kUMwtp40wmWFls9BOQA+q89eUr ks7LpOAdAVyUplZHpfkjqo/PbhJRUAhkh1jOjDB3Yq4ei4jIDyWGxFdjc9EdP0U5KH 19Rj1G5/AaJr1wFvQLR45TIUwLnFEzM7hMEROrHDpQYH0x2mYsDCeSfqNeqFYwduj/ KaexNJ6HRqon+5qcvsDQfkHb7oe9OBmPi4YPgwCRo8uO5VtYj7+N+cb9eMdOxwyH8Z zU/HCQku4s1pQ== Received: by mail-pf1-f197.google.com with SMTP id u4-20020a056a00098400b004946fc3e863so3147609pfg.8 for <kernel-team@lists.ubuntu.com>; Thu, 25 Nov 2021 02:10:44 -0800 (PST) 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=qn++C5HdfToBwkg+3hetQMnvSTs3J7Xu/hZPgJVkP7I=; b=nlqIkgcQneeQUqPZtI4TNLXPX0ck0/enOqDRJAgLu1UpcbXzG8c3T0AJtMDrW6vzG1 uIOxqeiCwn1ey44maUN32xhhhP/ugh7XW9pCAkzDlSM4HwbOIPeN2IxEZ8Vu24J24J8K 7B/rJHKm6+l1XUNXETAL0TUUiKSH2KqO8tQxAUurppEdhgRnOITGbelAcw02B088D6/t c9fEyAF9dUaQe1hleTWEeVKrJrmy5l2HzqQ2JjG7PdS8WFBF+aLYz2bCiFsOT5B0Lhiq jwBYlSrfFd5ubijfBSzTs5/1F6C0KF9Nl1RKzylmFDaVtgh0wPgy0hQ/AJXLqG8dZ/7/ tWJA== X-Gm-Message-State: AOAM5338yqZclFMg7C7Ymvr4LG4PrHZ9OgWSXogFH6fVct5Lhsn3Z9po TK5Lg0GPuDfIq9qvJipIWuLbMQD/7kuT2KwLW1Ub9GKoy+YHk1+FZPvGPfNs/NKeJ+dCpbQIzJi NcucAwWI0FJHoAokm1vrTlkmDyPHXPo/spt18MwrjOQ== X-Received: by 2002:a17:902:d395:b0:141:a913:1920 with SMTP id e21-20020a170902d39500b00141a9131920mr27642021pld.81.1637835042749; Thu, 25 Nov 2021 02:10:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJwCmuV5MPmwPf0wbQe+wRZIuCIqMQVsa7yy7CCuI+d0/o2XKC8sWYTop7DfmQlIUQ6GOkRqGw== X-Received: by 2002:a17:902:d395:b0:141:a913:1920 with SMTP id e21-20020a170902d39500b00141a9131920mr27641975pld.81.1637835042438; Thu, 25 Nov 2021 02:10:42 -0800 (PST) Received: from localhost.localdomain (111-240-133-170.dynamic-ip.hinet.net. [111.240.133.170]) by smtp.gmail.com with ESMTPSA id g18sm2621861pfb.103.2021.11.25.02.10.41 for <kernel-team@lists.ubuntu.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Nov 2021 02:10:42 -0800 (PST) From: Chris Chiu <chris.chiu@canonical.com> To: kernel-team@lists.ubuntu.com Subject: [PATCH v2 12/12][SRU][OEM-5.14] drm/i915/tc: Fix system hang on ADL-P during TypeC PHY disconnect Date: Thu, 25 Nov 2021 18:10:25 +0800 Message-Id: <20211125101025.20214-13-chris.chiu@canonical.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20211125101025.20214-1-chris.chiu@canonical.com> References: <20211125101025.20214-1-chris.chiu@canonical.com> MIME-Version: 1.0 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions <kernel-team.lists.ubuntu.com> List-Unsubscribe: <https://lists.ubuntu.com/mailman/options/kernel-team>, <mailto:kernel-team-request@lists.ubuntu.com?subject=unsubscribe> List-Archive: <https://lists.ubuntu.com/archives/kernel-team> List-Post: <mailto:kernel-team@lists.ubuntu.com> List-Help: <mailto:kernel-team-request@lists.ubuntu.com?subject=help> List-Subscribe: <https://lists.ubuntu.com/mailman/listinfo/kernel-team>, <mailto:kernel-team-request@lists.ubuntu.com?subject=subscribe> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" <kernel-team-bounces@lists.ubuntu.com> |
Series |
Fix i915 TypeC disconnect problems for Intel ADL-P
|
expand
|
diff --git a/drivers/gpu/drm/i915/display/intel_tc.c b/drivers/gpu/drm/i915/display/intel_tc.c index 4a14db604cba..40faa18947c9 100644 --- a/drivers/gpu/drm/i915/display/intel_tc.c +++ b/drivers/gpu/drm/i915/display/intel_tc.c @@ -834,6 +834,14 @@ void intel_tc_port_put_link(struct intel_digital_port *dig_port) intel_tc_port_lock(dig_port); --dig_port->tc_link_refcount; intel_tc_port_unlock(dig_port); + + /* + * Disconnecting the PHY after the PHY's PLL gets disabled may + * hang the system on ADL-P, so disconnect the PHY here synchronously. + * TODO: remove this once the root cause of the ordering requirement + * is found/fixed. + */ + intel_tc_port_flush_work(dig_port); } static bool