Re: [PATCH 1/3] Move FIMD register headers to include/video/

2012-08-01 Thread Tomasz Figa
, possibly even more, as opposed to a single load from a variant struct). I would stay with the way used in s3c-fb driver, using variant structs describing FIMD revisions. Best regards, Tomasz Figa Best regards, Jingoo Han CC'ed Marek. To Leela Krishna Amudala, Don't add

Re: [PATCH V3 1/2] drm/exynos: add platform_device_id table and driver data for exynos5 drm fimd

2012-09-06 Thread Tomasz Figa
, because of NULL driver_data. P.S. I think you should CC linux-arm-kernel and linux-samsung-soc lists when submitting patches related to ARM and Samsung SoCs. Best regards, -- Tomasz Figa Samsung Poland RD Center ___ dri-devel mailing list dri-devel

Re: [RFC v2 0/5] Common Display Framework

2012-12-21 Thread Tomasz Figa
and s6e8ax0 LCD driver to use the v2 RFC of Common Display Framework. I have most of the work done, I have just to solve several remaining problems. Best regards, -- Tomasz Figa Samsung Poland RD Center SW Solution Development, Linux Platform ___ dri-devel

Re: [RFC v2 0/5] Common Display Framework

2012-12-27 Thread Tomasz Figa
Hi Laurent, On Monday 24 of December 2012 15:12:28 Laurent Pinchart wrote: Hi Tomasz, On Friday 21 December 2012 11:00:52 Tomasz Figa wrote: On Tuesday 18 of December 2012 08:31:30 Vikas Sajjan wrote: On 17 December 2012 20:55, Laurent Pinchart wrote: Hi Vikas, Sorry

Re: [RFC 0/6] Common Display Framework-T

2012-12-31 Thread Tomasz Figa
with the discussion about bus-less design. Best regards, -- Tomasz Figa Samsung Poland RD Center SW Solution Development, Linux Platform ___ dri-devel mailing list dri-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/dri-devel

Re: [PATCH 2/2] [RFC] video: display: Adding frame related ops to MIPI DSI video source struct

2013-01-03 Thread Tomasz Figa
used at the moment and if frame done status monitoring will be ever needed, I think a better way should be implemented. Best regards, -- Tomasz Figa Samsung Poland RD Center SW Solution Development, Linux Platform ___ dri-devel mailing list dri-devel

Re: [RFC v2 0/5] Common Display Framework

2013-01-08 Thread Tomasz Figa
On Tuesday 08 of January 2013 11:12:26 Marcus Lorentzon wrote: On 01/08/2013 09:18 AM, Laurent Pinchart wrote: On Thursday 27 December 2012 15:43:34 Tomasz Figa wrote: On Monday 24 of December 2012 15:12:28 Laurent Pinchart wrote: On Friday 21 December 2012 11:00:52 Tomasz Figa wrote

[RFC PATCH 0/4] Common Display Framework-TF

2013-01-30 Thread Tomasz Figa
over entity state to userspace using lcd device. However it can be used to demonstrate video source ops in use. Feel free to comment as much as you can. Tomasz Figa (4): video: add display-core video: add makefile kconfig video: display: Add exynos-dsi video source driver video: display

[RFC PATCH 3/4] video: display: Add exynos-dsi video source driver

2013-01-30 Thread Tomasz Figa
This patch adds new driver for DSI master block available in Samsung Exynos SoCs. The driver is designed and written specifically for Common Display Framework. Signed-off-by: Tomasz Figa t.f...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- drivers/video/display/Kconfig

[RFC PATCH 4/4] video: display: Add Samsung s6e8ax0 display panel driver

2013-01-30 Thread Tomasz Figa
This patch adds Common Display Framework driver for Samsung s6e8ax0 MIPI DSI display panel. Signed-off-by: Tomasz Figa t.f...@samsung.com Signed-off-by: Kyungmin Park kyungmin.p...@samsung.com --- drivers/video/display/Kconfig |3 + drivers/video/display/Makefile|1

Re: [RFC PATCH 0/4] Common Display Framework-TF

2013-02-03 Thread Tomasz Figa
Hi Laurent, On Saturday 02 of February 2013 11:39:59 Laurent Pinchart wrote: Hi Tomasz, Thank you for your RFC. On Wednesday 30 January 2013 16:38:59 Tomasz Figa wrote: Hi, After pretty long time of trying to adapt Exynos-specific DSI display support to Common Display Framework

Re: [RFC PATCH 4/4] video: display: Add Samsung s6e8ax0 display panel driver

2013-02-07 Thread Tomasz Figa
On Thursday 07 of February 2013 15:04:30 Vikas Sajjan wrote: Hi Figa, On Wed, Jan 30, 2013 at 9:09 PM, Tomasz Figa t.f...@samsung.com wrote: This patch adds Common Display Framework driver for Samsung s6e8ax0 MIPI DSI display panel. Signed-off-by: Tomasz Figa t.f...@samsung.com

Re: [PATCH v4] drm/exynos: prepare FIMD clocks

2013-04-21 Thread Tomasz Figa
Hi, On Monday 08 of April 2013 16:41:54 Viresh Kumar wrote: On 8 April 2013 16:37, Vikas Sajjan vikas.saj...@linaro.org wrote: While migrating to common clock framework (CCF), I found that the FIMD clocks were pulled down by the CCF. If CCF finds any clock(s) which has NOT been claimed by

Re: [PATCH v4] drm/exynos: prepare FIMD clocks

2013-04-21 Thread Tomasz Figa
On Sunday 21 of April 2013 13:23:10 Viresh Kumar wrote: On 20 April 2013 20:56, Inki Dae inki@samsung.com wrote: Sorry for being late. I think clk_prepare/unprepare are nothing to do yet in case of Exynos but those might be used for in the future so your patch looks good to me as is.

Re: [PATCH v4] drm/exynos: prepare FIMD clocks

2013-04-21 Thread Tomasz Figa
Hi Inki, On Sunday 21 of April 2013 23:05:45 Inki Dae wrote: 2013/4/21 Tomasz Figa tomasz.f...@gmail.com On Sunday 21 of April 2013 13:23:10 Viresh Kumar wrote: On 20 April 2013 20:56, Inki Dae inki@samsung.com wrote: Sorry for being late. I think clk_prepare/unprepare are nothing

Re: [PATCH v4] drm/exynos: prepare FIMD clocks

2013-04-21 Thread Tomasz Figa
Hi Inki, On Sunday 21 of April 2013 22:36:08 Inki Dae wrote: 2013/4/21 Tomasz Figa tomasz.f...@gmail.com Hi, On Monday 08 of April 2013 16:41:54 Viresh Kumar wrote: On 8 April 2013 16:37, Vikas Sajjan vikas.saj...@linaro.org wrote: While migrating to common clock framework (CCF

[PATCH] MAINTAINERS: Add linux-samsung-soc list to all related entries

2013-04-22 Thread Tomasz Figa
, even though they are related to Samsung SoCs. This patch adds pointers to linux-samsung-soc mailing list to affected entries of MAINTAINERS file. Signed-off-by: Tomasz Figa tomasz.f...@gmail.com --- MAINTAINERS | 11 +++ 1 file changed, 11 insertions(+) diff --git a/MAINTAINERS b

Re: [PATCH v4] drm/exynos: prepare FIMD clocks

2013-04-22 Thread Tomasz Figa
On Sunday 21 of April 2013 22:36:08 Inki Dae wrote: 2013/4/21 Tomasz Figa tomasz.f...@gmail.com Hi, On Monday 08 of April 2013 16:41:54 Viresh Kumar wrote: On 8 April 2013 16:37, Vikas Sajjan vikas.saj...@linaro.org wrote: While migrating to common clock framework (CCF

Re: [PATCH v4] drm/exynos: prepare FIMD clocks

2013-04-22 Thread Tomasz Figa
On Monday 22 of April 2013 10:44:00 Viresh Kumar wrote: On 21 April 2013 20:13, Tomasz Figa tomasz.f...@gmail.com wrote: 3) after those two changes, all that remains is to fix compliance with Common Clock Framework, in other words: s/clk_enable/clk_prepare_enable/ and s

Re: [PATCH v4] drm/exynos: prepare FIMD clocks

2013-04-22 Thread Tomasz Figa
. This would mean that any user that from some reasons don't want to use PM_RUNTIME, would not be able to use the driver anymore. Rafael, Kevin, do you have any opinion on this? Best regards, -- Tomasz Figa Samsung Poland RD Center SW Solution Development, Kernel and System Framework

Re: [PATCH v4] drm/exynos: prepare FIMD clocks

2013-04-22 Thread Tomasz Figa
On Monday 22 of April 2013 12:05:49 Sylwester Nawrocki wrote: On 04/22/2013 11:56 AM, Tomasz Figa wrote: On Monday 22 of April 2013 10:44:00 Viresh Kumar wrote: On 21 April 2013 20:13, Tomasz Figa tomasz.f...@gmail.com wrote: 3) after those two changes, all that remains is to fix compliance

Re: [PATCH] drm/exynos: fix multiple definition build error

2013-04-26 Thread Tomasz Figa
Hi Inki, On Friday 26 of April 2013 14:03:10 Inki Dae wrote: This patch fixes multiple definition error like below when building it as moudle with device tree support. drivers/gpu/drm/exynos/exynos_drm_g2d.o: In function `.LANCHOR1': exynos_drm_g2d.c:(.rodata+0x6c): multiple definition of

Re: [PATCH] drm/exynos: fix multiple definition build error

2013-04-26 Thread Tomasz Figa
On Friday 26 of April 2013 11:48:50 Sylwester Nawrocki wrote: On 04/26/2013 10:20 AM, Inki Dae wrote: Exactly right. it's my mistake. But now it seems that __mode_of_device_table is multi defined at fimd and g2d side so there still is module build error. :( Since all drivers seem to be

[PATCH 0/4] drm/exynos: fimd: Add support for S3C6400/S3C6410

2013-05-01 Thread Tomasz Figa
Tree support: Tested-by: Tomasz Figa tomasz.f...@gmail.com Tomasz Figa (4): drm/exynos: fimd: Hold pointer to driver data in context struct drm/exynos: fimd: Add support for FIMD versions without SHADOWCON register drm/exynos: fimd: Add support for FIMD variants with clock selection

[PATCH 1/4] drm/exynos: fimd: Hold pointer to driver data in context struct

2013-05-01 Thread Tomasz Figa
This patch adds pointer to driver data to fimd_context structure, to remove the need to call drm_fimd_get_driver_data() each time access to driver data is necessary. Signed-off-by: Tomasz Figa tomasz.f...@gmail.com --- drivers/gpu/drm/exynos/exynos_drm_fimd.c | 5 +++-- 1 file changed, 3

[PATCH 2/4] drm/exynos: fimd: Add support for FIMD versions without SHADOWCON register

2013-05-01 Thread Tomasz Figa
data. Signed-off-by: Tomasz Figa tomasz.f...@gmail.com --- drivers/gpu/drm/exynos/exynos_drm_fimd.c | 69 +++- 1 file changed, 49 insertions(+), 20 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_fimd.c b/drivers/gpu/drm/exynos/exynos_drm_fimd.c index

[PATCH 3/4] drm/exynos: fimd: Add support for FIMD variants with clock selection

2013-05-01 Thread Tomasz Figa
, this patch sets the selection bitfield to use the special clock. Signed-off-by: Tomasz Figa tomasz.f...@gmail.com --- drivers/gpu/drm/exynos/exynos_drm_fimd.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/gpu/drm/exynos/exynos_drm_fimd.c b/drivers/gpu/drm/exynos/exynos_drm_fimd.c

[PATCH 4/4] drm/exynos: fimd: Add support for S3C64xx SoCs

2013-05-01 Thread Tomasz Figa
The FIMD block present on S3C6400/S3C6410 SoCs is compatible with this driver, so it can be supported by it as well. This patch adds appropriate device IDs and driver data to enable this driver for S3C64xx SoCs. Signed-off-by: Tomasz Figa tomasz.f...@gmail.com --- drivers/gpu/drm/exynos

[PATCH] drm/exynos: fimd: Get signal polarities from device tree

2013-05-01 Thread Tomasz Figa
be retrieved, in addition to standard video timings. Signed-off-by: Tomasz Figa tomasz.f...@gmail.com --- drivers/gpu/drm/exynos/exynos_drm_fimd.c | 18 -- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_fimd.c b/drivers/gpu/drm/exynos

DMA mapping API abuse in exynos-drm

2013-05-04 Thread Tomasz Figa
Hi, Recently I've been working a bit on a DRM driver for the GPU of Samsung S3C6410 SoCs, which required me to familiarize a bit with exynos-drm, as it already contains a KMS driver which is compatible with the SoC I'm working with, making it a good place to put my driver in. Reading through

Re: Introduce a new helper framework for buffer synchronization

2013-05-13 Thread Tomasz Figa
Hi, On Monday 13 of May 2013 20:24:01 Inki Dae wrote: -Original Message- From: Maarten Lankhorst [mailto:maarten.lankho...@canonical.com] Sent: Monday, May 13, 2013 6:52 PM To: Inki Dae Cc: 'Rob Clark'; 'Daniel Vetter'; 'DRI mailing list'; linux-arm-

Re: [PATCH 0/4] drm/exynos: fimd: Add support for S3C6400/S3C6410

2013-05-19 Thread Tomasz Figa
Hi, On Wednesday 01 of May 2013 21:02:25 Tomasz Figa wrote: Much of the code in Exynos DRM subsystem is generic enough to use it for older (non-Exynos) Samsung SoCs as well, after minor modifications. This series starts adding support for previous SoCs to Exynos DRM by introducing S3C64xx

Re: [PATCH] drm/exynos: fimd: Get signal polarities from device tree

2013-05-19 Thread Tomasz Figa
Hi, On Wednesday 01 of May 2013 22:00:25 Daniel Vetter wrote: On Wed, May 01, 2013 at 09:06:09PM +0200, Tomasz Figa wrote: This patch modifies the driver to perform two stage parsing of video timings from device tree, to get timing information as struct videomode, which contains more data

Re: [PATCH] drm/exynos: wait for the completion of pending page flip

2013-05-22 Thread Tomasz Figa
Hi Inki, On Wednesday 22 of May 2013 15:37:14 Inki Dae wrote: 2013/5/22 Stéphane Marchesin stephane.marche...@gmail.com On Tue, May 21, 2013 at 9:22 PM, Inki Dae inki@samsung.com wrote: 2013/5/22 Stéphane Marchesin stephane.marche...@gmail.com On Tue, May 21, 2013 at 1:08 AM,

Re: [PATCH] drm/exynos: fimd: Get signal polarities from device tree

2013-06-05 Thread Tomasz Figa
On Wednesday 01 of May 2013 21:06:09 Tomasz Figa wrote: This patch modifies the driver to perform two stage parsing of video timings from device tree, to get timing information as struct videomode, which contains more data than struct fb_videomode. Thanks to this change, information about

Re: [PATCH 0/4] drm/exynos: fimd: Add support for S3C6400/S3C6410

2013-06-05 Thread Tomasz Figa
On Sunday 19 of May 2013 13:26:57 Tomasz Figa wrote: Hi, On Wednesday 01 of May 2013 21:02:25 Tomasz Figa wrote: Much of the code in Exynos DRM subsystem is generic enough to use it for older (non-Exynos) Samsung SoCs as well, after minor modifications. This series starts adding

Re: [PATCH] drm/exynos: fimd: Get signal polarities from device tree

2013-06-06 Thread Tomasz Figa
Hi Joonyoung, On Thursday 06 of June 2013 13:30:49 Joonyoung Shim wrote: On 05/19/2013 08:32 PM, Tomasz Figa wrote: Hi, On Wednesday 01 of May 2013 22:00:25 Daniel Vetter wrote: On Wed, May 01, 2013 at 09:06:09PM +0200, Tomasz Figa wrote: This patch modifies the driver to perform two

Re: [PATCH 1/4] drm/exynos: rename compatible strings for hdmi subsystem

2013-06-19 Thread Tomasz Figa
Hi Rahul, On Tuesday 18 of June 2013 18:19:35 Rahul Sharma wrote: This patch renames the combatible strings for hdmi, mixer, ddc and hdmiphy. It follows the convention of using compatible string which represent the SoC in which the IP was added for the first time. Signed-off-by: Rahul

Re: [PATCH 1/4] drm/exynos: rename compatible strings for hdmi subsystem

2013-06-19 Thread Tomasz Figa
@lists.freedesktop.org] On Behalf Of Lucas Stach Sent: Wednesday, June 19, 2013 4:59 PM To: Tomasz Figa Cc: kgene@samsung.com; devicetree-disc...@lists.ozlabs.org; sw0312@samsung.com; jo...@samsung.com; dri-devel@lists.freedesktop.org; linux-samsung-...@vger.kernel.org

Re: [PATCH v3 1/3] drm/exynos: add new compatible strings for hdmi subsystem

2013-06-20 Thread Tomasz Figa
Hi Rahul, On Thursday 20 of June 2013 07:41:53 Rahul Sharma wrote: Hi Tomasz, Lucas, How does this patch look to you ? Please share your views. Looks fine now. Have my Reviewed-by: Tomasz Figa t.f...@samsung.com for the whole series. Best regards, Tomasz regards, Rahul Sharma

Re: [PATCH] drm/exynos: Add missing includes

2013-07-05 Thread Tomasz Figa
On Tuesday 02 of July 2013 16:04:49 Mark Brown wrote: On Tue, Jul 02, 2013 at 09:21:32PM +0900, Inki Dae wrote: Ensure that all externally accessed functions are correctly prototyped when defined in each file by making sure the headers with the protoypes are included in the file

Re: [PATCH] drm/exynos: exynos_drm_ipp: fix return value check

2013-07-05 Thread Tomasz Figa
Yongjun yongjun_...@trendmicro.com.cn --- drivers/gpu/drm/exynos/exynos_drm_ipp.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) Reviewed-by: Tomasz Figa t.f...@samsung.com Best regards, Tomasz ___ dri-devel mailing list dri-devel

Re: DT binding review for Armada display subsystem

2013-07-15 Thread Tomasz Figa
Hi, On Sunday 14 of July 2013 00:09:55 Russell King - ARM Linux wrote: On Sun, Jul 14, 2013 at 12:16:58AM +0200, Sylwester Nawrocki wrote: On 07/13/2013 11:02 PM, Russell King - ARM Linux wrote: On Sat, Jul 13, 2013 at 10:43:29PM +0200, Sylwester Nawrocki wrote: I wasn't aware of it,

Re: [PATCH 2/3] drm/exynos: add dt-binding documentation for rotator

2013-07-22 Thread Tomasz Figa
On Monday 22 of July 2013 16:00:22 Sylwester Nawrocki wrote: On 07/22/2013 03:31 PM, Inki Dae wrote: ---Original Message- From: linux-samsung-soc-ow...@vger.kernel.org [mailto:linux-samsung-soc- ow...@vger.kernel.org] On Behalf Of Lucas Stach Sent: Monday, July 22, 2013 9:47

Re: [PATCH 1/3] drm/exynos: add device tree support for rotator

2013-07-22 Thread Tomasz Figa
On Monday 22 of July 2013 15:49:25 Chanho Park wrote: The exynos4 platform is only dt-based since 3.10, we should convert driver data and ids to dt-based parsing methods. The rotator driver has a limit table to get size limit. The minimum size of RGB888 format is 8 x 8 and maximum size is 8K x

Re: [PATCH] drm/exynos: Add check for IOMMU while passing physically continous memory flag

2013-08-01 Thread Tomasz Figa
Hi Vikas, On Thursday 01 of August 2013 16:49:32 Vikas Sajjan wrote: While trying to get boot-logo up on exynos5420 SMDK which has eDP panel connected with resolution 2560x1600, following error occured even with IOMMU enabled: [0.88] [drm:lowlevel_buffer_allocate] *ERROR* failed to

Re: [PATCH] drm/exynos: Add check for IOMMU while passing physically continous memory flag

2013-08-02 Thread Tomasz Figa
Hi Vikas, On Friday 02 of August 2013 12:08:52 Vikas Sajjan wrote: Hi Rob, On 2 August 2013 06:03, Rob Clark robdcl...@gmail.com wrote: On Thu, Aug 1, 2013 at 7:20 PM, Tomasz Figa tomasz.f...@gmail.com wrote: Hi Vikas, On Thursday 01 of August 2013 16:49:32 Vikas Sajjan wrote

Re: [PATCH V2] drm/exynos: Add fallback option to get non physically continous memory for fb

2013-08-05 Thread Tomasz Figa
. Signed-off-by: Vikas Sajjan vikas.saj...@linaro.org Signed-off-by: Arun Kumar arun...@samsung.com --- changes since v1: - Modified to add the fallback patch if CONTIG alloc fails as suggested by Rob Clark robdcl...@gmail.com and Tomasz Figa tomasz.f...@gmail.com. - changed

Re: [PATCHv2 1/5] drm/exynos: add device tree support for rotator

2013-08-09 Thread Tomasz Figa
Hi Chanho, On Friday 09 of August 2013 16:40:49 Chanho Park wrote: The exynos4 platform is only dt-based since 3.10, we should convert driver data and ids to dt-based parsing methods. The rotator driver has a limit table to get size limit of input picture. Each SoCs has slightly different

Re: [PATCHv2 2/5] ARM: dts: Add rotator node for exynos4210

2013-08-09 Thread Tomasz Figa
On Friday 09 of August 2013 16:40:50 Chanho Park wrote: This patch adds a rotator node for exynos4210. The exynos4210 has different limitation of image size compared with later chips. Signed-off-by: Chanho Park chanho61.p...@samsung.com Cc: Thomas Abraham thomas.abra...@linaro.org Cc:

Re: [PATCHv2 5/5] ARM: dts: Add dt binding documentation for exynos rotator

2013-08-09 Thread Tomasz Figa
Hi Chanho, On Friday 09 of August 2013 16:40:53 Chanho Park wrote: This patch describes each nodes of rotator and specifies a example how to bind it. Signed-off-by: Chanho Park chanho61.p...@samsung.com Cc: Thomas Abraham thomas.abra...@linaro.org Cc: Kukjin Kim kgene@samsung.com Cc:

Re: [PATCHv2 5/5] ARM: dts: Add dt binding documentation for exynos rotator

2013-08-09 Thread Tomasz Figa
On Friday 09 of August 2013 10:38:30 Stephen Warren wrote: On 08/09/2013 07:15 AM, Tomasz Figa wrote: Hi Chanho, On Friday 09 of August 2013 16:40:53 Chanho Park wrote: This patch describes each nodes of rotator and specifies a example how to bind it. diff --git a/Documentation

Re: [PATCH 0/3] Add dt support for exynos hdmiphy settings

2013-08-14 Thread Tomasz Figa
Hi Shirish, On Tuesday 13 of August 2013 12:39:27 Shirish S wrote: For various revision of chipset if the signal pattern is changed for every board, then the phy setting need to be updated correspondingly by measuring the signal. With the hdmiphy settings fixed in the driver the only way

Re: [PATCH 0/2] update pixel format setting to fimd driver

2013-08-20 Thread Tomasz Figa
a pixel format to a particular window layer drivers/gpu/drm/exynos/exynos_drm_fimd.c | 45 -- 1 files changed, 24 insertions(+), 21 deletions(-) For the whole series: Reviewed-by: Tomasz Figa t.f...@samsung.com Best regards, Tomasz

Re: [PATCH 6/6] drm/exynos: Make Exynos DRM drivers depend on OF

2013-08-22 Thread Tomasz Figa
Hi Sachin, On Thursday 22 of August 2013 11:15:23 Sachin Kamat wrote: Exynos is a DT-only platform. Add this info to Kconfig. Signed-off-by: Sachin Kamat sachin.ka...@linaro.org --- drivers/gpu/drm/exynos/Kconfig |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

Re: [PATCH 1/7] drm/exynos: move hdmiphy related code to hdmiphy driver

2013-09-29 Thread Tomasz Figa
On Monday 30 of September 2013 00:08:46 Sylwester Nawrocki wrote: On 09/28/2013 06:10 PM, Inki Dae wrote: Any opinion from Device-Tree folks? IMO, we should have same consensus on Shirish patches before proceeding. Rahul, it seems that DT people have no interest in this issue. So

Re: [PATCH 00/23] drm/exynos: Refactor parts of the exynos driver

2013-10-12 Thread Tomasz Figa
Hi Sean, On Thursday 10 of October 2013 20:30:13 Sean Paul wrote: This patchset refactors parts of the exynos driver to move it closer to a proper drm driver (rather than just implementing a drm layer on top of the hardware drivers). The hope is to get to a point where the dp/hdmi drivers

Re: [PATCH 1/4] drm/rockchip: Do not use DMA mapping API if attached to IOMMU domain

2017-02-06 Thread Tomasz Figa
Hi Mark, Thanks for reviving this series and sorry for not taking care of it myself. Please see some comments inline. On Tue, Feb 7, 2017 at 3:09 PM, Mark Yao <mark@rock-chips.com> wrote: > From: Tomasz Figa <tf...@chromium.org> > > The API is not suitable for

Re: [PATCH v2 7/7] drm/rockchip: Call drm_gem_object_release() to destroy GEM base

2017-02-07 Thread Tomasz Figa
Hi Mark, On Tue, Feb 7, 2017 at 9:37 PM, Thierry Reding <thierry.red...@gmail.com> wrote: > On Tue, Feb 07, 2017 at 04:39:33PM +0800, Mark Yao wrote: >> From: Tomasz Figa <tf...@chromium.org> >> >> When converting the driver to use shmem-backed GEMs for IOMMU-ena

[PATCH libdrm] tests: Use -pthread in CFLAGS instead of -lpthread

2017-01-26 Thread Tomasz Figa
-lpthread is not always a valid flag to pull pthread support, especially on Android it will fail to link due to a missing libpthread.so. The more generic way to build-in pthread support is to use the -pthread CFLAG, so let's use it instead. Signed-off-by: Tomasz Figa <tf...@chromium.

Re: [PATCH] drm/bridge: analogix_dp: Don't return -EBUSY when msg->size is 0 in aux transaction

2017-02-19 Thread Tomasz Figa
Hi Zain, On Mon, Feb 13, 2017 at 6:27 PM, zain wang wrote: > > The analogix_dp_transfer() will return -EBUSY if num_transferred is zero. > But sometimes we will send a bare address packet to start the transaction, > like drm_dp_i2c_xfer() show: > .. > /*

Re: [PATCH] drm/bridge: analogix_dp: Don't return -EBUSY when msg->size is 0 in aux transaction

2017-02-19 Thread Tomasz Figa
On Mon, Feb 20, 2017 at 1:04 PM, Zain Wang <w...@rock-chips.com> wrote: > 在 2017/2/20 10:40, Tomasz Figa 写道: >> On Mon, Feb 13, 2017 at 6:27 PM, zain wang <w...@rock-chips.com> wrote: >>> diff --git a/drivers/gpu/drm/bridge/analogix/analogix_dp_reg.c >>

[PATCH 0/8] drm/rockchip: Flip wait clean-up

2016-09-14 Thread Tomasz Figa
on for-next branch of Sean Paul's dogwood tree: https://cgit.freedesktop.org/~seanpaul/dogwood/log/?h=for-next git://people.freedesktop.org/~seanpaul/dogwood Tomasz Figa (8): drm/rockchip: Clear interrupt status bits before enabling drm/rockchip: Get rid of some unnecessary code drm/rockchip: Avoid

[PATCH 1/8] drm/rockchip: Clear interrupt status bits before enabling

2016-09-14 Thread Tomasz Figa
interrupt signalled, we have to clear the old bit before we update the enable register. Signed-off-by: Tomasz Figa --- drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c b/drivers/gpu/drm/rockchip

[PATCH 5/8] drm/rockchip: Replace custom wait_for_vblanks with helper

2016-09-14 Thread Tomasz Figa
unreferencing cursor framebuffers asynchronously to the commit, which was what the helper expected. Since both problems have been solved by previous patches, we can now make the driver use the generic helper and remove custom waiting code. Signed-off-by: Tomasz Figa --- drivers/gpu/drm/rockchip

[PATCH 2/8] drm/rockchip: Get rid of some unnecessary code

2016-09-14 Thread Tomasz Figa
Current code implements prepare_fb and cleanup_fb callbacks only to grab/release fb references, which is already done by atomic framework when creating/destryoing plane state. Let's remove these unused bits. Signed-off-by: Tomasz Figa --- drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 18

[PATCH 3/8] drm/rockchip: Avoid race with vblank count increment

2016-09-14 Thread Tomasz Figa
uld be relatively low and in practice almost equal to the vop hardirq handler running time. Signed-off-by: Tomasz Figa --- drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 34 + 1 file changed, 34 insertions(+) diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c b/driv

[PATCH 4/8] drm/rockchip: Unreference framebuffers from flip work

2016-09-14 Thread Tomasz Figa
of code to unreference any changed framebuffer from a flip work. Signed-off-by: Tomasz Figa --- drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 41 + 1 file changed, 41 insertions(+) diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c b/drivers/gpu/drm/rockchip

[PATCH 6/8] drm/rockchip: Do not enable vblank without event

2016-09-14 Thread Tomasz Figa
t;drm/rockchip: Enable vblank without event"). Signed-off-by: Tomasz Figa --- drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 15 --- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c b/drivers/gpu/drm/rockchip/rockchip

[PATCH 7/8] drm/rockchip: Always signal event in next vblank after cfg_done

2016-09-14 Thread Tomasz Figa
for complete FB changes before) and lets us remove the manual window update check. Signed-off-by: Tomasz Figa --- drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 54 ++--- 1 file changed, 10 insertions(+), 44 deletions(-) diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c b

[PATCH 8/8] drm/rockchip: Kill vop_plane_state

2016-09-14 Thread Tomasz Figa
After changes introduced by last patches, there is no useful data stored in vop_plane_state struct. Let's remove it and make the driver use generic plane state alone. Signed-off-by: Tomasz Figa --- drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 94 + 1 file changed

[PATCH] drm/rockchip: Respect page offset for PRIME mmap calls

2016-09-16 Thread Tomasz Figa
) Signed-off-by: Ørjan Eide Signed-off-by: Tomasz Figa Cc: stable at vger.kernel.org --- drivers/gpu/drm/rockchip/rockchip_drm_gem.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_gem.c b/drivers/gpu/drm/rockchip/rockchip_drm_

[PATCH 2/8] drm/rockchip: Get rid of some unnecessary code

2016-09-18 Thread Tomasz Figa
Hi Mark, On Sun, Sep 18, 2016 at 10:50 AM, Mark yao wrote: > On 2016年09月14日 20:54, Tomasz Figa wrote: >> >> Current code implements prepare_fb and cleanup_fb callbacks only to >> grab/release fb references, which is already done by atomic framework >> when crea

[PATCH v2 1/5] drm/rockchip: sort registers define by chip's number

2016-06-02 Thread Tomasz Figa
Hi Mark, Mark Yao rock-chips.com> writes: > > No functional changes, sort the vop registers to make > code more readable. I might have found a typo. I guess it could be just fixed in this patch, if it's already moving the code around. Please see the comments inline. > > Signed-off-by: Mark

[PATCH v2 3/5] drm/rockchip: vop: introduce VOP_REG_MASK

2016-06-02 Thread Tomasz Figa
Hi Mark, Mark Yao rock-chips.com> writes: > > Some new vop register support mask, bit[16-31] is mask, > bit[0-15] is value, the mask is correspond to the value. Please see my comments inline. > > Signed-off-by: Mark Yao rock-chips.com> > --- > drivers/gpu/drm/rockchip/rockchip_drm_vop.c |

[PATCH v2 4/5] drm/rockchip: vop: add rk3399 vop support

2016-06-02 Thread Tomasz Figa
Hi Mark, Mark Yao rock-chips.com> writes: > > There are two VOP in rk3399 chip, respectively VOP_BIG and VOP_LIT. > most registers layout of this two vop is same, their framework are both > VOP_FULL, the Major differences of this two is that: Reviewed-by: Tomasz Figa Best regards, Tomasz

[PATCH v2 5/5] dt-bindings: add documentation for Rockchip rk3399 display controllers

2016-06-02 Thread Tomasz Figa
display controllers. > +Big and little display controllers are not identical and have differing > +feature sets on the rk3399. I think this doesn't really need any explanation. If two separate compatible strings are given, it means that the hardware is different. :) Other than that, Reviewed-by: Tomasz Figa Best regards, Tomasz

[PATCH v2 1/7] iommu/rockchip: fix devm_{request, free}_irq parameter

2016-06-10 Thread Tomasz Figa
ff-by: Shunqian Zheng > --- > drivers/iommu/rockchip-iommu.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > Reviewed-by: Tomasz Figa Best regards, Tomasz

[PATCH v2 2/7] iommu/rockchip: add map_sg callback for rk_iommu_ops

2016-06-10 Thread Tomasz Figa
ned-off-by: Simon Xue > Signed-off-by: Shunqian Zheng > --- > drivers/iommu/rockchip-iommu.c | 1 + > 1 file changed, 1 insertion(+) Reviewed-by: Tomasz Figa Best regards, Tomasz

[PATCH v2 4/7] ARM: dts: rockchip: add virtual iommu for display

2016-06-10 Thread Tomasz Figa
Hi, On Wed, Jun 8, 2016 at 10:26 PM, Shunqian Zheng wrote: > An virtual iommu without reg or interrupts for display. > Adding this according to iommu driver changes. > > Signed-off-by: Shunqian Zheng > --- > arch/arm/boot/dts/rk3288.dtsi | 6 ++ > 1 file changed, 6 insertions(+) > > diff

[PATCH v2 3/7] iommu/rockchip: support virtual iommu slave device

2016-06-10 Thread Tomasz Figa
Hi, On Wed, Jun 8, 2016 at 10:26 PM, Shunqian Zheng wrote: > An virtual master device like DRM need to attach to iommu > domain to share the domain with VOP(the one with actual > iommu slave). We currently check the group is NULL to indicate > a virtual master, which is not true since we decide

[PATCH v2 5/7] drm: rockchip: use common iommu api to attach iommu

2016-06-10 Thread Tomasz Figa
Hi, On Wed, Jun 8, 2016 at 10:26 PM, Shunqian Zheng wrote: > Rockchip DRM used the arm special API, arm_iommu_*(), to attach > iommu for ARM32 SoCs. This patch convert to common iommu API > so it would support ARM64 like RK3399. > > The general idea is domain_alloc(), attach_device() and >

[PATCH v2 7/7] iommu/rockchip: enable rockchip iommu on ARM64 platform

2016-06-10 Thread Tomasz Figa
64 platform to be used with 64-bit SoCs equipped with this type of IOMMU." > Signed-off-by: Simon Xue > Signed-off-by: Shunqian Zheng > --- > drivers/iommu/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Assuming that the above is fixed: Reviewed-by: Tomasz Figa Best regards, Tomasz

[PATCH v2 6/7] iommu/rockchip: use DMA API to map, to flush cache

2016-06-10 Thread Tomasz Figa
Hi, On Wed, Jun 8, 2016 at 10:26 PM, Shunqian Zheng wrote: > Use DMA API instead of architecture internal functions like > __cpuc_flush_dcache_area() etc. > > To support the virtual device like DRM the virtual slave iommu > added in the previous patch, attaching to which the DRM can use > it

[PATCH v2 6/7] iommu/rockchip: use DMA API to map, to flush cache

2016-06-13 Thread Tomasz Figa
On Mon, Jun 13, 2016 at 6:56 PM, Shunqian Zheng wrote: > Hi > > On 2016年06月10日 17:10, Tomasz Figa wrote: >> >> Hi, >> >> On Wed, Jun 8, 2016 at 10:26 PM, Shunqian Zheng >> wrote: >>> >>> Use DMA API instead of architecture i

[PATCH v2 6/7] iommu/rockchip: use DMA API to map, to flush cache

2016-06-13 Thread Tomasz Figa
On Mon, Jun 13, 2016 at 7:31 PM, Shunqian Zheng wrote: > HI, > > > On 2016年06月13日 18:21, Tomasz Figa wrote: >> >> On Mon, Jun 13, 2016 at 6:56 PM, Shunqian Zheng >> wrote: >>> >>> Hi >>> >>> On 2016年06月10日 17:10, Tomas

[PATCH v3 05/10] drm/rockchip: analogix_dp: add rk3399 eDP support

2016-06-15 Thread Tomasz Figa
Hi Yakir, Yakir Yang rock-chips.com> writes: > >> Required properties: > >> -- compatible: "rockchip,rk3288-edp"; > >> +- compatible: "rockchip,rk3288-edp", > >> + "rockchip,rk3399-edp"; > > As commented by Tomasz on gerrit, there is a pre-existing typo here. > > Specifically

[PATCH v3 0/10]

2016-06-15 Thread Tomasz Figa
> - Make panel detect to an optional action > - correct the register bit define error in ANALOGIX_DP_PLL_REG_1 This version looks good to me. For all patches in the series: Reviewed-by: Tomasz Figa Best regards, Tomasz

[PATCH v3 3/6] iommu/rockchip: support virtual iommu slave device

2016-06-16 Thread Tomasz Figa
this patch > creates a iommu when attaching. > > Signed-off-by: Shunqian Zheng > Suggested-by: Tomasz Figa To clarify, I don't really like the idea of virtual IOMMU, however it is registered, dts or manually, but I don't think there is any other reasonable way of dealing wi

[PATCH v3 4/6] drm: rockchip: use common iommu api to attach iommu

2016-06-16 Thread Tomasz Figa
Hi Shunqian, On Wed, Jun 15, 2016 at 9:04 PM, Shunqian Zheng wrote: > Rockchip DRM used the arm special API, arm_iommu_*(), to attach > iommu for ARM32 SoCs. This patch convert to common iommu API > so it would support ARM64 like RK3399. > > The general idea is domain_alloc(), attach_device()

[PATCH v3 5/6] iommu/rockchip: use DMA API to map, to flush cache

2016-06-16 Thread Tomasz Figa
Hi Shunqian, On Wed, Jun 15, 2016 at 9:04 PM, Shunqian Zheng wrote: > Use DMA API instead of architecture internal functions like > __cpuc_flush_dcache_area() etc. > > To support the virtual device like DRM the virtual slave iommu > added in the previous patch, attaching to which the DRM can

[PATCH] drm/rockchip: Finish initialization before registering DRM device

2016-06-21 Thread Tomasz Figa
the, now unnecessary, call to drm_connector_register_all() from driver code. Fixes: f706974a69b6 ("drm/rockchip: Drop drm_driver.load/unload callbacks") Signed-off-by: Tomasz Figa --- drivers/gpu/drm/rockchip/rockchip_drm_drv.c | 18 +++--- 1 file changed, 7 inserti

[PATCH v4 0/8] iommu/rockchip: Fix bugs and enable on ARM64

2016-06-21 Thread Tomasz Figa
for rk_iommu_ops iommu/rockchip: Enable Rockchip IOMMU on ARM64 Tomasz Figa (1): drm/rockchip: Do not use DMA mapping API if attached to IOMMU domain drivers/gpu/drm/rockchip/rockchip_drm_drv.c | 100 ++-- drivers/gpu/drm/rockchip/rockchip_drm_drv.h | 3 + drivers/gpu/drm/rockchip

[PATCH v4 1/8] iommu/rockchip: Fix devm_{request,free}_irq parameter

2016-06-21 Thread Tomasz Figa
clear. Signed-off-by: Simon Xue Signed-off-by: Shunqian Zheng Reviewed-on: https://chromium-review.googlesource.com/346325 Reviewed-by: Douglas Anderson Signed-off-by: Tomasz Figa --- drivers/iommu/rockchip-iommu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/d

[PATCH v4 3/8] iommu/rockchip: Fix allocation of bases array in driver probe

2016-06-21 Thread Tomasz Figa
"iommu/rockchip: Reconstruct to support multi slaves") Signed-off-by: Shunqian Zheng Signed-off-by: Tomasz Figa --- drivers/iommu/rockchip-iommu.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/iommu/rockchip-iommu.c b/drivers/iommu/rockchip-iommu

[PATCH v4 6/8] drm/rockchip: Do not use DMA mapping API if attached to IOMMU domain

2016-06-21 Thread Tomasz Figa
not introduce any functional changes until the driver is made to attach subdevices into an IOMMU domain with the generic IOMMU API, which will happen in following patch. Based heavily on GEM implementation of Tegra DRM driver. Signed-off-by: Tomasz Figa --- drivers/gpu/drm/rockchip

[PATCH v4 4/8] iommu/rockchip: Use DMA API to manage coherency

2016-06-21 Thread Tomasz Figa
d some device. To overcome this, a simple platform device is registered for each allocated IOMMU domain. With this patch, this driver can be used on both ARM and ARM64 platforms, such as RK3288 and RK3399 respectively. Signed-off-by: Shunqian Zheng Signed-off-by: Tomasz Figa --- drivers/iommu/ro

[PATCH v4 7/8] drm/rockchip: Use common IOMMU API to attach devices

2016-06-21 Thread Tomasz Figa
gement, there is no need to use DMA API anymore and this patch wires things to use the new method. Signed-off-by: Shunqian Zheng Signed-off-by: Tomasz Figa --- drivers/gpu/drm/rockchip/rockchip_drm_drv.c | 100 +++- 1 file changed, 53 insertions(+), 47 deletions(-) diff --git a/d

[PATCH v4 8/8] iommu/rockchip: Enable Rockchip IOMMU on ARM64

2016-06-21 Thread Tomasz Figa
From: Simon Xue <x...@rock-chips.com> This patch makes it possible to compile the rockchip-iommu driver on ARM64, so that it can be used with 64-bit SoCs equipped with this type of IOMMU. Signed-off-by: Simon Xue Signed-off-by: Shunqian Zheng Signed-off-by: Tomasz Figa --- drivers

[PATCH v4 2/8] iommu/rockchip: Add map_sg callback for rk_iommu_ops

2016-06-21 Thread Tomasz Figa
https://chromium-review.googlesource.com/346326 Reviewed-by: Douglas Anderson Signed-off-by: Tomasz Figa --- drivers/iommu/rockchip-iommu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/iommu/rockchip-iommu.c b/drivers/iommu/rockchip-iommu.c index 5a9659a..53fa0d9 100644 --- a/drivers

  1   2   3   4   5   >