summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2026-02-20 19:09:03 +0200
committerVinod Govindapillai <vinod.govindapillai@intel.com>2026-02-25 14:35:27 +0200
commitdfd1d2f7eb3956e3646ac33595e093b1b7fdaa1f (patch)
treee5c3035baac700b239c6d28f8c8197e9d9b46203
parentf09812b85fa6f41058bcc46e70ac406bf9b0493a (diff)
drm/xe/fbdev: Fix BIOS FB vs. stolen size check
Looks like stolen->size is in bytes, not pages. Remove the bogus PAGE_SHIFT stuff. Also for some random reason xe rejects the FB if it takes up exactly half of stolen, whereas i915 allows it to be used in that case. Adjust xe to follow the i915 rule for consistency. v2: rebase related updates Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Signed-off-by: Vinod Govindapillai <vinod.govindapillai@intel.com> Reviewed-by: Uma Shankar <uma.shankar@intel.com> Acked-by: Mika Kahola <mika.kahola@intel.com> Link: https://patch.msgid.link/20260220170908.201422-2-vinod.govindapillai@intel.com
-rw-r--r--drivers/gpu/drm/xe/display/xe_initial_plane.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/xe/display/xe_initial_plane.c b/drivers/gpu/drm/xe/display/xe_initial_plane.c
index 4cfeafcc158d..38ecc201ac4e 100644
--- a/drivers/gpu/drm/xe/display/xe_initial_plane.c
+++ b/drivers/gpu/drm/xe/display/xe_initial_plane.c
@@ -99,7 +99,7 @@ initial_plane_bo(struct xe_device *xe,
* features.
*/
if (IS_ENABLED(CONFIG_FRAMEBUFFER_CONSOLE) &&
- plane_config->size * 2 >> PAGE_SHIFT >= stolen->size)
+ plane_config->size * 2 > stolen->size)
return NULL;
}