Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B97B6606A32C for ; Fri, 4 Dec 2026 09:20:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=OkvroDi1 Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 34CD7112DE8; Fri, 4 Dec 2026 09:20:41 +0000 (UTC) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.4]) by gabe.freedesktop.org (Postfix) with ESMTPS id 2BD66112DCF; Fri, 4 Dec 2026 09:20:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1796376022; x=1827912022; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=m+Lt0kyNH64sh5sZZXbQINr2eYHvVqyfc8+dRke8N7o=; b=OkvroDi1lKwFebVufpVF2xShgc5e+oUqG9IFs9CnHJAu7kr1Y/+y/fF/ np+D7cbif4pzxIODpQCosfN8b5+fsyGXlG/DELlnvgClzVE/jZrXIw/0y i9Lcn/6ifqEmrs7kY/iTHp14WY89Hk348sHepPu416S0d3VTGZnfRo9vW ZllvMxz5rNYLccinfKxaYw9lZ/f8vXgJGVojBgWpekMRV7BKQS/tJ5LCQ 1KjuJ9ysqRtpkjgsApm8A9bf6krj6w/Zvq2V9r/3QLFHviYonScBUbtB4 M3zS0bHyvgNx3Aw+wZFHYlId/iicEh+fRU+UvPZfzyl1U40AVSzIyyteV A==; X-CSE-ConnectionGUID: kIZYOZkKTz+LBjcfPyvERQ== X-CSE-MsgGUID: 6m6U2F+mT3qqYBILrjW7VQ== X-IronPort-AV: E=McAfee;i="6800,10657,11985"; a="108968" X-IronPort-AV: E=Sophos;i="6.29,78,1794902400"; d="scan'208";a="108968" Received: from orviesa004.jf.intel.com ([10.64.159.144]) by fmvoesa114.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Dec 2026 01:13:16 -0800 X-CSE-ConnectionGUID: MlNQ3N8yQ2G6qTDGkJb2xg== X-CSE-MsgGUID: QomsyuelQ+6Atseh4vOHVQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.29,78,1794902400"; d="scan'208";a="13863989" Received: from srr4-3-linux-103-aknautiy.iind.intel.com ([10.223.34.160]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Dec 2026 01:13:14 -0800 From: Ankit Nautiyal To: intel-gfx@lists.freedesktop.org, intel-xe@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org, alexander.kaplan@sms-medipool.de, suraj.kandpal@intel.com, Ankit Nautiyal Subject: [PATCH v5 01/15] drm/i915/dp: Forget the PCON FRL training state on a long HPD Date: Fri, 4 Dec 2026 14:27:32 +0530 Message-ID: <20261204085746.391918-2-ankit.k.nautiyal@intel.com> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20261204085746.391918-1-ankit.k.nautiyal@intel.com> References: <20261204085746.391918-1-ankit.k.nautiyal@intel.com> X-Archived-By: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: intel-xe@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel Xe graphics driver List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Intel-xe" X-Spam-Status: No, score=-19.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=4.0.1 X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on aws-us-west-2-korg-listserv-alma10-1 Currently, the intel_dp->frl.is_trained is cleared only when the HDMI link status IRQ reports the link down. A sink disconnect, or a PCON that resets itself and drops the HPD, doesn't clear it. As a result, the FRL training is skipped at the next enable although the HDMI link is gone. Clear the flag on a long HPD. The next enable then reads the state of the PCON, and trains the link if it is not already in FRL mode. Signed-off-by: Ankit Nautiyal --- drivers/gpu/drm/i915/display/intel_dp.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/gpu/drm/i915/display/intel_dp.c b/drivers/gpu/drm/i915/display/intel_dp.c index 0c7c57d9f3ab..179e0d8b89c2 100644 --- a/drivers/gpu/drm/i915/display/intel_dp.c +++ b/drivers/gpu/drm/i915/display/intel_dp.c @@ -7140,6 +7140,13 @@ intel_dp_hpd_pulse(struct intel_digital_port *dig_port, bool long_hpd) intel_dp->reset_link_params = true; intel_dp_invalidate_source_oui(intel_dp); + /* + * The HDMI link of a PCON is lost with the sink, forget its + * trained state, so that the FRL training is checked again at + * the next enable. + */ + intel_dp->frl.is_trained = false; + return IRQ_NONE; } -- 2.50.1