From patchwork Thu Oct 10 05:33:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "Hogander, Jouni" X-Patchwork-Id: 13829476 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 A8400CF07A7 for ; Thu, 10 Oct 2024 05:34:20 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 264F110E86A; Thu, 10 Oct 2024 05:34:19 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="AMSty61M"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.13]) by gabe.freedesktop.org (Postfix) with ESMTPS id EAEE010E866; Thu, 10 Oct 2024 05:34: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=1728538458; x=1760074458; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=dYEoO6E+LSx/OSBWKSZTs8lZq6HBYMtGsfWodD7/mIg=; b=AMSty61M+2d7pbEwRq7mujzChLHsxKwxJgLnZM+glaHoZGKeC7/KlZhg Pah3KkZwuT1juTHVB4xUi56qz7p4eC6z9S9t0OqueeO/kEt4JRKcE4ned rOwibDIAU0bK3dow6h8PNJuJU52OEH7O4sEcxChAksB3nKqjoQJLjcjGm fTDuDCeqA3G7HNo2N/JB4hSkvDFVYP4FuNsjBo2RhrN8dSc9OiEGkqTWk SuYn7RZr62rudfF+IPY7jWUGV/ARj26k0KJS+haV1Rd8zb6U56VnSX8Wy FLRFXh2GJSlVkcW5MPQKSLXAL6MVW4pJvNayXBTSU/fPFNUX+Zv2fo7+e w==; X-CSE-ConnectionGUID: 8TC56BfcSR+1VdjcwzKcqg== X-CSE-MsgGUID: k8AnfXzfRn2CPh2Ah4A41w== X-IronPort-AV: E=McAfee;i="6700,10204,11220"; a="30749352" X-IronPort-AV: E=Sophos;i="6.11,192,1725346800"; d="scan'208";a="30749352" Received: from orviesa006.jf.intel.com ([10.64.159.146]) by fmvoesa107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Oct 2024 22:34:17 -0700 X-CSE-ConnectionGUID: FERbhi7STIScHt1h9G+/2Q== X-CSE-MsgGUID: cqwLNojFSIyk9j55KvuE0w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.11,192,1725346800"; d="scan'208";a="76697258" Received: from oandoniu-mobl3.ger.corp.intel.com (HELO jhogande-mobl1..) ([10.245.244.162]) by orviesa006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Oct 2024 22:34:15 -0700 From: =?utf-8?q?Jouni_H=C3=B6gander?= To: intel-gfx@lists.freedesktop.org Cc: ville.syrjala@linux.intel.com, intel-xe@lists.freedesktop.org, =?utf-8?q?Jouni_H=C3=B6gander?= Subject: [PATCH 0/7] Use trans push mechanism to generate frame change event Date: Thu, 10 Oct 2024 08:33:09 +0300 Message-Id: <20241010053316.1580527-1-jouni.hogander@intel.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo 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" Currently we are using "automatic" frame change event generation. The event is generated by any access to plane or pipe registers. We have option to use "PSR PR Frame Change Enable" bit in TRANS_PUSH register to enable frame change event generation on trans push. When this bit is set "automatic" frame change event generation doesn't work anymore. This patch set is taking trans push mechanism into use. Jouni Högander (7): drm/i915/psr: Add TRANS_PUSH register bit definition for PSR drm/i915/vrr: Do not overwrite TRANS_PUSH PSR Frame Change Enable drm/i915/vrr: Use TRANS_PUSH mechanism for PSR frame change drm/i915/psr: Rename psr_force_hw_tracking_exit as psr_force_exit drm/i915/psr: Simplify frontbuffer invalidate/flush callbacks drm/i915/psr: Add VRR send push interface for PSR usage drm/i915/display: Generate PSR frame change event on cursor update drivers/gpu/drm/i915/display/intel_cursor.c | 5 ++ drivers/gpu/drm/i915/display/intel_psr.c | 83 ++++++------------- drivers/gpu/drm/i915/display/intel_vrr.c | 71 ++++++++++++++-- drivers/gpu/drm/i915/display/intel_vrr.h | 6 ++ drivers/gpu/drm/i915/display/intel_vrr_regs.h | 1 + 5 files changed, 103 insertions(+), 63 deletions(-)