From: shawnguo@kernel.org (Shawn Guo)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v4 0/3] Add initial ZTE VOU DRM/KMS driver
Date: Mon, 7 Nov 2016 09:39:45 +0800 [thread overview]
Message-ID: <20161107013943.GB14622@dragon> (raw)
In-Reply-To: <1477905445-4983-1-git-send-email-shawnguo@kernel.org>
Hi David, Daniel,
On Mon, Oct 31, 2016 at 05:17:22PM +0800, Shawn Guo wrote:
> From: Shawn Guo <shawn.guo@linaro.org>
>
> The series adds the initial ZTE VOU display controller DRM/KMS driver.
> There are still some features to be added, like overlay plane, scaling,
> and more output devices support. But it's already useful with dual
> CRTCs and HDMI display working.
After a few rounds of reviewing (thanks to all reviewers), it seems that
the series is ready for merging, I guess? If so, could you suggest how
we proceed? I can prepare a pull request if you like. Thanks.
Shawn
> Changes for v4:
> - Move the hardware setup done in zx_hdmi_hw_init() and clock enable
> into .enable hook of drm_encoder_helper_funcs.
> - Compare pipe to crtc->index instead of using our own index counter.
> - Save the pipe check in zx_vou_enable[disable]_vblank by putting frame
> interrupt bit into zx_crtc_bits.
> - Use DRM_DEV_* for log messages instead of old dev_* functions
> - Return directly in case of -ETIMEDOUT in zx_hdmi_i2c_read to simplify
> the code for error condition.
> - Shuffle things around to make the crtc and plane state check in
> zx_gl_plane_atomic_check a bit clearer
> - Move hardware register definitions into headers instead of disturbing
> C file reading.
> - Save the call to drm_connector_unregister(), so that
> drm_connector_cleanup can directly be used as drm_connector_funcs
> .destroy hook.
> - Move vblank notification from .atomic_begin hook to .atomic_flush,
> so that vblank event is sent to user space after planes are committed
> rather than before.
>
> Changes for v3:
> - Rebase to v4.9-rc1
> - Update bindings doc to use 'ranges' for address translation between
> parent and child devices.
> - Call drm_dev_register() last in bind function and drm_dev_unregister()
> first in unbind, so that drm_connector_regiser() can be saved from
> HDMI driver.
> - Instead of using open-coded drm_do_get_edid(), add an I2C adapter for
> HDMI DDC read and use drm_get_edid().
> - Improve the plane .atomic_check implementation by calling helper
> function drm_plane_helper_check_state().
> - Rename zx_crtc.c to zx_vou.c to avoid the confusion that the file
> implements crtc instance.
> - Store vou pointer in zx_crtc, so that we do not need to embed the
> pointer in zx_drm_private.
> - Create zx_readl/zx_writel/zx_writel_mask for register access.
> - Define a few macro helpers to ease the register bit setting, like
> SYNC_WIDE, BACK_PORCH and FRONT_PORCH.
> - Define main/aux channel specific register offset and bits in zx_crtc
> to save the use of is_main check
> - Sort include headers alphabetically
> - Removing encoder pointer out of the structure and constify struct
> vou_inf
> - Add log message for error conditions
> - Make the function calls in teardown path asymmetrical
> - A few coding style improvements like defining macro for sub-module
> address and changing code to save indentation level
> - Add a MAINTAINERS entry for ZTE ZX DRM driver
>
> Changes for v2:
> - Change device tree bindings to kill the virtual display-subsystem
> node make VOU the parent node.
>
> Shawn Guo (3):
> dt-bindings: add bindings doc for ZTE VOU display controller
> drm: zte: add initial vou drm driver
> MAINTAINERS: add an entry for ZTE ZX DRM driver
>
> .../devicetree/bindings/display/zte,vou.txt | 84 +++
> MAINTAINERS | 7 +
> drivers/gpu/drm/Kconfig | 2 +
> drivers/gpu/drm/Makefile | 1 +
> drivers/gpu/drm/zte/Kconfig | 8 +
> drivers/gpu/drm/zte/Makefile | 7 +
> drivers/gpu/drm/zte/zx_drm_drv.c | 267 +++++++++
> drivers/gpu/drm/zte/zx_drm_drv.h | 36 ++
> drivers/gpu/drm/zte/zx_hdmi.c | 624 +++++++++++++++++++
> drivers/gpu/drm/zte/zx_hdmi_regs.h | 56 ++
> drivers/gpu/drm/zte/zx_plane.c | 299 ++++++++++
> drivers/gpu/drm/zte/zx_plane.h | 26 +
> drivers/gpu/drm/zte/zx_plane_regs.h | 91 +++
> drivers/gpu/drm/zte/zx_vou.c | 661 +++++++++++++++++++++
> drivers/gpu/drm/zte/zx_vou.h | 46 ++
> drivers/gpu/drm/zte/zx_vou_regs.h | 157 +++++
> 16 files changed, 2372 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/display/zte,vou.txt
> create mode 100644 drivers/gpu/drm/zte/Kconfig
> create mode 100644 drivers/gpu/drm/zte/Makefile
> create mode 100644 drivers/gpu/drm/zte/zx_drm_drv.c
> create mode 100644 drivers/gpu/drm/zte/zx_drm_drv.h
> create mode 100644 drivers/gpu/drm/zte/zx_hdmi.c
> create mode 100644 drivers/gpu/drm/zte/zx_hdmi_regs.h
> create mode 100644 drivers/gpu/drm/zte/zx_plane.c
> create mode 100644 drivers/gpu/drm/zte/zx_plane.h
> create mode 100644 drivers/gpu/drm/zte/zx_plane_regs.h
> create mode 100644 drivers/gpu/drm/zte/zx_vou.c
> create mode 100644 drivers/gpu/drm/zte/zx_vou.h
> create mode 100644 drivers/gpu/drm/zte/zx_vou_regs.h
>
> --
> 1.9.1
>
WARNING: multiple messages have this Message-ID (diff)
From: Shawn Guo <shawnguo@kernel.org>
To: Daniel Vetter <daniel.vetter@ffwll.ch>, David Airlie <airlied@linux.ie>
Cc: Baoyou Xie <xie.baoyou@zte.com.cn>,
Emil Velikov <emil.l.velikov@gmail.com>,
dri-devel@lists.freedesktop.org, Jun Nie <jun.nie@linaro.org>,
linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH v4 0/3] Add initial ZTE VOU DRM/KMS driver
Date: Mon, 7 Nov 2016 09:39:45 +0800 [thread overview]
Message-ID: <20161107013943.GB14622@dragon> (raw)
In-Reply-To: <1477905445-4983-1-git-send-email-shawnguo@kernel.org>
Hi David, Daniel,
On Mon, Oct 31, 2016 at 05:17:22PM +0800, Shawn Guo wrote:
> From: Shawn Guo <shawn.guo@linaro.org>
>
> The series adds the initial ZTE VOU display controller DRM/KMS driver.
> There are still some features to be added, like overlay plane, scaling,
> and more output devices support. But it's already useful with dual
> CRTCs and HDMI display working.
After a few rounds of reviewing (thanks to all reviewers), it seems that
the series is ready for merging, I guess? If so, could you suggest how
we proceed? I can prepare a pull request if you like. Thanks.
Shawn
> Changes for v4:
> - Move the hardware setup done in zx_hdmi_hw_init() and clock enable
> into .enable hook of drm_encoder_helper_funcs.
> - Compare pipe to crtc->index instead of using our own index counter.
> - Save the pipe check in zx_vou_enable[disable]_vblank by putting frame
> interrupt bit into zx_crtc_bits.
> - Use DRM_DEV_* for log messages instead of old dev_* functions
> - Return directly in case of -ETIMEDOUT in zx_hdmi_i2c_read to simplify
> the code for error condition.
> - Shuffle things around to make the crtc and plane state check in
> zx_gl_plane_atomic_check a bit clearer
> - Move hardware register definitions into headers instead of disturbing
> C file reading.
> - Save the call to drm_connector_unregister(), so that
> drm_connector_cleanup can directly be used as drm_connector_funcs
> .destroy hook.
> - Move vblank notification from .atomic_begin hook to .atomic_flush,
> so that vblank event is sent to user space after planes are committed
> rather than before.
>
> Changes for v3:
> - Rebase to v4.9-rc1
> - Update bindings doc to use 'ranges' for address translation between
> parent and child devices.
> - Call drm_dev_register() last in bind function and drm_dev_unregister()
> first in unbind, so that drm_connector_regiser() can be saved from
> HDMI driver.
> - Instead of using open-coded drm_do_get_edid(), add an I2C adapter for
> HDMI DDC read and use drm_get_edid().
> - Improve the plane .atomic_check implementation by calling helper
> function drm_plane_helper_check_state().
> - Rename zx_crtc.c to zx_vou.c to avoid the confusion that the file
> implements crtc instance.
> - Store vou pointer in zx_crtc, so that we do not need to embed the
> pointer in zx_drm_private.
> - Create zx_readl/zx_writel/zx_writel_mask for register access.
> - Define a few macro helpers to ease the register bit setting, like
> SYNC_WIDE, BACK_PORCH and FRONT_PORCH.
> - Define main/aux channel specific register offset and bits in zx_crtc
> to save the use of is_main check
> - Sort include headers alphabetically
> - Removing encoder pointer out of the structure and constify struct
> vou_inf
> - Add log message for error conditions
> - Make the function calls in teardown path asymmetrical
> - A few coding style improvements like defining macro for sub-module
> address and changing code to save indentation level
> - Add a MAINTAINERS entry for ZTE ZX DRM driver
>
> Changes for v2:
> - Change device tree bindings to kill the virtual display-subsystem
> node make VOU the parent node.
>
> Shawn Guo (3):
> dt-bindings: add bindings doc for ZTE VOU display controller
> drm: zte: add initial vou drm driver
> MAINTAINERS: add an entry for ZTE ZX DRM driver
>
> .../devicetree/bindings/display/zte,vou.txt | 84 +++
> MAINTAINERS | 7 +
> drivers/gpu/drm/Kconfig | 2 +
> drivers/gpu/drm/Makefile | 1 +
> drivers/gpu/drm/zte/Kconfig | 8 +
> drivers/gpu/drm/zte/Makefile | 7 +
> drivers/gpu/drm/zte/zx_drm_drv.c | 267 +++++++++
> drivers/gpu/drm/zte/zx_drm_drv.h | 36 ++
> drivers/gpu/drm/zte/zx_hdmi.c | 624 +++++++++++++++++++
> drivers/gpu/drm/zte/zx_hdmi_regs.h | 56 ++
> drivers/gpu/drm/zte/zx_plane.c | 299 ++++++++++
> drivers/gpu/drm/zte/zx_plane.h | 26 +
> drivers/gpu/drm/zte/zx_plane_regs.h | 91 +++
> drivers/gpu/drm/zte/zx_vou.c | 661 +++++++++++++++++++++
> drivers/gpu/drm/zte/zx_vou.h | 46 ++
> drivers/gpu/drm/zte/zx_vou_regs.h | 157 +++++
> 16 files changed, 2372 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/display/zte,vou.txt
> create mode 100644 drivers/gpu/drm/zte/Kconfig
> create mode 100644 drivers/gpu/drm/zte/Makefile
> create mode 100644 drivers/gpu/drm/zte/zx_drm_drv.c
> create mode 100644 drivers/gpu/drm/zte/zx_drm_drv.h
> create mode 100644 drivers/gpu/drm/zte/zx_hdmi.c
> create mode 100644 drivers/gpu/drm/zte/zx_hdmi_regs.h
> create mode 100644 drivers/gpu/drm/zte/zx_plane.c
> create mode 100644 drivers/gpu/drm/zte/zx_plane.h
> create mode 100644 drivers/gpu/drm/zte/zx_plane_regs.h
> create mode 100644 drivers/gpu/drm/zte/zx_vou.c
> create mode 100644 drivers/gpu/drm/zte/zx_vou.h
> create mode 100644 drivers/gpu/drm/zte/zx_vou_regs.h
>
> --
> 1.9.1
>
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
next prev parent reply other threads:[~2016-11-07 1:39 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-31 9:17 [PATCH v4 0/3] Add initial ZTE VOU DRM/KMS driver Shawn Guo
2016-10-31 9:17 ` Shawn Guo
2016-10-31 9:17 ` [PATCH v4 1/3] dt-bindings: add bindings doc for ZTE VOU display controller Shawn Guo
2016-10-31 9:17 ` Shawn Guo
2016-10-31 9:17 ` [PATCH v4 2/3] drm: zte: add initial vou drm driver Shawn Guo
2016-10-31 9:17 ` Shawn Guo
2016-10-31 9:17 ` [PATCH v4 3/3] MAINTAINERS: add an entry for ZTE ZX DRM driver Shawn Guo
2016-10-31 9:17 ` Shawn Guo
2016-11-07 1:39 ` Shawn Guo [this message]
2016-11-07 1:39 ` [PATCH v4 0/3] Add initial ZTE VOU DRM/KMS driver Shawn Guo
2016-11-07 1:49 ` Dave Airlie
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=20161107013943.GB14622@dragon \
--to=shawnguo@kernel.org \
--cc=linux-arm-kernel@lists.infradead.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 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.