From: Daniel Vetter <daniel@ffwll.ch>
To: Thomas Zimmermann <tzimmermann@suse.de>
Cc: airlied@linux.ie, puck.chen@hisilicon.com,
dri-devel@lists.freedesktop.org, z.liuxinliang@hisilicon.com,
hdegoede@redhat.com, kong.kongxinwei@hisilicon.com,
kraxel@redhat.com, zourongrong@gmail.com, sam@ravnborg.org
Subject: Re: [PATCH v2 0/4] drm/vram: Provide helpers for prepare_fb() and cleanup_fb()
Date: Thu, 24 Oct 2019 14:37:14 +0200 [thread overview]
Message-ID: <20191024123714.GG11828@phenom.ffwll.local> (raw)
In-Reply-To: <20191024081404.6978-1-tzimmermann@suse.de>
On Thu, Oct 24, 2019 at 10:14:00AM +0200, Thomas Zimmermann wrote:
> The implementation of the plane's call-back functions prepare_fb() and
> cleanup_fb() for GEM VRAM helpers are sharable among drivers.
>
> Patch #3 also fixes two bugs that have been present in hibmc since it was
> first added. The primary plane's atomic_update() is not responsible for
> pinning BOs. And it never unpinned unused BOs. VRAM is being exausted
> over time.
>
> The new helpers have been tested to work.
>
> v2:
> * provide helpers for struct drm_simple_display_pipe_funcs, and...
> * ...use them in bochs
Oh I thought we agreed on changing the simple_pipe type for
prepare/cleanup_fb ... But this works too ofc. On the series:
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
>
> Thomas Zimmermann (4):
> drm/vram-helpers: Add helpers for prepare_fb() and cleanup_fb()
> drm/bochs: Replace prepare_fb()/cleanup_fb() with GEM VRAM helpers
> drm/hisilicon/hibmc: Use GEM VRAM's prepare_fb() and cleanup_fb()
> helpers
> drm/vboxvideo: Replace prepare_fb()/cleanup_fb() with GEM VRAM helpers
>
> drivers/gpu/drm/bochs/bochs_kms.c | 26 +---
> drivers/gpu/drm/drm_gem_vram_helper.c | 126 ++++++++++++++++++
> .../gpu/drm/hisilicon/hibmc/hibmc_drm_de.c | 14 +-
> drivers/gpu/drm/vboxvideo/vbox_mode.c | 61 +--------
> include/drm/drm_gem_vram_helper.h | 25 ++++
> 5 files changed, 161 insertions(+), 91 deletions(-)
>
> --
> 2.23.0
>
--
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
next prev parent reply other threads:[~2019-10-24 12:37 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-24 8:14 [PATCH v2 0/4] drm/vram: Provide helpers for prepare_fb() and cleanup_fb() Thomas Zimmermann
2019-10-24 8:14 ` [PATCH v2 1/4] drm/vram-helpers: Add " Thomas Zimmermann
2019-10-24 8:14 ` [PATCH v2 2/4] drm/bochs: Replace prepare_fb()/cleanup_fb() with GEM VRAM helpers Thomas Zimmermann
2019-10-24 8:14 ` [PATCH v2 3/4] drm/hisilicon/hibmc: Use GEM VRAM's prepare_fb() and cleanup_fb() helpers Thomas Zimmermann
2019-10-24 8:14 ` [PATCH v2 4/4] drm/vboxvideo: Replace prepare_fb()/cleanup_fb() with GEM VRAM helpers Thomas Zimmermann
2019-10-24 12:37 ` Daniel Vetter [this message]
2019-10-24 14:05 ` [PATCH v2 0/4] drm/vram: Provide helpers for prepare_fb() and cleanup_fb() Thomas Zimmermann
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=20191024123714.GG11828@phenom.ffwll.local \
--to=daniel@ffwll.ch \
--cc=airlied@linux.ie \
--cc=dri-devel@lists.freedesktop.org \
--cc=hdegoede@redhat.com \
--cc=kong.kongxinwei@hisilicon.com \
--cc=kraxel@redhat.com \
--cc=puck.chen@hisilicon.com \
--cc=sam@ravnborg.org \
--cc=tzimmermann@suse.de \
--cc=z.liuxinliang@hisilicon.com \
--cc=zourongrong@gmail.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.