Re: [PATCH] drm/exynos: fix plane-framebuffer linkage

2014-09-17 Thread Andrzej Hajda
Hi, On 09/16/2014 08:35 AM, Daniel Vetter wrote: On Mon, Sep 15, 2014 at 12:52:17PM -0600, Daniel Drake wrote: Pageflipping currently causes some inconsistencies that lead to crashes. Just run an app that causes a CRTC pageflip in a raw X session and check that it exits cleanly and can be

[PATCH] drm/exynos: switch to universal plane API

2014-09-18 Thread Andrzej Hajda
The patch replaces legacy functions drm_plane_init() / drm_crtc_init() with drm_universal_plane_init() and drm_crtc_init_with_planes(). It allows to replace fake primary plane with the real one. Signed-off-by: Andrzej Hajda a.ha...@samsung.com --- Hi Inki, I have tested this patch with trats

Re: [PATCH] drm/exynos: switch to universal plane API

2014-09-19 Thread Andrzej Hajda
On 09/19/2014 03:02 AM, Joonyoung Shim wrote: Hi Andrzej, On 09/18/2014 10:17 PM, Andrzej Hajda wrote: The patch replaces legacy functions drm_plane_init() / drm_crtc_init() with drm_universal_plane_init() and drm_crtc_init_with_planes(). It allows to replace fake primary plane

Re: [PATCH] drm/exynos: switch to universal plane API

2014-09-19 Thread Andrzej Hajda
On 09/19/2014 01:11 PM, Joonyoung Shim wrote: Hi, On 09/19/2014 07:54 PM, Andrzej Hajda wrote: On 09/19/2014 03:02 AM, Joonyoung Shim wrote: Hi Andrzej, On 09/18/2014 10:17 PM, Andrzej Hajda wrote: The patch replaces legacy functions drm_plane_init() / drm_crtc_init

[PATCH] drm/exynos: init vblank with real number of crtcs

2014-09-19 Thread Andrzej Hajda
Initialization of vblank with MAX_CRTC caused attempts to disabling vblanks for non-existing crtcs in case drm used fewer crtcs. The patch fixes it. Signed-off-by: Andrzej Hajda a.ha...@samsung.com --- drivers/gpu/drm/exynos/exynos_drm_drv.c | 18 +- 1 file changed, 9 insertions

[PATCH] drm/exynos: remove explicit encoder/connector de-initialization

2014-09-22 Thread Andrzej Hajda
All KMS objects are destroyed by drm_mode_config_cleanup in proper order so component drivers should not care about it. Signed-off-by: Andrzej Hajda a.ha...@samsung.com --- Hi Inki, This is another spin-off of exynos_drm tests regarding your component support update. The patch is based as usual

Re: [PATCH V7 11/12] Documentation: bridge: Add documentation for ps8622 DT properties

2014-09-23 Thread Andrzej Hajda
Hi Thierry, Tomi, On 09/23/2014 08:04 AM, Thierry Reding wrote: On Mon, Sep 22, 2014 at 05:23:25PM +0300, Tomi Valkeinen wrote: On 22/09/14 11:06, Thierry Reding wrote: Why do we need a complex graph when it can be handled using a simple phandle? Maybe in your case you can handle it with

Re: [PATCH V7 11/12] Documentation: bridge: Add documentation for ps8622 DT properties

2014-09-23 Thread Andrzej Hajda
On 09/23/2014 10:35 AM, Thierry Reding wrote: On Tue, Sep 23, 2014 at 09:24:12AM +0200, Andrzej Hajda wrote: Hi Thierry, Tomi, On 09/23/2014 08:04 AM, Thierry Reding wrote: On Mon, Sep 22, 2014 at 05:23:25PM +0300, Tomi Valkeinen wrote: On 22/09/14 11:06, Thierry Reding wrote: Why do we

Re: [PATCH V7 11/12] Documentation: bridge: Add documentation for ps8622 DT properties

2014-09-23 Thread Andrzej Hajda
On 09/23/2014 11:30 AM, Tomi Valkeinen wrote: On 23/09/14 09:21, Thierry Reding wrote: Well, I can write almost any kind of bindings, and then evidently my device would work. For me, on my board. Well, that's the whole problem with DT. For many devices we only have a single setup to test

Re: [PATCH V7 11/12] Documentation: bridge: Add documentation for ps8622 DT properties

2014-09-23 Thread Andrzej Hajda
On 09/23/2014 11:30 AM, Tomi Valkeinen wrote: On 23/09/14 09:21, Thierry Reding wrote: Well, I can write almost any kind of bindings, and then evidently my device would work. For me, on my board. Well, that's the whole problem with DT. For many devices we only have a single setup to test

Re: [PATCH V7 11/12] Documentation: bridge: Add documentation for ps8622 DT properties

2014-09-23 Thread Andrzej Hajda
On 09/23/2014 12:10 PM, Thierry Reding wrote: On Tue, Sep 23, 2014 at 11:43:47AM +0200, Andrzej Hajda wrote: On 09/23/2014 10:35 AM, Thierry Reding wrote: [...] But I agree that it would be nice to unify bridges and encoders more. It should be possible to make encoder always a bridge

Re: [PATCH V7 11/12] Documentation: bridge: Add documentation for ps8622 DT properties

2014-09-23 Thread Andrzej Hajda
On 09/23/2014 01:10 PM, Laurent Pinchart wrote: On Tuesday 23 September 2014 12:02:45 Andrzej Hajda wrote: On 09/23/2014 11:30 AM, Tomi Valkeinen wrote: On 23/09/14 09:21, Thierry Reding wrote: Well, I can write almost any kind of bindings, and then evidently my device would work. For me

Re: [PATCH V7 11/12] Documentation: bridge: Add documentation for ps8622 DT properties

2014-09-23 Thread Andrzej Hajda
On 09/23/2014 01:23 PM, Laurent Pinchart wrote: On Tuesday 23 September 2014 13:18:30 Andrzej Hajda wrote: On 09/23/2014 01:10 PM, Laurent Pinchart wrote: On Tuesday 23 September 2014 12:02:45 Andrzej Hajda wrote: On 09/23/2014 11:30 AM, Tomi Valkeinen wrote: On 23/09/14 09:21, Thierry Reding

Re: [PATCH V7 11/12] Documentation: bridge: Add documentation for ps8622 DT properties

2014-09-23 Thread Andrzej Hajda
On 09/23/2014 01:52 PM, Laurent Pinchart wrote: On Tuesday 23 September 2014 13:47:40 Andrzej Hajda wrote: On 09/23/2014 01:23 PM, Laurent Pinchart wrote: On Tuesday 23 September 2014 13:18:30 Andrzej Hajda wrote: On 09/23/2014 01:10 PM, Laurent Pinchart wrote: On Tuesday 23 September 2014 12

Re: [PATCH V7 11/12] Documentation: bridge: Add documentation for ps8622 DT properties

2014-09-23 Thread Andrzej Hajda
On 09/23/2014 01:52 PM, Laurent Pinchart wrote: On Tuesday 23 September 2014 13:47:40 Andrzej Hajda wrote: On 09/23/2014 01:23 PM, Laurent Pinchart wrote: On Tuesday 23 September 2014 13:18:30 Andrzej Hajda wrote: On 09/23/2014 01:10 PM, Laurent Pinchart wrote: On Tuesday 23 September 2014 12

Re: [PATCH V7 11/12] Documentation: bridge: Add documentation for ps8622 DT properties

2014-09-24 Thread Andrzej Hajda
On 09/23/2014 04:41 PM, Thierry Reding wrote: On Tue, Sep 23, 2014 at 12:34:54PM +0200, Andrzej Hajda wrote: On 09/23/2014 12:10 PM, Thierry Reding wrote: On Tue, Sep 23, 2014 at 11:43:47AM +0200, Andrzej Hajda wrote: On 09/23/2014 10:35 AM, Thierry Reding wrote: [...] But I agree

Re: [PATCH] drm/exynos: remove ifdeferry from initialization code

2014-09-30 Thread Andrzej Hajda
Hi Inki, Gently ping. Andrzej On 09/10/2014 01:53 PM, Andrzej Hajda wrote: The patch replaces separate calls to driver (de)registration by loops over the array of drivers. As a result it significantly decreases number of ifdefs. Additionally it moves device registration related ifdefs

Re: [PATCH] drm/exynos: fix vblank handling during dpms off

2014-10-02 Thread Andrzej Hajda
Hi, +CC possible victims On 10/02/2014 12:52 PM, Inki Dae wrote: On 2014년 10월 02일 17:58, Joonyoung Shim wrote: Hi Andrzej, On 10/01/2014 05:14 PM, Andrzej Hajda wrote: The patch disables vblanks during dpms off only if pagefilp has not been finished. It also replaces drm_vblank_off

[PATCH RFC 4/4] drm/exynos: correct connector-dpms field before resuming

2014-10-03 Thread Andrzej Hajda
During system suspend after connector switch off its dpms field is set to connector previous dpms state. To properly resume dpms field should be set to its actual state (off) before resuming to previous dpms state. Signed-off-by: Andrzej Hajda a.ha...@samsung.com --- drivers/gpu/drm/exynos

[PATCH RFC 3/4] drm/exynos: remove master component PM callbacks

2014-10-03 Thread Andrzej Hajda
The patch removes master PM callbacks as their functionality is already duplicated by suspend/resume drm callbacks. Signed-off-by: Andrzej Hajda a.ha...@samsung.com --- drivers/gpu/drm/exynos/exynos_drm_drv.c | 29 - 1 file changed, 29 deletions(-) diff --git

[PATCH RFC 0/4] drm/core: restore suspend/resume calbacks in KMS drm drivers

2014-10-03 Thread Andrzej Hajda
callbacks can be called asynchronously regardless of state/existence of drm device, thus it would require additional synchronization mechanism. Callbacks re-enabling requires small changes in i915 and exynos driver. The patchset contains also fix of exynos resume callback. Regards Andrzej Andrzej

[PATCH RFC 2/4] drm/core: re-enable suspend/resume callbacks for KMS drivers

2014-10-03 Thread Andrzej Hajda
with modeset feature enabled. These callback can be used to implement suspend/resume functionality in more convenient way. The patch should not affect behavior of existing drm drivers. Signed-off-by: Andrzej Hajda a.ha...@samsung.com --- drivers/gpu/drm/drm_sysfs.c | 2 -- 1 file changed, 2 deletions

[PATCH RFC 1/4] drm/i915: set PM callbacks only if modeset is turned off

2014-10-03 Thread Andrzej Hajda
Currently suspend and resume callbacks are called only if driver have modeset feature disabled. This patch moves the check directly to i915 driver, it will allow to remove the check from the core in the future. Signed-off-by: Andrzej Hajda a.ha...@samsung.com --- drivers/gpu/drm/i915/i915_drv.c

Re: [PATCH RFC 0/4] drm/core: restore suspend/resume calbacks in KMS drm drivers

2014-10-03 Thread Andrzej Hajda
On 10/03/2014 10:31 AM, Daniel Vetter wrote: On Fri, Oct 03, 2014 at 10:24:09AM +0200, Andrzej Hajda wrote: The main intent of this patchset is to allow use of suspend/resume drm driver callbacks in KMS drivers, as these callbacks seems to me the best place to implement suspend/resume

[PATCH 2/4] drm/exynos/dsi: simplify device pointer evaluation

2014-10-07 Thread Andrzej Hajda
The patch replaces multiple evaluation of device address with local variable. Signed-off-by: Andrzej Hajda a.ha...@samsung.com --- drivers/gpu/drm/exynos/exynos_drm_dsi.c | 40 - 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/drivers/gpu/drm

[PATCH 0/4] drm/exynos/dsi: remove global display variable

2014-10-07 Thread Andrzej Hajda
Andrzej Andrzej Hajda (4): drm/exynos/dsi: remove global variable exynos_dsi_display drm/exynos/dsi: simplify device pointer evaluation drm/exynos/dsi: remove redundant encoder field drm/exynos/dsi: stop using display-ctx pointer drivers/gpu/drm/exynos/exynos_drm_dsi.c | 96

[PATCH 1/4] drm/exynos/dsi: remove global variable exynos_dsi_display

2014-10-07 Thread Andrzej Hajda
it will be possible to handle multiple DSI devices in the system. Signed-off-by: Andrzej Hajda a.ha...@samsung.com --- drivers/gpu/drm/exynos/exynos_drm_dsi.c | 38 - 1 file changed, 18 insertions(+), 20 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_dsi.c b/drivers

Re: [PATCH] drm/exynos: init vblank with real number of crtcs

2014-10-07 Thread Andrzej Hajda
Hi Inki, Gently ping. Andrzej On 09/19/2014 02:57 PM, Andrzej Hajda wrote: Initialization of vblank with MAX_CRTC caused attempts to disabling vblanks for non-existing crtcs in case drm used fewer crtcs. The patch fixes it. Signed-off-by: Andrzej Hajda a.ha...@samsung.com --- drivers

Re: [PATCH] drm/exynos: remove explicit encoder/connector de-initialization

2014-10-07 Thread Andrzej Hajda
Hi Inki, Another gently ping :) Andrzej On 09/22/2014 11:30 AM, Andrzej Hajda wrote: All KMS objects are destroyed by drm_mode_config_cleanup in proper order so component drivers should not care about it. Signed-off-by: Andrzej Hajda a.ha...@samsung.com --- Hi Inki, This is another spin

[PATCH 0/4] drm/exynos: misc fixes

2014-10-10 Thread Andrzej Hajda
patches: drm/exynos: remove explicit encoder/connector de-initialization drm/exynos: init vblank with real number of crtcs drm/exynos: remove ifdeferry from initialization code It has been tested on trats board. [1]: https://lkml.org/lkml/2014/10/2/154 Regards Andrzej Andrzej

[PATCH 2/4] drm/exynos: init kms poll at the end of initialization

2014-10-10 Thread Andrzej Hajda
HPD events can be generated by components even if drm_dev is not fully initialized, to skip such events kms poll initialization should be performed at the end of load callback followed directly by forced connection detection. Signed-off-by: Andrzej Hajda a.ha...@samsung.com --- drivers/gpu/drm

[PATCH 4/4] drm/exynos: correct connector-dpms field before resuming

2014-10-10 Thread Andrzej Hajda
During system suspend after connector switch off its dpms field is set to connector previous dpms state. To properly resume dpms field should be set to its actual state (off) before resuming to previous dpms state. Signed-off-by: Andrzej Hajda a.ha...@samsung.com --- drivers/gpu/drm/exynos

[PATCH 1/4] drm/exynos: propagate plane initialization errors

2014-10-10 Thread Andrzej Hajda
In case of error during plane initialization load callback incorrectly return success, this patch fixes it. Signed-off-by: Andrzej Hajda a.ha...@samsung.com --- drivers/gpu/drm/exynos/exynos_drm_drv.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm

[PATCH 3/4] drm/exynos: enable vblank after DPMS on

2014-10-10 Thread Andrzej Hajda
Before DPMS off driver disables vblank. It should be balanced by vblank enable after DPMS on. The patch fixes issue with page_flip ioctl not being able to acquire vblank counter introduced by patch: drm: Always reject drm_vblank_get() after drm_vblank_off() Signed-off-by: Andrzej Hajda a.ha

Re: [PATCH] drm/exynos: fix vblank handling during dpms off

2014-10-10 Thread Andrzej Hajda
On 10/02/2014 12:52 PM, Inki Dae wrote: On 2014년 10월 02일 17:58, Joonyoung Shim wrote: Hi Andrzej, On 10/01/2014 05:14 PM, Andrzej Hajda wrote: The patch disables vblanks during dpms off only if pagefilp has not been finished. It also replaces drm_vblank_off with drm_crtc_vblank_put

Re: [PATCH 02/15] drm/dsi: Constify mipi_dsi_msg

2014-10-13 Thread Andrzej Hajda
Acked-by: Andrzej Hajda a.ha...@samsung.com -- Regards Andrzej --- drivers/gpu/drm/exynos/exynos_drm_dsi.c | 2 +- include/drm/drm_mipi_dsi.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_dsi.c b/drivers/gpu/drm/exynos

Re: [PATCH V7 03/12] drm/bridge: Add helper functions for drm_bridge

2014-10-29 Thread Andrzej Hajda
On 10/29/2014 08:58 AM, Daniel Vetter wrote: On Tue, Oct 28, 2014 at 04:05:34PM +0100, Thierry Reding wrote: On Tue, Oct 28, 2014 at 08:16:44PM +0530, Ajay kumar wrote: On Tue, Oct 28, 2014 at 8:11 PM, Thierry Reding thierry.red...@gmail.com wrote: On Tue, Oct 28, 2014 at 03:19:36PM +0100,

Re: [PATCH V7 03/12] drm/bridge: Add helper functions for drm_bridge

2014-10-30 Thread Andrzej Hajda
On 10/29/2014 10:14 AM, Thierry Reding wrote: On Wed, Oct 29, 2014 at 09:57:02AM +0100, Daniel Vetter wrote: On Wed, Oct 29, 2014 at 09:38:23AM +0100, Thierry Reding wrote: On Wed, Oct 29, 2014 at 08:43:14AM +0100, Daniel Vetter wrote: On Tue, Oct 28, 2014 at 03:35:50PM +0100, Thierry Reding

Re: [RFC 1/2] PM / Domains: Power on domain early during system resume

2014-10-30 Thread Andrzej Hajda
On 10/30/2014 08:36 AM, Krzysztof Kozlowski wrote: On śro, 2014-10-29 at 10:46 -0700, Kevin Hilman wrote: Krzysztof Kozlowski k.kozlow...@samsung.com writes: When resuming the system the power domain has to be powered on early so any runtime PM aware devices could resume. This fixes

Re: [PATCH] drm/exynos: remove ifdeferry from initialization code

2014-10-30 Thread Andrzej Hajda
On 09/10/2014 01:53 PM, Andrzej Hajda wrote: The patch replaces separate calls to driver (de)registration by loops over the array of drivers. As a result it significantly decreases number of ifdefs. Additionally it moves device registration related ifdefs to header file. Signed-off

Re: [PATCH 0/4] drm/exynos/dsi: remove global display variable

2014-10-30 Thread Andrzej Hajda
On 10/07/2014 02:01 PM, Andrzej Hajda wrote: Hi Inki, Many Exynos DRM drivers uses global variables to represent associated devices in Exynos DRM internal framework. It is quite confusing, it adds data duplication and finally it does not allow to handle more than one device in system

Re: [PATCH] drm/exynos: resolve infinite loop issue on non multi-platform

2014-11-07 Thread Andrzej Hajda
On 11/06/2014 03:10 PM, Inki Dae wrote: This patch resovles the infinite loop issue incurred when Exyno drm driver is enabled but all kms drivers are disabled on Exynos board by returning -EPROBE_DEFER only in case that there is kms device registered. There are many different cases it can

Re: [PATCH] drm/exynos: resolve infinite loop issue on non multi-platform

2014-11-07 Thread Andrzej Hajda
On 11/06/2014 06:08 PM, Sjoerd Simons wrote: On Thu, 2014-11-06 at 23:10 +0900, Inki Dae wrote: This patch resovles the infinite loop issue incurred when Exyno drm driver is enabled but all kms drivers are disabled on Exynos board by returning -EPROBE_DEFER only in case that there is kms

Re: [PATCH 0/4] drm/exynos/dsi: remove global display variable

2014-11-13 Thread Andrzej Hajda
On 11/13/2014 09:50 AM, Inki Dae wrote: On 2014년 10월 07일 21:01, Andrzej Hajda wrote: Hi Inki, Many Exynos DRM drivers uses global variables to represent associated devices in Exynos DRM internal framework. It is quite confusing, it adds data duplication and finally it does not allow

[PATCH 1/7] clk: samsung: exynos4: set parent of mixer gate clock to hdmi

2014-11-13 Thread Andrzej Hajda
This dependency is not clearly documented, but it seems mixer gate clock is not working without hdmi clock. It causes system hangs during mixer access with disabled hdmi. Signed-off-by: Andrzej Hajda a.ha...@samsung.com --- drivers/clk/samsung/clk-exynos4.c | 2 +- 1 file changed, 1 insertion

[PATCH 0/7] Enable HDMI support on Exynos platforms

2014-11-13 Thread Andrzej Hajda
. Regards Andrzej Andrzej Hajda (2): clk: samsung: exynos4: set parent of mixer gate clock to hdmi ARM: dts: exynos5250: add display power domain Marek Szyprowski (4): ARM: Exynos: add support for sub-power domains ARM: dts: exynos4: add hdmi related nodes ARM: dts: exynos4: add dependency

[PATCH 5/7] ARM: dts: exynos4412-odroid: enable hdmi support

2014-11-13 Thread Andrzej Hajda
From: Marek Szyprowski m.szyprow...@samsung.com This patch adds nodes specific to Exynos4412 based Odroid X/X2/U2/U3 boards required for enabling HDMI display. Signed-off-by: Marek Szyprowski m.szyprow...@samsung.com --- arch/arm/boot/dts/exynos4412-odroid-common.dtsi | 44

[PATCH 3/7] ARM: dts: exynos4: add hdmi related nodes

2014-11-13 Thread Andrzej Hajda
From: Marek Szyprowski m.szyprow...@samsung.com This patch adds entries for HDMI, Mixer and i2c with hdmi-phy modules found in Exynos 4210 and 4x12 SoCs. Signed-off-by: Marek Szyprowski m.szyprow...@samsung.com --- arch/arm/boot/dts/exynos4.dtsi| 40 +++

[PATCH 4/7] ARM: dts: exynos4: add dependency between TV and LCD0 power domains

2014-11-13 Thread Andrzej Hajda
From: Marek Szyprowski m.szyprow...@samsung.com TV Mixer needs both TV and LCD0 domains enabled to be fully operational. This dependency is modelled by making TV power domains a sub-domain of LCD0 power domain. Signed-off-by: Marek Szyprowski m.szyprow...@samsung.com ---

[PATCH 2/7] ARM: Exynos: add support for sub-power domains

2014-11-13 Thread Andrzej Hajda
From: Marek Szyprowski m.szyprow...@samsung.com This patch adds support for making one power domain a sub-domain of other domain. This is useful for modeling power dependences for devices like TV Mixer or Camera ISP, which needs to have more than one power domain enabled to be operational.

[PATCH 7/7] ARM: dts: exynos5250: add display power domain

2014-11-13 Thread Andrzej Hajda
The patch adds domain definition and references to it in appropriate devices. Signed-off-by: Andrzej Hajda a.ha...@samsung.com --- arch/arm/boot/dts/exynos5250.dtsi | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm/boot/dts/exynos5250.dtsi b/arch/arm/boot/dts/exynos5250.dtsi

[PATCH 6/7] ARM: dts: exynos4210-universal_c210: enable hdmi support

2014-11-13 Thread Andrzej Hajda
From: Tomasz Stanislawski t.stanisl...@samsung.com This patch adds configuration of hw modules required to enable HDMI support on Universal C210 board. Signed-off-by: Tomasz Stanislawski t.stanisl...@samsung.com Signed-off-by: Marek Szyprowski m.szyprow...@samsung.com ---

[PATCH 09/14] drm/exynos/vidi: embed display into private context

2014-11-17 Thread Andrzej Hajda
it will be possible to handle multiple vidi devices in the system. Signed-off-by: Andrzej Hajda a.ha...@samsung.com --- drivers/gpu/drm/exynos/exynos_drm_vidi.c | 12 +--- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_vidi.c b/drivers/gpu/drm/exynos

[PATCH 08/14] drm/exynos/hdmi: stop using display-ctx pointer

2014-11-17 Thread Andrzej Hajda
The patch replaces accesses to display-ctx pointer by container_of construct. It will allow to remove ctx field in the future. Signed-off-by: Andrzej Hajda a.ha...@samsung.com --- drivers/gpu/drm/exynos/exynos_hdmi.c | 18 +++--- 1 file changed, 11 insertions(+), 7 deletions(-) diff

[PATCH 13/14] drm/exynos/dpi: embed display into private context

2014-11-17 Thread Andrzej Hajda
it will be possible to handle multiple dpi devices in the system. Signed-off-by: Andrzej Hajda a.ha...@samsung.com --- drivers/gpu/drm/exynos/exynos_drm_dpi.c | 39 +--- drivers/gpu/drm/exynos/exynos_drm_drv.h | 2 +- drivers/gpu/drm/exynos/exynos_drm_fimd.c | 2 +- 3 files changed

[PATCH 14/14] drm/exynos/dpi: stop using display-ctx pointer

2014-11-17 Thread Andrzej Hajda
The patch replaces accesses to display-ctx pointer by container_of construct. The field is removed as well as dpi was the last user of it. Signed-off-by: Andrzej Hajda a.ha...@samsung.com --- drivers/gpu/drm/exynos/exynos_drm_dpi.c | 5 ++--- drivers/gpu/drm/exynos/exynos_drm_drv.h | 1 - 2

[PATCH 00/14] drm/exynos: embed exynos-drm framework objects into driver private context

2014-11-17 Thread Andrzej Hajda
with following pipelines: - fimd - dpi, - fimd - dsi, - mixer - hdmi. The patchset is based on exynos-drm-next-todo + hdmi fixes patchset [2]. [1]: http://permalink.gmane.org/gmane.comp.video.dri.devel/115960 [2]: http://permalink.gmane.org/gmane.comp.video.dri.devel/118257 Regards Andrzej Andrzej

[PATCH 06/14] drm/exynos/fimd: stop using manager-ctx pointer

2014-11-17 Thread Andrzej Hajda
The patch replaces accesses to manager-ctx pointer by container_of construct. As fimd was the last user of ctx the patch removes this field as well. Signed-off-by: Andrzej Hajda a.ha...@samsung.com --- drivers/gpu/drm/exynos/exynos_drm_drv.h | 1 - drivers/gpu/drm/exynos/exynos_drm_fimd.c | 40

[PATCH 10/14] drm/exynos/vidi: stop using display-ctx pointer

2014-11-17 Thread Andrzej Hajda
The patch replaces accesses to display-ctx pointer by container_of construct. It will allow to remove ctx field in the future. Signed-off-by: Andrzej Hajda a.ha...@samsung.com --- drivers/gpu/drm/exynos/exynos_drm_vidi.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff

[PATCH 12/14] drm/exynos/dp: stop using display-ctx pointer

2014-11-17 Thread Andrzej Hajda
The patch replaces accesses to display-ctx pointer by container_of construct. It will allow to remove ctx field in the future. Signed-off-by: Andrzej Hajda a.ha...@samsung.com --- drivers/gpu/drm/exynos/exynos_dp_core.c | 18 +++--- 1 file changed, 11 insertions(+), 7 deletions

[PATCH 02/14] drm/exynos/mixer: stop using manager-ctx pointer

2014-11-17 Thread Andrzej Hajda
The patch replaces accesses to manager-ctx pointer by container_of construct. It will allow to remove ctx field in the future. Signed-off-by: Andrzej Hajda a.ha...@samsung.com --- drivers/gpu/drm/exynos/exynos_mixer.c | 30 +- 1 file changed, 17 insertions(+), 13

[PATCH 11/14] drm/exynos/dp: embed display into private context

2014-11-17 Thread Andrzej Hajda
it will be possible to handle multiple dp devices in the system. Signed-off-by: Andrzej Hajda a.ha...@samsung.com --- drivers/gpu/drm/exynos/exynos_dp_core.c | 42 ++--- drivers/gpu/drm/exynos/exynos_dp_core.h | 3 +++ 2 files changed, 21 insertions(+), 24 deletions(-) diff --git

[PATCH 05/14] drm/exynos/fimd: embed manager into private context

2014-11-17 Thread Andrzej Hajda
multiple FIMD devices in the system. Signed-off-by: Andrzej Hajda a.ha...@samsung.com --- drivers/gpu/drm/exynos/exynos_drm_fimd.c | 62 ++-- 1 file changed, 26 insertions(+), 36 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_fimd.c b/drivers/gpu/drm/exynos

[PATCH 07/14] drm/exynos/hdmi: embed display into private context

2014-11-17 Thread Andrzej Hajda
it will be possible to handle multiple hdmi devices in the system. Signed-off-by: Andrzej Hajda a.ha...@samsung.com --- drivers/gpu/drm/exynos/exynos_hdmi.c | 49 +++- 1 file changed, 20 insertions(+), 29 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_hdmi.c b/drivers

[PATCH 03/14] drm/exynos/vidi: embed manager into private context

2014-11-17 Thread Andrzej Hajda
multiple mixer devices in the system. Signed-off-by: Andrzej Hajda a.ha...@samsung.com --- drivers/gpu/drm/exynos/exynos_drm_vidi.c | 44 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_vidi.c b/drivers/gpu/drm/exynos

[PATCH 01/14] drm/exynos/mixer: embed manager into private context

2014-11-17 Thread Andrzej Hajda
multiple mixer devices in the system. Signed-off-by: Andrzej Hajda a.ha...@samsung.com --- drivers/gpu/drm/exynos/exynos_mixer.c | 86 +-- 1 file changed, 41 insertions(+), 45 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_mixer.c b/drivers/gpu/drm/exynos

[PATCH 04/14] drm/exynos/vidi: stop using manager-ctx pointer

2014-11-17 Thread Andrzej Hajda
The patch replaces accesses to manager-ctx pointer by container_of construct. It will allow to remove ctx field in the future. Signed-off-by: Andrzej Hajda a.ha...@samsung.com --- drivers/gpu/drm/exynos/exynos_drm_vidi.c | 26 +++--- 1 file changed, 15 insertions(+), 11

Re: [BUG] blocked task after exynos_drm_init

2014-11-18 Thread Andrzej Hajda
On 11/06/2014 10:06 AM, Krzysztof Kozlowski wrote: Hi, On last next (next-20141104, next-20141105) booting locks after initializing Exynos DRM (Trats2 board): [2.028283] [drm] Initialized drm 1.1.0 20060810 [ 240.505795] INFO: task swapper/0:1 blocked for more than 120 seconds. [

Re: [BUG] blocked task after exynos_drm_init

2014-11-18 Thread Andrzej Hajda
On 11/18/2014 11:52 AM, Inki Dae wrote: On 2014년 11월 18일 19:42, Andrzej Hajda wrote: On 11/06/2014 10:06 AM, Krzysztof Kozlowski wrote: Hi, On last next (next-20141104, next-20141105) booting locks after initializing Exynos DRM (Trats2 board): [2.028283] [drm] Initialized drm 1.1.0

[PATCH 1/7] clk: samsung: exynos4: set parent of sclk_hdmiphy to hdmi

2014-11-18 Thread Andrzej Hajda
sclk_hdmiphy clock is generated by HDMI-PHY and depends on hdmi gate clock. The patch models this dependency using parent/child hirerarchy. The patch fixes issue with system hangs during mixer device access, mixer uses sclk_hdmiphy descendant clock. Signed-off-by: Andrzej Hajda a.ha

Re: [RFC PATCH 1/3] drm/exynos: make kms drivers to be independent modules

2014-11-19 Thread Andrzej Hajda
(dsi_driver); +} + +static void exynos_dsi_driver_exit(void) +{ + platform_driver_unregister(dsi_driver); +} + +module_init(exynos_dsi_driver_init); +module_exit(exynos_dsi_driver_exit); + MODULE_AUTHOR(Tomasz Figa t.f...@samsung.com); MODULE_AUTHOR(Andrzej Hajda a.ha...@samsung.com

Re: [RFC PATCH v3 1/4] drm/exynos: make kms drivers to be independent drivers

2014-11-20 Thread Andrzej Hajda
...@samsung.com); MODULE_AUTHOR(Andrzej Hajda a.ha...@samsung.com); MODULE_DESCRIPTION(Samsung SoC MIPI DSI Master); diff --git a/drivers/gpu/drm/exynos/exynos_drm_fimd.c b/drivers/gpu/drm/exynos/exynos_drm_fimd.c index 0673a39..3e47625 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_fimd.c

Re: [RFC PATCH v3 1/4] drm/exynos: make kms drivers to be independent drivers

2014-11-20 Thread Andrzej Hajda
On 11/20/2014 02:56 PM, Inki Dae wrote: On 2014년 11월 20일 22:19, Andrzej Hajda wrote: On 11/20/2014 11:24 AM, Inki Dae wrote: This patch makes kms drivers to be independent drivers. For this, it removes all register codes to kms drivers from exynos_drm_drv module and adds module_init/exit

Re: [RFC PATCH v3 1/4] drm/exynos: make kms drivers to be independent drivers

2014-11-21 Thread Andrzej Hajda
On 11/20/2014 03:37 PM, Inki Dae wrote: On 2014년 11월 20일 23:23, Andrzej Hajda wrote: On 11/20/2014 02:56 PM, Inki Dae wrote: On 2014년 11월 20일 22:19, Andrzej Hajda wrote: On 11/20/2014 11:24 AM, Inki Dae wrote: This patch makes kms drivers to be independent drivers. For this, it removes all

[PATCH RESEND 2/7] ARM: Exynos: add support for sub-power domains

2014-11-23 Thread Andrzej Hajda
. Signed-off-by: Marek Szyprowski m.szyprow...@samsung.com Signed-off-by: Andrzej Hajda a.ha...@samsung.com --- Documentation/devicetree/bindings/arm/exynos/power_domain.txt | 2 ++ arch/arm/mach-exynos/pm_domains.c | 9 - 2 files changed, 10 insertions(+), 1 deletion

[PATCH RESEND 5/7] ARM: dts: exynos4412-odroid: enable hdmi support

2014-11-23 Thread Andrzej Hajda
From: Marek Szyprowski m.szyprow...@samsung.com This patch adds nodes specific to Exynos4412 based Odroid X/X2/U2/U3 boards required for enabling HDMI display. Signed-off-by: Marek Szyprowski m.szyprow...@samsung.com Signed-off-by: Andrzej Hajda a.ha...@samsung.com --- arch/arm/boot/dts

[PATCH RESEND 4/7] ARM: dts: exynos4: add dependency between TV and LCD0 power domains

2014-11-23 Thread Andrzej Hajda
From: Marek Szyprowski m.szyprow...@samsung.com TV Mixer needs both TV and LCD0 domains enabled to be fully operational. This dependency is modelled by making TV power domains a sub-domain of LCD0 power domain. Signed-off-by: Marek Szyprowski m.szyprow...@samsung.com Signed-off-by: Andrzej Hajda

[PATCH RESEND 0/7] Enable HDMI support on Exynos platforms

2014-11-23 Thread Andrzej Hajda
in mixer clock. For details see individual patches. The patchset is based on v3.18-rc4. Regards Andrzej Andrzej Hajda (2): clk: samsung: exynos4: set parent of sclk_hdmiphy to hdmi ARM: dts: exynos5250: add display power domain Marek Szyprowski (4): ARM: Exynos: add support for sub-power

[PATCH RESEND 3/7] ARM: dts: exynos4: add hdmi related nodes

2014-11-23 Thread Andrzej Hajda
From: Marek Szyprowski m.szyprow...@samsung.com This patch adds entries for HDMI, Mixer and i2c with hdmi-phy modules found in Exynos 4210 and 4x12 SoCs. Signed-off-by: Marek Szyprowski m.szyprow...@samsung.com Signed-off-by: Andrzej Hajda a.ha...@samsung.com --- arch/arm/boot/dts/exynos4.dtsi

[PATCH RESEND 1/7] clk: samsung: exynos4: set parent of sclk_hdmiphy to hdmi

2014-11-23 Thread Andrzej Hajda
sclk_hdmiphy clock is generated by HDMI-PHY and depends on hdmi gate clock. The patch models this dependency using parent/child hirerarchy. The patch fixes issue with system hangs during mixer device access, mixer uses sclk_hdmiphy descendant clock. Signed-off-by: Andrzej Hajda a.ha

[PATCH RESEND 7/7] ARM: dts: exynos5250: add display power domain

2014-11-23 Thread Andrzej Hajda
The patch adds domain definition and references to it in appropriate devices. Signed-off-by: Andrzej Hajda a.ha...@samsung.com --- arch/arm/boot/dts/exynos5250.dtsi | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/arm/boot/dts/exynos5250.dtsi b/arch/arm/boot/dts/exynos5250.dtsi

[PATCH RESEND 6/7] ARM: dts: exynos4210-universal_c210: enable hdmi support

2014-11-23 Thread Andrzej Hajda
From: Tomasz Stanislawski t.stanisl...@samsung.com This patch adds configuration of hw modules required to enable HDMI support on Universal C210 board. Signed-off-by: Tomasz Stanislawski t.stanisl...@samsung.com Signed-off-by: Marek Szyprowski m.szyprow...@samsung.com Signed-off-by: Andrzej

[RFC 00/15] Resource tracking/allocation framework

2014-12-10 Thread Andrzej Hajda
-exynos.git/log/?h=exynos-drm-next Regards Andrzej Andrzej Hajda (15): drivers/base: add track framework drivers/base: add restrack framework drm/panel: add restrack support regulator: add restrack support gpio: move DT parsing code to separate functions gpio: add restrack support clk: add

[RFC 11/15] drm/exynos/dsi: convert to restrack API

2014-12-10 Thread Andrzej Hajda
it, - simplified initialization. Signed-off-by: Andrzej Hajda a.ha...@samsung.com --- drivers/gpu/drm/exynos/exynos_drm_dsi.c | 52 + 1 file changed, 21 insertions(+), 31 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_dsi.c b/drivers/gpu/drm/exynos

[RFC 12/15] drm/exynos/dpi: use common of_graph functions

2014-12-10 Thread Andrzej Hajda
The patch removes private of_graph functions and uses common ones. Signed-off-by: Andrzej Hajda a.ha...@samsung.com --- drivers/gpu/drm/exynos/exynos_drm_dpi.c | 117 +++- 1 file changed, 24 insertions(+), 93 deletions(-) diff --git a/drivers/gpu/drm/exynos

[RFC 14/15] drm/panel/ld9040: do not power off panel on removal

2014-12-10 Thread Andrzej Hajda
Panel is powered off already by connector during drm_panel_remove call. Signed-off-by: Andrzej Hajda a.ha...@samsung.com --- drivers/gpu/drm/panel/panel-ld9040.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/panel/panel-ld9040.c b/drivers/gpu/drm/panel/panel-ld9040.c index

[RFC 15/15] drm/panel/ld9040: convert to restrack API

2014-12-10 Thread Andrzej Hajda
, - simplified initialization. Signed-off-by: Andrzej Hajda a.ha...@samsung.com --- drivers/gpu/drm/panel/panel-ld9040.c | 41 ++-- 1 file changed, 20 insertions(+), 21 deletions(-) diff --git a/drivers/gpu/drm/panel/panel-ld9040.c b/drivers/gpu/drm/panel/panel-ld9040.c index

[RFC 13/15] drm/exynos/dpi: convert to restrack API

2014-12-10 Thread Andrzej Hajda
to late initcall, unless other components delays it, - it starts/stops tracking panel presence only when necessary. Signed-off-by: Andrzej Hajda a.ha...@samsung.com --- drivers/gpu/drm/exynos/exynos_drm_dpi.c | 80 +++- drivers/gpu/drm/exynos/exynos_drm_fimd.c | 7

[RFC 10/15] drm/exynos/dsi: simplify hotplug code

2014-12-10 Thread Andrzej Hajda
from unbind code. Signed-off-by: Andrzej Hajda a.ha...@samsung.com --- drivers/gpu/drm/exynos/exynos_drm_dsi.c | 61 - 1 file changed, 38 insertions(+), 23 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_dsi.c b/drivers/gpu/drm/exynos/exynos_drm_dsi.c

[RFC 08/15] clk: add restrack support

2014-12-10 Thread Andrzej Hajda
Clocks supports different methods of lookup. The patch adds restrack support only to DT based clocks. Signed-off-by: Andrzej Hajda a.ha...@samsung.com --- drivers/clk/clk.c| 6 drivers/clk/clkdev.c | 74 include/linux/clk.h

[RFC 07/15] clk: add DT parsing function

2014-12-10 Thread Andrzej Hajda
The patch adds function for parsing Device Tree to get clock specifier. The function could be ultimately used by clock core. Signed-off-by: Andrzej Hajda a.ha...@samsung.com --- drivers/clk/clkdev.c | 23 +++ 1 file changed, 23 insertions(+) diff --git a/drivers/clk/clkdev.c

[RFC 09/15] phy: add restrack support

2014-12-10 Thread Andrzej Hajda
PHYs supports different methods of lookup. The patch adds restrack support only to DT based PHYs. Signed-off-by: Andrzej Hajda a.ha...@samsung.com --- drivers/phy/phy-core.c | 90 include/linux/phy/phy.h | 3 ++ include/linux/restrack.h | 1

[RFC 05/15] gpio: move DT parsing code to separate functions

2014-12-10 Thread Andrzej Hajda
The patch moves Device Tree parsing logic to separate function. Signed-off-by: Andrzej Hajda a.ha...@samsung.com --- drivers/gpio/gpiolib-of.c | 59 +-- drivers/gpio/gpiolib.c| 33 +++--- drivers/gpio/gpiolib.h| 4 ++-- 3

[RFC 06/15] gpio: add restrack support

2014-12-10 Thread Andrzej Hajda
GPIO supports different methods of lookup. The patch adds restrack support only to DT based GPIOs. Signed-off-by: Andrzej Hajda a.ha...@samsung.com --- drivers/gpio/gpiolib.c| 81 +++ include/linux/gpio/consumer.h | 4 +++ include/linux/restrack.h

[RFC 04/15] regulator: add restrack support

2014-12-10 Thread Andrzej Hajda
Regulators supports various methods of lookup. The patch adds restrack support only to DT based regulators. Signed-off-by: Andrzej Hajda a.ha...@samsung.com --- drivers/regulator/core.c | 77 ++ include/linux/regulator/consumer.h | 10 + include

[RFC 01/15] drivers/base: add track framework

2014-12-10 Thread Andrzej Hajda
should be used in process context. Signed-off-by: Andrzej Hajda a.ha...@samsung.com --- drivers/base/Makefile | 2 +- drivers/base/track.c | 241 ++ include/linux/track.h | 148 +++ 3 files changed, 390 insertions(+), 1

[RFC 02/15] drivers/base: add restrack framework

2014-12-10 Thread Andrzej Hajda
framework + * + * Copyright (c) 2014 Samsung Electronics Co., Ltd + * Andrzej Hajda a.ha...@samsung.com + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation

[RFC 03/15] drm/panel: add restrack support

2014-12-10 Thread Andrzej Hajda
The patch adds Device Tree restrack support to drm/panel framework. As panels supports only Device Tree based lookup all panels can be converted to restrack. Signed-off-by: Andrzej Hajda a.ha...@samsung.com --- drivers/gpu/drm/drm_panel.c | 97

Re: [RFC 04/15] regulator: add restrack support

2014-12-11 Thread Andrzej Hajda
Hi Mark, On 12/10/2014 05:07 PM, Mark Brown wrote: On Wed, Dec 10, 2014 at 04:48:22PM +0100, Andrzej Hajda wrote: Regulators supports various methods of lookup. The patch adds restrack support only to DT based regulators. Why, what does this mean and how might one use it? I've not looked

Re: [RFC 04/15] regulator: add restrack support

2014-12-12 Thread Andrzej Hajda
On 12/11/2014 02:43 PM, Russell King - ARM Linux wrote: On Thu, Dec 11, 2014 at 12:58:37PM +, Mark Brown wrote: I'd expect someone reading the change in the regulator API to have at least some idea how this fits in with the rest of the API and how to use it, and probably more importantly

<    1   2   3   4   5   6   >