From: Shawn Guo <shawnguo@kernel.org>
To: dri-devel@lists.freedesktop.org
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>,
Liviu Dudau <liviu.dudau@arm.com>,
Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Subject: [RFC PATCH v2 0/5] Add vblank hooks to struct drm_crtc_funcs
Date: Sun, 22 Jan 2017 14:09:01 +0800 [thread overview]
Message-ID: <1485065346-11578-1-git-send-email-shawnguo@kernel.org> (raw)
From: Shawn Guo <shawn.guo@linaro.org>
The vblank is mostly CRTC specific and implemented as part of CRTC
driver. The first patch adds 3 vblank core-driver hooks into struct
drm_crtc_funcs, and wraps around core vblank handling code to use the
new hooks for modern MODESET drivers and the ones in struct drm_driver
as fallback for legacy drivers.
The other patches in the series are to demonstrate how the new hooks
are going to influence the driver code. There are more drivers than
the ones included here can be converted. But before doing that, I would
like to get some feedbacks first, expecially on how .get_vblank_counter
should be converted when it's being drm_vblank_no_hw_counter().
.get_vblank_counter = drm_vblank_no_hw_counter
The series is generated against branch drm-misc-next.
Changes for v2:
- Wrap around core vblank handling code to save
drm_crtc_enable[disable]_vblank() helpers
- Add .get_vblank_counter to struct drm_crtc_funcs
- Add some comments to link between two sets of hooks
- Add one hdlcd driver patch for example
Shawn Guo (5):
drm: add vblank hooks to struct drm_crtc_funcs
drm: hdlcd: use vblank hooks in struct drm_crtc_funcs
drm: zte: zx_vou_enable[disable]_vblank can be static
drm: rockchip: remove struct rockchip_crtc_funcs
drm: imx: remove struct imx_drm_crtc and imx_drm_crtc_helper_funcs
drivers/gpu/drm/arm/hdlcd_crtc.c | 20 ++++++
drivers/gpu/drm/arm/hdlcd_drv.c | 20 ------
drivers/gpu/drm/drm_irq.c | 53 +++++++++++++--
drivers/gpu/drm/imx/imx-drm-core.c | 101 ----------------------------
drivers/gpu/drm/imx/imx-drm.h | 13 ----
drivers/gpu/drm/imx/ipuv3-crtc.c | 58 ++++++----------
drivers/gpu/drm/rockchip/rockchip_drm_drv.c | 51 --------------
drivers/gpu/drm/rockchip/rockchip_drm_drv.h | 14 ----
drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 9 +--
drivers/gpu/drm/zte/zx_drm_drv.c | 2 -
drivers/gpu/drm/zte/zx_vou.c | 61 +++++++----------
drivers/gpu/drm/zte/zx_vou.h | 3 -
include/drm/drm_crtc.h | 34 ++++++++++
include/drm/drm_drv.h | 9 +++
14 files changed, 157 insertions(+), 291 deletions(-)
--
1.9.1
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
next reply other threads:[~2017-01-22 6:09 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-22 6:09 Shawn Guo [this message]
2017-01-22 6:09 ` [RFC PATCH v2 1/5] drm: add vblank hooks to struct drm_crtc_funcs Shawn Guo
2017-01-24 7:54 ` Daniel Vetter
2017-01-22 6:09 ` [RFC PATCH v2 2/5] drm: hdlcd: use vblank hooks in " Shawn Guo
2017-01-27 17:02 ` Liviu Dudau
2017-01-22 6:09 ` [RFC PATCH v2 3/5] drm: zte: zx_vou_enable[disable]_vblank can be static Shawn Guo
2017-01-22 6:09 ` [RFC PATCH v2 4/5] drm: rockchip: remove struct rockchip_crtc_funcs Shawn Guo
2017-01-22 6:09 ` [RFC PATCH v2 5/5] drm: imx: remove struct imx_drm_crtc and imx_drm_crtc_helper_funcs Shawn Guo
2017-01-24 7:55 ` [RFC PATCH v2 0/5] Add vblank hooks to struct drm_crtc_funcs Daniel Vetter
2017-02-07 7:32 ` Daniel Vetter
2017-02-07 8:34 ` Shawn Guo
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=1485065346-11578-1-git-send-email-shawnguo@kernel.org \
--to=shawnguo@kernel.org \
--cc=daniel.vetter@ffwll.ch \
--cc=dri-devel@lists.freedesktop.org \
--cc=laurent.pinchart@ideasonboard.com \
--cc=liviu.dudau@arm.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox