Re: [PATCH v2] drm: bridge: synopsys/dw-hdmi: Provide default configuration function for HDMI 2.0 PHY

2017-08-08 Thread Mark yao
ff-by: Jose Abreu Tested-by: Mark Yao This is needed for RK3399 support. Can you please apply it? Best regards, Jose Miguel Abreu Cc: Kieran Bingham Cc: Laurent Pinchart Cc: Archit Taneja Cc: Andrzej Hajda Cc: Mark Yao Cc: Carlos Palminha Cc: Heiko Stübner Changes in v2: - Rebase

[PATCH] MAINTAINERS: change maintainer for Rockchip drm drivers

2017-11-13 Thread Mark Yao
For personal reasons, Mark Yao will leave rockchip, can not continue maintain drm/rockchip, Sandy Huang will take over the drm/rockchip. Cc: Sandy Huang Cc: Heiko Stuebner Signed-off-by: Mark Yao --- MAINTAINERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MAINTAINERS

Re: [PATCH 2/2] drm/rockchip: vop: add rk3126 vop support

2017-11-15 Thread Mark yao
Huang Looks good. Reviewed-by:  Mark Yao --- drivers/gpu/drm/rockchip/rockchip_vop_reg.c | 30 + drivers/gpu/drm/rockchip/rockchip_vop_reg.h | 6 ++ 2 files changed, 36 insertions(+) diff --git a/drivers/gpu/drm/rockchip/rockchip_vop_reg.c b/drivers/gp

Re: [PATCH 2/2] drm/rockchip: vop: add rk3126 vop support

2017-11-15 Thread Mark yao
Huang Looks good. Reviewed-by:  Mark Yao --- drivers/gpu/drm/rockchip/rockchip_vop_reg.c | 30 + drivers/gpu/drm/rockchip/rockchip_vop_reg.h | 6 ++ 2 files changed, 36 insertions(+) diff --git a/drivers/gpu/drm/rockchip/rockchip_vop_reg.c b/drivers/gp

[PATCH] drm/rockchip: vop: fix crtc size in plane check

2016-03-04 Thread Mark yao
On 2016年02月22日 20:22, John Keeping wrote: > If the geometry of a crtc is changing in an atomic update then we much I think "we much validate" should be "we must validate".:-) > validate the plane size against the new state of the crtc and not the > current size, otherwise if the crtc size i

[PATCH 1/2] drm/rockchip: dw_hdmi: Call drm_encoder_cleanup() in error path

2016-03-07 Thread Mark yao
On 2016年03月05日 20:39, Russell King - ARM Linux wrote: > On Sat, Mar 05, 2016 at 12:11:16PM +, John Keeping wrote: >> On Fri, Mar 04, 2016 at 03:22:01PM -0800, Douglas Anderson wrote: >>> The drm_encoder_cleanup() was missing both from the error path of >>> dw_hdmi_rockchip_bind(). This c

[PATCH v2] drm/rockchip: vop: fix crtc size in plane check

2016-03-14 Thread Mark yao
revious size and will not fill the screen. > > Signed-off-by: John Keeping > --- > On Fri, 04 Mar 2016 09:04:57 +0800, Mark yao wrote: >> On 2016年02月22日 20:22, John Keeping wrote: >>> If the geometry of a crtc is changing in an atomic update then we much >>

[PATCH] drm/rockchip: cancel pending vblanks on close

2016-03-14 Thread Mark yao
On 2016年03月12日 01:21, John Keeping wrote: > When closing the DRM device while a vblank is pending, we access > file_priv after it has been free'd, which gives: > >Unable to handle kernel NULL pointer dereference at virtual address > >... >PC is at __list_add+0x5c/0xe8 >

[PATCH v15 1/3] drm: rockchip: Add basic drm driver

2016-03-15 Thread Mark yao
On 2016年03月14日 21:35, Tomeu Vizoso wrote: > On 2 December 2014 at 10:15, Mark Yao wrote: >> diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c >> b/drivers/gpu/drm/rockchip/rockchip_drm_vop.c >> new file mode 100644 >> index 000..e7ca25b >> --- /

[PATCH] drm/rockchip: vop: Reset yrgb_mst when re-enabling

2016-03-19 Thread Mark yao
On 2016年03月18日 19:22, Tomeu Vizoso wrote: > When the VOP is re-enabled, it will start scanning right away the > framebuffers that were configured from the last time, even if those have > been destroyed already. To prevent the VOP from trying to access freed > memory, reset the registers that

[PATCH v14 09/17] drm: rockchip: dp: add rockchip platform dp driver

2016-03-23 Thread Mark yao
oks good for me, I like it, So Acked-by: Mark Yao -- ï¼­ark Yao

Who is going to merge it [Was: Re: [PATCH v14 0/17] Add Analogix Core Display Port Driver]

2016-03-23 Thread Mark yao
On 2016年03月23日 08:41, Dave Airlie wrote: >>> So although it's small framework or just subdirectory, we would need >>> someone who can manage the framework to avoid further confusion if >>> necessary. >> So maybe it just doesn't need a maintainer, and maybe those the owner >> of the bridge dri

[PATCH v2] drm/rockchip: vop: Disable planes when disabling CRTC

2016-03-28 Thread Mark yao
On 2016年03月22日 23:08, Tomeu Vizoso wrote: > When a VOP is re-enabled, it will start scanning right away the > framebuffers that were configured from the last time, even if those have > been destroyed already. > > To prevent the VOP from trying to access freed memory, disable all its > windows

[PATCH] drm/rockchip: vop: Don't reject empty modesets

2016-03-28 Thread Mark yao
On 2016年03月18日 19:22, Tomeu Vizoso wrote: > So that when DRM_IOCTL_MODE_SETCRTC is called without a FB nor mode, the > CRTC gets disabled. > > Signed-off-by: Tomeu Vizoso > Link: > http://lkml.kernel.org/g/CAAObsKAv+05ih5U+=4kic_NsjGMhfxYheHR8xXXmacZs+p5SHw > at mail.gmail.com > --- > dr

[PATCH v2 1/5] drm/rockchip: dw_hdmi: Call drm_encoder_cleanup() in error path

2016-03-28 Thread Mark yao
On 2016年03月08日 06:00, Douglas Anderson wrote: > The drm_encoder_cleanup() was missing both from the error path of > dw_hdmi_rockchip_bind(). This caused a crash when slub_debug was > enabled and we ended up deferring probe of HDMI at boot. > > This call isn't needed from unbind() because if

[GIT PULL]: drm/rockchip: some fixes

2016-03-28 Thread Mark yao
Hi Dave There are some fixes for drm/rockchip, looks good for me, I'd like you can land them. Thanks. The following changes since commit 4604202ca8d2a5e33b4bca0812b5d92975ed1bd8: Merge branch 'drm-next-4.6' of git://people.freedesktop.org/~agd5f/linux into drm-next (2016-03-25 16:02:06 +

[PATCH 7/9] drm: add Rockchip Soc rk3288 lvds connector

2014-08-04 Thread mark yao
Signed-off-by: mark yao --- drivers/gpu/drm/rockchip/Kconfig |1 + drivers/gpu/drm/rockchip/Makefile|2 +- drivers/gpu/drm/rockchip/connector/Kconfig |8 + drivers/gpu/drm/rockchip/connector/Makefile |4 + drivers/gpu/drm/rockchip

[PATCH 5/9] drm: add Rockchip rk3288 lcd controller driver

2014-08-04 Thread mark yao
Signed-off-by: mark yao --- drivers/gpu/drm/rockchip/Kconfig|2 + drivers/gpu/drm/rockchip/Makefile |2 +- drivers/gpu/drm/rockchip/lcdc/Kconfig |9 + drivers/gpu/drm/rockchip/lcdc/Makefile |4 + drivers/gpu/drm/rockchip/lcdc/rk3288_lcdc.c | 819

[PATCH 2/9] Add devicetree bindings for panels used by the Rockchip DRM

2014-08-04 Thread mark yao
Signed-off-by: mark yao --- .../devicetree/bindings/video/rockchip-panel.txt | 52 1 file changed, 52 insertions(+) create mode 100644 Documentation/devicetree/bindings/video/rockchip-panel.txt diff --git a/Documentation/devicetree/bindings/video/rockchip-panel.txt b

[PATCH 0/9] Add drm driver for Rockchip Socs

2014-08-04 Thread mark yao
From: mark yao This a series of patches is a DRM Driver for Rockchip Socs, driver provides an abstraction for the graphics hardware, as lcd controller and connector interface. add rk3288 lcd controller. add rk3288 lvds and rk3288 edp connector. Tested on rk3288 sdk board, use lvds or edp

[PATCH 6/9] Add devicetree bindings for Rockchip Soc LVDS

2014-08-04 Thread mark yao
Signed-off-by: mark yao --- .../devicetree/bindings/video/rockchip-panel.txt | 30 1 file changed, 30 insertions(+) diff --git a/Documentation/devicetree/bindings/video/rockchip-panel.txt b/Documentation/devicetree/bindings/video/rockchip-panel.txt index 9fc200a

[PATCH 8/9] Add devicetree bindings for Rockchip Soc EDP

2014-08-04 Thread mark yao
Signed-off-by: mark yao --- .../devicetree/bindings/video/rockchip-panel.txt | 34 1 file changed, 34 insertions(+) diff --git a/Documentation/devicetree/bindings/video/rockchip-panel.txt b/Documentation/devicetree/bindings/video/rockchip-panel.txt index f599806

[PATCH 4/9] Add devicetree bindings for Rockchip lcd controller

2014-08-04 Thread mark yao
Signed-off-by: mark yao --- .../devicetree/bindings/video/rockchip-lcdc.txt| 33 1 file changed, 33 insertions(+) create mode 100644 Documentation/devicetree/bindings/video/rockchip-lcdc.txt diff --git a/Documentation/devicetree/bindings/video/rockchip-lcdc.txt b

[PATCH 3/9] drm: add driver for panels used by the Rockchip DRM

2014-08-04 Thread mark yao
Signed-off-by: mark yao --- drivers/gpu/drm/rockchip/Makefile |3 +- drivers/gpu/drm/rockchip/rockchip_panel.c | 297 + 2 files changed, 299 insertions(+), 1 deletion(-) create mode 100644 drivers/gpu/drm/rockchip/rockchip_panel.c diff --git a/drivers

[PATCH 9/9] drm: add Rockchip Soc rk3288 edp connector

2014-08-04 Thread mark yao
Signed-off-by: mark yao --- drivers/gpu/drm/rockchip/connector/Kconfig |9 + drivers/gpu/drm/rockchip/connector/Makefile|1 + .../gpu/drm/rockchip/connector/rk3288_dp_core.c| 586 ++ .../gpu/drm/rockchip/connector/rk3288_dp_core.h| 355 ++ drivers

[PATCH 1/9] drm: Add drm driver for Rockchip Socs

2014-08-04 Thread mark yao
This patch is a DRM Driver for Rockchip Socs, driver provides an abstraction for the graphics hardware, such as lcd controller and connector interface. Signed-off-by: mark yao --- drivers/gpu/drm/Kconfig |2 + drivers/gpu/drm/Makefile

[PATCH 1/9] drm: Add drm driver for Rockchip Socs

2014-08-07 Thread mark yao
This patch is a DRM Driver for Rockchip Socs, driver provides an abstraction for the graphics hardware, such as lcd controller and connector interface. Signed-off-by: mark yao --- changes since v1: Adviced by Daniel Vetter: - Switch to universal plane API's --- drivers/gpu/drm/Kc

[PATCH v15 3/3] dt-bindings: video: Add documentation for rockchip vop

2014-12-02 Thread Mark Yao
This adds binding documentation for Rockchip SoC VOP driver. Signed-off-by: Mark Yao --- Changes in v2: - rename "lcdc" to "vop" - add vop reset - add iommu node - add port for display-subsystem Changes in v3: None Changes in v4: None Changes in v5: None Changes in v6:

[PATCH v15 1/3] drm: rockchip: Add basic drm driver

2014-12-02 Thread Mark Yao
This patch adds the basic structure of a DRM Driver for Rockchip Socs. Signed-off-by: Mark Yao Signed-off-by: Daniel Kurtz Acked-by: Daniel Vetter Reviewed-by: Rob Clark --- Changes in v2: - use the component framework to defer main drm driver probe until all VOP devices have been probed

[PATCH v15 2/3] dt-bindings: video: Add for rockchip display subsytem

2014-12-02 Thread Mark Yao
This add a display subsystem comprise the all display interface nodes. Signed-off-by: Mark Yao --- Changes in v2: - add DRM master device node to list all display nodes that comprise the graphics subsystem. Changes in v3: None Changes in v4: None Changes in v5: None Changes in v6: None

[PATCH v15 0/3] Add drm driver for Rockchip Socs

2014-12-02 Thread Mark Yao
_API which cause recursive dependency problem - fix compile problems when build as a module. Mark yao (3): drm: rockchip: Add basic drm driver dt-bindings: video: Add for rockchip display subsytem dt-bindings: video: Add documentation for rockchip vop .../devicetree/bindings/video/rockch

[GIT PULL] core drm support for Rockchip SoCs v15

2014-12-02 Thread Mark yao
fetch changes up to 5ac4837b12f533de5d9f8f66b45494c58e805536: dt-bindings: video: Add documentation for rockchip vop (2014-12-02 17:29:33 +0800) Mark Yao (3): drm: rockchip: Add basic drm driver dt-bindings: video

drm: rockchip: Add basic drm driver

2014-12-17 Thread Mark yao
Hello Dan, Thanks for your review, I will fix it soon. Do you use a script to find out these issues? I was interested in this script. Can you teach me how to find this script and use it? regards, Mark Yao On 2014年12月16日 19:51, Dan Carpenter wrote: > Hello Mark Yao, > >

[PATCH] drm: Add Drm driver for Rockchip Socs

2014-07-03 Thread mark yao
From: mark This patch is a DRM Driver for Rockchip Socs and now only add the framework of Rockchips Socs, but we will add Rockchips Socs soon. Signed-off-by: mark --- drivers/gpu/drm/Kconfig |2 + drivers/gpu/drm/Makefile |1 + drivers

[PATCH] add Drm driver for Rockchip

2014-07-03 Thread mark yao
From: mark This patch is a DRM Driver for Rockchip Socs and now only add the framework of Rockchips Socs, but we will add Rockchips Socs soon. mark (1): drm: Add Drm driver for Rockchip Socs -- 1.7.9.5

[GIT PULL] drm/rockchip: fix some problem

2015-03-16 Thread Mark yao
niel Kurtz (1): drm/rockchip: Only alloc a kmap for fbdev gem object Mark Yao (4): drm/rockchip: vop: fix vop vsync/hsync polarity drm/rockchip: vop use is_enabled instead of dpms mode drm/rockchip: vop: set vop enabled after enable iommu drm/rockchip: vop: power

[PATCH] drm/rockchip: vop: add vop power domain support

2015-04-01 Thread Mark Yao
From: Mark Yao Reference the power domain incase vop power down when in use. Signed-off-by: Mark Yao --- drivers/gpu/drm/rockchip/rockchip_drm_vop.c |7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c b/drivers/gpu/drm/rockchip

[PATCH] drm/rockchip: Add BGR formats to VOP

2015-05-08 Thread Mark yao
Hi Tomasz Thanks for the fix, but some register is wrong. On 2015年05月08日 16:16, Tomasz Figa wrote: > VOP can support BGR formats in all windows thanks to red/blue swap option > provided in WINx_CTRL0 registers. This patch enables support for > ABGR, XBGR, BGR888 and BGR565 forma

[PATCH] drm/rockchip: Add BGR formats to VOP

2015-05-08 Thread Mark yao
On 2015年05月08日 16:49, Tomasz Figa wrote: > Hi Mark, > > Thanks for review. > > On Fri, May 8, 2015 at 5:40 PM, Mark yao wrote: >>> @@ -233,6 +243,7 @@ static const struct vop_win_phy win23_data = { >>> .nformats = ARRAY_SIZE(formats_234), >>

drm: Bogus WARN() in drm_atomic_helper_update_legacy_modeset_state() ?

2015-11-12 Thread Mark yao
On 2015年11月12日 18:36, Liviu Dudau wrote: > On Thu, Nov 12, 2015 at 04:32:33PM +0800, Mark yao wrote: >> On 2015年11月10日 23:01, Liviu Dudau wrote: >> >> Hello, >> >> When booting my Juno board with the HDLCD driver that I have converted to >&

drm: Bogus WARN() in drm_atomic_helper_update_legacy_modeset_state() ?

2015-11-12 Thread Mark yao
On 2015年11月12日 18:34, Liviu Dudau wrote: > Can you switch your email client to text mode and make it do proper reply > quoting? It is > rather difficult to follow where your reply comes when you don't use HTML > MUAs. > > Best regards, > Liviu Hi Liviu I'm sorry about that, now I switc

[RESEND PATCH] drm/rockchip: import dma_buf to gem

2015-11-17 Thread Mark yao
On 2015年11月17日 00:25, Daniel Vetter wrote: > On Tue, Nov 10, 2015 at 05:11:57PM +0800, Mark Yao wrote: >> >We want to display a buffer allocated by other driver, need import >> >the buffer to gem. > Does this work with some open-source driver/userspace or is this for

[PATCH v3 03/12] drm/rockchip: return a true clock rate to adjusted_mode

2015-11-19 Thread Mark yao
On 2015年11月19日 11:35, Chris Zhong wrote: > + > + /* > + * Sometimes the clock driver can not set a accurate clock_rate for vop, > + * get the true rate of vop_dclk and set it back to adjusted_mode. > + */ > + adjusted_mode->clock = clk_get_rate(vop->dclk) / 1000; > ou

[PATCH v4 03/13] drm/rockchip: return a true clock rate to adjusted_mode

2015-11-20 Thread Mark yao
if (adjusted_mode->htotal == 0 || adjusted_mode->vtotal == 0) > return false; > > + adjusted_mode->clock = > + clk_round_rate(vop->dclk, mode->clock * 1000) / 1000; > + > return true; > } > Looks good for me, so Acked-by: Mark Yao -- ï¼­ark Yao

[PATCH v2 2/2] drm/rockchip: Convert the probe function to the generic drm_of_component_probe()

2015-11-23 Thread Mark yao
e > conversion. > > Signed-off-by: Liviu Dudau Looks good for me, and it works on popmetal board, so Acked-by: Mark Yao Thanks. -- ï¼­ark Yao

[RFC PATCH 0/9] drm/rockchip: covert to support atomic API

2015-12-01 Thread Mark Yao
kernel: https://github.com/markyzq/kernel-drm-rockchip.git drm-rockchip-2015-11-31 Mark Yao (9): drm/rockchip: vop: replace dpms with enable/disable drm/rockchip: Use new vblank api drm_crtc_vblank_* drm/rockchip: Convert to support atomic API drm/rockchip: support atomic asynchronous commit

[RFC PATCH 1/9] drm/rockchip: vop: replace dpms with enable/disable

2015-12-01 Thread Mark Yao
For vop, power by enable/disable is more suitable then legacy dpms function, and enable/disable more closely to the new atomic API. Signed-off-by: Mark Yao --- drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 37 +++ 1 file changed, 4 insertions(+), 33 deletions(-) diff

[RFC PATCH 2/9] drm/rockchip: Use new vblank api drm_crtc_vblank_*

2015-12-01 Thread Mark Yao
No functional update, drm_vblank_* is the legacy version of drm_crtc_vblank_*. and use new api make driver more clean. Signed-off-by: Mark Yao --- drivers/gpu/drm/rockchip/rockchip_drm_drv.c | 13 +++-- drivers/gpu/drm/rockchip/rockchip_drm_drv.h |7 +++ drivers/gpu/drm

[RFC PATCH 4/9] drm/rockchip: support atomic asynchronous commit

2015-12-01 Thread Mark Yao
If drm core requests a async commit, rockchip_drm_atomic_commit will schedule a work task to update later. Signed-off-by: Mark Yao --- drivers/gpu/drm/rockchip/rockchip_drm_fb.c | 60 ++-- 1 file changed, 47 insertions(+), 13 deletions(-) diff --git a/drivers/gpu/drm

[RFC PATCH 3/9] drm/rockchip: Convert to support atomic API

2015-12-01 Thread Mark Yao
Rockchip vop not support hw vblank counter, needed check the committed register if it's really take effect. Signed-off-by: Mark Yao Signed-off-by: Tomasz Figa --- drivers/gpu/drm/rockchip/rockchip_drm_drv.c |5 +- drivers/gpu/drm/rockchip/rockchip_drm_drv.h |2 + drivers/gp

[RFC PATCH 5/9] drm/rockchip: Optimization vop mode set

2015-12-01 Thread Mark Yao
back to work immediately when exit standby. So we can use standby register to protect this context. Signed-off-by: Mark Yao --- drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 49 +++ 1 file changed, 34 insertions(+), 15 deletions(-) diff --git a/drivers/gpu/drm/rockchip

[RFC PATCH 6/9] drm/rockchip: direct config connecter gate and out_mode

2015-12-01 Thread Mark Yao
Both connecter gate and out_mode are not conflict with mode set configure. Direct setting connecter gate and out_mode, that allow connector do rockchip_drm_crtc_mode_config after mode set. Signed-off-by: Mark Yao --- drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 41

[RFC PATCH 7/9] drm/rockchip: force enable vop when do mode setting

2015-12-01 Thread Mark Yao
When do mode setting, mean that we want to enable display output, but sometimes, vop_crtc_enable is after mode_set, we can't allow that, so force enable vop in mode setting. Signed-off-by: Mark Yao --- drivers/gpu/drm/rockchip/rockchip_drm_vop.c |1 + 1 file changed, 1 insertion(+)

[RFC PATCH 8/9] drm: bridge/dw_hdmi: Covert to support atomic API

2015-12-01 Thread Mark Yao
Fill atomic needed funcs with default atomic helper library. Rockchip use dw_hdmi, and drm/rockchip will covert to atomic api, we need dw_hdmi support atomic funcs. Signed-off-by: Mark Yao --- drivers/gpu/drm/bridge/dw_hdmi.c |6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff

[RFC PATCH 9/9] drm/rockchip: dw_hdmi: use encoder enable function

2015-12-01 Thread Mark Yao
encoder.enable is more compatible to atomic api than encoder.prepare/commit Signed-off-by: Mark Yao --- drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c | 14 +- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c b/drivers/gpu/drm

[PATCH v2] drm/rockchip: import dma_buf to gem

2015-10-07 Thread Mark yao
On 2015年10月02日 22:33, Heiko Stübner wrote: > Hi Mark, > > Am Freitag, 26. Juni 2015, 09:27:18 schrieb Mark Yao: >> We want to display a buffer allocated by other driver, need import >> the buffer to gem. >> >> Signed-off-by: Mark Yao > This looks inte

[PATCH v3 1/6] drm/rockchip: vop: Fix virtual stride calculation

2015-07-21 Thread Mark Yao
vir_stride need number words of the virtual width, and fb->pitches save bytes_per_pixel, so just div 4 switch to stride. Signed-off-by: Mark Yao --- Changes in v3: Adviced by Tomasz Figa - use more suitable tile for this patch. Changes in v2: None drivers/gpu/drm/rockchip/rockchip_drm_vo

[PATCH v3 0/6] drm/rockchip: fixes and new features

2015-07-21 Thread Mark Yao
move yuv image. - Fix scale dest info. Mark Yao (6): drm/rockchip: vop: Fix virtual stride calculation drm/rockchip: vop: Fix window dest start point drm/rockchip: vop: Add yuv plane support drm/rockchip: vop: Default enable win2/3 area0 bit drm/rockchip: vop: restore vop registers when

[PATCH v3 2/6] drm/rockchip: vop: Fix window dest start point

2015-07-21 Thread Mark Yao
Dest start point use crtc_x/y is wrong, crtc_x/y is not equal to dest.x1/y1 at plane scale. Signed-off-by: Mark Yao --- drivers/gpu/drm/rockchip/rockchip_drm_vop.c |6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c b/drivers

[PATCH v3 3/6] drm/rockchip: vop: Add yuv plane support

2015-07-21 Thread Mark Yao
vop support yuv with NV12, NV16 and NV24, only 2 plane yuv. Signed-off-by: Mark Yao --- Changes in v3: Adviced by Tomasz Figa - separate dest calculate to another patch - fix src x1,x2 when do align, and remove unnecessary src.y1 align. Changes in v2: - Uv buffer not support odd offset, align

[PATCH v3 4/6] drm/rockchip: vop: Default enable win2/3 area0 bit

2015-07-21 Thread Mark Yao
Win2/3 support multiple area function, but we haven't found a suitable way to use it yet, so let's just use them as other windows with only area 0 enabled. Signed-off-by: Mark Yao --- Changes in v3: Adviced by Tomasz Figa - fix patch comments. Changes in v2: None drivers/gpu/dr

[PATCH v3 5/6] drm/rockchip: vop: restore vop registers when resume

2015-07-21 Thread Mark Yao
The registers will be reset to default values when whole power domain off, so restore registers from regsbak. Signed-off-by: Mark Yao --- drivers/gpu/drm/rockchip/rockchip_drm_vop.c |1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c b/drivers/gpu

[PATCH v3 6/6] drm/rockchip: vop: support plane scale

2015-07-21 Thread Mark Yao
Win_full support 1/8 to 8 scale down/up engine, support all format scale. Signed-off-by: Mark Yao --- Changes in v3: Adviced by Tomasz Figa - remove unused code and unnecessary scale path. - use static inline funcion instead "#define", let gcc check the cast - move same call into he

[PATCH v3 3/6] drm/rockchip: vop: Add yuv plane support

2015-07-23 Thread Mark yao
On 2015年07月23日 05:51, Heiko Stübner wrote: > Am Dienstag, 21. Juli 2015, 16:20:04 schrieb Mark Yao: >> vop support yuv with NV12, NV16 and NV24, only 2 plane yuv. >> >> Signed-off-by: Mark Yao >> --- >> Changes in v3: >> Adviced by Tomasz Figa >&g

[PATCH v4 0/6] drm/rockchip: fixes and new features

2015-07-27 Thread Mark Yao
Changes in v2: - Uv buffer not support odd offset, align it. - Fix error display when move yuv image. - Fix scale dest info. Mark Yao (6): drm/rockchip: vop: Fix virtual stride calculation drm/rockchip: vop: Fix window dest start point drm/rockchip: vop: Add yuv plane support drm/rockchip

[PATCH v4 1/6] drm/rockchip: vop: Fix virtual stride calculation

2015-07-27 Thread Mark Yao
vir_stride need number words of the virtual width, and fb->pitches save bytes_per_pixel, so just div 4 switch to stride. Signed-off-by: Mark Yao --- Changes in v4: None Changes in v3: Adviced by Tomasz Figa - use more suitable tile for this patch. Changes in v2: None drivers/gpu/

[PATCH v4 2/6] drm/rockchip: vop: Fix window dest start point

2015-07-27 Thread Mark Yao
Dest start point use crtc_x/y is wrong, crtc_x/y is not equal to dest.x1/y1 at plane scale. Signed-off-by: Mark Yao --- Changes in v4: None drivers/gpu/drm/rockchip/rockchip_drm_vop.c |6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/rockchip

[PATCH v4 3/6] drm/rockchip: vop: Add yuv plane support

2015-07-27 Thread Mark Yao
vop support yuv with NV12, NV16 and NV24, only 2 plane yuv. Signed-off-by: Mark Yao --- Changes in v4: rebase to drm-next, fix conflict Changes in v3: Adviced by Tomasz Figa - separate dest calculate to another patch - fix src x1,x2 when do align, and remove unnecessary src.y1 align. Changes

[PATCH v4 4/6] drm/rockchip: vop: Default enable win2/3 area0 bit

2015-07-27 Thread Mark Yao
Win2/3 support multiple area function, but we haven't found a suitable way to use it yet, so let's just use them as other windows with only area 0 enabled. Signed-off-by: Mark Yao --- Changes in v4: None Changes in v3: Adviced by Tomasz Figa - fix patch comments. Changes in v2: None

[PATCH v4 5/6] drm/rockchip: vop: restore vop registers when resume

2015-07-27 Thread Mark Yao
The registers will be reset to default values when whole power domain off, so restore registers from regsbak. Signed-off-by: Mark Yao --- Changes in v4: None drivers/gpu/drm/rockchip/rockchip_drm_vop.c |1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/rockchip

[PATCH v4 6/6] drm/rockchip: vop: support plane scale

2015-07-27 Thread Mark Yao
Win_full support 1/8 to 8 scale down/up engine, support all format scale. Signed-off-by: Mark Yao --- Changes in v4: Adviced by Tomasz Figa - calcaute min/max scale with readable macro. Changes in v3: Adviced by Tomasz Figa - remove unused code and unnecessary scale path. - use static inline

[PATCH v2] drm/rockchip: Add BGR formats to VOP

2015-06-03 Thread Mark yao
://patchwork.kernel.org/patch/6369531/) >> - Fixed register addresses for win2/3 and hwc (reported by Mark Yao). > Gentle ping. Applied to my drm-next:-) > Best regards, > Tomasz > > > -- ï¼­ark Yao

[PATCH] drm/rockchip: only call drm_fb_helper_hotplug_event if fb_helper present

2015-06-03 Thread Mark yao
On 2015年06月02日 22:41, Heiko Stübner wrote: > Add a check for the presence of fb_helper to > rockchip_drm_output_poll_changed() > to only call drm_fb_helper_hotplug_event if there is actually a fb_helper > available. Without this check I see NULL pointer dereferences when the > hdmi hotplug

[PATCH 2/6] drm/rockchip: vop: optimize virtual stride calculate

2015-06-18 Thread Mark Yao
vir_stride need number words of the virtual width, and fb->pitches save bytes_per_pixel, so just div 4 switch to stride. Signed-off-by: Mark Yao --- drivers/gpu/drm/rockchip/rockchip_drm_vop.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/rockc

[PATCH 1/6] drm/rockchip: import dma_buf to gem

2015-06-18 Thread Mark Yao
We want to display a buffer allocated by other driver, need import the buffer to gem. Signed-off-by: Mark Yao --- drivers/gpu/drm/rockchip/rockchip_drm_drv.c |1 + drivers/gpu/drm/rockchip/rockchip_drm_gem.c | 45 +-- drivers/gpu/drm/rockchip/rockchip_drm_gem.h

[PATCH 3/6] drm/rockchip: vop: fix yuv plane support

2015-06-18 Thread Mark Yao
vop support yuv with NV12, NV16 and NV24, only 2 plane yuv. Signed-off-by: Mark Yao --- drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 42 ++- 1 file changed, 41 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c b/drivers/gpu/drm

[PATCH 0/6] drm/rockchip: support yuv overlay and plane scale

2015-06-18 Thread Mark Yao
This series patches are used for yuv image overlay display. Rockchip vop support NV11, NV16, NV24 yuv format, and can scale the image scale 1/8 to 8. Mark Yao (6): drm/rockchip: import dma_buf to gem drm/rockchip: vop: optimize virtual stride calculate drm/rockchip: vop: fix yuv plane

[PATCH 4/6] drm/rockchip: vop: support plane scale

2015-06-18 Thread Mark Yao
Win_full support 1/8 to 8 scale down/up engine, support all format scale. Signed-off-by: Mark Yao --- drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 390 ++- drivers/gpu/drm/rockchip/rockchip_drm_vop.h | 96 +++ 2 files changed, 483 insertions(+), 3 deletions

[PATCH 5/6] drm/rockchip: vop: switch cursor plane to window 3

2015-06-18 Thread Mark Yao
Window 1 support scale and yuv format, it's waste use it for a cursor, use window 3 is enough. Signed-off-by: Mark Yao --- drivers/gpu/drm/rockchip/rockchip_drm_vop.c |7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_vop

[PATCH 6/6] drm/rockchip: vop: default enable win2/3 area0 bit

2015-06-18 Thread Mark Yao
Win2/3 support 4 area display, but now havn't found a suitable way to use it, and it enable by win gate and area gate, so default enable area0 gate, so that its behaviour just like a win. Signed-off-by: Mark Yao --- drivers/gpu/drm/rockchip/rockchip_drm_vop.c |6 ++ 1 file chang

[PATCH 1/6] drm/rockchip: import dma_buf to gem

2015-06-19 Thread Mark yao
Thanks Russell On 2015年06月18日 18:57, Russell King - ARM Linux wrote: > This is wrong. > > First, if you can only cope with a single scatterlist entry, you need to > enforce that. You can do that in your gem_prime_import_sg_table() method > by checking sgt->nents. I'm confuse that how to get

[PATCH v2] drm/rockchip: import dma_buf to gem

2015-06-26 Thread Mark Yao
We want to display a buffer allocated by other driver, need import the buffer to gem. Signed-off-by: Mark Yao --- Changes in v2: Adviced by Russell King - check sgt-nents == 1 when get iova from scatterlist - remove unused dma_map_sg/dma_unmap_sg, dma_buf_map_attachment->map_dma_buf should

[PATCH v2 0/5] drm/rockchip: support yuv overlay and plane scale

2015-06-26 Thread Mark Yao
This series patches are used for yuv image overlay display. Rockchip vop support NV11, NV16, NV24 yuv format, and can scale the image scale 1/8 to 8. Changes in v2: - Uv buffer not support odd offset, align it. - Fix error display when move yuv image. - Fix scale dest info. Mark Yao (5

[PATCH v2 1/5] drm/rockchip: vop: optimize virtual stride calculate

2015-06-26 Thread Mark Yao
vir_stride need number words of the virtual width, and fb->pitches save bytes_per_pixel, so just div 4 switch to stride. Signed-off-by: Mark Yao --- Changes in v2: None drivers/gpu/drm/rockchip/rockchip_drm_vop.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/driv

[PATCH v2 2/5] drm/rockchip: vop: fix yuv plane support

2015-06-26 Thread Mark Yao
vop support yuv with NV12, NV16 and NV24, only 2 plane yuv. Signed-off-by: Mark Yao Changes in v2: - Uv buffer not support odd offset, align it. - Fix error display when move yuv image. --- drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 63 --- 1 file changed, 57

[PATCH v2 3/5] drm/rockchip: vop: support plane scale

2015-06-26 Thread Mark Yao
Win_full support 1/8 to 8 scale down/up engine, support all format scale. Signed-off-by: Mark Yao --- Changes in v2: - Fix scale dest info. drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 389 ++- drivers/gpu/drm/rockchip/rockchip_drm_vop.h | 96 +++ 2 files

[PATCH v2 4/5] drm/rockchip: vop: switch cursor plane to window 3

2015-06-26 Thread Mark Yao
Window 1 support scale and yuv format, it's waste use it for a cursor, use window 3 is enough. Signed-off-by: Mark Yao --- Changes in v2: None drivers/gpu/drm/rockchip/rockchip_drm_vop.c |7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/roc

[PATCH v2 5/5] drm/rockchip: default enable win2/3 area0 bit

2015-06-26 Thread Mark Yao
Win2/3 support 4 area display, but now havn't found a suitable way to use it, and it enable by win gate and area gate, so default enable area0 gate, so that its behaviour just like a win. Signed-off-by: Mark Yao --- Changes in v2: None drivers/gpu/drm/rockchip/rockchip_drm_vop.c |

[GIT PULL] drm/rockchip: fixes and new features

2015-06-30 Thread Mark yao
+0800) Heiko Stübner (1): drm/rockchip: only call drm_fb_helper_hotplug_event if fb_helper present Mark Yao (6): drm/rockchip: import dma_buf to gem drm/rockchip: vop: optimize virtual stride calculate drm/rockchip: vop: fix yuv plane support drm/rockchip: vop: su

[PATCH v5 1/3] drm/layerscape: Add Freescale DCU DRM driver

2015-07-01 Thread Mark yao
On 2015年06月30日 18:01, Wang J.W. wrote: > From: Jianwei Wang > > This patch add support for Two Dimensional Animation and Compositing Engine > (2D-ACE) on the Freescale SoCs. > > 2D-ACE is a Freescale display controller. 2D-ACE describes the functionality > of the module extremely well its

[GIT PULL] drm/rockchip: fix dma_alloc_attrs() error check

2015-01-09 Thread Mark yao
Hi Dave fix that: dma_alloc_attrs() returns NULL if it cannot allocate a dma buffer (or mapping), not a negative error code. The following changes since commit c93546a5e32bd788c22aefa072385f3784551c13: Merge tag 'topic/atomic-core-2015-01-05' of git://anongit.freedesktop.org/drm-intel i

[PATCH] drm/rockchip: vop: fix vop vsync/hsync polarity

2015-01-22 Thread Mark Yao
: positive dsp_hsync_pol HSYNC polarity 1'b0 : negative 1'b1 : positive Signed-off-by: Mark Yao --- drivers/gpu/drm/rockchip/rockchip_drm_vop.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c b/driv

[GIT PULL] drm/rockchip: Only alloc a kmap for fbdev gem object

2015-01-22 Thread Mark yao
Hi Dave I'd like this patch, some gem object need not be mapped into kernel address space. The following changes since commit 281d1bbd34b734e4f22b30b6f3b673dda46a7470: Merge remote-tracking branch 'origin/master' into drm-next (2015-01-22 10:44:41 +1000) are available in the git reposi

[PATCH 0/2] drm/rockchip: Optimization vop dpms control

2015-01-22 Thread Mark Yao
r problem at vop_crtc_dpms: vop_enable()->drm_vblank_on, drm_vblank_on may call vop enable vblank. if it happen, vblank enable would failed, then cause irq status error. because is_enabled value is set after drm_vblank_on. Mark Yao (2): drm/rockchip: vop use is_enabled instead of dpms mode

[PATCH 1/2] drm/rockchip: vop use is_enabled instead of dpms mode

2015-01-22 Thread Mark Yao
ed-off-by: Mark Yao --- drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 34 ++- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c b/drivers/gpu/drm/rockchip/rockchip_drm_vop.c index 9a5c571..f278c09 100644 --- a/driver

[PATCH 2/2] drm/rockchip: vop: set vop enabled after enable iommu

2015-01-22 Thread Mark Yao
do vop plane flip is safe, so place is_enabled = true after enable iommu is suitable. Signed-off-by: Mark Yao --- drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c b/drivers/gpu/

[PATCH 1/2] drm/rockchip: vop use is_enabled instead of dpms mode

2015-01-22 Thread Mark yao
On 2015年01月22日 15:33, Daniel Vetter wrote: > On Thu, Jan 22, 2015 at 03:05:32PM +0800, Mark Yao wrote: >> drm dpms have many power modes: ON,OFF,SUSPEND,STANDBY, etc. >> but vop only have enable/disable mode, maybe case such bug: >> --> DRM_DPMS_ON: power on vop &

[PATCH v2 0/2] drm/rockchip: Optimization vop dpms control

2015-01-22 Thread Mark Yao
r problem at vop_crtc_dpms: vop_enable()->drm_vblank_on, drm_vblank_on may call vop enable vblank. if it happen, vblank enable would failed, then cause irq status error. because is_enabled value is set after drm_vblank_on. Changes in v2: - fix mistake that set is_enabled wrong. Mark Yao (2):

[PATCH v2 1/2] drm/rockchip: vop use is_enabled instead of dpms mode

2015-01-22 Thread Mark Yao
ed-off-by: Mark Yao --- Changes in v2: - fix mistake that set is_enabled wrong. drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 34 ++- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c b/drivers/gpu/drm

[PATCH v2 2/2] drm/rockchip: vop: set vop enabled after enable iommu

2015-01-22 Thread Mark Yao
do vop plane flip is safe, so place is_enabled = true after enable iommu is suitable. Signed-off-by: Mark Yao --- Changes in v2: - fix mistake that set is_enabled wrong. drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --gi

<    1   2   3   4   5   6   >