From patchwork Mon Sep 16 07:43:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "Hogander, Jouni" X-Patchwork-Id: 13805059 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 3D48CC3ABA2 for ; Mon, 16 Sep 2024 07:43:36 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8B0B310E054; Mon, 16 Sep 2024 07:43:36 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="FcuCx3pA"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.21]) by gabe.freedesktop.org (Postfix) with ESMTPS id 51BD910E054 for ; Mon, 16 Sep 2024 07:43:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1726472615; x=1758008615; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=bMr5MpoDDcjW7NvggYc0/yCBxZgQvHP8tqwVS584JCM=; b=FcuCx3pAyk3nU0uDMcyPTt+G+t3dzuLq88uTrPE5Pv6+ia0C7Y08Mno7 3WDSpBK7IhbtWxAqs4eTWko0PEgvdpAIzWIoGHUiR5rBG/SDB4uowspwM +wHtc8WkJePNUAK3eNq1FsS1IzW+FqyA/j2vvssvUz1qzq2K3vpqQC/0s ENpESpbcoVsWs21RC7gSUnjZ2FVwgTaP2jtfL7LaKEtA0p9HiYbMyGMXG 0eBhpz+ZCLmQpsrYSO2LSA9qBM/nwezJ8vmaP05JMbX+RqBxnADfHRo7X CEpd5nzI+RE6C1D6YFw+7JinjLLobfEi7/7YlS/HEboaJNjoJgZN4pYxh w==; X-CSE-ConnectionGUID: CjDFRL+WQs+qIldAr2ynqw== X-CSE-MsgGUID: mB7l3HvYQRCoveRqArEmSw== X-IronPort-AV: E=McAfee;i="6700,10204,11196"; a="25224130" X-IronPort-AV: E=Sophos;i="6.10,232,1719903600"; d="scan'208";a="25224130" Received: from fmviesa001.fm.intel.com ([10.60.135.141]) by orvoesa113.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Sep 2024 00:43:35 -0700 X-CSE-ConnectionGUID: v49UoMyAQoeo3Jw6IFG0yQ== X-CSE-MsgGUID: eKG9UeeWRzmrNOojVZ6ejg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.10,232,1719903600"; d="scan'208";a="99646567" Received: from dneilan-mobl1.ger.corp.intel.com (HELO jhogande-mobl1..) ([10.245.244.28]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Sep 2024 00:43:33 -0700 From: =?utf-8?q?Jouni_H=C3=B6gander?= To: intel-gfx@lists.freedesktop.org Cc: ville.syrjala@linux.intel.com, =?utf-8?q?Jouni_H=C3=B6gander?= Subject: [PATCH v2 0/2] Block DC6 on Vblank enable for Panel Replay Date: Mon, 16 Sep 2024 10:43:18 +0300 Message-Id: <20240916074320.2108380-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" We need to block DC6 entry in case of Panel Replay as enabling VBI doesn't prevent DC6 in case of Panel Replay. This causes problems if user-space is polling for vblank events. v2: set/clear block_dc6_needed in intel_crtc_vblank_on/off Jouni Högander (2): drm/i915/display: Add block_dc6_needed variable into intel_crtc drm/i915/display: Prevent DC6 while vblank is enabled for Panel Replay drivers/gpu/drm/i915/display/intel_crtc.c | 12 ++++++++ .../gpu/drm/i915/display/intel_display_core.h | 2 ++ .../gpu/drm/i915/display/intel_display_irq.c | 28 +++++++++++++++++++ .../drm/i915/display/intel_display_types.h | 7 +++++ drivers/gpu/drm/i915/display/intel_psr.c | 1 + 5 files changed, 50 insertions(+)