From patchwork Wed Jan 13 22:09:17 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "Navare, Manasi" X-Patchwork-Id: 12017903 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EF592C433E6 for ; Wed, 13 Jan 2021 22:05:37 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 9BAD723382 for ; Wed, 13 Jan 2021 22:05:37 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9BAD723382 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=intel.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=intel-gfx-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id B66966EC6E; Wed, 13 Jan 2021 22:05:32 +0000 (UTC) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by gabe.freedesktop.org (Postfix) with ESMTPS id AAD2E6E8BF for ; Wed, 13 Jan 2021 22:05:30 +0000 (UTC) IronPort-SDR: N3jLokojntNWPcAYj+7FfFbiwS69WYkTVrnCcPH+5Kf4lk/a6KaPRgYe7cfqxdJKKddX2a2R+O 6SH3A/0M7ihw== X-IronPort-AV: E=McAfee;i="6000,8403,9863"; a="177498730" X-IronPort-AV: E=Sophos;i="5.79,345,1602572400"; d="scan'208";a="177498730" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Jan 2021 14:05:30 -0800 IronPort-SDR: hCwzTVITXQokK3Hax6cX4mfATjgkvjDzYTDXXhL3rUBvEeTgITgsEmJlG8cWbTyVrdg8YwNfC/ MjbTp9+Fxw1A== X-IronPort-AV: E=Sophos;i="5.79,345,1602572400"; d="scan'208";a="400696541" Received: from labuser-z97x-ud5h.jf.intel.com ([10.165.21.211]) by fmsmga002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-SHA; 13 Jan 2021 14:05:30 -0800 From: Manasi Navare To: intel-gfx@lists.freedesktop.org Date: Wed, 13 Jan 2021 14:09:17 -0800 Message-Id: <20210113220935.4151-1-manasi.d.navare@intel.com> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 Subject: [Intel-gfx] [PATCH v4 00/18] VRR/Adaptive Sync Enabling on DP/eDP for TGL+ 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 series address review comments from Ville and incorporates some suggested fixes plus his patches. Aditya Swarup (1): drm/i915/display/dp: Attach and set drm connector VRR property Manasi Navare (8): drm/i915/display/vrr: Create VRR file and add VRR capability check drm/i915/display/dp: Compute VRR state in atomic_check drm/i915/display/dp: Do not enable PSR if VRR is enabled drm/i915/display/vrr: Configure and enable VRR in modeset enable drm/i915/display/vrr: Send VRR push to flip the frame drm/i915/display/vrr: Disable VRR in modeset disable path drm/i915/display/vrr: Set IGNORE_MSA_PAR state in DP Sink drm/i915/display: Add HW state readout for VRR Ville Syrjälä (9): drm/i915: Store framestart_delay in dev_priv drm/i915: Extract intel_mode_vblank_start() drm/i915: Extract intel_crtc_scanlines_since_frame_timestamp() drm/i915/display: VRR + DRRS cannot be enabled together drm/i915: Rename VRR_CTL reg fields drm/i915/display: Helpers for VRR vblank min and max start drm/i915: Add vrr state dump drm/i915: Fix vblank timestamps with VRR drm/i915: Fix vblank evasion with vrr drivers/gpu/drm/i915/Makefile | 1 + drivers/gpu/drm/i915/display/intel_ddi.c | 24 ++ drivers/gpu/drm/i915/display/intel_display.c | 58 +++-- .../drm/i915/display/intel_display_types.h | 11 + drivers/gpu/drm/i915/display/intel_dp.c | 12 + .../drm/i915/display/intel_dp_link_training.c | 2 +- drivers/gpu/drm/i915/display/intel_psr.c | 7 + drivers/gpu/drm/i915/display/intel_sprite.c | 21 +- drivers/gpu/drm/i915/display/intel_vrr.c | 209 ++++++++++++++++++ drivers/gpu/drm/i915/display/intel_vrr.h | 33 +++ drivers/gpu/drm/i915/i915_drv.h | 4 + drivers/gpu/drm/i915/i915_irq.c | 53 +++-- drivers/gpu/drm/i915/i915_reg.h | 14 +- 13 files changed, 408 insertions(+), 41 deletions(-) create mode 100644 drivers/gpu/drm/i915/display/intel_vrr.c create mode 100644 drivers/gpu/drm/i915/display/intel_vrr.h Reviewed-by: Ville Syrjälä