Skip to content

drm/{i915,xe}: some BIOS FB takeover fixes

Maarten Lankhorst intel-gfx intel-xe 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest11 patches 0 repliesNew

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11drm/i915: Disable the plane if initial plane config readout faileddrivers/gpu/drm/i915/display/intel_initial_plane.c+3 -30 replies
2/11drm/i915/fbdev: Extract bios_fb_ok()drivers/gpu/drm/i915/display/intel_fbdev.c+18 -80 replies
3/11drm/i915: Throw away the BIOS fb if has the wrong depth/bppdrivers/gpu/drm/i915/display/intel_fbdev.c+9 -00 replies
4/11drm/i915: Use drm_dbg_kms() for initial FB debugsdrivers/gpu/drm/i915/i915_initial_plane.c drivers/gpu/drm/xe/display/xe_initial_plane.c+8 -80 replies
5/11drm/xe: Do the initial FB size alignment earlierdrivers/gpu/drm/xe/display/xe_initial_plane.c+4 -40 replies
6/11drm/xe: Print a debug message if we have no stolen for the initial FBdrivers/gpu/drm/xe/display/xe_initial_plane.c+6 -20 replies
7/11drm/xe: Abstract the initial FB PTE checks a bitdrivers/gpu/drm/xe/display/xe_initial_plane.c+14 -30 replies
8/11drm/xe: Check the PTE local memory bit for initial FB in stolendrivers/gpu/drm/xe/display/xe_initial_plane.c+14 -10 replies
9/11drm/xe: s/bar2/lmembar/drivers/gpu/drm/xe/xe_ttm_stolen_mgr.c+8 -80 replies
10/11drm/i915: Fix BIOS FB memory region name debug printsdrivers/gpu/drm/i915/i915_initial_plane.c+3 -30 replies
11/11drm/i915: Print the phys_base in addition to the dma_addr for the BIOS FBdrivers/gpu/drm/i915/i915_initial_plane.c+3 -30 replies

Reviews trailers per patch

7 of 11 patches have a Reviewed-by or Acked-by.

PatchJani Nikula
1/11R-b
2/11R-b
3/11R-b
4/11R-b
5/11
6/11R-b
7/11R-b
8/11
9/11R-b
10/11
11/11

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 00/11] drm/{i915,xe}: some BIOS FB takeover fixes

There are some bugs related to BIOS fb takeover, and some cleanups and fixes.

All the patches here were previously posted by Ville under a similar series name, but I've taken out 3 patches I want to rework, and my motivation for each patch:
"drm/i915: Introduce intel_bo_fbdev_bios_fb_ok()"
- It's clear that using stolen memory on integrated platforms with media gt is causing issues, I will modify it to copy the entire framebuffer bo into system memory on xe.
"drm/xe/ggtt: Decouple lmem/stolen physcial offset from GGTT offset"
- Intermingling of 2 different goals. There was a workaround in xe_bo.c to avoid trampling over the previously reserved GGTT area, but a better way to solve it is by reserving GGTT explicitly here, and allocating the BO without the GGTT or map flags set initially.
"drm/xe: Use the correct stolen offset in initial FB readout"
- Depends on the previous changes to xe/ggtt

Ville Syrjälä (11):
drm/i915: Disable the plane if initial plane config readout failed drm/i915/fbdev: Extract bios_fb_ok()
drm/i915: Throw away the BIOS fb if has the wrong depth/bpp drm/i915: Use drm_dbg_kms() for initial FB debugs
drm/xe: Do the initial FB size alignment earlier
drm/xe: Print a debug message if we have no stolen for the initial FB drm/xe: Abstract the initial FB PTE checks a bit
drm/xe: Check the PTE local memory bit for initial FB in stolen drm/xe: s/bar2/lmembar/
drm/i915: Fix BIOS FB memory region name debug prints drm/i915: Print the phys_base in addition to the dma_addr for the BIOS
FB

 drivers/gpu/drm/i915/display/intel_fbdev.c    | 35 ++++++++---
 .../drm/i915/display/intel_initial_plane.c    |  6 +-
 drivers/gpu/drm/i915/i915_initial_plane.c     | 12 ++--
 drivers/gpu/drm/xe/display/xe_initial_plane.c | 58 ++++++++++++++-----
 drivers/gpu/drm/xe/xe_ttm_stolen_mgr.c        | 16 ++---
 5 files changed, 87 insertions(+), 40 deletions(-)
Signature · 1 line
2.53.0