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 7A7F5FF8875 for ; Thu, 30 Apr 2026 03:32:28 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 289D610F1EA; Thu, 30 Apr 2026 03:32:28 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="aWSqQXt4"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.10]) by gabe.freedesktop.org (Postfix) with ESMTPS id 4D39A10F1EA; Thu, 30 Apr 2026 03:32:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1777519947; x=1809055947; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=a4oeWuCJUd2YltEyT7dE2TppyO4Mbmhge1qPIZzk+Lo=; b=aWSqQXt4x3QlSY2vQUZq75r0rZwAVvXliXvIalLElBZNKrPxVm3CDyLz ZqgRg67x6XeDnvyiNi+Xx4mcB6XfepaqGi+7VwQD/H2IZ4jgGMMNYw09l eQw5n5GXRNxUxncRJdnb6nejQ19OIvkQ+O32r/E2HKMrLlkFWTT91obQF JYurQol1PKi2nbs8rwcroME6ypuPzbqABsplZLHeroMlia4dmMCdb8V7a ES7XOK8Nz5lIapRkgaHnZ3qGo/4cg+NJ6CGHG1T/WpUAyEUN0OiHqpDM/ l8P7VpJpzQYyRvkyrWzZ3SCCcwDI610TCC8MIgR6batDbMxU7o/Fjbbo2 A==; X-CSE-ConnectionGUID: OeJL0CTuTeyxkoxxr8pjLQ== X-CSE-MsgGUID: mdRRSiNlSm+zB9iBQu6vAw== X-IronPort-AV: E=McAfee;i="6800,10657,11771"; a="95882094" X-IronPort-AV: E=Sophos;i="6.23,207,1770624000"; d="scan'208";a="95882094" Received: from fmviesa009.fm.intel.com ([10.60.135.149]) by orvoesa102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Apr 2026 20:32:27 -0700 X-CSE-ConnectionGUID: x5AQ7DpVT7m8XW9pFuE6gg== X-CSE-MsgGUID: P2/zbxjBQlqBmm29nXHvwA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.23,207,1770624000"; d="scan'208";a="227954514" Received: from kandpal-x299-ud4-pro.iind.intel.com ([10.190.239.10]) by fmviesa009.fm.intel.com with ESMTP; 29 Apr 2026 20:32:24 -0700 From: Suraj Kandpal To: intel-xe@lists.freedesktop.org, intel-gfx@lists.freedesktop.org Cc: ankit.k.nautiyal@intel.com, fnu.vishwanatha@intel.com, santhosh.reddy.guddati@intel.com, Suraj Kandpal Subject: [PATCH 0/2] Fix MST VCPI lookup and modeset-lock splat Date: Thu, 30 Apr 2026 09:02:20 +0530 Message-Id: <20260430033222.3411174-1-suraj.kandpal@intel.com> X-Mailer: git-send-email 2.34.1 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-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-xe-bounces@lists.freedesktop.org Sender: "Intel-xe" intel_conn_to_vcpi() is called from the HDCP enable path in commit_tail to look up the VCPI of the MST stream that HDCP is being enabled on. Today it reads the topology state directly from mgr->base.state and takes mgr->base.lock with the in-flight state->base.acquire_ctx. This breaks in two ways on MST + HDCP, especially when an ALLOCATE_PAYLOAD transaction is being driven on the mgr just before HDCP enable runs: - mgr->base.state's payload list is being mutated in place by the MST payload code, so drm_atomic_get_mst_payload_state() can fail to find the entry for this connector's port. That trips drm_WARN_ON(!payload) and HDCP ends up programmed with VCPI 0. - By the time we reach commit_tail/encoder enable, state->base.acquire_ctx is no longer valid for acquiring new modeset locks. Taking mgr->base.lock here produces a modeset-lock splat. This series fixes both. Suraj Kandpal (2): drm/915/hdcp: Use new MST topology state in intel_conn_to_vcpi() drm/i915/hdcp: Drop mgr->base.lock acquisition in intel_conn_to_vcpi() drivers/gpu/drm/i915/display/intel_hdcp.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) -- 2.34.1