From patchwork Mon Feb 24 19:31:10 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Imre Deak X-Patchwork-Id: 13988852 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3FC85C021BE for ; Mon, 24 Feb 2025 19:30:20 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id ECB8D10E4EA; Mon, 24 Feb 2025 19:30:18 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="K5szKDn7"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.19]) by gabe.freedesktop.org (Postfix) with ESMTPS id 3316110E4E5; Mon, 24 Feb 2025 19:30:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1740425417; x=1771961417; h=from:to:subject:date:message-id:mime-version: content-transfer-encoding; bh=8VU7KqcWH2WjzdCkmE7nyFkj5L/7Al9Nkjv8fLcha3U=; b=K5szKDn7mI91Lc8J//He78LWqoS2y7PxcqMUTk61AMC6CV/ElXSsWHxw QTvrkMvY31sNfNIJLqbo4vNG7iq3PXW0vdRvoBYfzA2OHBEwss5r/+6gc Ip351KYI65LMUTgD6QeRcEvqyqMz96oeF4DqA+/pqxigKOgWAlegxqovG 4zGyKScMELryvqszPUtm0zNHeiDBEAlcXtCrzzWgaxyI5gX5NPUHdTctp Ie4RLRgyKyawspX5S/+XMoDoAPlyZWMFGswMPavXsadDrq8zd0I7l1Svy Bpq/oBEUC54cy363ApNl0G8teGQZ6ZYHOH0xqnYpK+XZre9Zi9KFigP6c A==; X-CSE-ConnectionGUID: reh9NcjSSp6okbILjvBDsQ== X-CSE-MsgGUID: 3vm+m0umTZelhBCiwT3nhA== X-IronPort-AV: E=McAfee;i="6700,10204,11355"; a="40388249" X-IronPort-AV: E=Sophos;i="6.13,312,1732608000"; d="scan'208";a="40388249" Received: from fmviesa007.fm.intel.com ([10.60.135.147]) by fmvoesa113.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Feb 2025 11:30:15 -0800 X-CSE-ConnectionGUID: Y7H5ySFnTl+ENqMFeUGFpg== X-CSE-MsgGUID: RaxmK5uxTTuYYjvXNCl2rg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.13,312,1732608000"; d="scan'208";a="116169036" Received: from ideak-desk.fi.intel.com ([10.237.72.78]) by fmviesa007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Feb 2025 11:30:13 -0800 From: Imre Deak To: intel-gfx@lists.freedesktop.org, intel-xe@lists.freedesktop.org Subject: [PATCH 0/5] drm/dp: Fix link training interrupted by HPD pulse Date: Mon, 24 Feb 2025 21:31:10 +0200 Message-ID: <20250224193115.2058512-1-imre.deak@intel.com> X-Mailer: git-send-email 2.44.2 MIME-Version: 1.0 X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" This patchset fixes a problem during Display Port link training, where the link training is interrupted by a short HPD pulse generated by the sink. Generally the sink signals a bad link state via such short pulses, but the sink should prevent such signaling during link training. Some sinks do generate a short pulse as above during link training, or a pulse generated before the link training started may be handled from a scheduled work during link training. Such a handling may interfere with the link training (see patch 3 for the reason), so this patchset prevents the handling of pulses during link training. Imre Deak (5): drm/i915/hpd: Let an HPD pin be in the disabled state when handling missed IRQs drm/i915/hpd: Add support for suspending the IRQ handling on an HPD pin drm/i915/dp: Fix link training interrupted by a short HPD pulse drm/i915/dp: Queue a link check after link training is complete drm/i915/crt: Use intel_hpd_suspend/resume() instead of intel_hpd_disable/enable() drivers/gpu/drm/i915/display/intel_crt.c | 7 +- .../gpu/drm/i915/display/intel_display_core.h | 2 + .../drm/i915/display/intel_dp_link_training.c | 23 +- drivers/gpu/drm/i915/display/intel_hotplug.c | 264 ++++++++++++++---- drivers/gpu/drm/i915/display/intel_hotplug.h | 5 +- 5 files changed, 237 insertions(+), 64 deletions(-)