Skip to content

drm: Add driver for PowerPC OF displays

Thomas Zimmermann dri-devel linux-fbdev linuxppc-dev 7 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest5 patches 1 replyIn review
  2. v45 patches 23 repliesSuperseded
  3. v3 posting 3/34 patches 4 repliesSuperseded
Earlier versions · 4
VersionPostedPatchesRepliesStatus
v3 posting 2/35 patches0 repliesSuperseded
v210 patches40 repliesSuperseded
v3 posting 1/33 patches1 replySuperseded
v12 patches15 repliesSuperseded

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5drm/ofdrm: Add ofdrm for Open Firmware framebuffersMAINTAINERS drivers/gpu/drm/tiny/Kconfig drivers/gpu/drm/tiny/Makefile +2 more+779 -01 reply
2/5drm/ofdrm: Add CRTC statedrivers/gpu/drm/tiny/ofdrm.c+56 -30 replies
3/5drm/ofdrm: Add per-model device functiondrivers/gpu/drm/tiny/ofdrm.c+125 -00 replies
4/5drm/ofdrm: Support color managementdrivers/gpu/drm/tiny/ofdrm.c+437 -50 replies
5/5drm/ofdrm: Support big-endian scanout buffersdrivers/gpu/drm/drm_format_helper.c drivers/gpu/drm/tiny/ofdrm.c+63 -20 replies

Reviews trailers per patch

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

PatchJavier Martinez Canillas
1/5R-b
2/5R-b
3/5R-b
4/5R-b
5/5R-b

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

Read the v5 thread

Cover letter [PATCH v5 0/5] drm: Add driver for PowerPC OF displays

PowerPC's Open Firmware offers a simple display buffer for graphics output. Add ofdrm, a DRM driver for the device. As with the existing simpledrm driver, the graphics hardware is pre-initialized by the firmware. The driver only provides blitting, no actual DRM modesetting is possible.

Patch 1 adds ofdrm, which has again been significantly reworked. The FWFB library has been removed infavor of various functions in existing DRM helper libraries. Ofdrm now supports damage iterators and synchronization for imported GEM BOs.

Patches 2 to 4 add support for color management. The code has been taken from fbdev's offb. I have no hardware available for testing the functionality. Qemu's stdvga apparently does not support gamma tables in RGB modes. I verified that the color management code is executed by running Gnome's night-mode settings, but the display's color tone does not change.

Patch 5, which is new in version 4 of this patchset, adds support for big-endian scanout buffers. It works at least with qemu's ppc64 emulation. Fbdev emulation and pixman rendering works. GL rendering produces incorrect colors.

Tested by running fbdev emulation, Wayland Gnome, and Weston on qemu's ppc64le and ppc64 emulation.

Thomas Zimmermann (5):
drm/ofdrm: Add ofdrm for Open Firmware framebuffers drm/ofdrm: Add CRTC state
drm/ofdrm: Add per-model device function drm/ofdrm: Support color management drm/ofdrm: Support big-endian scanout buffers

 MAINTAINERS                         |    1 +
 drivers/gpu/drm/drm_format_helper.c |   10 +
 drivers/gpu/drm/tiny/Kconfig        |   13 +
 drivers/gpu/drm/tiny/Makefile       |    1 +
 drivers/gpu/drm/tiny/ofdrm.c        | 1424 +++++++++++++++++++++++++++
 drivers/video/fbdev/Kconfig         |    1 +
 6 files changed, 1450 insertions(+)
 create mode 100644 drivers/gpu/drm/tiny/ofdrm.c
Signature · 1 line
2.37.3