From patchwork Fri Sep 13 07:33:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "Hogander, Jouni" X-Patchwork-Id: 13803038 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 A659EFA3723 for ; Fri, 13 Sep 2024 07:34:05 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 4CC0A10E88C; Fri, 13 Sep 2024 07:34:05 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="Qfy5ITu2"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.19]) by gabe.freedesktop.org (Postfix) with ESMTPS id C4E1A10E88C for ; Fri, 13 Sep 2024 07:34:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1726212844; x=1757748844; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=EJvgZgeqjHqjnYusw5G60nQEyVIrMmEAI+bIyqPYmFo=; b=Qfy5ITu2QqMhoE4MPHBsuOkvrnF4nAbxFyP8E83/8CHH4ITsnXznSyDF DsEWiy2oexC5GAWvMUU48wz6xatmVxViJrh+BPGwbt/7IEfX1K4w66wAR Mp111aKQkAz6BiW1EWGjzWIgbWUCEUnqXgocDkBo/DMCd7AArkKvKqqft WMK2bF13A2vPYZCN4ieWRiXhLQAMb0yytfZklzM4PAfZ4rPOa2ibfBKr4 vqa5Wj5mPIbrAJMzgPxOkU6EFN0wBm/YXMhpqWr/tB64Mh95pB6Ucp7De fWROVrkvt/jfsdLw8Jk6v/W6lziKY9yGwNM9qIdir19AVrrdXlE+vLm8H g==; X-CSE-ConnectionGUID: i955i1reR+iz3TMhj0ItCw== X-CSE-MsgGUID: e/6fOuNBSWeG6eurDOjXxw== X-IronPort-AV: E=McAfee;i="6700,10204,11193"; a="24644218" X-IronPort-AV: E=Sophos;i="6.10,225,1719903600"; d="scan'208";a="24644218" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by fmvoesa113.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Sep 2024 00:34:03 -0700 X-CSE-ConnectionGUID: hMyQXVkIQ5C2zIyDLvhPMg== X-CSE-MsgGUID: vLLz9FrJSyezv/Sgh7dv8Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.10,225,1719903600"; d="scan'208";a="72745184" Received: from dneilan-mobl1.ger.corp.intel.com (HELO jhogande-mobl1..) ([10.245.245.104]) by ORVIESA003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Sep 2024 00:34:03 -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 0/2] Block DC6 on Vblank enable for Panel Replay Date: Fri, 13 Sep 2024 10:33:45 +0300 Message-Id: <20240913073347.3273589-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. 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 .../gpu/drm/i915/display/intel_display_core.h | 2 + .../gpu/drm/i915/display/intel_display_irq.c | 60 +++++++++++++++++++ .../gpu/drm/i915/display/intel_display_irq.h | 3 + .../drm/i915/display/intel_display_types.h | 7 +++ drivers/gpu/drm/i915/display/intel_psr.c | 7 +++ 5 files changed, 79 insertions(+)