Skip to content

Intel_fbdev.c refactoring

Jouni Högander intel-xe 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest9 patches 1 replyIn review
  2. v29 patches 4 repliesSuperseded
  3. v19 patches 0 repliesSuperseded

Changes in v3 from the cover letter

- Do not check IS_ERR(fb) as returning anyways in intel_fbdev_fb_alloc
- Add SPDX-License tag
- Remove accidentally added ifdef I915
v2: Add missing forward declarations into intel_fbdev_fb.h

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9Revert "FIXME: drm/i915/display: Allow fbdev to allocate stolen memory"drivers/gpu/drm/i915/display/intel_fbdev.c+18 -300 replies
2/9fixup! FIXME: drm/i915/display: Remaining changes to make xe compiledrivers/gpu/drm/i915/display/intel_fbdev.c+8 -870 replies
3/9drm/i915/display: split i915 specific code from intel_fbdevdrivers/gpu/drm/i915/Makefile drivers/gpu/drm/i915/display/intel_fbdev.c drivers/gpu/drm/i915/display/intel_fbdev_fb.c +1 more+145 -1010 replies
4/9fixup! drm/xe/display: Implement display supportdrivers/gpu/drm/xe/Makefile drivers/gpu/drm/xe/display/intel_fbdev_fb.c drivers/gpu/drm/xe/display/intel_fbdev_fb.h+124 -00 replies
5/9fixup! drm/xe/display: Implement display supportdrivers/gpu/drm/xe/compat-i915-headers/gem/i915_gem_mman.h+17 -00 replies
6/9fixup! drm/xe/display: Implement display supportdrivers/gpu/drm/xe/compat-i915-headers/gem/i915_gem_object_frontbuffer.h drivers/gpu/drm/xe/compat-i915-headers/i915_gem_stolen.h+4 -40 replies
7/9fixup! drm/xe/display: Implement display supportdrivers/gpu/drm/xe/compat-i915-headers/gem/i915_gem_object.h drivers/gpu/drm/xe/compat-i915-headers/i915_drv.h+13 -00 replies
8/9fixup! drm/xe/display: Implement display supportdrivers/gpu/drm/xe/compat-i915-headers/i915_vma.h+6 -00 replies
9/9drm/i915/display: use intel_bo_to_drm_bo in intel_fbdevdrivers/gpu/drm/i915/display/intel_fbdev.c+2 -20 replies

Reviews trailers per patch

All 9 patches have a Reviewed-by or Acked-by.

PatchRodrigo Vivi
1/9R-b
2/9R-b
3/9R-b
4/9R-b
5/9R-b
6/9R-b
7/9R-b
8/9R-b
9/9R-b

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

Read the v3 thread

Cover letter [Intel-xe] [PATCH v3 0/9] Intel_fbdev.c refactoring

This patch set is removing all the ifdefs from intel_fbdev.c. This is done by splitting i915 specific code into it's own source file and similar source file is created for Xe for Xe specific code.

Remaining ifdefs are dropped by adding some compatibility headers.

Some of the patches are similar as in set from Maarten Lankhorst <[email protected]>:

https://patchwork.freedesktop.org/series/126200/

Patches 3 and 9 are supposed to be sent to [email protected]. Let's first agree if this is acceptable solution from Xe point of view.

v3:
- Do not check IS_ERR(fb) as returning anyways in intel_fbdev_fb_alloc
- Add SPDX-License tag
- Remove accidentally added ifdef I915
v2: Add missing forward declarations into intel_fbdev_fb.h

Cc Maarten Lankhorst <[email protected]>
Cc Jani Nikula <[email protected]>
Cc Rodrigo Vivi <[email protected]>

Jouni Högander (9):
Revert "FIXME: drm/i915/display: Allow fbdev to allocate stolen
memory"
fixup! FIXME: drm/i915/display: Remaining changes to make xe compile drm/i915/display: split i915 specific code from intel_fbdev fixup! drm/xe/display: Implement display support
fixup! drm/xe/display: Implement display support
fixup! drm/xe/display: Implement display support
fixup! drm/xe/display: Implement display support
fixup! drm/xe/display: Implement display support drm/i915/display: use intel_bo_to_drm_bo in intel_fbdev

 drivers/gpu/drm/i915/Makefile                 |   3 +-
 drivers/gpu/drm/i915/display/intel_fbdev.c    | 203 +-----------------
 drivers/gpu/drm/i915/display/intel_fbdev_fb.c | 114 ++++++++++
 drivers/gpu/drm/i915/display/intel_fbdev_fb.h |  21 ++
 drivers/gpu/drm/xe/Makefile                   |   1 +
 .../compat-i915-headers/gem/i915_gem_mman.h   |  17 ++
 .../compat-i915-headers/gem/i915_gem_object.h |  11 +
 .../gem/i915_gem_object_frontbuffer.h         |   4 +-
 .../gpu/drm/xe/compat-i915-headers/i915_drv.h |   2 +
 .../xe/compat-i915-headers/i915_gem_stolen.h  |   4 +-
 .../gpu/drm/xe/compat-i915-headers/i915_vma.h |   6 +
 drivers/gpu/drm/xe/display/intel_fbdev_fb.c   | 102 +++++++++
 drivers/gpu/drm/xe/display/intel_fbdev_fb.h   |  21 ++
 13 files changed, 311 insertions(+), 198 deletions(-)
 create mode 100644 drivers/gpu/drm/i915/display/intel_fbdev_fb.c
 create mode 100644 drivers/gpu/drm/i915/display/intel_fbdev_fb.h
 create mode 100644 drivers/gpu/drm/xe/compat-i915-headers/gem/i915_gem_mman.h
 create mode 100644 drivers/gpu/drm/xe/compat-i915-headers/gem/i915_gem_object.h
 create mode 100644 drivers/gpu/drm/xe/display/intel_fbdev_fb.c
 create mode 100644 drivers/gpu/drm/xe/display/intel_fbdev_fb.h
Signature · 1 line
2.34.1