[PATCH 1/4] drm: add plane support

2011-07-26 Thread Joonyoung Shim
2011/7/25 Rob Clark : > On Mon, Jul 25, 2011 at 3:18 AM, Joonyoung Shim wrote: >> 2011/7/22 Jesse Barnes : >>> On Thu, 21 Jul 2011 19:30:00 +0900 >>> Joonyoung Shim wrote: >>> >>>> Hi, >>>> >>>> simple questions :) >>&

[RFC PATCH] DRM: Add drm backlight dpms interface

2011-07-28 Thread Joonyoung Shim
The backlight devices have the ability to control their power levels and it is supported by backlight framework or lcd framework. This helps use to drm the functions to control power levels of the existing backlight framework or lcd framework. Signed-off-by: Joonyoung Shim Signed-off-by

[PATCH] drm/cma: remove to make sg_table when gem cma is created

2014-03-15 Thread Joonyoung Shim
The sg_table made when gem cma is created isn't used anywhere. The sgt of struct drm_gem_cma_object will have only sg_tabel imported. Signed-off-by: Joonyoung Shim --- drivers/gpu/drm/drm_gem_cma_helper.c | 19 --- 1 file changed, 19 deletions(-) diff --git a/drivers/gp

[PATCH] drm/exynos: remove DRIVER_HAVE_IRQ feature

2014-03-21 Thread Joonyoung Shim
Exynos drm driver cannot support DRIVER_HAVE_IRQ feature because it uses driver specific one instead of routine of drm framework to install/uninstall irq handler. Signed-off-by: Joonyoung Shim --- drivers/gpu/drm/exynos/exynos_drm_drv.c | 3 +-- drivers/gpu/drm/exynos/exynos_drm_fimd.c | 10

[PATCH] drm/exynos: remove DRIVER_HAVE_IRQ feature

2014-03-21 Thread Joonyoung Shim
On 03/21/2014 03:53 PM, Daniel Kurtz wrote: > On Fri, Mar 21, 2014 at 2:39 PM, Joonyoung Shim > wrote: >> Exynos drm driver cannot support DRIVER_HAVE_IRQ feature because it uses >> driver specific one instead of routine of drm framework to >> install/uninstall irq handle

[PATCH 2/3] drm: exynos: hdmi: add exynos5 support to hdmi driver

2012-09-13 Thread Joonyoung Shim
Hi, Rahul. Overall, i think this patch causes messy codes. On 09/12/2012 09:08 PM, Rahul Sharma wrote: > Added support for exynos5 to hdmi driver. Resource init > is splitted for exynos5 and exynos4. Exynos5 hdmi driver > is dt based while exynos4 hdmi driver is not. > > Signed-off-by: Rahul Shar

[PATCH 1/3] drm: exynos: hdmi: add exynos5 support to mixer driver

2012-09-13 Thread Joonyoung Shim
Hi, Rahul. On 09/12/2012 09:08 PM, Rahul Sharma wrote: > Added support for exynos5 to drm mixer driver. Exynos5 works > with dt enabled while in exynos4 mixer device information can > be passed either way (dt or plf data). This situation is taken > cared. > > Signed-off-by: Rahul Sharma > Signed-

[PATCH 3/3] drm: exynos: hdmi: clean dependency on plf data for mixer, hdmi context

2012-09-13 Thread Joonyoung Shim
Hi, Rahul. On 09/12/2012 09:08 PM, Rahul Sharma wrote: > exynos-drm-hdmi need context pointers from hdmi and mixer. These > pointers were expected from the plf data. Cleaned this dependency What does plf data mean? > by exporting i/f which are called by hdmi, mixer driver probes > for setting th

[PATCH 1/3] drm: exynos: hdmi: add exynos5 support to mixer driver

2012-09-13 Thread Joonyoung Shim
On 09/13/2012 11:53 AM, Inki Dae wrote: > >> -Original Message- >> From: Joonyoung Shim [mailto:jy0922.shim at samsung.com] >> Sent: Thursday, September 13, 2012 10:44 AM >> To: Rahul Sharma >> Cc: dri-devel at lists.freedesktop.org; sw0312.kim at samsun

[PATCH] drm: Destroy the planes prior to destroying the associated CRTC

2012-09-20 Thread Joonyoung Shim
On 09/17/2012 06:38 PM, Chris Wilson wrote: > As during the plane cleanup, we wish to disable the hardware and > so may modify state on the associated CRTC, that CRTC must continue to > exist until we are finished. A similar issue can occur in the drm_framebuffer_cleanup(). If crtc and plane use s

[PATCH] drm: Destroy the planes prior to destroying the associated CRTC

2012-09-20 Thread Joonyoung Shim
On 09/20/2012 02:38 PM, Rob Clark wrote: > On Wed, Sep 19, 2012 at 9:52 PM, Joonyoung Shim > wrote: >> On 09/17/2012 06:38 PM, Chris Wilson wrote: >>> As during the plane cleanup, we wish to disable the hardware and >>> so may modify state on the associated CR

[PATCH] drm: Destroy the planes prior to destroying the associated CRTC

2012-09-20 Thread Joonyoung Shim
On 09/20/2012 04:49 PM, Chris Wilson wrote: > On Thu, 20 Sep 2012 15:10:39 +0900, Joonyoung Shim samsung.com> wrote: >> On 09/20/2012 02:38 PM, Rob Clark wrote: >>> On Wed, Sep 19, 2012 at 9:52 PM, Joonyoung Shim >> samsung.com> wrote: >>>> On 09/17/2

[PATCH] drm/exynos: fix to calculate CRTC shown via screen

2012-09-27 Thread Joonyoung Shim
This patch is to exactly calculate CRTC shown via screen for all cases. Refer exynos_plane_get_size() function for this. Also source position of fb is fixed when start position of CRTC is negative number. Signed-off-by: Joonyoung Shim Signed-off-by: Kyungmin Park --- drivers/gpu/drm/exynos

[PATCH] drm/exynos: fix kcalloc size of g2d cmdlist node

2012-09-27 Thread Joonyoung Shim
The size argument means just one element size when we call kcalloc, so G2D_CMDLIST_NUM * sizeof(*node) is wrong. Signed-off-by: Joonyoung Shim Signed-off-by: Kyungmin Park --- drivers/gpu/drm/exynos/exynos_drm_g2d.c |3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a

[PATCH 1/3] drm: use common drm_gem_dmabuf_release in i915/exynos drivers

2013-08-07 Thread Joonyoung Shim
On 08/07/2013 06:55 PM, Daniel Vetter wrote: > On Wed, Aug 7, 2013 at 11:40 AM, Inki Dae wrote: >>> -Original Message- >>> From: Daniel Vetter [mailto:daniel.vetter at ffwll.ch] >>> Sent: Wednesday, August 07, 2013 6:15 PM >>> To: DRI Development >>> Cc: Intel Graphics Development; Daniel

[PATCH 1/3] drm: use common drm_gem_dmabuf_release in i915/exynos drivers

2013-08-07 Thread Joonyoung Shim
On 08/07/2013 07:21 PM, Daniel Vetter wrote: > On Wed, Aug 07, 2013 at 07:18:45PM +0900, Joonyoung Shim wrote: >> On 08/07/2013 06:55 PM, Daniel Vetter wrote: >>> On Wed, Aug 7, 2013 at 11:40 AM, Inki Dae wrote: >>>>> -Original Message- >>>>&

[PATCH 2/2] drm/exynos: Modifying exynos drm fimd to support exynos5

2012-07-20 Thread Joonyoung Shim
Hi, Some minor commants. On 07/06/2012 09:28 PM, Leela Krishna Amudala wrote: > From: Prathyush K > > The name of the exynos drm fimd device is renamed to exynos-drm-fimd > and two ids are created for exynos4-fb and exynos5-fb. Please write the subject clearly this patch is to do what. How abou

[PATCH V2 0/2] video: drm: Add Device tree support to DRM-FIMD

2012-07-20 Thread Joonyoung Shim
Hi, On 07/11/2012 05:44 PM, Leela Krishna Amudala wrote: > This patch set adds device tree support for DRM-FIMD for Samsung's Exynos5250. > It includes parsing platform data from dts file. > > This patchset is based and tested on top of v3.5-rc6 > > Changes since V1: > - Corrected typo error

[PATCH libdrm 8/8] proptest: support plane properties

2012-06-07 Thread Joonyoung Shim
Hi, Rob. On 06/06/2012 03:06 AM, Rob Clark wrote: > From: Rob Clark > > Add support to display plane properties. Do you not support to set property for plane? > > Signed-off-by: Rob Clark > --- > tests/proptest/proptest.c | 32 > 1 file changed, 32 insertion

[PATCH libdrm 3/8] tests: add proptest

2012-06-07 Thread Joonyoung Shim
Hi, Rob and Paulo. On 06/06/2012 03:06 AM, Rob Clark wrote: > From: Paulo Zanoni > > A small program that allows us to see and modify properties. > > Reviewed-by: Rob Clark > Signed-off-by: Paulo Zanoni > --- > configure.ac |1 + > tests/Makefile.am |2 +- > test

[PATCH 0/11] drm/exynos: update crtc and plane

2012-06-27 Thread Joonyoung Shim
This patchset is about update of crtc and plane. The interface of crtc and plane to control overlay is integrated internally. For this some code fixings are added. Also this supports the exynos specific property for crtc and plane. Joonyoung Shim (11): drm/exynos: fix point to call

[PATCH 05/11] drm/exynos: update overlay via plane from crtc

2012-06-27 Thread Joonyoung Shim
There is no any reason to update overlay at crtc directly because the crtc uses plane. Move its code to plane and call proper functions of plane from crtc. Signed-off-by: Joonyoung Shim Signed-off-by: Kyungmin Park --- drivers/gpu/drm/exynos/exynos_drm_crtc.c| 146

[PATCH 07/11] drm/exynos: fix dpms operation for mode set

2012-06-27 Thread Joonyoung Shim
When we do mode set, the dpms mode should be ON. Don't control dpms in crtc commit function. Signed-off-by: Joonyoung Shim Signed-off-by: Kyungmin Park --- drivers/gpu/drm/exynos/exynos_drm_crtc.c| 26 +++--- drivers/gpu/drm/exynos/exynos_drm_encoder.c |

[PATCH 01/11] drm/exynos: fix point to call overlay_ops->mode_set

2012-06-27 Thread Joonyoung Shim
Call overlay->mode_set from crtc->mode_set instead of encoder->mode_set, it makes codes clearly. Signed-off-by: Joonyoung Shim Signed-off-by: Kyungmin Park --- drivers/gpu/drm/exynos/exynos_drm_crtc.c| 12 +++- drivers/gpu/drm/exynos/exynos_drm_encoder.c |9 +

[PATCH 09/11] drm/exynos: add plane enable/disable

2012-06-27 Thread Joonyoung Shim
The plane enable/disable can control only a power of plane, so they will be helpful to handle planes with dpms. Signed-off-by: Joonyoung Shim Signed-off-by: Kyungmin Park --- drivers/gpu/drm/exynos/exynos_drm_crtc.c| 20 ++ drivers/gpu/drm/exynos/exynos_drm_drv.h |2

[PATCH 02/11] drm/exynos: fix to set pipe of crtc

2012-06-27 Thread Joonyoung Shim
It is enough to set pipe of crtc to manager only when do mode_set of crtc. Signed-off-by: Joonyoung Shim Signed-off-by: Kyungmin Park --- drivers/gpu/drm/exynos/exynos_drm_crtc.c|8 +++--- drivers/gpu/drm/exynos/exynos_drm_encoder.c | 33 +++--- drivers/gpu/drm

[PATCH 11/11] drm/exynos: add property for crtc mode

2012-06-27 Thread Joonyoung Shim
d-off-by: Joonyoung Shim Signed-off-by: Kyungmin Park --- drivers/gpu/drm/exynos/exynos_drm_crtc.c | 72 ++ drivers/gpu/drm/exynos/exynos_drm_drv.h |1 + 2 files changed, 73 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_crtc.c b/dr

[PATCH 04/11] drm/exynos: use private plane for crtc

2012-06-27 Thread Joonyoung Shim
The crtc can use private plane instead it has overlay struct. It will be helpful use plane feature from crtc later. Signed-off-by: Joonyoung Shim Signed-off-by: Kyungmin Park --- drivers/gpu/drm/exynos/exynos_drm_crtc.c | 31 - drivers/gpu/drm/exynos

[PATCH 06/11] drm/exynos: add property for plane zpos

2012-06-27 Thread Joonyoung Shim
The exynos drm driver used a specific ioctl - DRM_EXYNOS_PLANE_SET_ZPOS to set zpos of plane. It can be substitute to property of plane. This patch adds a property for plane zpos and removes DRM_EXYNOS_PLANE_SET_ZPOS ioctl. Signed-off-by: Joonyoung Shim Signed-off-by: Kyungmin Park --- drivers

[PATCH 08/11] drm/exynos: remove unnecessary connector dpms control

2012-06-27 Thread Joonyoung Shim
The connector dpms should be controlled only by DPMS property and mode set. Signed-off-by: Joonyoung Shim Signed-off-by: Kyungmin Park --- drivers/gpu/drm/exynos/exynos_drm_encoder.c | 11 --- 1 files changed, 0 insertions(+), 11 deletions(-) diff --git a/drivers/gpu/drm/exynos

[PATCH 10/11] drm/exynos: add crtc disable function

2012-06-27 Thread Joonyoung Shim
The crtc disable is used to turn off private plane for crtc. Signed-off-by: Joonyoung Shim Signed-off-by: Kyungmin Park --- drivers/gpu/drm/exynos/exynos_drm_crtc.c | 11 +++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_crtc.c b

[PATCH 03/11] drm/exynos: define to_exynos_plane macro

2012-06-27 Thread Joonyoung Shim
Add macro to get struct exynos_plane from struct drm_plane pointer. Signed-off-by: Joonyoung Shim Signed-off-by: Kyungmin Park --- drivers/gpu/drm/exynos/exynos_drm_plane.c | 13 ++--- 1 files changed, 6 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/exynos

[PATCH] drm: exynos: Fix fb_videomode <-> drm_mode_modeinfo conversion

2012-03-08 Thread Joonyoung Shim
fo fields > map to each other, I found what might be a bug in the Exynos DRM driver. Could > you please check and confirm that my understanding is correct ? Good catch. You can refer Documentation/fb/framebuffer.txt to know in detail. Acked-by: Joonyoung Shim Thanks. > diff --git a/drive

[PATCH 2/2] drm/exynos: cleanup exynos_hdmi.h

2012-03-15 Thread Joonyoung Shim
The some contents of the exynos_hdmi.h are used only in exynos_hdmi.c, so move them to exynos_hdmi.c. Signed-off-by: Joonyoung Shim Signed-off-by: Kyungmin Park --- drivers/gpu/drm/exynos/exynos_hdmi.c | 36 drivers/gpu/drm/exynos/exynos_hdmi.h | 42

[PATCH 1/2] drm/exynos: remove exynos_mixer.h

2012-03-15 Thread Joonyoung Shim
The contents of exynos_mixer.h are used only in exynos_mixer.c, so separated header is unnecessary. Signed-off-by: Joonyoung Shim Signed-off-by: Kyungmin Park --- drivers/gpu/drm/exynos/exynos_mixer.c | 49 +- drivers/gpu/drm/exynos/exynos_mixer.h | 92

[PATCH 1/2] drm/exynos: remove exynos_mixer.h

2012-03-15 Thread Joonyoung Shim
On 03/15/2012 05:19 PM, Joonyoung Shim wrote: > The contents of exynos_mixer.h are used only in exynos_mixer.c, so > separated header is unnecessary. > > Signed-off-by: Joonyoung Shim > Signed-off-by: Kyungmin Park > --- > drivers/gpu/drm/exynos/

[RESEND][PATCH 01/10] drm/exynos: add HDMI version 1.4 support

2012-03-15 Thread Joonyoung Shim
On 03/15/2012 07:52 PM, Dave Airlie wrote: >> index 1ed3aae..aff2313 100644 >> --- a/include/drm/exynos_drm.h >> +++ b/include/drm/exynos_drm.h >> @@ -147,11 +147,13 @@ struct exynos_drm_common_hdmi_pd { >> * @timing: default video mode for initializing >> * @default_win: default window layer n

[PATCH 09/10] drm/exynos: add G2D driver

2012-03-15 Thread Joonyoung Shim
On 03/15/2012 07:50 PM, Dave Airlie wrote: >> G2D is a 2D graphic accelerator that supports Bit Block Transfer. This >> G2D driver is exynos drm specific and supports only exynos4x12 series. >> user application fills command set in cmdlist and once dma start request >> these cmdlists are parsed and

[PATCH 09/10] drm/exynos: add G2D driver

2012-03-16 Thread Joonyoung Shim
On 03/15/2012 07:50 PM, Dave Airlie wrote: >> G2D is a 2D graphic accelerator that supports Bit Block Transfer. This >> G2D driver is exynos drm specific and supports only exynos4x12 series. >> user application fills command set in cmdlist and once dma start request >> these cmdlists are parsed and

[PATCH] Add simple g2dtest

2012-03-16 Thread Joonyoung Shim
This can test only solid color fill. Signed-off-by: Joonyoung Shim --- configure.ac |1 + include/drm/exynos_drm.h | 185 ++ tests/Makefile.am |2 +- tests/g2dtest/Makefile.am | 16 ++ tests/g2dtest/g2d.h | 64 + tests/g2dtest/g2d_reg.h

[PATCH v2 09/14] drm/exynos: add G2D driver

2012-03-20 Thread Joonyoung Shim
On 03/19/2012 09:25 PM, Dave Airlie wrote: > On Fri, Mar 16, 2012 at 9:47 AM, Inki Dae wrote: >> From: Joonyoung Shim >> >> The G2D is a 2D graphic accelerator that supports Bit Block Transfer. >> This G2D driver is exynos drm specific and supports only G2D(version >

[PATCH 03/15] drm/exynos/ipp: move file reference from memory to command node

2014-08-26 Thread Joonyoung Shim
Hi Andrzej, On 08/22/2014 04:52 PM, Andrzej Hajda wrote: > Command node should contain file reference to distinguish commands > created by different processes. > > Signed-off-by: Andrzej Hajda > --- > drivers/gpu/drm/exynos/exynos_drm_ipp.c | 5 ++--- > drivers/gpu/drm/exynos/exynos_drm_ipp.h |

[PATCH 03/15] drm/exynos/ipp: move file reference from memory to command node

2014-08-26 Thread Joonyoung Shim
On 08/26/2014 11:55 AM, Joonyoung Shim wrote: > Hi Andrzej, > > On 08/22/2014 04:52 PM, Andrzej Hajda wrote: >> Command node should contain file reference to distinguish commands >> created by different processes. >> >> Signed-off-by: Andrzej Hajda

[PATCH 06/15] drm/exynos/ipp: free partially allocated resources on error

2014-08-26 Thread Joonyoung Shim
Hi Andrzej, On 08/22/2014 04:52 PM, Andrzej Hajda wrote: > In case of allocation errors some already allocated buffers > were not freed. The patch fixes it. > > Signed-off-by: Andrzej Hajda > --- > drivers/gpu/drm/exynos/exynos_drm_ipp.c | 68 > - > 1 file chang

[PATCH 14/15] drm/exynos/fimc: simplify buffer queuing

2014-08-26 Thread Joonyoung Shim
Hi Andrzej, On 08/22/2014 04:52 PM, Andrzej Hajda wrote: > The patch removes redundant checks, redundant HW reads > and simplifies code. > > Signed-off-by: Andrzej Hajda > --- > drivers/gpu/drm/exynos/exynos_drm_fimc.c | 64 > > 1 file changed, 15 insertions(+)

[PATCH 15/15] drm/exynos/fimc: fix source buffer registers

2014-08-26 Thread Joonyoung Shim
Hi Andrzej, On 08/22/2014 04:52 PM, Andrzej Hajda wrote: > FIMC in default mode of operation uses only one input buffer, > but the driver used also second buffer, as a result only the > first frame was processed correctly. The patch fixes it. I can't understand well, then we don't need to disting

[PATCH 15/15] drm/exynos/fimc: fix source buffer registers

2014-08-26 Thread Joonyoung Shim
On 08/26/2014 03:35 PM, Andrzej Hajda wrote: > On 08/26/2014 07:57 AM, Joonyoung Shim wrote: >> Hi Andrzej, >> >> On 08/22/2014 04:52 PM, Andrzej Hajda wrote: >>> FIMC in default mode of operation uses only one input buffer, >>> but the driver used a

[PATCH 00/15] drm/exynos/ipp: image post processing fixes and improvements, part four

2014-08-26 Thread Joonyoung Shim
> drm/exynos/fimc: fix source buffer registers With some minor comments, Reviewed-by: Joonyoung Shim Thanks. > > drivers/gpu/drm/exynos/exynos_drm_fimc.c| 90 ++- > drivers/gpu/drm/exynos/exynos_drm_gsc.c | 3 +- > drivers/gpu/drm/exynos/exynos_drm_ipp.c

[PATCH] drm/cma: remove to allocate shmfs backing store

2014-08-27 Thread Joonyoung Shim
Initialize GEM object using drm_gem_private_object_init instead of drm_gem_object_init. It doesn't need to have shmfs backing store because the CMA GEM object uses CMA area. Signed-off-by: Joonyoung Shim --- drivers/gpu/drm/drm_gem_cma_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 del

[PATCH 06/15] drm/exynos/ipp: free partially allocated resources on error

2014-08-28 Thread Joonyoung Shim
Hi, On 08/27/2014 07:27 PM, Andrzej Hajda wrote: > On 08/26/2014 07:00 AM, Joonyoung Shim wrote: >> Hi Andrzej, >> >> On 08/22/2014 04:52 PM, Andrzej Hajda wrote: >>> In case of allocation errors some already allocated buffers >>> were not freed. The patch f

[PATCH v2 16/17] drm/exynos/ipp: remove file argument from node related functions

2014-08-29 Thread Joonyoung Shim
Hi Andrzej, On 08/28/2014 06:07 PM, Andrzej Hajda wrote: > Since file pointer is preserved in c_node passing it > as argument in node functions is redundant. > > Signed-off-by: Andrzej Hajda > --- > drivers/gpu/drm/exynos/exynos_drm_ipp.c | 14 ++ > 1 file changed, 6 insertions(+),

[PATCH v2 17/17] drm/exynos/ipp: add file checks for ioctls

2014-08-29 Thread Joonyoung Shim
Hi Andrzej, On 08/28/2014 06:07 PM, Andrzej Hajda wrote: > Process should not have access to ipp nodes created by another > process. The patch adds necessary checks. > > Signed-off-by: Andrzej Hajda > --- > drivers/gpu/drm/exynos/exynos_drm_ipp.c | 15 ++- > 1 file changed, 10 inser

[PATCH] drm: add checking DRM_FORMAT_NV12MT

2014-08-29 Thread Joonyoung Shim
Hi Dave, On 07/29/2014 01:08 AM, Ville Syrj?l? wrote: > On Mon, Jul 28, 2014 at 11:56:59AM -0400, Rob Clark wrote: >> On Mon, Jul 28, 2014 at 12:47 AM, Joonyoung Shim >> wrote: >>> If user NV12MT uses as pixel format, the Addfb2 ioctl is failed because >>> of m

[PATCH v2] drm/exynos: remove DRIVER_HAVE_IRQ feature

2014-04-12 Thread Joonyoung Shim
Exynos drm driver cannot support DRIVER_HAVE_IRQ feature because it uses driver specific one instead of routine of drm framework to install/uninstall irq handler. Signed-off-by: Joonyoung Shim --- Changelog from v1: - Keep below code drm_dev->irq_enabled = true; drivers/gpu/drm/exy

[PATCH] drm: exynos: hdmi: simplify extracting hpd-gpio from DT

2014-04-14 Thread Joonyoung Shim
Hi Tomasz, On 04/14/2014 07:07 PM, Tomasz Stanislawski wrote: > This patch eliminates redundant checks while retrieving HPD gpio from DT > during > HDMI's probe(). > > Signed-off-by: Tomasz Stanislawski > --- > drivers/gpu/drm/exynos/exynos_hdmi.c | 13 - > 1 file changed, 4 ins

[PATCH 3/4] drm: exynos: add compatibles for HDMI and Mixer chips and exynos4210 SoC

2014-04-15 Thread Joonyoung Shim
Hi Tomasz, On 04/15/2014 12:00 AM, Tomasz Stanislawski wrote: > This patch add proper compatibles for Mixer and HDMI chip > available on exynos4210 SoCs. > > Signed-off-by: Tomasz Stanislawski > --- > drivers/gpu/drm/exynos/exynos_hdmi.c |3 +++ > drivers/gpu/drm/exynos/exynos_mixer.c |

[PATCHv3 1/5] drm: exynos: hdmi: remove usage of struct s5p_hdmi_platform_data

2014-04-17 Thread Joonyoung Shim
Hi Tomasz, On 04/17/2014 12:12 AM, Tomasz Stanislawski wrote: > This patch continues shift of DRM EXYNOS to DT-only configuration. > The usage of the old structure for HDMI's platform data is > removed. > > Signed-off-by: Tomasz Stanislawski > --- > drivers/gpu/drm/exynos/exynos_hdmi.c | 30 +

[PATCH 2/2] drm/exynos: Add device tree based discovery support for G2D

2013-02-05 Thread Joonyoung Shim
On 02/05/2013 12:03 PM, Inki Dae wrote: > 2013/2/4 Sachin Kamat : >> On 1 February 2013 18:28, Inki Dae wrote: >>> >>> >>> >>> 2013. 2. 1. ?? 8:52 Inki Dae ??: >>> > -Original Message- > From: linux-media-owner at vger.kernel.org [mailto:linux-media- > owner at vger.kerne

[PATCH v3 1/3] drm/exynos: Get HDMI version from device tree

2013-02-06 Thread Joonyoung Shim
On 02/06/2013 09:56 AM, Sean Paul wrote: > On Tue, Feb 5, 2013 at 4:42 PM, Stephen Warren > wrote: >> On 02/05/2013 05:37 PM, Sean Paul wrote: >>> On Tue, Feb 5, 2013 at 4:22 PM, Stephen Warren >>> wrote: n 02/05/2013 04:42 PM, Sean Paul wrote: > Use the compatible string in the device

[PATCH v6 1/1] video: drm: exynos: Add display-timing node parsing using video helper function

2013-02-21 Thread Joonyoung Shim
Hi, On 02/15/2013 03:43 PM, Vikas Sajjan wrote: > Add support for parsing the display-timing node using video helper > function. > > The DT node parsing and pinctrl selection is done only if 'dev.of_node' > exists and the NON-DT logic is still maintained under the 'else' part. > > Signed-off-by: L

[PATCH v7 0/2] Add display-timing node parsing to exynos drm fimd

2013-02-21 Thread Joonyoung Shim
Hi, Please refer my comments about v6 patch. On 02/21/2013 02:11 PM, Vikas Sajjan wrote: > Add display-timing node parsing to drm fimd and depends on > the display helper patchset at > http://lists.freedesktop.org/archives/dri-devel/2013-January/033998.html > > It also adds pinctrl support for d

[PATCH v7 2/2] video: drm: exynos: Add pinctrl support to fimd

2013-02-21 Thread Joonyoung Shim
Hi, On 02/21/2013 02:11 PM, Vikas Sajjan wrote: > Adds support for pinctrl to drm fimd. > > Signed-off-by: Leela Krishna Amudala > Signed-off-by: Vikas Sajjan > --- > drivers/gpu/drm/exynos/exynos_drm_fimd.c |9 + > 1 file changed, 9 insertions(+) > > diff --git a/drivers/gpu/drm/

[PATCH v6 1/1] video: drm: exynos: Add display-timing node parsing using video helper function

2013-02-21 Thread Joonyoung Shim
On 02/21/2013 04:12 PM, Vikas Sajjan wrote: > Hi, > > On 21 February 2013 12:25, Joonyoung Shim wrote: >> Hi, >> >> >> On 02/15/2013 03:43 PM, Vikas Sajjan wrote: >>> Add support for parsing the display-timing node using video helper >>> function

[PATCH v6 1/1] video: drm: exynos: Add display-timing node parsing using video helper function

2013-02-28 Thread Joonyoung Shim
Hi, On 02/21/2013 04:18 PM, Joonyoung Shim wrote: > On 02/21/2013 04:12 PM, Vikas Sajjan wrote: >> Hi, >> >> On 21 February 2013 12:25, Joonyoung Shim >> wrote: >>> Hi, >>> >>> >>> On 02/15/2013 03:43 PM, Vikas Sajjan wrote: &

[PATCH v8 1/2] video: drm: exynos: Add display-timing node parsing using video helper function

2013-02-28 Thread Joonyoung Shim
n for pdata failed\n"); > + return -ENOMEM; > + } > + > + ret = of_get_fb_videomode(dev->of_node, &pdata->panel.timing, > + OF_USE_NATIVE_MODE); > + if (ret) { > + DRM_ERROR("failed: of_get

[PATCH] drm/exynos: modify the compatible string for exynos fimd

2013-02-28 Thread Joonyoung Shim
> + { .compatible = "samsung,exynos5250-fimd", > .data = &exynos5_fimd_driver_data }, > {}, > }; Acked-by: Joonyoung Shim Thanks.

[PATCH v8 1/2] video: drm: exynos: Add display-timing node parsing using video helper function

2013-02-28 Thread Joonyoung Shim
On 02/28/2013 11:45 AM, Vikas Sajjan wrote: > Hi, > > On 28 February 2013 08:07, Joonyoung Shim wrote: >> On 02/27/2013 08:49 PM, Vikas Sajjan wrote: >>> Add support for parsing the display-timing node using video helper >>> function. >>> >>> The

[PATCH 4/7] Exynos: add support for 'domain-always-on' property

2014-07-02 Thread Joonyoung Shim
Hi Marek, On 07/01/2014 06:08 PM, Marek Szyprowski wrote: > Hello, > > On 2014-07-01 10:52, Tobias Jakobi wrote: >> Hello Marek, >> >> I think you had a similar patch in the tizen tree, but according to >> Tomasz Figa, it was considered a hack. I don't quite see how this is >> different. >> >> Als

[PATCH] drm/exynos: use drm_send_vblank_event() helper

2013-05-22 Thread Joonyoung Shim
Hi, On 05/22/2013 01:04 PM, Inki Dae wrote: > From: Rob Clark > > Rebased. > > Signed-off-by: Rob Clark > Signed-off-by: Inki Dae > --- > drivers/gpu/drm/exynos/exynos_drm_crtc.c | 10 ++ > 1 files changed, 2 insertions(+), 8 deletions(-) > > diff --git a/drivers/gpu/drm/exynos/exy

[PATCH 2/2] drm/exynos: fix the initialization order in FIMD

2015-03-31 Thread Joonyoung Shim
Hi, Sorry for late comments. On 03/13/2015 07:32 PM, Inki Dae wrote: > On 2015년 03월 12일 13:36, Hyungwon Hwang wrote: >> Since commit 0f04cf8df0b20a97369cb634663fef0578cbf273 ("drm/exynos: >> fix wrong pipe calculation for crtc"), fimd_clear_channel() can be >> called when is_drm_iommu_suppo

[PATCH -v2 3/8] drm/exynos: remove struct *_win_data abstraction on planes

2015-03-31 Thread Joonyoung Shim
Hi, On 03/26/2015 11:10 PM, Gustavo Padovan wrote: > From: Gustavo Padovan > > struct {fimd,mixer,vidi}_win_data was just keeping the same data > as struct exynos_drm_plane thus get ride of it and use exynos_drm_plane > directly. > > It changes how planes are created and remove .win_mode_set()

[PATCH -v2 0/8] drm/exynos: clean up patches (preparing for atomic)

2015-03-31 Thread Joonyoung Shim
Hi, On 03/26/2015 11:10 PM, Gustavo Padovan wrote: > From: Gustavo Padovan > > Hi, > > Here goes some clean ups to the exynos drivers. The main clean ups is > the presetting and zpos making the property immutable and the removal > of *_win_data structures. > > v2 contains a extra patch to fix

[PATCH] drm/exynos: fix to detach device of iommu

2015-10-02 Thread Joonyoung Shim
to release mapping of iommu created by arm_iommu_create_mapping(). It is called by exynos_drm_unload() so shouldn't be called by drm_iommu_detach_device(). Signed-off-by: Joonyoung Shim Cc: # v3.8+ --- drivers/gpu/drm/exynos/exynos_drm_iommu.c | 3 +-- 1 file changed, 1 insertion(

[PATCH] drm/exynos: cleanup name of gem object for exynos_drm

2015-10-02 Thread Joonyoung Shim
isunderstanding with variable name "obj" of struct drm_gem_object. This will clean about name of gem object for exynos_drm as follows. s/struct exynos_drm_gem_obj/struct exynos_drm_gem s/exynos_gem_obj or gem_obj or obj/exynos_gem Signed-off-by: Joonyoung Shim --- drivers/gpu/drm/exynos

[PATCH] drm/exynos: add DRM_EXYNOS_GEM_MAP ioctl

2015-10-05 Thread Joonyoung Shim
vive it as DRM_EXYNOS_GEM_MAP because of render node. DRM_IOCTL_MODE_MAP_DUMB isn't permitted in render node. Signed-off-by: Joonyoung Shim --- drivers/gpu/drm/exynos/exynos_drm_drv.c | 2 ++ drivers/gpu/drm/exynos/exynos_drm_gem.c | 9 + drivers/gpu/drm/exynos/exynos_drm_gem.h | 4 i

[PATCH] drm/exynos: add DRM_EXYNOS_GEM_MAP ioctl

2015-10-13 Thread Joonyoung Shim
, > Inki Dae > > 2015년 10월 05일 12:04에 Joonyoung Shim 이(가) 쓴 글: >> The commit d931589c01a2 ("drm/exynos: remove DRM_EXYNOS_GEM_MAP_OFFSET >> ioctl") removed it same with the ioctl that this patch adds. The reason >> that removed DRM_EXYNOS_GEM_MAP_OFFSET

[PATCH] drm/exynos: add DRM_EXYNOS_GEM_MAP ioctl

2015-10-13 Thread Joonyoung Shim
On 10/13/2015 02:23 PM, Joonyoung Shim wrote: > On 10/13/2015 02:11 PM, Inki Dae wrote: >> >> Merged. >> > > Thanks for merge but this will be conflicted with the patch of Daniel, > http://patchwork.freedesktop.org/patch/60565/ > Oops, wrong link, http://lis

[PATCH 4/9] drm/exynos: split buffer allocation using DMA mapping API on non-iommu

2015-10-13 Thread Joonyoung Shim
: Joonyoung Shim --- drivers/gpu/drm/exynos/exynos_drm_gem.c | 90 +++-- 1 file changed, 64 insertions(+), 26 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_gem.c b/drivers/gpu/drm/exynos/exynos_drm_gem.c index d5951f75c774..88196edd4ade 100644 --- a/drivers/gpu

[PATCH 0/9] drm/exynos: update codes related with gem

2015-10-13 Thread Joonyoung Shim
ly in order for the cpu and device if buffer of gem object is cachable. Thanks. Joonyoung Shim (9): drm/exynos: eliminate useless codes of exynos_drm_gem.h drm/exynos: use directly DMA mapping APIs on g2d drm/exynos: remove using non-consistent DMA attribute drm/exynos: split buffer alloc

[PATCH 1/9] drm/exynos: eliminate useless codes of exynos_drm_gem.h

2015-10-13 Thread Joonyoung Shim
m_userptr_ioctl(), there is no body for them. Signed-off-by: Joonyoung Shim --- drivers/gpu/drm/exynos/exynos_drm_gem.h | 28 1 file changed, 28 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_gem.h b/drivers/gpu/drm/exynos/exynos_drm_gem.h index 0d0ab27b48f

[PATCH 7/9] drm/exynos: always use EXYNOS_BO_CONTIG flag on iommu

2015-10-13 Thread Joonyoung Shim
It doesn't care whether memory is continuous physically if iommu is supported but we will always use EXYNOS_BO_CONTIG flag on iommu, so it can mean that the memory is continuous memory for device. Signed-off-by: Joonyoung Shim --- drivers/gpu/drm/exynos/exynos_drm_fb.c

[PATCH 3/9] drm/exynos: remove using non-consistent DMA attribute

2015-10-13 Thread Joonyoung Shim
DMA_ATTR_NON_CONSISTENT isn't supported in DMA mapping API of ARM, so it doesn't give any effects to use non-consistent DMA attribute. Signed-off-by: Joonyoung Shim --- drivers/gpu/drm/exynos/exynos_drm_gem.c | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/d

[PATCH 5/9] drm/exynos: introduce buffer allocation using drm_gem_get/put_pages()

2015-10-13 Thread Joonyoung Shim
This introduces new functions to allocate/free buffer using drm_gem_get/put_pages() instead of DMA mapping API. They also use sg list to manage pages. Signed-off-by: Joonyoung Shim --- drivers/gpu/drm/exynos/exynos_drm_gem.c | 48 + drivers/gpu/drm/exynos

[PATCH 2/9] drm/exynos: use directly DMA mapping APIs on g2d

2015-10-13 Thread Joonyoung Shim
There is no reason to be wapper functions to use DMA mapping APIs. We can use directly DMA mapping APIs without locking and remove the wapper functions. Signed-off-by: Joonyoung Shim --- drivers/gpu/drm/exynos/exynos_drm_g2d.c | 10 +- drivers/gpu/drm/exynos/exynos_drm_gem.c | 26

[PATCH 9/9] drm/exynos: add ioctls for cpu access of gem object from user

2015-10-13 Thread Joonyoung Shim
. - DRM_IOCTL_EXYNOS_GEM_CPU_FINI Should be used explicitly after it is finished cpu access of gem object from user. Signed-off-by: Joonyoung Shim --- This is based on patch of Daniel dropping DRM_UNLOCKED flag on each drivers[1] and patch that is droped DRM_UNLOCKED flag from my posted patch[2]. [1] http

[PATCH 6/9] drm/exynos: switch to new buffer allocation

2015-10-13 Thread Joonyoung Shim
ned-off-by: Joonyoung Shim --- drivers/gpu/drm/exynos/exynos_drm_gem.c | 90 +++-- 1 file changed, 29 insertions(+), 61 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_gem.c b/drivers/gpu/drm/exynos/exynos_drm_gem.c index d982d46b04da..163d113df1ab 10

[PATCH 8/9] drm/exynos: use DMA_ERROR_CODE

2015-10-13 Thread Joonyoung Shim
The dma_addr of gem will be DMA_ERROR_CODE if gem is created and will keep DMA_ERROR_CODE if gem has EXYNOS_BO_NONCONTIG flag on non-iommu. Signed-off-by: Joonyoung Shim --- drivers/gpu/drm/exynos/exynos_drm_gem.c | 24 +--- 1 file changed, 9 insertions(+), 15 deletions

[PATCH 0/9] drm/exynos: update codes related with gem

2015-10-13 Thread Joonyoung Shim
On 10/13/2015 05:27 PM, Daniel Vetter wrote: > On Tue, Oct 13, 2015 at 04:00:45PM +0900, Joonyoung Shim wrote: >> Hi, >> >> This patchset is about gem codes update of exynos-drm. >> >> The first and second patches are cleanup to remove useless codes. >&

[PATCH 0/9] drm/exynos: update codes related with gem

2015-10-13 Thread Joonyoung Shim
On 10/13/2015 05:37 PM, Joonyoung Shim wrote: > On 10/13/2015 05:27 PM, Daniel Vetter wrote: >> On Tue, Oct 13, 2015 at 04:00:45PM +0900, Joonyoung Shim wrote: >>> Hi, >>> >>> This patchset is about gem codes update of exynos-drm. >>> >>> The

[PATCH] drm/exynos/gem: remove DMA-mapping hacks used for constructing page array

2015-10-13 Thread Joonyoung Shim
Hi Marek, On 10/13/2015 07:22 PM, Marek Szyprowski wrote: > Exynos GEM objects contains an array of pointers to the pages, which the > allocated buffer consists of. Till now the code used some hacks (like > relying on DMA-mapping internal structures or using ARM-specific > dma_to_pfn helper) to bu

[PATCH 0/9] drm/exynos: update codes related with gem

2015-10-14 Thread Joonyoung Shim
On 10/13/2015 09:29 PM, Daniel Vetter wrote: > On Tue, Oct 13, 2015 at 06:32:53PM +0900, Joonyoung Shim wrote: >> On 10/13/2015 05:37 PM, Joonyoung Shim wrote: >>> On 10/13/2015 05:27 PM, Daniel Vetter wrote: >>>> On Tue, Oct 13, 2015 at 04:00:45PM +0900,

[PATCH libdrm] remove if HAVE_LIBUDEV for vbltest

2015-07-20 Thread Joonyoung Shim
The vbltest doesn't have any dependency of LIBUDEV. Signed-off-by: Joonyoung Shim --- tests/Makefile.am | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/tests/Makefile.am b/tests/Makefile.am index 069285f..c5edec8 100644 --- a/tests/Makefile.am +++ b/tests/Makefi

Linux-next, Exynos Octa boot fail, bisected to: "drm/exynos: remove drm_iommu_attach_device_if_possible"

2015-07-22 Thread Joonyoung Shim
rst bad commit > commit d80167b85024982c5f18d0481a5c248100360118 > Author: Joonyoung Shim > Date: Thu Jul 2 21:49:39 2015 +0900 > > drm/exynos: remove drm_iommu_attach_device_if_possible > > Already drm_iommu_attach_device checks whether support iommu internally. > It should

Linux-next, Exynos Octa boot fail, bisected to: "drm/exynos: remove drm_iommu_attach_device_if_possible"

2015-07-22 Thread Joonyoung Shim
On 07/22/2015 01:55 PM, Inki Dae wrote: > On 2015년 07월 22일 11:02, Joonyoung Shim wrote: >> On 07/21/2015 10:19 PM, Krzysztof Kozlowski wrote: >>> Hi, >>> >>> Today's linux-next (next-20150721) encounters boot failures on Exynos >>> Octa (Exyn

Linux-next, Exynos Octa boot fail, bisected to: "drm/exynos: remove drm_iommu_attach_device_if_possible"

2015-07-22 Thread Joonyoung Shim
On 07/22/2015 05:22 PM, Inki Dae wrote: > On 2015년 07월 22일 17:12, Joonyoung Shim wrote: >> On 07/22/2015 01:55 PM, Inki Dae wrote: >>> On 2015년 07월 22일 11:02, Joonyoung Shim wrote: >>>> On 07/21/2015 10:19 PM, Krzysztof Kozlowski wrote: >>>>

[PATCH] drm/exynos: clear channels only when iommu is enabled

2015-07-28 Thread Joonyoung Shim
1/404 Signed-off-by: Joonyoung Shim --- drivers/gpu/drm/exynos/exynos_drm_fimd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_fimd.c b/drivers/gpu/drm/exynos/exynos_drm_fimd.c index 8d362b9..337af02 100644 --- a/drivers/gpu/drm/e

[PATCH] drm/exynos: clear channels only when iommu is enabled

2015-07-28 Thread Joonyoung Shim
On 07/28/2015 05:30 PM, Krzysztof Kozlowski wrote: > On 28.07.2015 17:28, Joonyoung Shim wrote: >> This is simplest solution about reported problem[1]. It's no problem to >> clear channel only when iommu is enabled, if we consider that we cannot >> recognize iommu errors

[PATCH v2] drm/exynos: clear channels only when iommu is enabled

2015-07-28 Thread Joonyoung Shim
1/404 Reported-by: Krzysztof Kozlowski Signed-off-by: Joonyoung Shim --- v2: add Reported-by. drivers/gpu/drm/exynos/exynos_drm_fimd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_fimd.c b/drivers/gpu/drm/exynos/exynos_drm_fimd.c

[PATCH 00/14] drm/exynos: cleanup and update gem/dma-buf

2015-07-28 Thread Joonyoung Shim
This patchset improves gem and dma-buf codes of exynos drm. Major changes: - remove needless using sg table. - use prime helpers instead of exynos specific dma-buf functions. - merge struct exynos_drm_gem_buf in struct exynos_drm_gem. - remove simple functions. - cleanup. Thanks. Joonyoung

[PATCH 02/14] drm/exynos: remove function convert_to_vm_err_msg

2015-07-28 Thread Joonyoung Shim
The convert_to_vm_err_msg is called just once by exynos_drm_gem_fault, so it's simple not to use the function. Signed-off-by: Joonyoung Shim --- drivers/gpu/drm/exynos/exynos_drm_gem.c | 33 + 1 file changed, 9 insertions(+), 24 deletions(-) diff --git a/dr

<    1   2   3   4   5   6   >