Skip to content

drm/msm: hijack firmware fb's memory

Rob Clark dri-devel linux-arm-msm linux-fbdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3drm/msm: kick out firmware framebufferdrivers/gpu/drm/msm/msm_drv.c drivers/gpu/drm/msm/msm_drv.h drivers/gpu/drm/msm/msm_fbdev.c+23 -10 replies
2/3fbdev: fbmem: export get/put_fb_info()drivers/video/fbdev/core/fbmem.c include/linux/fb.h+6 -21 reply
3/3drm/msm: hijack firmware fb's memorydrivers/gpu/drm/msm/msm_drv.c+64 -187 replies

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by.

PatchBartlomiej Zolnierkiewicz
1/3
2/3A-b
3/3

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

Read the v1 thread

Cover letter [PATCH 0/3] drm/msm: hijack firmware fb's memory

The first patch I've already sent to list and plan to include in a v4.13-fixes pull request, but I'm resending as part of this patchset since 3/3 depends on it.

The 2nd patch exports get_fb_info()/put_fb_info() so that in the 3rd patch we can iterate over the registered fb's (before kicking out fw fb) and find the stolen memory from bootloader display.

Note that the firmware fb might either be efifb or simplefb, depending on EFI boot or not. So a devicetree based solution to this is not useful.

This is prep-work for a larger patchset for drm/msm to readback and take over display setup by bootloader (although that also requires some CCF and other changes.. RFC patchset coming soon). In the RFC patchset, drm/msm will wrap the stolen mem in a GEM object and use that to create a drm_framebuffer object for the read-back plane state (and if the drm fbdev emulation layer is enabled, it will try to re- use this for the fbdev scanout buffer).

If no objections to the 2nd patch, I guess it is probably easiest if it is merged via msm-next for 4.14.

Rob Clark (3):
drm/msm: kick out firmware framebuffer
fbdev: fbmem: export get/put_fb_info()
drm/msm: hijack firmware fb's memory

 drivers/gpu/drm/msm/msm_drv.c    | 102 ++++++++++++++++++++++++++++++++-------
 drivers/gpu/drm/msm/msm_drv.h    |   2 +
 drivers/gpu/drm/msm/msm_fbdev.c  |   2 +-
 drivers/video/fbdev/core/fbmem.c |   6 ++-
 include/linux/fb.h               |   2 +
 5 files changed, 93 insertions(+), 21 deletions(-)
Signature · 6 lines
2.13.0

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel