From mboxrd@z Thu Jan 1 00:00:00 1970 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 C0DE7105F78C for ; Fri, 13 Mar 2026 11:10:35 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7DEDA10EB7E; Fri, 13 Mar 2026 11:10:35 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="XoSnQoi2"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.12]) by gabe.freedesktop.org (Postfix) with ESMTPS id 7E22D10E0F5; Fri, 13 Mar 2026 11:10:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1773400233; x=1804936233; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=Lkc2I3myb53kYMc2w6fB7IgI8sDy0D/J2UKYLkwprQY=; b=XoSnQoi2d951r1EMETkIGqgH5THnQxHbGcmn23DuSAwPQNJstspAPnXV A/DsOWWevQjADABVyK3RMR1tNvu5JL613Rkrths7zENrKmOGHxG8nlZK7 6LiILY1sEZ4s1fSLwm8oRpx7NK9NI4rL56B4YbAhqGp6fzGquCckaUXL7 ZTL42iThoTq2psiCyi3hgC6eKifPmOb0RASlREaWmWeK2oDxzAg6C3TQx i0AYvZ8CpOoErVbxHXFiOVHnMaPobjpz43feZ8pSpwdWANLcJMUn30lR3 Pvv82mvXOOQwCaplfzo2fZWz1wBRkQWbLaZP9gQuEyUFLq0zZuOgONrjE A==; X-CSE-ConnectionGUID: EjEPA2pmS8e2ObXkx8NDOA== X-CSE-MsgGUID: IKf5XnUWQaWU8jBFaQwr/Q== X-IronPort-AV: E=McAfee;i="6800,10657,11727"; a="78396141" X-IronPort-AV: E=Sophos;i="6.23,118,1770624000"; d="scan'208";a="78396141" Received: from orviesa007.jf.intel.com ([10.64.159.147]) by fmvoesa106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Mar 2026 04:10:33 -0700 X-CSE-ConnectionGUID: /Fqbtt16RJeneXuiJ2TBlg== X-CSE-MsgGUID: CAR/bQx6SmeiBu8kCjCpVg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.23,118,1770624000"; d="scan'208";a="221345468" Received: from smoticic-mobl1.ger.corp.intel.com (HELO localhost) ([10.245.244.21]) by orviesa007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Mar 2026 04:10:31 -0700 From: Ville Syrjala To: intel-gfx@lists.freedesktop.org Cc: intel-xe@lists.freedesktop.org Subject: [PATCH 0/3] drm/i915/de: Move register polling into display code Date: Fri, 13 Mar 2026 13:10:25 +0200 Message-ID: <20260313111028.25159-1-ville.syrjala@linux.intel.com> X-Mailer: git-send-email 2.52.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs Bertel Jungin Aukio 5, 02600 Espoo, Finland 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" From: Ville Syrjälä Implement register polling directly in the display code In an effort to decouple the display code from i915/xe. This is just the first step in a larger display mmio rework. My final aim is to move the entire mmio stuff into the display code. That will give us: - better control over how things are done - decouple display register locking from forcewake/etc - less overhead. We access a lot of registers, and during vblank evasion critical section performance is especially important. - unified RMbus unclaimed error checking for both i915 and xe Ville Syrjälä (3): drm/i915/de: Introduce intel_de.c and move intel_de_{read,write}8() there drm/i915/de: Move intel_de_wait*() into intel_de.c drm/i915/de: Implement register polling in the display code drivers/gpu/drm/i915/Makefile | 1 + drivers/gpu/drm/i915/display/intel_de.c | 178 ++++++++++++++++++ drivers/gpu/drm/i915/display/intel_de.h | 121 +++--------- drivers/gpu/drm/xe/Makefile | 1 + .../drm/xe/compat-i915-headers/intel_uncore.h | 31 --- 5 files changed, 203 insertions(+), 129 deletions(-) create mode 100644 drivers/gpu/drm/i915/display/intel_de.c -- 2.52.0