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 AC924C5AD44 for ; Fri, 20 Feb 2026 17:09:23 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 67B2410E81C; Fri, 20 Feb 2026 17:09:23 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="PPXaoHYv"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.7]) by gabe.freedesktop.org (Postfix) with ESMTPS id 6F5AC10E81A; Fri, 20 Feb 2026 17:09:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1771607362; x=1803143362; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=8NEO7x5WcjZ2nL079VTCHOHEJnmv2fDSPOVqy2q3dFY=; b=PPXaoHYv/YhE+39FWlxvSOiX25xX0vL/WnZw6CANc39Wfa9awVHF+5J5 eMZpBHwJQcPQmr9lnOSHYrUOsTRU2etq0K8VfHzPxa467u8/zsKwzJ8Xq rIrRbkYnaWF59wEurJrTv9QiKZmv3dNsivAEt7K35CFlHP/osZUCnOqY3 9QxGwNpHIDk2++jGHRqQPE7np1AFQ8wvKIse/9fFq4GKXAseHYKLf/aNX 5t3QUkzJ4nT3a5kFsa6nMhYHGS4hO9fS55pSj8OySVaOye7LJePZGe6R2 GUNsyTuQccjGVLM3x4fiI5PMfxU1Lm6yyvRr11L089ls/IsJGqpLLWJk5 g==; X-CSE-ConnectionGUID: cN73fZF2QYeaCe2btj3xtw== X-CSE-MsgGUID: XMtiRJHiS9un2cx5JSClTg== X-IronPort-AV: E=McAfee;i="6800,10657,11707"; a="98164369" X-IronPort-AV: E=Sophos;i="6.21,302,1763452800"; d="scan'208";a="98164369" Received: from fmviesa002.fm.intel.com ([10.60.135.142]) by fmvoesa101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Feb 2026 09:09:22 -0800 X-CSE-ConnectionGUID: S09wy9b4TJKDmypBu+0tdA== X-CSE-MsgGUID: K6OISCSbSRuTXWA1DqKaLA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.21,302,1763452800"; d="scan'208";a="237863886" Received: from smoticic-mobl1.ger.corp.intel.com (HELO vgovind2-mobl4.intel.com) ([10.245.245.18]) by fmviesa002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Feb 2026 09:09:20 -0800 From: Vinod Govindapillai To: intel-xe@lists.freedesktop.org, intel-gfx@lists.freedesktop.org Cc: vinod.govindapillai@intel.com, ville.syrjala@intel.com, uma.shankar@intel.com Subject: [PATCH v2 0/6] update the stolen memory allocation preference Date: Fri, 20 Feb 2026 19:09:02 +0200 Message-ID: <20260220170908.201422-1-vinod.govindapillai@intel.com> X-Mailer: git-send-email 2.43.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 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" Allocating stolen memory for the fbdev and initial plane bo might bar enabling FBC. So have some check if we have enough stolen memory for FBC before allocating the stolen to fbdev and initial plane bo. Right now the check is based on simple logic that if the fbdev or initial plane bo take more than half of the stolen, avoid useing the stolen for that. Later on we will fine tune this by adding some better comparison based on the possible FBC size. v2: addressed review comments Ville Syrjälä (3): drm/xe/fbdev: Fix BIOS FB vs.s stolen size check drm/i915/fbdev: Extract intel_fbdev_fb_prefer_stolen() drm/xe/fbdev: Extract intel_fbdev_fb_prefer_stolen() Vinod Govindapillai (3): drm/i915/display: remove the usage of dev_priv drm/xe/fbdev: print info about stolen memory preference for fbdev drm/i915/fbdev: print info about stolen memory preference for fbdev drivers/gpu/drm/i915/display/intel_fbdev_fb.c | 38 ++++++++++++------- drivers/gpu/drm/i915/display/intel_fbdev_fb.h | 1 + drivers/gpu/drm/i915/i915_initial_plane.c | 3 +- drivers/gpu/drm/xe/display/intel_fbdev_fb.c | 27 ++++++++++++- drivers/gpu/drm/xe/display/xe_initial_plane.c | 13 ++----- 5 files changed, 58 insertions(+), 24 deletions(-) -- 2.43.0