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 EDB37FF885D for ; Tue, 28 Apr 2026 08:48:05 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 92D4310E2F7; Tue, 28 Apr 2026 08:48:05 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="XtccGLYb"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.13]) by gabe.freedesktop.org (Postfix) with ESMTPS id 61E6810E2F7; Tue, 28 Apr 2026 08:48:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1777366085; x=1808902085; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=IRAF5zhru/eFAdZIN2pA1DvNsp9shPsXdvm8s/M4BQI=; b=XtccGLYbey3ns7pOPQ2tmIXfLPEH03fhCyxHMhhKg2B2voacUvVIbXAe eORJqZvB6U4VgGvV3KSLDXmXgj0jMUWwxwVv2EIiAVEImZHinSV1EmTQs e7lYaf51wY2JmCBVLHixS5kDFqH/AXe8m7hi4fGPeeVAUtGPLvyat8I4T SVBUk6PcrJqpGP34Y0jyvfLe4LTAKC6pvUUF7+b5g4QhYl6mU9s5juVOU /RzuIGgyIeCuuF+8cgZBMJ7+V94BJ235DjPjNMIt6HT/yD9ASRPwyEoI/ O49xhIOhsVA18LvhfeAzgV27I4xbBp6G4CRxBv+YgvGhDNG9fsXApS9qL A==; X-CSE-ConnectionGUID: N2CIJ9h+TNWOzgJITRy5tA== X-CSE-MsgGUID: c957NrdwRqm9FnPQ5BhHyQ== X-IronPort-AV: E=McAfee;i="6800,10657,11769"; a="89357629" X-IronPort-AV: E=Sophos;i="6.23,203,1770624000"; d="scan'208";a="89357629" Received: from fmviesa010.fm.intel.com ([10.60.135.150]) by orvoesa105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Apr 2026 01:48:04 -0700 X-CSE-ConnectionGUID: 9bip5/eNSfOCuC8Z4jJb8Q== X-CSE-MsgGUID: M+cqAYNyS0KIvr0F/zywjw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.23,203,1770624000"; d="scan'208";a="229538619" Received: from srr4-3-linux-103-aknautiy.iind.intel.com ([10.223.34.160]) by fmviesa010-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Apr 2026 01:48:02 -0700 From: Ankit Nautiyal To: intel-gfx@lists.freedesktop.org, intel-xe@lists.freedesktop.org Cc: ville.syrjala@linux.intel.com, jani.nikula@linux.intel.com, Ankit Nautiyal Subject: [PATCH 0/2] drm/i915/intel_panel: Fix seamless VRR mode switching for DRRS panels Date: Tue, 28 Apr 2026 14:03:21 +0530 Message-ID: <20260428083323.3745772-1-ankit.k.nautiyal@intel.com> X-Mailer: git-send-email 2.45.2 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" Currently intel_panel_fixed_mode() can return a lower refresh rate mode for VRR panels if the lower refresh rate mode is first in the list. This creates problems for seamless switch features like LRR and Seamless-DRRS, as it results in changes to vsync_start/end causing a full modeset instead of a seamless switch. This is particularly problematic for DRRS panels on platforms without double buffered M/N support for LNL+ (display version 20+), where seamless clock changes are not possible. This series attempts to fixe this by: 1. Adding a helper to get the highest refresh rate mode from the list of fixed modes for a connector. 2. When a seamless switch to a lower mode is desired, making intel_panel_fixed_mode() return the highest refresh rate mode, provided the requested rate is in VRR range. The vblank is then extended to provide the desired refresh rate. To determine whether a full modeset or seamless switch is intended, the connector state is checked for the allow_modeset flag. A nullable conn_state parameter is added to intel_panel_fixed_mode() and intel_panel_compute_config() for this purpose. Ankit Nautiyal (2): drm/i915/intel_panel: Add a helper to get the highest refresh rate mode drm/i915/intel_panel: Use highest refresh rate mode for seamless VRR changes drivers/gpu/drm/i915/display/icl_dsi.c | 2 +- drivers/gpu/drm/i915/display/intel_dp.c | 6 +-- drivers/gpu/drm/i915/display/intel_dsi.c | 2 +- drivers/gpu/drm/i915/display/intel_dvo.c | 6 +-- drivers/gpu/drm/i915/display/intel_lvds.c | 4 +- drivers/gpu/drm/i915/display/intel_panel.c | 50 ++++++++++++++-------- drivers/gpu/drm/i915/display/intel_panel.h | 8 +++- drivers/gpu/drm/i915/display/intel_sdvo.c | 8 ++-- drivers/gpu/drm/i915/display/vlv_dsi.c | 2 +- 9 files changed, 54 insertions(+), 34 deletions(-) -- 2.45.2