[PATCH] drm/rockchip: vop: power off until vop standby take effect

2015-01-31 Thread Mark Yao
Vop standby will take effect end of current frame, if dsp_hold_valid_irq happen, it means vop standby complete. we must wait standby complete when we want to disable aclk, if not, memory bus maybe dead. Signed-off-by: Mark Yao --- drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 76

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

2015-07-01 Thread Mark yao
On 2015年07月01日 16:03, Tomasz Figa wrote: > Hi Mark, > > On Tue, Jun 30, 2015 at 3:50 PM, Mark yao wrote: >> Hi Dave. >> >> Some fixes and some new features. I'd like you can pull them. >> >> The following changes since commit c5fd936e99

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

2015-07-01 Thread Mark yao
On 2015年07月01日 16:32, Mark yao wrote: > On 2015年07月01日 16:03, Tomasz Figa wrote: >> Hi Mark, >> >> On Tue, Jun 30, 2015 at 3:50 PM, Mark yao >> wrote: >>> Hi Dave. >>> >>> Some fixes and some new features. I'd like yo

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

2015-07-01 Thread Mark yao
On 2015年07月01日 16:32, Tomasz Figa wrote: > On Wed, Jul 1, 2015 at 5:20 PM, Daniel Vetter wrote: >> On Wed, Jul 01, 2015 at 05:03:39PM +0900, Tomasz Figa wrote: >>> Hi Mark, >>> >>> On Tue, Jun 30, 2015 at 3:50 PM, Mark yao >>> wrote: >>

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

2015-07-01 Thread Mark yao
On 2015年07月01日 16:42, Tomasz Figa wrote: > On Wed, Jul 1, 2015 at 5:32 PM, Mark yao wrote: >> On 2015年07月01日 16:03, Tomasz Figa wrote: >>> Hi Mark, >>> >>> On Tue, Jun 30, 2015 at 3:50 PM, Mark yao >>> wrote: >>>> Hi Dave. &

[PATCH] drm/rockchip: vop: remove hardware cursor window

2015-07-01 Thread Mark Yao
just remove the hardware cursor window Signed-off-by: Mark Yao --- drivers/gpu/drm/rockchip/rockchip_drm_vop.c |1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c b/drivers/gpu/drm/rockchip/rockchip_drm_vop.c index 4603412..7373ba1 100644 --- a/dr

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

2015-07-02 Thread Mark yao
On 2015年07月02日 12:59, Tomasz Figa wrote: > On Fri, Jun 26, 2015 at 7:07 PM, Mark Yao wrote: >> 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

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

2015-07-02 Thread Mark yao
Hi Tomasz Thanks for your review, I will fix it soon. On 2015年07月02日 14:00, Tomasz Figa wrote: > Hi Mark, > > Please see my comments inline. > > On Fri, Jun 26, 2015 at 7:07 PM, Mark Yao wrote: >> vop support yuv with NV12, NV16 and NV24, only 2 plane yuv. >>

[PATCH] drm/rockchip: vop: remove hardware cursor window

2015-07-02 Thread Mark yao
On 2015年07月01日 19:52, Heiko Stübner wrote: > Hi Mark, > > Am Mittwoch, 1. Juli 2015, 17:49:33 schrieb Mark Yao: >> hardware cursor windows only have some fixed size, and not support >> width virtual, when move hardware cursor windows outside of left, >> the disp

[PATCH v2] drm/rockchip: vop: remove hardware cursor window

2015-07-02 Thread Mark Yao
just remove the hardware cursor window Signed-off-by: Mark Yao --- Changes in v2: remove unused cursor_data struct. drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 11 --- 1 file changed, 11 deletions(-) diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c b/drivers/gpu/drm/roc

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

2015-07-03 Thread Mark yao
On 2015年07月03日 16:02, Tomasz Figa wrote: > Hi Mark, > > Please see my comments inline. > > On Fri, Jun 26, 2015 at 7:10 PM, Mark Yao wrote: >> 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

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

2015-07-03 Thread Mark yao
On 2015年07月03日 15:46, Tomasz Figa wrote: > Hi Mark, > > Please see my comments inline. > > On Fri, Jun 26, 2015 at 7:07 PM, Mark Yao wrote: >> Win_full support 1/8 to 8 scale down/up engine, support >> all format scale. > [snip] > >>

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

2015-07-03 Thread Mark yao
On 2015年07月03日 17:24, Tomasz Figa wrote: > On Fri, Jul 3, 2015 at 5:19 PM, Mark yao wrote: >> On 2015年07月03日 16:02, Tomasz Figa wrote: >>> Hi Mark, >>> >>> Please see my comments inline. >>> >>> On Fri, Jun 26, 2015 at 7:10 PM, Ma

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

2015-07-03 Thread Mark yao
On 2015年07月03日 17:58, Tomasz Figa wrote: >>> >>Aren't the scl_modes for CbCr planes always the same as for Y plane? >> > >> > >> >No, such as src(1920 x 1080) -> dst(1280x800), yuv format is NV12. >> >so Y plane horizontal and vertical is scale down. >> > >> >but src_w = 1920 / 2 = 960 < 1280

[PATCH] drm/rockchip: use drm_gem_mmap helpers

2015-07-08 Thread Mark yao
On 2015年07月07日 20:04, Daniel Vetter wrote: > On Tue, Jul 07, 2015 at 05:03:36PM +0800, Daniel Kurtz wrote: >> Rather than (incompletely [0]) re-implementing drm_gem_mmap() and >> drm_gem_mmap_obj() helpers, call them directly from the rockchip mmap >> routines. >> >> Once the core functions r

[PATCH] drm: Drop owner assignment from i2c_driver

2015-07-10 Thread Mark yao
On 2015年07月10日 13:36, Krzysztof Kozlowski wrote: > i2c_driver does not need to set an owner because i2c_register_driver() > will set it. > > Signed-off-by: Krzysztof Kozlowski > > --- > > The coccinelle script which generated the patch was sent here: > http://www.spinics.net/lists/kernel/msg

[PATCH] drm: Drop owner assignment from i2c_driver

2015-07-10 Thread Mark yao
On 2015年07月10日 15:01, Krzysztof Kozlowski wrote: > On 10.07.2015 15:50, Mark yao wrote: >> On 2015年07月10日 13:36, Krzysztof Kozlowski wrote: >>> i2c_driver does not need to set an owner because i2c_register_driver() >>> will set it. >>> &g

[PATCH v2 2/2] drm/rockchip: Drop owner assignment from platform_driver

2015-07-13 Thread Mark yao
On 2015年07月10日 18:37, Krzysztof Kozlowski wrote: > platform_driver does not need to set an owner because > platform_driver_register() will set it. > > Signed-off-by: Krzysztof Kozlowski > > --- > Changes since v1: > 1. Split owner removal from rockchip to separat

[GIT PULL] drm/rockchip: some fixes

2015-07-13 Thread Mark yao
Hi Dave Here is some fixes for rockchip drm, can you land them? The following changes since commit c5fd936e992dd2829167d2adc63e151675ca6898: drm/nouveau: Pause between setting gpu to D3hot and cutting the power (2015-06-26 10:26:37 +1000) are available in the git repository at: http

[PATCH v8 1/4] drm/layerscape: Add Freescale DCU DRM driver

2015-07-13 Thread Mark yao
replace deprecated hooker > Adviced by Daniel Vetter > - Replace drm_platform_init with drm_dev_alloc/register > Adviced by Daniel Vetter > > Changed in V6 > > - Add NEC nl4827hc19_05b panel to panel-simple.c > Adviced by Mark Yao > - Add DRIVER_ATOMIC for driver_features

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

2015-12-11 Thread Mark yao
On 2015年12月02日 22:18, Daniel Stone wrote: > Hi Mark, > Thanks for getting back to this. > > On 1 December 2015 at 09:31, Mark yao wrote: >> On 2015年12月01日 16:18, Daniel Stone wrote: >>> On 1 December 2015 at 03:26, Mark Yao wrote: >>>>>

[PATCH v2 0/8] drm/rockchip: covert to support atomic API

2015-12-14 Thread Mark Yao
. - code formating and cleanup. Advised by Thierry Reding & Daniel Vetter - Hook mode_set into crtc enable instead of hack crtc enable on mode set. v1: http://lists.freedesktop.org/archives/dri-devel/2015-November/095745.html Mark Yao (8): drm/rockchip: Use new vblank api drm_crtc_vblank_*

[PATCH v2 1/8] drm/rockchip: Use new vblank api drm_crtc_vblank_*

2015-12-14 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 --- Changes in v2: None drivers/gpu/drm/rockchip/rockchip_drm_drv.c | 13 +++-- drivers/gpu/drm/rockchip/rockchip_drm_drv.h |7

[PATCH v2 2/8] drm/rockchip: vop: replace dpms with enable/disable

2015-12-14 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 --- Changes in v2: None drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 37 +++ 1 file changed, 4 insertions

[PATCH v2 3/8] drm/rockchip: Convert to support atomic API

2015-12-14 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 --- Changes in v2: - Optimization commit planes sequence. - Get vblank count on atomic_begin to protect vblank event. Adviced by D

[PATCH v2 4/8] drm/rockchip: Optimization vop mode set

2015-12-14 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 --- Changes in v2: None drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 49 +++ 1 file changed, 34 insertions(+), 15 deletions(-) diff --git a

[PATCH v2 5/8] drm/rockchip: support atomic asynchronous commit

2015-12-14 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 --- Changes in v2: - serialize outstanding asynchronous commits drivers/gpu/drm/rockchip/rockchip_drm_drv.c |3 + drivers/gpu/drm/rockchip/rockchip_drm_drv.h

[PATCH v2 6/8] drm/rockchip: direct config connecter gate and out_mode

2015-12-14 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 --- Changes in v2: None drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 40

[PATCH v2 7/8] drm: bridge/dw_hdmi: add atomic API support

2015-12-14 Thread Mark Yao
: Russell King Cc: Philipp Zabel Cc: Andy Yan Cc: Fabio Estevam Cc: Thierry Reding Signed-off-by: Mark Yao --- Changes in v2: Adviced by Daniel Vetter - check DRIVER_ATOMIC at runtime to spilt atomic and not atomic. drivers/gpu/drm/bridge/dw_hdmi.c | 23 +-- 1 file

[PATCH v2 8/8] drm/rockchip: dw_hdmi: use encoder enable function

2015-12-14 Thread Mark Yao
encoder.enable is more compatible to atomic api than encoder.prepare/commit Signed-off-by: Mark Yao --- Changes in v2: None 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

[PATCH v3 0/8] drm/rockchip: covert to support atomic API

2015-12-17 Thread Mark Yao
.net/lists/arm-kernel/msg468423.html v1: http://lists.freedesktop.org/archives/dri-devel/2015-November/095745.html Mark Yao (8): drm/rockchip: Use new vblank api drm_crtc_vblank_* drm/rockchip: vop: replace dpms with enable/disable drm/rockchip: Convert to support atomic API drm/rock

[PATCH v3 1/8] drm/rockchip: Use new vblank api drm_crtc_vblank_*

2015-12-17 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 --- Changes in v3: None Changes in v2: None drivers/gpu/drm/rockchip/rockchip_drm_drv.c | 13 +++-- drivers/gpu/drm/rockchip

[PATCH v3 2/8] drm/rockchip: vop: replace dpms with enable/disable

2015-12-17 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 --- Changes in v3: None Changes in v2: None drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 37 +++ 1 file changed

[PATCH v3 3/8] drm/rockchip: Convert to support atomic API

2015-12-17 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 --- Changes in v3: Reported by kbuild test robot - fix rockchip_crtc_wait_for_update undefined when build drm rockchip as mo

[PATCH v3 4/8] drm/rockchip: Optimization vop mode set

2015-12-17 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 --- Changes in v3: None Changes in v2: None drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 51 ++- 1 file changed, 35 insertions(+), 16 deletions

[PATCH v3 5/8] drm/rockchip: support atomic asynchronous commit

2015-12-17 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 --- Changes in v3: None Changes in v2: - serialize outstanding asynchronous commits drivers/gpu/drm/rockchip/rockchip_drm_drv.c |3 ++ drivers/gpu/drm/rockchip

[PATCH v3 6/8] drm/rockchip: direct config connecter gate and out_mode

2015-12-17 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 --- Changes in v3: None Changes in v2: None drivers/gpu/drm/rockchip

[PATCH v3 7/8] drm: bridge/dw_hdmi: add atomic API support

2015-12-17 Thread Mark Yao
: Russell King Cc: Philipp Zabel Cc: Andy Yan Cc: Fabio Estevam Cc: Thierry Reding Signed-off-by: Mark Yao --- Changes in v3: None Changes in v2: Adviced by Daniel Vetter - check DRIVER_ATOMIC at runtime to spilt atomic and not atomic. drivers/gpu/drm/bridge/dw_hdmi.c | 23

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

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

[PATCH v3 7/8] drm: bridge/dw_hdmi: add atomic API support

2015-12-17 Thread Mark Yao
: Russell King Cc: Philipp Zabel Cc: Andy Yan Cc: Fabio Estevam Cc: Thierry Reding Signed-off-by: Mark Yao --- Changes in v3: None Changes in v2: Adviced by Daniel Vetter - check DRIVER_ATOMIC at runtime to spilt atomic and not atomic. drivers/gpu/drm/bridge/dw_hdmi.c | 23

[PATCH v3 8/8] drm/rockchip: dw_hdmi: use encoder enable function

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

[PATCH v3 7/8] drm: bridge/dw_hdmi: add atomic API support

2015-12-17 Thread Mark yao
Sorry, Ops, fat finger, discard this lost thread mail. On 2015年12月17日 11:08, Mark Yao wrote: > 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. > &g

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

2015-12-17 Thread Mark yao
Sorry, Ops, fat finger, discard this lost thread mail. On 2015年12月17日 11:08, Mark Yao wrote: > encoder.enable is more compatible to atomic api than encoder.prepare/commit > > Signed-off-by: Mark Yao > --- > Changes in v3: None > Changes in v2: None > > drivers/

[PATCH 0/6] add rk3036 vop support

2015-12-17 Thread Mark Yao
ml/2015/12/16/824 [1]: https://lkml.org/lkml/2015/11/11/53 [2]: https://github.com/markyzq/libdrm.git atomictest Mark Yao (6): drm/rockchip: vop: merge vop cfg_done into vop_data drm/rockchip: vop: move interrupt registers into vop_data drm/rockchip: vop: spilt register related into rockchip

[PATCH 1/6] drm/rockchip: vop: merge vop cfg_done into vop_data

2015-12-17 Thread Mark Yao
Move cfg_done register into vop_data, so it can use at multi-vop driver Signed-off-by: Mark Yao --- drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c b/drivers/gpu/drm

[PATCH 4/6] drm/rockchip: vop: spilt scale regsters

2015-12-17 Thread Mark Yao
There are two version scale control register found on vop, scale full version found on rk3288, support extension registers. and scale little version found on rk3036, only support common scale. Signed-off-by: Mark Yao --- drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 46

[PATCH 3/6] drm/rockchip: vop: spilt register related into rockchip_reg_vop.c

2015-12-17 Thread Mark Yao
No functional updates. Spilt register related into another file would be nice to multi vop driver, Signed-off-by: Mark Yao --- drivers/gpu/drm/rockchip/Makefile |3 +- drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 325 +-- drivers/gpu/drm/rockchip

[PATCH 2/6] drm/rockchip: vop: move interrupt registers into vop_data

2015-12-17 Thread Mark Yao
Move interrupt registers into vop_data, so it can use at multi-vop driver Signed-off-by: Mark Yao --- drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 81 +++ 1 file changed, 69 insertions(+), 12 deletions(-) diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c b

[PATCH 5/6] drm/rockchip: vop: add rk3036 vop support

2015-12-17 Thread Mark Yao
d-off-by: Mark Yao --- drivers/gpu/drm/rockchip/rockchip_vop_reg.c | 296 +-- drivers/gpu/drm/rockchip/rockchip_vop_reg.h | 243 +- 2 files changed, 336 insertions(+), 203 deletions(-) diff --git a/drivers/gpu/drm/rockchip/rockchip_vop_reg.c b/driver

[PATCH 6/6] dt-bindings: add document for rk3036-vop

2015-12-17 Thread Mark Yao
Cc: Rob Herring Cc: Pawel Moll Cc: Mark Rutland Cc: Ian Campbell Cc: Kumar Gala Cc: devicetree at vger.kernel.org Signed-off-by: Mark Yao --- .../bindings/display/rockchip/rockchip-vop.txt |1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/display

[PATCH v3 0/8] drm/rockchip: covert to support atomic API

2015-12-17 Thread Mark yao
On 2015年12月17日 18:00, Heiko Stübner wrote: > Hi Mark, > > Am Donnerstag, 17. Dezember 2015, 11:01:07 schrieb Mark Yao: >> The series of patches coverting drm rockchip to atomic API, do some >> cleanup and some fixes on atomic side. >> >> TODO: fence

[PATCH v6.1 4/6] drm: rockchip: Support Synopsys DW MIPI DSI

2015-12-18 Thread Mark yao
On 2015年12月18日 17:47, Chris Zhong wrote: > + if (drm_core_check_feature(drm, DRIVER_ATOMIC)) > + drm_connector_init(drm, &dsi->connector, > +&dw_mipi_dsi_atomic_connector_funcs, > +DRM_MODE_CONNECTOR_DSI); > +

[PATCH 4/6] drm/rockchip: vop: spilt scale regsters

2015-12-21 Thread Mark yao
An HTML attachment was scrubbed... URL:

[PATCH v1.1 4/6] drm/rockchip: vop: spilt scale regsters

2015-12-21 Thread Mark Yao
There are two version scale control register found on vop, scale full version found on rk3288, support extension registers. and scale little version found on rk3036, only support common scale. Signed-off-by: Mark Yao --- Changes in v1.1 - fix scale calculation mistake. drivers/gpu/drm/rockchip

[PATCH v3 0/8] drm/rockchip: covert to support atomic API

2015-12-21 Thread Mark yao
An HTML attachment was scrubbed... URL:

[RFC PATCH v1 0/2] Introduce Innosilicon HDMI driver on Rockchip platforms

2015-12-21 Thread Mark yao
Hi Yakir I want to convert drm/rockchip to support atomic api, I'd like you can do some modify to adapt it. - Mark On 2015年11月11日 15:45, Yakir Yang wrote: > Hi guys: > > Here are a brief introduction to Innosilicon HDMI IP: > - Support HDMI 1.4a, HDCP 1.2 and DVI 1.0 standard co

[RFC PATCH v1 1/2] drm: rockchip/hdmi: add Innosilicon HDMI support

2015-12-21 Thread Mark yao
On 2015年11月11日 15:46, Yakir Yang wrote: > + hdmi->connector.polled = DRM_CONNECTOR_POLL_HPD; > + > + drm_connector_helper_add(&hdmi->connector, > + &inno_hdmi_connector_helper_funcs); > + drm_connector_init(drm, &hdmi->connector, &inno_hdmi_connector_f

[PATCH 0/6] add rk3036 vop support

2015-12-22 Thread Mark yao
Hi I want to push these patches in a couple of days, So just Ping if anyone interested or have some doubt on it. Thanks. -Mark On 2015年12月17日 11:37, Mark Yao wrote: > This series of patches add rk3036 vop support. > > RK3036 registers layout is quite difference with rk32

[PATCH v6.3 4/6] drm: rockchip: Support Synopsys DW MIPI DSI

2015-12-24 Thread Mark yao
hanges in v6.2: > - Remove the atomic feature check (Mark Yao) > > Changes in v6.1: > - Add atomic API support (Heiko Stübne) > > Changes in v6: > - Do not use bridge driver (Thierry Reding) > - Optimization the phy init sequence > > Changes in v5: None > Changes i

[GIT PULL] drm/rockchip: new features

2015-12-28 Thread Mark yao
2-28 09:08:53 +0800) -------- Mark Yao (14): drm/rockchip: Use new vblank api drm_crtc_vblank_* drm/rockchip: vop: replace dpms with enable/disable drm/rockchip: Convert to support atomic API drm/rockchip: Optimi

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

2015-12-01 Thread Mark yao
On 2015年12月01日 15:21, Daniel Vetter wrote: > On Tue, Dec 01, 2015 at 11:35:53AM +0800, Mark Yao wrote: >> 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

[PATCH] drm/rockchip: vop: power off until vop standby take effect

2015-02-02 Thread Mark yao
On 2015年01月31日 20:49, Heiko Stübner wrote: > Hi Mark, > > Am Samstag, 31. Januar 2015, 16:41:38 schrieb Mark Yao: >> Vop standby will take effect end of current frame, >> if dsp_hold_valid_irq happen, it means vop standby complete. >> >> we must wait standby

[PATCH v2] drm/rockchip: vop: power off until vop standby take effect

2015-02-02 Thread Mark Yao
Vop standby will take effect end of current frame, if dsp_hold_valid_irq happen, it means vop standby complete. we must wait standby complete when we want to disable aclk, if not, memory bus maybe dead. Reviewed-by: Heiko Stuebner Signed-off-by: Mark Yao --- Changes in v2: - use WARN_ON

[PATCH] drm/rockchip: vop: power off until vop standby take effect

2015-02-02 Thread Mark yao
On 2015年02月02日 10:07, Daniel Kurtz wrote: > Hi Mark, Heiko, > > On Sat, Jan 31, 2015 at 4:41 PM, Mark Yao wrote: >> Vop standby will take effect end of current frame, >> if dsp_hold_valid_irq happen, it means vop standby complete. >> >> we must wait standby

[PATCH v3] drm/rockchip: vop: power off until vop standby take effect

2015-02-02 Thread Mark Yao
Vop standby will take effect at end of current frame, if dsp_hold_valid_irq happen, it means vop standby complete. we must wait standby complete when we want to disable aclk, if not, memory bus maybe dead. Reviewed-by: Heiko Stuebner Reviewed-by: Daniel Kurtz Signed-off-by: Mark Yao

[PATCH] drm/rockchip: vop: power off until vop standby take effect

2015-02-04 Thread Mark yao
On 2015年02月02日 15:53, Daniel Vetter wrote: > On Mon, Feb 02, 2015 at 10:30:09AM +0800, Mark yao wrote: >> On 2015年02月02日 10:07, Daniel Kurtz wrote: >>> Hi Mark, Heiko, >>> >>> On Sat, Jan 31, 2015 at 4:41 PM, Mark Yao >>> wrote: >>&

[PATCH v4] drm/rockchip: vop: power off until vop standby take effect

2015-02-04 Thread Mark Yao
Vop standby will take effect at end of current frame, if dsp_hold_valid_irq happen, it means vop standby complete. we must wait standby complete when we want to disable aclk, if not, memory bus maybe dead. Reviewed-by: Heiko Stuebner Reviewed-by: Daniel Kurtz Signed-off-by: Mark Yao

[PATCH] drm/rockchip: vop: power off until vop standby take effect

2015-02-04 Thread Mark yao
On 2015年02月04日 11:48, Daniel Kurtz wrote: > On Feb 4, 2015 11:38 AM, "Mark yao" wrote: >> On 2015年02月02日 15:53, Daniel Vetter wrote: >>> On Mon, Feb 02, 2015 at 10:30:09AM +0800, Mark yao wrote: >>>> On 2015年02月02日 10:07, Daniel Kurtz wro

[PATCH v5] drm/rockchip: vop: power off until vop standby take effect

2015-02-04 Thread Mark Yao
Vop standby will take effect at end of current frame, if dsp_hold_valid_irq happen, it means vop standby complete. we must wait standby complete when we want to disable aclk, if not, memory bus maybe dead. Reviewed-by: Heiko Stuebner Reviewed-by: Daniel Kurtz Signed-off-by: Mark Yao

[GIT PULL] drm/rockchip: fixes

2015-04-03 Thread Mark yao
): drm: rockchip: Turn off VT switching on suspend Daniel Kurtz (1): drm/rockchip: register all connectors after bind Heiko Stuebner (1): drm/rockchip: fix clk enable disable mismatch in vop_crtc_mode_set Mark Yao (1): drm/rockchip: vop: add vop power domain support

[GIT PULL] drm/rockchip: fixes and be rockchip/drm maintainer

2015-04-20 Thread Mark yao
Hi Dave I'm interesting to maintain the rockchip drm, so add entry for Rockchip drm. and some fixes. Can you land them? The following changes since commit aa219a0dd7774e2454a5687e7d38e947a131cdee: Merge tag 'drm-intel-next-fixes-2015-04-15' of git://anongit.freedesktop.org/dr

[PATCH v2 2/2] drm/rockchip: fix error check when getting irq

2015-04-20 Thread Mark yao
On 2015年04月20日 07:00, Heiko Stübner wrote: > platform_get_irq() can return negative error values and we already test for > these. Therefore the variable holding this value should be signed to not > loose possible error values. > > Reported-by: David Binderman > Signed-off-by: Heiko Stuebner

[PATCH 1/2] drm: rockchip: Don't pass DRM fake offset to dma-api

2015-04-20 Thread Mark yao
> > Tested-by: Heiko Stuebner > > Through which tree do you want to take these patches? I guess the rockchip-drm > related patch should go through the tree that will take the dma-mapping patch, > so you'll probably need an "Ack" from Mark Yao (Cc'ed). >

[PATCH 1/2] drm: rockchip: Don't pass DRM fake offset to dma-api

2015-04-20 Thread Mark yao
On 2015年04月20日 13:34, Mark yao wrote: > On 2015年04月19日 00:55, Heiko Stübner wrote: >> Am Donnerstag, 16. April 2015, 16:41:51 schrieb Ørjan Eide: >>> Set vm_pgoff to 0 after using it to look up the GEM node, before >>> passing >>> it on rockchip_

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

2014-11-20 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 v14 3/3] dt-bindings: video: Add documentation for rockchip vop

2014-11-20 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 v14 0/3] Add drm driver for Rockchip Socs

2014-11-20 Thread Mark Yao
ctor, crtc _init should before dev-node kms object lookup idr and conector sysfs need below minor node register, I don't like split the connector init and register, so just call ->load at the midile of drm register. Mark yao (3): drm: rockchip: Add basic drm driver dt-bindings:

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

2014-11-20 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 v14 0/3] Add drm driver for Rockchip Socs

2014-11-27 Thread Mark yao
On 2014年11月27日 06:53, Dave Airlie wrote: > On 26 November 2014 at 17:34, Joerg Roedel wrote: >> On Wed, Nov 26, 2014 at 01:37:51AM +0100, Heiko Stübner wrote: >>> Joerg, is your arm/rockchip branch [0] considered stable? >>> >>> [0] >>> https://git.kernel.org/cgit/linux/kernel/git/joro/iom

[GIT PULL] core drm support for Rockchip SoCs v14

2014-11-27 Thread Mark yao
+0800) 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/rockchip-drm.txt | 19 + .../devicetree/bindings/video/rockchip-vo

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

2014-11-27 Thread Mark yao
On 2014年11月27日 10:12, Dave Airlie wrote: >>> >> Hi Dave >> Do you mean that I need send you a branch, based on drm-next, merge with >> iommu tree and rockchip drm? > Yes, grab drm-next, git pull the arm/rockchip branch from Joerg's > tree, put rockchip drm > patches on top, send me pull

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

2014-10-07 Thread Mark yao
On 2014?09?30? 21:31, Andrzej Hajda wrote: > Hi Mark, Hi Andrzej, Sorry for replying late, I have a vacation before. Thanks for your review. > On 09/30/2014 03:03 PM, Mark Yao wrote: >> From: Mark yao >> >> This patch adds the basic structure of a DRM

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

2014-10-08 Thread Mark yao
Hi Steven I'm glad to see you to discuss about rk29xx. On 2014?10?08? 06:26, Steven Newbury wrote: > I've just been discussing how this relates to rk29xx on #etnaviv. I > looked through the patch and it's good to see it's not limited to > supporting Mali GPUs. I see no reason this wouldn't

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

2014-10-08 Thread Mark Yao
vaild Changes in v9: - fix suspend and resume bug, make iommu attach and detach safely. - fix mail info style. Changes in v10: Adviced by Andrzej Hajda - check drm_dev if it's NULL at PM suspend/resume Adviced by Sean Paul - use drm_fb_helper_prepare to init fb_helper funcs - Optimized code str

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

2014-10-08 Thread Mark Yao
From: 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

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

2014-10-08 Thread Mark Yao
From: 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

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

2014-10-08 Thread Mark Yao
From: 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

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

2014-10-08 Thread Mark yao
On 2014?10?08? 12:23, Mark Yao wrote: > From: 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: &

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

2014-10-08 Thread Mark Yao
ode structure and remove some unnecessary Variables. Changes in v11: - fix mistake that use wrong variable at rockchip sys_resume/sys_suspend Mark yao (3): drm: rockchip: Add basic drm driver dt-bindings: video: Add for rockchip display subsytem dt-bindings: video: Add documentation for rockchip v

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

2014-10-08 Thread Mark Yao
From: 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

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

2014-10-08 Thread Mark Yao
From: 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

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

2014-10-08 Thread Mark Yao
From: 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

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

2014-10-17 Thread Mark yao
Hi I think Rockchip drm driver is ready now, can it land? Thanks. On 2014?10?08? 18:23, Mark Yao wrote: > This a series of patches is a DRM Driver for Rockchip Socs, add support > for vop devices. Future patches will add additional encoders/connectors, > such as eDP, HDMI. > >

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

2014-10-17 Thread Mark yao
On 2014?10?17? 08:46, Dave Airlie wrote: > On 17 October 2014 10:40, Mark yao wrote: >> Hi >> I think Rockchip drm driver is ready now, can it land? > I probably want to wait until -rc1 though I suppose since its a new > driver and self contained we might be able to see if

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

2014-10-17 Thread Mark yao
On 2014?10?17? 14:24, Heiko St?bner wrote: > Hi Mark, > > Am Freitag, 17. Oktober 2014, 12:22:53 schrieb Mark yao: >> On 2014?10?17? 08:46, Dave Airlie wrote: >>> On 17 October 2014 10:40, Mark yao wrote: >>>> Hi >>>> I think Rockchip drm driver i

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

2014-10-17 Thread Mark yao
On 2014?10?17? 16:25, Heiko St?bner wrote: > Am Freitag, 17. Oktober 2014, 16:16:01 schrieb Mark yao: >> On 2014?10?17? 14:24, Heiko St?bner wrote: >>> Hi Mark, >>> >>> Am Freitag, 17. Oktober 2014, 12:22:53 schrieb Mark yao: >>>> On 2014?10?17? 08

[GIT PULL] core drm support for Rockchip SoCs

2014-10-21 Thread Mark yao
45bb5f4e7e82b30e9e7069c73441413680c9a59f: dt-bindings: video: Add documentation for rockchip vop (2014-10-17 16:39:31 +0800) Mark yao (3): drm: rockchip: Add basic drm driver dt-bindings: video: Add for rockchip display subsytem

<    1   2   3   4   5   6