[PATCH v9 09/18] drm/exynos: atomic phase 3: convert page flips

2015-05-28 Thread Gustavo Padovan
From: Gustavo Padovan gustavo.pado...@collabora.co.uk PageFlips now use the atomic helper to work through the atomic modesetting API. Async page flips are not supported yet. v2: Add .atomic_begin() step to handle the vblank part we removed from exynos page_flip code. Signed-off-by: Gustavo

[PATCH v9 13/18] drm/exynos: add exynos specific .atomic_commit()

2015-05-28 Thread Gustavo Padovan
From: Gustavo Padovan gustavo.pado...@collabora.co.uk exynos needs to update planes with the crtc enabled (mainly for the FIMD case) so this specific atomic commit changes the order of drm_atomic_helper_commit_modeset_enables() and drm_atomic_helper_commit_planes() to commit planes after we

[PATCH v9 14/18] drm/exynos: atomic dpms support

2015-05-28 Thread Gustavo Padovan
From: Gustavo Padovan gustavo.pado...@collabora.co.uk Run dpms operations through the atomic intefaces. This basically removes the .dpms() callback from econders and crtcs and use .disable() and .enable() to turn the crtc on and off. v2: Address comments by Joonyoung: - make hdmi code

[PATCH v9 18/18] drm/exynos: don't disable planes already disabled

2015-05-28 Thread Gustavo Padovan
From: Gustavo Padovan gustavo.pado...@collabora.co.uk on resume (or enable()) do not call disable_plane() on planes that are already disabled. Signed-off-by: Gustavo Padovan gustavo.pado...@collabora.co.uk --- drivers/gpu/drm/exynos/exynos_drm_fimd.c | 15 +-- 1 file changed, 1

[PATCH v9 06/18] drm/exynos: atomic phase 2: keep track of framebuffer pointer

2015-05-28 Thread Gustavo Padovan
From: Gustavo Padovan gustavo.pado...@collabora.co.uk Use drm_atomic_set_fb_for_plane() in the legacy page_flip path to keep track of the framebuffer pointer and reference. Signed-off-by: Gustavo Padovan gustavo.pado...@collabora.co.uk Reviewed-by: Joonyoung Shim jy0922.s...@samsung.com

[PATCH v9 16/18] drm/exynos: split exynos_crtc-dpms in enable() and disable()

2015-05-28 Thread Gustavo Padovan
From: Gustavo Padovan gustavo.pado...@collabora.co.uk To follow more closely the new atomic API we split the dpms() helper into the enable() and disable() helper to get exactly the same semantics. Signed-off-by: Gustavo Padovan gustavo.pado...@collabora.co.uk ---

[PATCH v9 12/18] drm/exynos: move exynos_drm_crtc_disable()

2015-05-28 Thread Gustavo Padovan
From: Gustavo Padovan gustavo.pado...@collabora.co.uk This is a preparation commit to move exynos_drm_crtc_disable() together with the future exynos_drm_crtc_enable() that will come from the split of exynos_drm_crtc_dpms() callback. Signed-off-by: Gustavo Padovan gustavo.pado...@collabora.co.uk

[PATCH v9 07/18] drm/exynos: atomic phase 3: atomic updates of planes

2015-05-28 Thread Gustavo Padovan
From: Gustavo Padovan gustavo.pado...@collabora.co.uk Now that phase 1 and 2 are complete we can switch the update/disable_plane callbacks to their atomic version. Signed-off-by: Gustavo Padovan gustavo.pado...@collabora.co.uk Reviewed-by: Joonyoung Shim jy0922.s...@samsung.com Tested-by: Tobias

[PATCH v9 17/18] drm/exynos: rename win_commit/disable to atomic-like names

2015-05-28 Thread Gustavo Padovan
From: Gustavo Padovan gustavo.pado...@collabora.co.uk Rename win_commit() helper to update_plane() and win_disable() to disable_plane(). Signed-off-by: Gustavo Padovan gustavo.pado...@collabora.co.uk --- drivers/gpu/drm/exynos/exynos7_drm_decon.c | 14 +++---

[PATCH v9 04/18] drm/exynos: atomic phase 1: add .mode_set_nofb() callback

2015-05-28 Thread Gustavo Padovan
From: Gustavo Padovan gustavo.pado...@collabora.co.uk The new atomic infrastructure needs the .mode_set_nofb() callback to update CRTC timings before setting any plane. v2: remove WARN_ON(!crtc-state) from mode_set_nofb Signed-off-by: Gustavo Padovan gustavo.pado...@collabora.co.uk Reviewed-by:

[PATCH v9 11/18] drm/exynos: don't disable unused functions at init

2015-05-28 Thread Gustavo Padovan
From: Gustavo Padovan gustavo.pado...@collabora.co.uk Everything starts disabled so we don't really need to disable anything. Signed-off-by: Gustavo Padovan gustavo.pado...@collabora.co.uk Reviewed-by: Joonyoung Shim jy0922.s...@samsung.com Tested-by: Tobias Jakobi tjak...@math.uni-bielefeld.de

Re: [PATCH v7 12/13] drm/exynos: atomic dpms support

2015-05-28 Thread Gustavo Padovan
2015-05-28 Joonyoung Shim jy0922.s...@samsung.com: On 05/28/2015 05:24 PM, Joonyoung Shim wrote: On 05/28/2015 02:39 PM, Inki Dae wrote: Hi Gustavo, On 2015년 05월 28일 05:27, Gustavo Padovan wrote: Hi Inki, 2015-05-27 Inki Dae inki@samsung.com: Hi Gustavo, On 2015년 05월

[PATCH v9 08/18] drm/exynos: atomic phase 3: use atomic .set_config helper

2015-05-28 Thread Gustavo Padovan
From: Gustavo Padovan gustavo.pado...@collabora.co.uk Now that phase 1 and 2 are complete switch .set_config helper to use the atomic one. v2: also remove .prepare() callback v3: remove .mode_set() and .mode_set_base() and encoder's .prepare() callbacks Signed-off-by: Gustavo Padovan

[PATCH v9 15/18] drm/exynos: remove unnecessary calls to disable_plane()

2015-05-28 Thread Gustavo Padovan
From: Gustavo Padovan gustavo.pado...@collabora.co.uk The planes are already disabled by the drm_atomic_helper_commit() code so we don't need to disable the in these two places. Signed-off-by: Gustavo Padovan gustavo.pado...@collabora.co.uk Reviewed-by: Joonyoung Shim jy0922.s...@samsung.com

[PATCH v9 05/18] drm/exynos: atomic phase 2: wire up state reset(), duplicate() and destroy()

2015-05-28 Thread Gustavo Padovan
From: Gustavo Padovan gustavo.pado...@collabora.co.uk Set CRTC, planes and connectors to use the default implementations from the atomic helper library. The helpers will work to keep track of state for each DRM object. Signed-off-by: Gustavo Padovan gustavo.pado...@collabora.co.uk Reviewed-by:

[PATCH v9 10/18] drm/exynos: remove exported functions from exynos_drm_plane

2015-05-28 Thread Gustavo Padovan
From: Gustavo Padovan gustavo.pado...@collabora.co.uk Now that no one is using the functions exported by exynos_drm_plane due to the atomic conversion we can make remove some of the them or make them static. v2: remove unused exynos_drm_crtc v3: fix checkpatch error (reported by Joonyoung)

[PATCH v9 02/18] drm/exynos: atomic phase 1: use drm_plane_helper_update()

2015-05-28 Thread Gustavo Padovan
From: Gustavo Padovan gustavo.pado...@collabora.co.uk Rip out the check from exynos_update_plane() and create exynos_check_plane() for the check phase enabling use to use the atomic helpers to call our check and update phases when updating planes. Update all users of exynos_update_plane()

[PATCH v9 03/18] drm/exynos: atomic phase 1: use drm_plane_helper_disable()

2015-05-28 Thread Gustavo Padovan
From: Gustavo Padovan gustavo.pado...@collabora.co.uk The atomic helper to disable planes also uses the optional .atomic_disable() helper. The unique operation it does is calling .win_disable() Signed-off-by: Gustavo Padovan gustavo.pado...@collabora.co.uk Reviewed-by: Joonyoung Shim

[PATCH v9 01/18] drm/exynos: fix source data argument for plane

2015-05-28 Thread Gustavo Padovan
From: Joonyoung Shim jy0922.s...@samsung.com The exynos_update_plane function needs 16.16 fixed point source data. Signed-off-by: Joonyoung Shim jy0922.s...@samsung.com Reviewed-by: Gustavo Padovan gustavo.pado...@collabora.co.uk --- drivers/gpu/drm/exynos/exynos_drm_crtc.c | 7 --- 1 file

[PATCH v9 00/18] drm/exynos: atomic modesetting support

2015-05-28 Thread Gustavo Padovan
From: Gustavo Padovan gustavo.pado...@collabora.co.uk Hi, Here goes the full support for atomic modesetting on exynos. I've split the patches in the various phases of atomic support. v2: fixes comments by Joonyoung - remove unused var in patch 09 - use -disable instead of

Re: [PATCH] ARM: dts: add exynos5422.dtsi to correct cpu order

2015-05-28 Thread Kevin Hilman
Marek Szyprowski m.szyprow...@samsung.com writes: Hello, On 2015-05-28 06:00, Chanho Park wrote: -Original Message- From: Joonyoung Shim [mailto:jy0922.s...@samsung.com] Sent: Thursday, May 28, 2015 10:59 AM To: Chanho Park; kg...@kernel.org; k.kozlow...@samsung.com Cc:

Re: [PATCH v7 00/25] Exynos SYSMMU (IOMMU) integration with DT andDMA-mapping subsystem

2015-05-28 Thread Krzysztof Kozlowski
On 23.05.2015 12:56, Kukjin Kim wrote: On 05/20/15 16:31, Javier Martinez Canillas wrote: Hello Marek, On Tue, May 19, 2015 at 3:20 PM, Marek Szyprowski m.szyprow...@samsung.com wrote: Hello Everyone, This is yet another attempt to get Exynos SYSMMU driver with integrated with IOMMU

Re: [PATCH 2/9] mm: Provide new get_vaddr_frames() helper

2015-05-28 Thread Andrew Morton
On Wed, 13 May 2015 15:08:08 +0200 Jan Kara j...@suse.cz wrote: Provide new function get_vaddr_frames(). This function maps virtual addresses from given start and fills given array with page frame numbers of the corresponding pages. If given start belongs to a normal vma, the function grabs

Re: [PATCH] ARM: exynos: Fix wake-up interrupts for Exynos3250

2015-05-28 Thread Krzysztof Kozlowski
On 28.05.2015 18:55, Marc Zyngier wrote: On 27/04/15 01:53, Kukjin Kim wrote: Krzysztof Kozlowski wrote: 2015-04-23 2:40 GMT+09:00 Marc Zyngier marc.zyng...@arm.com: Commit 8b283c025443 (ARM: exynos4/5: convert pmu wakeup to stacked domains) changed the Exynos PMU code to use stacked

Re: [PATCH] ARM: dts: odroidxu3: Enable USB3 regulators

2015-05-28 Thread Krzysztof Kozlowski
On 28.05.2015 19:28, Anand Moon wrote: Hi Krzysztof, I will take care of these issue in the future. Thanks. I just found that prefix was added by my email client so never mind about that but still please write proper sentences (ending with full stop). :) Best regards, Krzysztof -Anand

RE: [PATCH] ARM: dts: add exynos5422.dtsi to correct cpu order

2015-05-28 Thread Chanho Park
Hi, When adding new 5422 board we can split out CPU configuration to separate DTSI file. I already posted patches for Odroid XU3-family common DTSI file for XU3 Lite board: http://www.spinics.net/lists/linux-samsung-soc/msg44868.html IMHO, all of the exynos5422 boards will be same cpu

Re: [PATCH] ARM: dts: add exynos5422.dtsi to correct cpu order

2015-05-28 Thread Marek Szyprowski
Hello, On 2015-05-28 06:00, Chanho Park wrote: -Original Message- From: Joonyoung Shim [mailto:jy0922.s...@samsung.com] Sent: Thursday, May 28, 2015 10:59 AM To: Chanho Park; kg...@kernel.org; k.kozlow...@samsung.com Cc: cw00.c...@samsung.com; linux-samsung-soc@vger.kernel.org;

[PATCH] ARM: dts: odroidxu3: Enable USB3 regulators

2015-05-28 Thread Anand Moon
Enable regulator for usbdrd3_0 and usbdrd3_1 From the schematic pin diagram USB3_0 and USB3_1 is regulated by LDO9 and LD011. Fix the boot message of failed. [3.503539] exynos-dwc3 usb@1200: Looking up vdd33-supply from device tree [3.503556] exynos-dwc3 usb@1200: Looking up

[PATCH] clk: make several parent names const

2015-05-28 Thread Uwe Kleine-König
Since commit 2893c379461a (clk: make strings in parent name arrays const) the name of parent clocks can be const. So add more const in several clock drivers. Signed-off-by: Uwe Kleine-König u.kleine-koe...@pengutronix.de --- Hello, commit 2893c379461a isn't in Linus Torvald's tree yet, so the

Re: [PATCH] clk: make several parent names const

2015-05-28 Thread Sylwester Nawrocki
On 28/05/15 10:45, Uwe Kleine-König wrote: Since commit 2893c379461a (clk: make strings in parent name arrays const) the name of parent clocks can be const. So add more const in several clock drivers. Signed-off-by: Uwe Kleine-König u.kleine-koe...@pengutronix.de Thanks for the patch,

Re: [PATCH v8 08/14] drm/exynos: atomic phase 3: use atomic .set_config helper

2015-05-28 Thread Joonyoung Shim
On 05/28/2015 05:56 AM, Gustavo Padovan wrote: From: Gustavo Padovan gustavo.pado...@collabora.co.uk Now that phase 1 and 2 are complete switch .set_config helper to use the atomic one. v2: also remove .prepare() callback Signed-off-by: Gustavo Padovan gustavo.pado...@collabora.co.uk

Re: [PATCH v8 02/14] drm/exynos: atomic phase 1: use drm_plane_helper_update()

2015-05-28 Thread Joonyoung Shim
On 05/28/2015 05:56 AM, Gustavo Padovan wrote: From: Gustavo Padovan gustavo.pado...@collabora.co.uk Rip out the check from exynos_update_plane() and create exynos_check_plane() for the check phase enabling use to use the atomic helpers to call our check and update phases when updating

Re: [PATCH v7 12/13] drm/exynos: atomic dpms support

2015-05-28 Thread Joonyoung Shim
On 05/28/2015 02:39 PM, Inki Dae wrote: Hi Gustavo, On 2015년 05월 28일 05:27, Gustavo Padovan wrote: Hi Inki, 2015-05-27 Inki Dae inki@samsung.com: Hi Gustavo, On 2015년 05월 23일 00:40, Gustavo Padovan wrote: From: Gustavo Padovan gustavo.pado...@collabora.co.uk Run dpms operations

Re: [PATCH] ARM: dts: odroidxu3: Enable USB3 regulators

2015-05-28 Thread Krzysztof Kozlowski
On 28.05.2015 17:58, Anand Moon wrote: Enable regulator for usbdrd3_0 and usbdrd3_1 From the schematic pin diagram USB3_0 and USB3_1 is regulated by LDO9 and LD011. Please reformat statement above to proper sentence(s) without before From. Fix the boot message of failed. [3.503539]

Re: [PATCH] ARM: exynos: Fix wake-up interrupts for Exynos3250

2015-05-28 Thread Marc Zyngier
On 27/04/15 01:53, Kukjin Kim wrote: Krzysztof Kozlowski wrote: 2015-04-23 2:40 GMT+09:00 Marc Zyngier marc.zyng...@arm.com: Commit 8b283c025443 (ARM: exynos4/5: convert pmu wakeup to stacked domains) changed the Exynos PMU code to use stacked domains. This has led to a number of interrupt

Re: [PATCH v7 12/13] drm/exynos: atomic dpms support

2015-05-28 Thread Joonyoung Shim
On 05/28/2015 05:24 PM, Joonyoung Shim wrote: On 05/28/2015 02:39 PM, Inki Dae wrote: Hi Gustavo, On 2015년 05월 28일 05:27, Gustavo Padovan wrote: Hi Inki, 2015-05-27 Inki Dae inki@samsung.com: Hi Gustavo, On 2015년 05월 23일 00:40, Gustavo Padovan wrote: From: Gustavo Padovan

Re: [PATCH v2] clocksource: exynos_mct: fix for sleeping in atomic ctx handling cpu hotplug notif.

2015-05-28 Thread Marek Szyprowski
Hello, On 2015-03-12 10:11, Damian Eppel wrote: This is to fix an issue of sleeping in atomic context when processing hotplug notifications in Exynos MCT(Multi-Core Timer). The issue was reproducible on Exynos 3250 (Rinato board) and Exynos 5420 (Arndale Octa board). Whilst testing cpu hotplug

Re: [PATCH] ARM: dts: odroidxu3: Enable USB3 regulators

2015-05-28 Thread Anand Moon
Hi Krzysztof, I will take care of these issue in the future. -Anand Moon On 28 May 2015 at 14:49, Krzysztof Kozlowski k.kozlow...@samsung.com wrote: On 28.05.2015 17:58, Anand Moon wrote: Enable regulator for usbdrd3_0 and usbdrd3_1 From the schematic pin diagram USB3_0 and USB3_1 is

Re: [PATCH] clk: make several parent names const

2015-05-28 Thread Heiko Stuebner
Am Donnerstag, 28. Mai 2015, 10:45:51 schrieb Uwe Kleine-König: Since commit 2893c379461a (clk: make strings in parent name arrays const) the name of parent clocks can be const. So add more const in several clock drivers. Signed-off-by: Uwe Kleine-König u.kleine-koe...@pengutronix.de

Re: [PATCH v3 6/7] mfd: cros_ec: Support multiple EC in a system

2015-05-28 Thread Javier Martinez Canillas
Hello Lee, Thanks a lot for your feedback. On 05/27/2015 11:11 AM, Lee Jones wrote: On Fri, 22 May 2015, Javier Martinez Canillas wrote: From: Gwendal Grignou gwen...@chromium.org Chromebooks can have more than one Embedded Controller so the cros_ec device id has to be incremented for

Re: [PATCH v3 6/7] mfd: cros_ec: Support multiple EC in a system

2015-05-28 Thread Lee Jones
On Thu, 28 May 2015, Javier Martinez Canillas wrote: Hello Lee, Thanks a lot for your feedback. On 05/27/2015 11:11 AM, Lee Jones wrote: On Fri, 22 May 2015, Javier Martinez Canillas wrote: From: Gwendal Grignou gwen...@chromium.org Chromebooks can have more than one Embedded

Re: [PATCH v3 6/7] mfd: cros_ec: Support multiple EC in a system

2015-05-28 Thread Javier Martinez Canillas
Hello Lee, [...] On 05/28/2015 04:26 PM, Lee Jones wrote: + if (ec_dev-max_passthru) { + /* + * Register a PD device as well on top of this device. + * We make the following assumptions: + * - behind an EC, we have a pd + * - only one

Re: [PATCH] regulator: s2mps11: Fix GPIO suspend enable shift wrapping bug

2015-05-28 Thread Mark Brown
On Wed, May 27, 2015 at 12:22:08PM +0900, Krzysztof Kozlowski wrote: Status of enabling suspend mode for regulator was stored in bitmap-like long integer. Applied, thanks. signature.asc Description: Digital signature

Re: [PATCH v2] clocksource: exynos_mct: fix for sleeping in atomic ctx handling cpu hotplug notif.

2015-05-28 Thread Damian Eppel
On Thu, 2015-05-28 at 11:47 +0200, Marek Szyprowski wrote: Hello, On 2015-03-12 10:11, Damian Eppel wrote: This is to fix an issue of sleeping in atomic context when processing hotplug notifications in Exynos MCT(Multi-Core Timer). The issue was reproducible on Exynos 3250 (Rinato board)