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 28B7DCD37A7 for ; Fri, 8 May 2026 14:34:33 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id CB77010F4E9; Fri, 8 May 2026 14:34:32 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="BIuVFHsK"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.11]) by gabe.freedesktop.org (Postfix) with ESMTPS id 8D67C10F4E7; Fri, 8 May 2026 14:34:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1778250872; x=1809786872; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=xH3WL9mZ+XBU1kG2gHshpaXMcPa9r1G52pRufTjnSPE=; b=BIuVFHsK6jBUjFscSfEcGhznWeaXh12xX9ALfesG5pVbfejOEv0suVzg viNovAdO0g+bkd8GNkZCrEMnH9KkzLD/YomNF4JGBwZum4viSJgkMlXlW 5AAL7VL7LTNUmHUmZfQXVitW+Po8SHCNm3Uef/G3Lg8Z/EnIfZWpIubFz J50j8U3RUVmU7gVeHkqow5TkqgVSUI3DvN4gSDh4RbNmNOJTIZR4xkYOo k/zq25o8vdFjwmu1POE8PlzLdHQbTmaH4TBfC7Ds8OW3QtV7ZrC+uS58B FW4rlvmtA9yrG2Ue2gswVP7z3B1yzk86LpP3+I+oTBYWRI4gzkaOAhNLr Q==; X-CSE-ConnectionGUID: UXxBUtiGT5OgsZfF0c1OPg== X-CSE-MsgGUID: pUsP+XsNRImaKta26XxSaw== X-IronPort-AV: E=McAfee;i="6800,10657,11780"; a="89808851" X-IronPort-AV: E=Sophos;i="6.23,223,1770624000"; d="scan'208";a="89808851" Received: from orviesa007.jf.intel.com ([10.64.159.147]) by fmvoesa105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 May 2026 07:34:31 -0700 X-CSE-ConnectionGUID: OyMFW93wQT2rWoHUsnCvjg== X-CSE-MsgGUID: uA8OOZcyRrCyPQ6QeQ6Afg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.23,223,1770624000"; d="scan'208";a="237024021" Received: from egrumbac-mobl6.ger.corp.intel.com (HELO localhost) ([10.245.244.104]) by orviesa007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 May 2026 07:34:30 -0700 From: Ville Syrjala To: intel-gfx@lists.freedesktop.org Cc: intel-xe@lists.freedesktop.org Subject: [PATCH v2 00/16] drm/i915: Introduce 'fb_pin' parent interface Date: Fri, 8 May 2026 17:34:10 +0300 Message-ID: <20260508143426.26504-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ä Abstract the fb pin/unpin stuff under a new 'fb_pin' parent interface. The interface is fairly low level so that the i915/xe side doesn't need access to any display specific data structures. There are perhaps some needless extra layers on the i915/xe side afterwards, but we can clean those out later. There are also some rough corners left in the initial fb code, but I'll be following up with a separate series to fix/clean up that whole thing. v2: Rebase and pimp some commit messages Fix the vma reuse gtt view memcmp() Ville Syrjälä (16): drm/i915: Introduce intel_parent_fb_pin_get_map() drm/i915: Move intel_fb_pin_params to the parent interface drm/i915: Move the i915_dpt_offset()==0 assert drm/i915: Reorganize intel_plane_pin_fb() a bit drm/i915: Introduce i915_fb_pin_dpt_(un)pin() drm/i915: Introduce i915_fb_pin_ggtt_(un)pin() drm/xe: Move the FORCE_WC assert into __xe_pin_fb_vma() drm/xe: Kill the fbdev vma reuse hack drm/xe: Reorganize intel_plane_pin_fb() a bit drm/xe: Introduce xe_fb_pin_dpt_(un)pin() drm/xe: Introduce xe_fb_pin_ggtt_(un)pin() drm/xe: Restructure reuse_vma() drm/i915: Introduce the main fb_pin parent interface drm/i915/fbdev: Use intel_parent_fb_pin_ggtt_(un)pin() drm/xe: Use xe_fb_pin_ggtt_pin() for the initial FB pin drm/i915: Consolidate the intel_plane_(un)pin_fb() implementations drivers/gpu/drm/i915/display/intel_cursor.c | 1 - drivers/gpu/drm/i915/display/intel_fb_pin.h | 40 ---- drivers/gpu/drm/i915/display/intel_fbdev.c | 22 +- drivers/gpu/drm/i915/display/intel_fbdev.h | 4 +- drivers/gpu/drm/i915/display/intel_parent.c | 60 ++++++ drivers/gpu/drm/i915/display/intel_parent.h | 34 +++ drivers/gpu/drm/i915/display/intel_plane.c | 122 ++++++++++- drivers/gpu/drm/i915/display/intel_plane.h | 3 + drivers/gpu/drm/i915/i915_driver.c | 2 + drivers/gpu/drm/i915/i915_fb_pin.c | 193 +++++++----------- drivers/gpu/drm/i915/i915_fb_pin.h | 9 + drivers/gpu/drm/xe/display/xe_display.c | 2 + drivers/gpu/drm/xe/display/xe_fb_pin.c | 149 +++++++------- drivers/gpu/drm/xe/display/xe_fb_pin.h | 21 ++ drivers/gpu/drm/xe/display/xe_initial_plane.c | 18 +- include/drm/intel/display_parent_interface.h | 42 ++++ 16 files changed, 464 insertions(+), 258 deletions(-) delete mode 100644 drivers/gpu/drm/i915/display/intel_fb_pin.h create mode 100644 drivers/gpu/drm/i915/i915_fb_pin.h create mode 100644 drivers/gpu/drm/xe/display/xe_fb_pin.h -- 2.52.0