From patchwork Tue Jun 11 12:01:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Golani, Mitulkumar Ajitkumar" X-Patchwork-Id: 13693618 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 7CD5BC25B76 for ; Tue, 11 Jun 2024 12:01:45 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id B2E2F10E5CD; Tue, 11 Jun 2024 12:01:44 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="fIAb/7zs"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) by gabe.freedesktop.org (Postfix) with ESMTPS id D8EA710E5CD for ; Tue, 11 Jun 2024 12:01:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1718107303; x=1749643303; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=rBuqlP5eyGPouS0O7CkY4umcamRyxaQEzWKyyjp8fpU=; b=fIAb/7zsW8rrnb51R1twpvzzxJsxXQByW1U7NUCqdMQGDfONAsmvWAfw SG59wAERpP3dFM8vPiosS6uv1lYaz41lcDp4ODfSFpqL5GB51Qy0Ukycn UKzF8l3j7cPc8EQ8zrIE94NPHRHS/6AIdvRPeqRP7Wm1dg238cZIMvLnH jWe6lRb7f2fMsSlxIYcTFvbYVq42Mug+GEKKCKXZnQ1UaFIrpz7bC/XKB H50+UgP1aEMEtc13jWebPXlxXg7rWiKwPW9xAz7KNB7VB49o0oE4pSVcW YpX9hRkHsiphhd8YwGjhPafUvoelKiREmWBRqZgl4bQ+ddioWrGhYa4NC w==; X-CSE-ConnectionGUID: WYUQEVPcRUiQHPeiBRkbsg== X-CSE-MsgGUID: Tc7WLPWcTKOT0khFvDxV7Q== X-IronPort-AV: E=McAfee;i="6600,9927,11099"; a="37333190" X-IronPort-AV: E=Sophos;i="6.08,230,1712646000"; d="scan'208";a="37333190" Received: from orviesa010.jf.intel.com ([10.64.159.150]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Jun 2024 05:01:42 -0700 X-CSE-ConnectionGUID: q0smoTbfSZq/hBdiPdOAig== X-CSE-MsgGUID: 8b3pimg1QsOkH54XumB+WA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.08,230,1712646000"; d="scan'208";a="39355093" Received: from mgolanimitul-x299-ud4-pro.iind.intel.com ([10.190.239.114]) by orviesa010.jf.intel.com with ESMTP; 11 Jun 2024 05:01:42 -0700 From: Mitul Golani To: intel-gfx@lists.freedesktop.org Cc: ankit.k.nautiyal@intel.com Subject: [PATCH] drm/i915/display: Send vrr vsync params whne vrr is enabled Date: Tue, 11 Jun 2024 17:31:51 +0530 Message-ID: <20240611120151.147778-1-mitulkumar.ajitkumar.golani@intel.com> X-Mailer: git-send-email 2.45.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" Compute trans vrr vsync params only when either VRR or CMRR is enabled. Fixes: 5922f45329cd ("drm/i915/display: Compute vrr vsync params") Cc: Mitul Golani Cc: Ankit Nautiyal Cc: Suraj Kandpal Cc: Jani Nikula Signed-off-by: Mitul Golani --- drivers/gpu/drm/i915/display/intel_vrr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/display/intel_vrr.c b/drivers/gpu/drm/i915/display/intel_vrr.c index 05f67dc9d98d..ec3a68577356 100644 --- a/drivers/gpu/drm/i915/display/intel_vrr.c +++ b/drivers/gpu/drm/i915/display/intel_vrr.c @@ -232,7 +232,8 @@ intel_vrr_compute_config(struct intel_crtc_state *crtc_state, crtc_state->mode_flags |= I915_MODE_FLAG_VRR; } - if (intel_dp_as_sdp_supported(intel_dp)) { + if (intel_dp_as_sdp_supported(intel_dp) && + crtc_state->vrr.enable) { crtc_state->vrr.vsync_start = (crtc_state->hw.adjusted_mode.crtc_vtotal - crtc_state->hw.adjusted_mode.vsync_start);