linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Rob Clark <robdclark@gmail.com>
To: dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org
Cc: linux-arm-msm@vger.kernel.org,
	Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Subject: [PATCH 0/3] drm/msm: hijack firmware fb's memory
Date: Tue, 11 Jul 2017 13:38:19 +0000	[thread overview]
Message-ID: <20170711133822.31978-1-robdclark@gmail.com> (raw)

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(-)

-- 
2.13.0


             reply	other threads:[~2017-07-11 13:38 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-11 13:38 Rob Clark [this message]
2017-07-11 13:38 ` [PATCH 1/3] drm/msm: kick out firmware framebuffer Rob Clark
2017-07-11 13:38 ` [PATCH 2/3] fbdev: fbmem: export get/put_fb_info() Rob Clark
2017-07-12  9:54   ` Bartlomiej Zolnierkiewicz
2017-07-11 13:38 ` [PATCH 3/3] drm/msm: hijack firmware fb's memory Rob Clark
2017-07-11 14:03   ` Daniel Vetter
2017-07-11 14:31     ` Rob Clark
2017-07-11 14:42       ` Daniel Vetter
2017-07-11 19:53         ` Rob Clark
2017-07-11 20:37           ` Daniel Vetter
2017-07-11 14:17   ` Chris Wilson
2017-07-11 14:34     ` Rob Clark

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170711133822.31978-1-robdclark@gmail.com \
    --to=robdclark@gmail.com \
    --cc=b.zolnierkie@samsung.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-fbdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).