[PATCH 10/10] drm/exynos: added virtual display driver.

2012-03-13 Thread Inki Dae
this driver would be used for wireless display. virtual display driver has independent crtc, encoder and connector and to use this driver, user application should send edid data to this driver from wireless display. Signed-off-by: Inki Dae Signed-off-by: Kyungmin Park --- drivers/gpu/drm/exynos

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

2012-03-13 Thread Inki Dae
From: Joonyoung Shim 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 performed by dma. This adds be

[PATCH 08/10] drm/exynos: add is_local member in exynos_drm_subdrv struct

2012-03-13 Thread Inki Dae
From: Joonyoung Shim The is_local member indicates unused subdrv such connector and encoder so doesn't make resources for them. Signed-off-by: Joonyoung Shim Signed-off-by: Inki Dae Signed-off-by: Kyungmin Park --- drivers/gpu/drm/exynos/exynos_drm_core.c |3 +++ drivers/gpu/drm/exynos/e

[PATCH 07/10] drm/exynos: add subdrv open/close functions

2012-03-13 Thread Inki Dae
From: Joonyoung Shim Some subdrv need open and close functions call when open and close drm. Signed-off-by: Joonyoung Shim Signed-off-by: Inki Dae Signed-off-by: Kyungmin Park --- drivers/gpu/drm/exynos/exynos_drm_core.c | 35 ++ drivers/gpu/drm/exynos/exynos_dr

[PATCH 06/10] drm/exynos: remove module of exynos drm subdrv

2012-03-13 Thread Inki Dae
From: Joonyoung Shim The exynos drm driver has several subdrv. They each can be module but it causes unfixed probe order of exynodr drm driver and each subdrv. It also needs some weird codes such as exynos_drm_fbdev_reinit and exynos_drm_mode_group_reinit. This patch can remove weird codes and cl

[PATCH 05/10] drm/exynos: release pending pageflip events when closed

2012-03-13 Thread Inki Dae
From: Joonyoung Shim We should release pending pageflip events when closed. If not, they will be dangling events. Signed-off-by: Joonyoung Shim Signed-off-by: Inki Dae Signed-off-by: Kyungmin Park --- drivers/gpu/drm/exynos/exynos_drm_drv.c | 14 ++ 1 files changed, 14 insertio

[PATCH 04/10] drm/exynos: added new funtion to get/put dma address.

2012-03-13 Thread Inki Dae
this function would be used for drm based 2d acceleration driver to get/put dma address through gem handle. when exynos_drm_get_dma_address is called reference count of gem object would be increased not to be released by gem close and when exynos_drm_put_dma_address is called the reference count of

[PATCH 03/10] drm/exynos: added buffer allocation type.

2012-03-13 Thread Inki Dae
with this patch, we can allocate physically continuous or non-continuous memory and also it creates scatterlist for iommu support so allocated memory region can be mapped to iommu page table using scatterlist. Signed-off-by: Inki Dae Signed-off-by: Kyungmin Park --- drivers/gpu/drm/exynos/exyno

[PATCH 02/10] drm/exynos: added mode_fixup feature and code clean.

2012-03-13 Thread Inki Dae
this patch adds mode_fixup feature for hdmi module that specific driver changes current mode to driver desired mode properly. Signed-off-by: Inki Dae Signed-off-by: Kyungmin Park --- drivers/gpu/drm/exynos/exynos_drm_connector.c | 25 +++- drivers/gpu/drm/exynos/exynos_drm_crtc.c |

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

2012-03-13 Thread Inki Dae
Later Exynos series from Exynos4X12 support HDMI version 1.4. We will distinguish to use which version via platform data. Signed-off-by: Joonyoung Shim Signed-off-by: Inki Dae Signed-off-by: Kyungmin Park --- drivers/gpu/drm/exynos/exynos_hdmi.c | 1152 +++--- drive

[PATCH 00/10] updated exynos-drm-next

2012-03-13 Thread Inki Dae
Hi, Dave and all. this patch set includes the following features. - add HDMI version 1.4 support. - add mode_fixup feature. . hdmi module would change current mode to driver desired mode properly. - add buffer alloction type. . we can allocate physically continuous or non-continuous memory

[Bug 47289] New: SIGSEGV at r300_state.c:1066

2012-03-13 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=47289 Bug #: 47289 Summary: SIGSEGV at r300_state.c:1066 Classification: Unclassified Product: Mesa Version: 7.11 Platform: x86-64 (AMD64) OS/Version: FreeBSD Status: NEW

[Bug 42923] New: External monitor on display port has no sync with radeon driver

2012-03-13 Thread bugzilla-dae...@bugzilla.kernel.org
https://bugzilla.kernel.org/show_bug.cgi?id=42923 Summary: External monitor on display port has no sync with radeon driver Product: Drivers Version: 2.5 Kernel Version: 3.3.0 Platform: All OS/Version: Linux Tr

[Bug 46713] HDMI audio played back at a wrong rate

2012-03-13 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=46713 --- Comment #17 from Rafa? Mi?ecki 2012-03-13 12:05:38 PDT --- If you wish, you can try switching to radeon and: 1) Start playback 2) Make sure speed is still wrong 3) Execute: "avivotool regset 0x05b0 0x000ea600" 4) Execute: "avivotool regset 0

[Bug 46713] HDMI audio played back at a wrong rate

2012-03-13 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=46713 --- Comment #16 from Rafa? Mi?ecki 2012-03-13 12:04:19 PDT --- Tvrtko: thanks a lot for your effort and dumps coming from fglrx. What I can say now: it seems fglrx is using the same registers (EVERGREEN_AUDIO_PLL1_MUL and EVERGREEN_AUDIO_PLL1_D

[korg]help: How to submit a kernel driver on kernel.org.

2012-03-13 Thread Aaron.Chen 陈俊杰
Hi Ilija, Thank you for your reply. We will check the coding style next time. I don't know about the license thing. Is there any different license for choosing? Regards Aaron -- ???: Ilija Hadzic [mailto:ihadzic at research.bell-labs.com] : 2012?3?10? 0:30 ???: Aaron.Chen ???

[PATCH] omap2+: add drm device

2012-03-13 Thread Rob Clark
From: Andy Gross Register OMAP DRM/KMS platform device, and reserve a CMA region for the device to use for buffer allocation. DMM is split into a separate device using hwmod. Signed-off-by: Andy Gross Signed-off-by: Rob Clark --- arch/arm/mach-omap2/Makefile |4 ++ arch/arm/mach

[PATCH] drm/i915: no-lvds quirk on MSI DC500

2012-03-13 Thread Anisse Astier
Any opinion on this quirk ? On Wed, 7 Mar 2012 18:36:35 +0100, Anisse Astier wrote : > This hardware doesn't have an LVDS, it's a desktop box. Fix incorrect > LVDS detection. > > Cc: stable at kernel.org > Signed-off-by: Anisse Astier > --- > drivers/gpu/drm/i915/intel_lvds.c |8

Re: [PATCH -next] vgaarb.h: fix build warnings

2012-03-13 Thread Randy Dunlap
On 01/30/2012 11:43 AM, Randy Dunlap wrote: This patch is still needed in linux-next of 20120313. > From: Randy Dunlap > > Fix build warnings by providing a struct stub since no fields of > the struct are used: > > include/linux/vgaarb.h:66:9: warning: 'struct p

[Bug 47289] New: SIGSEGV at r300_state.c:1066

2012-03-13 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=47289 Bug #: 47289 Summary: SIGSEGV at r300_state.c:1066 Classification: Unclassified Product: Mesa Version: 7.11 Platform: x86-64 (AMD64) OS/Version: FreeBSD Status: NEW

[PATCH -next] vgaarb.h: fix build warnings

2012-03-13 Thread Randy Dunlap
On 01/30/2012 11:43 AM, Randy Dunlap wrote: This patch is still needed in linux-next of 20120313. > From: Randy Dunlap > > Fix build warnings by providing a struct stub since no fields of > the struct are used: > > include/linux/vgaarb.h:66:9: warning: 'struct p

[Bug 42920] Radeon with KMS and UMA works only up to 128MB

2012-03-13 Thread bugzilla-dae...@bugzilla.kernel.org
https://bugzilla.kernel.org/show_bug.cgi?id=42920 --- Comment #3 from Alex Deucher 2012-03-13 14:13:34 --- radeontool is for older chips. The register is at a different location on them. Note I said radeonreg rather than radeontool, but either will work as long as you specify the proper o

[Bug 42920] Radeon with KMS and UMA works only up to 128MB

2012-03-13 Thread bugzilla-dae...@bugzilla.kernel.org
https://bugzilla.kernel.org/show_bug.cgi?id=42920 --- Comment #2 from j.fikar at gmail.com 2012-03-13 13:55:08 --- for 128MB it shows this: ./radeontool regmatch 0x5428 0x5428 0x0800 (134217728) but ./radeontool regs | grep MEMSIZE RADEON_CONFIG_MEMSIZE is this it? I'll a

[PATCH] omap2+: add drm device

2012-03-13 Thread Rob Clark
From: Andy Gross Register OMAP DRM/KMS platform device, and reserve a CMA region for the device to use for buffer allocation. DMM is split into a separate device using hwmod. Signed-off-by: Andy Gross Signed-off-by: Rob Clark --- arch/arm/mach-omap2/Makefile |4 ++ arch/arm/mach

[Bug 42920] Radeon with KMS and UMA works only up to 128MB

2012-03-13 Thread bugzilla-dae...@bugzilla.kernel.org
https://bugzilla.kernel.org/show_bug.cgi?id=42920 Alex Deucher changed: What|Removed |Added CC||alexdeucher at gmail.com --- Comment #

[Bug 42920] New: Radeon with KMS and UMA works only up to 128MB

2012-03-13 Thread bugzilla-dae...@bugzilla.kernel.org
https://bugzilla.kernel.org/show_bug.cgi?id=42920 Summary: Radeon with KMS and UMA works only up to 128MB Product: Drivers Version: 2.5 Kernel Version: 3.3-rc7 Platform: All OS/Version: Linux Tree: Mainline Status: NE

[Bug 42923] New: External monitor on display port has no sync with radeon driver

2012-03-13 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=42923 Summary: External monitor on display port has no sync with radeon driver Product: Drivers Version: 2.5 Kernel Version: 3.3.0 Platform: All OS/Version: Linux Tr

[PATCH 15/15] drm: Fix drm_mode_objecte_get() return values

2012-03-13 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? Change drm_mode_object_get() to return -ENOMEM if idr_pre_get() fails, and also handle -ENOSPC from idr_get_new_above(). Signed-off-by: Ville Syrj?l? --- drivers/gpu/drm/drm_crtc.c |5 - 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/drivers/gpu/drm/

[PATCH 14/15] drm: Add drm_mode_copy()

2012-03-13 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? Add a helper function to copy a display mode. Use it in drm_mode_duplicate() and nouveau mode_fixup hooks. Signed-off-by: Ville Syrj?l? --- drivers/gpu/drm/drm_modes.c| 28 +++- drivers/gpu/drm/nouveau/nv50_dac.c |7 ++- drivers/gpu

[PATCH 13/15] drm: Eliminate pointless goto

2012-03-13 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? Use a do {} while() loop instead of a goto in drm_mode_object_get(). Signed-off-by: Ville Syrj?l? --- drivers/gpu/drm/drm_crtc.c | 20 ++-- 1 files changed, 10 insertions(+), 10 deletions(-) diff --git a/drivers/gpu/drm/drm_crtc.c b/drivers/gpu/drm/drm_cr

[PATCH 12/15] drm: Use a flexible array member for blob property data

2012-03-13 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? The blob property data is always allocated immediately after the object header. No need for the extra indirection when accessing it, just use a flexible array member. Signed-off-by: Ville Syrj?l? --- drivers/gpu/drm/drm_crtc.c |1 - include/drm/drm_crtc.h |2 +-

[PATCH 11/15] drm: Handle drm_object_get() failures

2012-03-13 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? Check drm_mode_object_get() return value everywhere. Signed-off-by: Ville Syrj?l? --- drivers/gpu/drm/drm_crtc.c| 95 - drivers/gpu/drm/drm_crtc_helper.c |2 + include/drm/drm_crtc.h| 22 3 files chang

[PATCH 10/15] drm: Make drm_crtc_convert_{umode, to_umode} static and constify their params

2012-03-13 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? drm_crtc_convert_umode() and drm_crtc_convert_to_umode() are never used outside drm_crtc.c, so make them static. Also make the input mode structure const for both functions. Signed-off-by: Ville Syrj?l? --- drivers/gpu/drm/drm_crtc.c |8 1 files changed, 4 inse

[PATCH 09/15] drm: Fix drm_mode_attachmode_crtc()

2012-03-13 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? Change drm_mode_attachmode_crtc() to take an "all or nothing" approach. If an error is returned, there are no side effects visible. Also change the function to always duplicate the mode passed in. Also change the function to not give up when it finds the first connector with

[PATCH 08/15] drm: Check CRTC viewport against framebuffer size

2012-03-13 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? Make sure the requested CRTC viewport fits inside the framebuffer. Signed-off-by: Ville Syrj?l? --- drivers/gpu/drm/drm_crtc.c | 24 1 files changed, 24 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/drm_crtc.c b/drivers/gpu/drm/drm_c

[PATCH 07/15] drm: Check user mode against overflows

2012-03-13 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? The internal mode representation drm_display_mode uses signed data types. When converting the user mode to internal representation, check that the unsigned values don't overflow the signed datatypes. Signed-off-by: Ville Syrj?l? --- drivers/gpu/drm/drm_crtc.c | 33 +++

[PATCH 06/15] drm: Fix memory leak in drm_mode_setcrtc()

2012-03-13 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? The mode passed to the .set_config() hook was never freed. The drivers will make a copy of the mode, so simply free it when done. Signed-off-by: Ville Syrj?l? --- drivers/gpu/drm/drm_crtc.c |9 + 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/dri

[PATCH 05/15] drm: Make drm_mode_attachmode() void

2012-03-13 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? drm_mode_attachmode() always returns 0. Change the return type to void. Signed-off-by: Ville Syrj?l? --- drivers/gpu/drm/drm_crtc.c | 16 +--- 1 files changed, 5 insertions(+), 11 deletions(-) diff --git a/drivers/gpu/drm/drm_crtc.c b/drivers/gpu/drm/drm_crtc

[PATCH 04/15] drm: Check crtc x and y coordinates

2012-03-13 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? The crtc x/y panning coordinates are stored as signed integers internally. The user provides them as unsigned, so we should check that the user provided values actually fit in the internal datatypes. Signed-off-by: Ville Syrj?l? --- drivers/gpu/drm/drm_crtc.c |4 1

[PATCH 03/15] drm: Warn if mode to umode conversion overflows the destination types

2012-03-13 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? When converting from a drm_display_mode to drm_mode_modeinfo, print a warning if the the timings values don't fit into the __u16 datatype. Signed-off-by: Ville Syrj?l? --- drivers/gpu/drm/drm_crtc.c |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --gi

[PATCH 02/15] drm: Change drm_display_mode::type to unsigned

2012-03-13 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? The drm_display_mode type is a bitmask so it should be unsigned. Signed-off-by: Ville Syrj?l? --- include/drm/drm_crtc.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h index 2a0872c..31715bd 100644 -

[PATCH 01/15] drm: Reject mode set with current fb if no current fb is bound

2012-03-13 Thread ville.syrj...@linux.intel.com
From: Ville Syrj?l? When doing a mode set with the special fb id -1, reject the mode set if no fb is currently bound to the crtc. Also remove the pointless list traversal to find the current crtc based on the current crtc :) Signed-off-by: Ville Syrj?l? --- drivers/gpu/drm/drm_crtc.c | 14 +

[PATCH 00/15] drm: Bounds checking, error handling, etc.

2012-03-13 Thread ville.syrj...@linux.intel.com
Mostly fixes for various bits and pieces that caught my eye while reading the mode setting code.

[Bug 46713] HDMI audio played back at a wrong rate

2012-03-13 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=46713 --- Comment #17 from Rafał Miłecki 2012-03-13 12:05:38 PDT --- If you wish, you can try switching to radeon and: 1) Start playback 2) Make sure speed is still wrong 3) Execute: "avivotool regset 0x05b0 0x000ea600" 4) Execute: "avivotool regset 0

[Bug 46713] HDMI audio played back at a wrong rate

2012-03-13 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=46713 --- Comment #16 from Rafał Miłecki 2012-03-13 12:04:19 PDT --- Tvrtko: thanks a lot for your effort and dumps coming from fglrx. What I can say now: it seems fglrx is using the same registers (EVERGREEN_AUDIO_PLL1_MUL and EVERGREEN_AUDIO_PLL1_D

[Bug 47007] HDMI monitor polling causing 100ms rendering stalls

2012-03-13 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=47007 --- Comment #15 from Tvrtko Ursulin 2012-03-13 04:44:04 PDT --- Bad news from a different motherboard. This one has DVI-D and DP connectors. With a DVI monitor connected stalls are still there due to the shared_ddc being true (DDC shared between

[RFCv2 PATCH 9/9] v4l: s5p-tv: mixer: integrate with dmabuf

2012-03-13 Thread Tomasz Stanislawski
Signed-off-by: Tomasz Stanislawski Signed-off-by: Kyungmin Park --- drivers/media/video/s5p-tv/Kconfig |1 + drivers/media/video/s5p-tv/mixer_video.c | 12 +++- 2 files changed, 12 insertions(+), 1 deletions(-) diff --git a/drivers/media/video/s5p-tv/Kconfig b/drivers/media

[RFCv2 PATCH 8/9] v4l: fimc: integrate capture i-face with dmabuf

2012-03-13 Thread Tomasz Stanislawski
Signed-off-by: Tomasz Stanislawski Signed-off-by: Kyungmin Park --- drivers/media/video/Kconfig |1 + drivers/media/video/s5p-fimc/fimc-capture.c | 11 ++- 2 files changed, 11 insertions(+), 1 deletions(-) diff --git a/drivers/media/video/Kconfig b/drivers/media/vi

[RFCv2 PATCH 7/9] v4l: vb2-dma-contig: change map/unmap behaviour

2012-03-13 Thread Tomasz Stanislawski
The DMABUF documentation says that the map_dma_buf callback should return scatterlist that is mapped into a caller's address space. In practice, almost none of existing implementations of DMABUF exporter does it. This patch breaks the DMABUF specification in order to allow exchange DMABUF buffers

[RFCv2 PATCH 6/9] v4l: vb2-dma-contig: add support for DMABUF exporting

2012-03-13 Thread Tomasz Stanislawski
This patch adds support for exporting a dma-contig buffer using DMABUF interface. Signed-off-by: Tomasz Stanislawski Signed-off-by: Kyungmin Park --- drivers/media/video/videobuf2-dma-contig.c | 128 1 files changed, 128 insertions(+), 0 deletions(-) diff --git a/

[RFCv2 PATCH 5/9] v4l: vb2: add buffer exporting via dmabuf

2012-03-13 Thread Tomasz Stanislawski
This patch adds extension to videobuf2-core. It allow to export a mmap buffer as a file descriptor. Signed-off-by: Tomasz Stanislawski Signed-off-by: Kyungmin Park --- drivers/media/video/videobuf2-core.c | 64 ++ include/media/videobuf2-core.h |2 +

[RFCv2 PATCH 4/9] v4l: add buffer exporting via dmabuf

2012-03-13 Thread Tomasz Stanislawski
This patch adds extension to V4L2 api. It allow to export a mmap buffer as file descriptor. New ioctl VIDIOC_EXPBUF is added. It takes a buffer offset used by mmap and return a file descriptor on success. Signed-off-by: Tomasz Stanislawski Signed-off-by: Kyungmin Park --- drivers/media/video/v4

[RFCv2 PATCH 3/9] v4l: vb2: Add dma-contig allocator as dma_buf user

2012-03-13 Thread Tomasz Stanislawski
From: Sumit Semwal This patch makes changes for adding dma-contig as a dma_buf user. It provides function implementations for the {attach, detach, map, unmap}_dmabuf() mem_ops of DMABUF memory type. Signed-off-by: Sumit Semwal Signed-off-by: Sumit Semwal [author of the original patch]

[RFCv2 PATCH 2/9] v4l: vb2-dma-contig: update and code refactoring

2012-03-13 Thread Tomasz Stanislawski
This patch combines updates and fixes to dma-contig allocator. Moreover the allocator code was refactored. The most important changes are: - functions were reordered - move compression of scatterlist to separete function - add support for multichunk but contiguous scatterlists - simplified implemen

[RFCv2 PATCH 1/9] v4l: vb2: fixes for DMABUF support

2012-03-13 Thread Tomasz Stanislawski
This patch contains fixes to DMABUF support in vb2-core. - fixes number of arguments of call_memop macro - fixes setup of plane length - fixes handling of error pointers Signed-off-by: Tomasz Stanislawski Signed-off-by: Kyungmin Park --- drivers/media/video/videobuf2-core.c | 24 +++--

[RFCv2 PATCH 0/9] Integration of videobuf2 with dmabuf

2012-03-13 Thread Tomasz Stanislawski
Hello everyone, This patchset is an incremental patch to patchset created by Sumit Semwal [1]. The patches are dedicated to help find a better solution for support of buffer sharing by V4L2 API. It is expected to start discussion on the final installment for dma-buf in vb2-dma-contig allocator. C

[PATCH 00/15] drm: Bounds checking, error handling, etc.

2012-03-13 Thread Alex Deucher
On Tue, Mar 13, 2012 at 6:35 AM, wrote: > Mostly fixes for various bits and pieces that caught my eye while > reading the mode setting code. For the series: Reviewed-by: Alex Deucher

[Bug 46725] Monitor "disconnected" and refuses to work anymore

2012-03-13 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=46725 --- Comment #10 from Tomi Pievil?inen 2012-03-13 02:00:11 PDT --- Unfortunately not. -- Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the b

[Bug 47007] HDMI monitor polling causing 100ms rendering stalls

2012-03-13 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=47007 Tvrtko Ursulin changed: What|Removed |Added Attachment #58318|0 |1 is obsolete|

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

2012-03-13 Thread Inki Dae
From: Joonyoung Shim G2D is a 2D graphic accelerator that supports Bit Block Transfer. This G2D driver is exynos drm specific. This adds below three exynos specific ioctl and one event for G2D. - DRM_EXYNOS_G2D_GET_VER - DRM_EXYNOS_G2D_SET_CMDLIST - DRM_EXYNOS_G2D_EXEC - DRM_EXYNOS_G2D_EVENT

[PATCH 10/10] drm/exynos: added virtual display driver.

2012-03-13 Thread Inki Dae
this driver would be used for wireless display. virtual display driver has independent crtc, encoder and connector and to use this driver, user application should send edid data to this driver from wireless display. Signed-off-by: Inki Dae Signed-off-by: Kyungmin Park --- drivers/gpu/drm/exynos

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

2012-03-13 Thread Inki Dae
From: Joonyoung Shim 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 performed by dma. This adds be

[PATCH 07/10] drm/exynos: add subdrv open/close functions

2012-03-13 Thread Inki Dae
From: Joonyoung Shim Some subdrv need open and close functions call when open and close drm. Signed-off-by: Joonyoung Shim Signed-off-by: Inki Dae Signed-off-by: Kyungmin Park --- drivers/gpu/drm/exynos/exynos_drm_core.c | 35 ++ drivers/gpu/drm/exynos/exynos_dr

[PATCH 08/10] drm/exynos: add is_local member in exynos_drm_subdrv struct

2012-03-13 Thread Inki Dae
From: Joonyoung Shim The is_local member indicates unused subdrv such connector and encoder so doesn't make resources for them. Signed-off-by: Joonyoung Shim Signed-off-by: Inki Dae Signed-off-by: Kyungmin Park --- drivers/gpu/drm/exynos/exynos_drm_core.c |3 +++ drivers/gpu/drm/exynos/e

[PATCH 06/10] drm/exynos: remove module of exynos drm subdrv

2012-03-13 Thread Inki Dae
From: Joonyoung Shim The exynos drm driver has several subdrv. They each can be module but it causes unfixed probe order of exynodr drm driver and each subdrv. It also needs some weird codes such as exynos_drm_fbdev_reinit and exynos_drm_mode_group_reinit. This patch can remove weird codes and cl

[PATCH 04/10] drm/exynos: added new funtion to get/put dma address.

2012-03-13 Thread Inki Dae
this function would be used for drm based 2d acceleration driver to get/put dma address through gem handle. when exynos_drm_get_dma_address is called reference count of gem object would be increased not to be released by gem close and when exynos_drm_put_dma_address is called the reference count of

[PATCH 05/10] drm/exynos: release pending pageflip events when closed

2012-03-13 Thread Inki Dae
From: Joonyoung Shim We should release pending pageflip events when closed. If not, they will be dangling events. Signed-off-by: Joonyoung Shim Signed-off-by: Inki Dae Signed-off-by: Kyungmin Park --- drivers/gpu/drm/exynos/exynos_drm_drv.c | 14 ++ 1 files changed, 14 insertio

[PATCH 03/10] drm/exynos: added buffer allocation type.

2012-03-13 Thread Inki Dae
with this patch, we can allocate physically continuous or non-continuous memory and also it creates scatterlist for iommu support so allocated memory region can be mapped to iommu page table using scatterlist. Signed-off-by: Inki Dae Signed-off-by: Kyungmin Park --- drivers/gpu/drm/exynos/exyno

[PATCH 02/10] drm/exynos: added mode_fixup feature and code clean.

2012-03-13 Thread Inki Dae
this patch adds mode_fixup feature for hdmi module that specific driver changes current mode to driver desired mode properly. Signed-off-by: Inki Dae Signed-off-by: Kyungmin Park --- drivers/gpu/drm/exynos/exynos_drm_connector.c | 25 +++- drivers/gpu/drm/exynos/exynos_drm_crtc.c |

[PATCH 00/10] updated exynos-drm-next

2012-03-13 Thread Inki Dae
Hi, Dave and all. this patch set includes the following features. - add HDMI version 1.4 support. - add mode_fixup feature. . hdmi module would change current mode to driver desired mode properly. - add buffer alloction type. . we can allocate physically continuous or non-continuous memory

Re: [PATCH] drm/i915: no-lvds quirk on MSI DC500

2012-03-13 Thread Anisse Astier
Any opinion on this quirk ? On Wed, 7 Mar 2012 18:36:35 +0100, Anisse Astier wrote : > This hardware doesn't have an LVDS, it's a desktop box. Fix incorrect > LVDS detection. > > Cc: sta...@kernel.org > Signed-off-by: Anisse Astier > --- > drivers/gpu/drm/i915/intel_lvds.c |8 >

[Bug 42920] Radeon with KMS and UMA works only up to 128MB

2012-03-13 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=42920 --- Comment #3 from Alex Deucher 2012-03-13 14:13:34 --- radeontool is for older chips. The register is at a different location on them. Note I said radeonreg rather than radeontool, but either will work as long as you specify the proper o

[Bug 42920] Radeon with KMS and UMA works only up to 128MB

2012-03-13 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=42920 --- Comment #2 from j.fi...@gmail.com 2012-03-13 13:55:08 --- for 128MB it shows this: ./radeontool regmatch 0x5428 0x5428 0x0800 (134217728) but ./radeontool regs | grep MEMSIZE RADEON_CONFIG_MEMSIZE is this it? I'll add

[Bug 42920] Radeon with KMS and UMA works only up to 128MB

2012-03-13 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=42920 Alex Deucher changed: What|Removed |Added CC||alexdeuc...@gmail.com --- Comment #1 f

Re: [PATCH 00/15] drm: Bounds checking, error handling, etc.

2012-03-13 Thread Alex Deucher
On Tue, Mar 13, 2012 at 6:35 AM, wrote: > Mostly fixes for various bits and pieces that caught my eye while > reading the mode setting code. For the series: Reviewed-by: Alex Deucher ___ dri-devel mailing list dri-devel@lists.freedesktop.org http://l

[Bug 42920] New: Radeon with KMS and UMA works only up to 128MB

2012-03-13 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=42920 Summary: Radeon with KMS and UMA works only up to 128MB Product: Drivers Version: 2.5 Kernel Version: 3.3-rc7 Platform: All OS/Version: Linux Tree: Mainline Status: NE

Re: Re: [korg]help: How to submit a kernel driver on kernel.org.

2012-03-13 Thread Aaron . Chen 陈俊杰
Hi Ilija, Thank you for your reply. We will check the coding style next time. I don't know about the license thing. Is there any different license for choosing? Regards Aaron -邮件原件- 发件人: Ilija Hadzic [mailto:ihad...@research.bell-labs.com] 发送时间: 2012年3月10日 0:30 收件人: Aaron.Chen 陈俊杰 抄送:

[Bug 47007] HDMI monitor polling causing 100ms rendering stalls

2012-03-13 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=47007 --- Comment #15 from Tvrtko Ursulin 2012-03-13 04:44:04 PDT --- Bad news from a different motherboard. This one has DVI-D and DP connectors. With a DVI monitor connected stalls are still there due to the shared_ddc being true (DDC shared between

[PATCH 11/15] drm: Handle drm_object_get() failures

2012-03-13 Thread ville . syrjala
From: Ville Syrjälä Check drm_mode_object_get() return value everywhere. Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/drm_crtc.c| 95 - drivers/gpu/drm/drm_crtc_helper.c |2 + include/drm/drm_crtc.h| 22 3 files chang

[PATCH 14/15] drm: Add drm_mode_copy()

2012-03-13 Thread ville . syrjala
From: Ville Syrjälä Add a helper function to copy a display mode. Use it in drm_mode_duplicate() and nouveau mode_fixup hooks. Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/drm_modes.c| 28 +++- drivers/gpu/drm/nouveau/nv50_dac.c |7 ++- drivers/gpu

[PATCH 02/15] drm: Change drm_display_mode::type to unsigned

2012-03-13 Thread ville . syrjala
From: Ville Syrjälä The drm_display_mode type is a bitmask so it should be unsigned. Signed-off-by: Ville Syrjälä --- include/drm/drm_crtc.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h index 2a0872c..31715bd 100644 -

[PATCH 08/15] drm: Check CRTC viewport against framebuffer size

2012-03-13 Thread ville . syrjala
From: Ville Syrjälä Make sure the requested CRTC viewport fits inside the framebuffer. Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/drm_crtc.c | 24 1 files changed, 24 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/drm_crtc.c b/drivers/gpu/drm/drm_c

[PATCH 00/15] drm: Bounds checking, error handling, etc.

2012-03-13 Thread ville . syrjala
Mostly fixes for various bits and pieces that caught my eye while reading the mode setting code. ___ dri-devel mailing list dri-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/dri-devel

[PATCH 15/15] drm: Fix drm_mode_objecte_get() return values

2012-03-13 Thread ville . syrjala
From: Ville Syrjälä Change drm_mode_object_get() to return -ENOMEM if idr_pre_get() fails, and also handle -ENOSPC from idr_get_new_above(). Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/drm_crtc.c |5 - 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/drivers/gpu/drm/

[PATCH 13/15] drm: Eliminate pointless goto

2012-03-13 Thread ville . syrjala
From: Ville Syrjälä Use a do {} while() loop instead of a goto in drm_mode_object_get(). Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/drm_crtc.c | 20 ++-- 1 files changed, 10 insertions(+), 10 deletions(-) diff --git a/drivers/gpu/drm/drm_crtc.c b/drivers/gpu/drm/drm_cr

[PATCH 12/15] drm: Use a flexible array member for blob property data

2012-03-13 Thread ville . syrjala
From: Ville Syrjälä The blob property data is always allocated immediately after the object header. No need for the extra indirection when accessing it, just use a flexible array member. Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/drm_crtc.c |1 - include/drm/drm_crtc.h |2 +-

[PATCH 10/15] drm: Make drm_crtc_convert_{umode, to_umode} static and constify their params

2012-03-13 Thread ville . syrjala
From: Ville Syrjälä drm_crtc_convert_umode() and drm_crtc_convert_to_umode() are never used outside drm_crtc.c, so make them static. Also make the input mode structure const for both functions. Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/drm_crtc.c |8 1 files changed, 4 inse

[PATCH 09/15] drm: Fix drm_mode_attachmode_crtc()

2012-03-13 Thread ville . syrjala
From: Ville Syrjälä Change drm_mode_attachmode_crtc() to take an "all or nothing" approach. If an error is returned, there are no side effects visible. Also change the function to always duplicate the mode passed in. Also change the function to not give up when it finds the first connector with

[PATCH 07/15] drm: Check user mode against overflows

2012-03-13 Thread ville . syrjala
From: Ville Syrjälä The internal mode representation drm_display_mode uses signed data types. When converting the user mode to internal representation, check that the unsigned values don't overflow the signed datatypes. Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/drm_crtc.c | 33 +++

[PATCH 06/15] drm: Fix memory leak in drm_mode_setcrtc()

2012-03-13 Thread ville . syrjala
From: Ville Syrjälä The mode passed to the .set_config() hook was never freed. The drivers will make a copy of the mode, so simply free it when done. Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/drm_crtc.c |9 + 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/dri

[PATCH 05/15] drm: Make drm_mode_attachmode() void

2012-03-13 Thread ville . syrjala
From: Ville Syrjälä drm_mode_attachmode() always returns 0. Change the return type to void. Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/drm_crtc.c | 16 +--- 1 files changed, 5 insertions(+), 11 deletions(-) diff --git a/drivers/gpu/drm/drm_crtc.c b/drivers/gpu/drm/drm_crtc

[PATCH 04/15] drm: Check crtc x and y coordinates

2012-03-13 Thread ville . syrjala
From: Ville Syrjälä The crtc x/y panning coordinates are stored as signed integers internally. The user provides them as unsigned, so we should check that the user provided values actually fit in the internal datatypes. Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/drm_crtc.c |4 1

[PATCH 03/15] drm: Warn if mode to umode conversion overflows the destination types

2012-03-13 Thread ville . syrjala
From: Ville Syrjälä When converting from a drm_display_mode to drm_mode_modeinfo, print a warning if the the timings values don't fit into the __u16 datatype. Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/drm_crtc.c |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --gi

[PATCH 01/15] drm: Reject mode set with current fb if no current fb is bound

2012-03-13 Thread ville . syrjala
From: Ville Syrjälä When doing a mode set with the special fb id -1, reject the mode set if no fb is currently bound to the crtc. Also remove the pointless list traversal to find the current crtc based on the current crtc :) Signed-off-by: Ville Syrjälä --- drivers/gpu/drm/drm_crtc.c | 14 +

[RFCv2 PATCH 9/9] v4l: s5p-tv: mixer: integrate with dmabuf

2012-03-13 Thread Tomasz Stanislawski
Signed-off-by: Tomasz Stanislawski Signed-off-by: Kyungmin Park --- drivers/media/video/s5p-tv/Kconfig |1 + drivers/media/video/s5p-tv/mixer_video.c | 12 +++- 2 files changed, 12 insertions(+), 1 deletions(-) diff --git a/drivers/media/video/s5p-tv/Kconfig b/drivers/media

[RFCv2 PATCH 4/9] v4l: add buffer exporting via dmabuf

2012-03-13 Thread Tomasz Stanislawski
This patch adds extension to V4L2 api. It allow to export a mmap buffer as file descriptor. New ioctl VIDIOC_EXPBUF is added. It takes a buffer offset used by mmap and return a file descriptor on success. Signed-off-by: Tomasz Stanislawski Signed-off-by: Kyungmin Park --- drivers/media/video/v4

[RFCv2 PATCH 7/9] v4l: vb2-dma-contig: change map/unmap behaviour

2012-03-13 Thread Tomasz Stanislawski
The DMABUF documentation says that the map_dma_buf callback should return scatterlist that is mapped into a caller's address space. In practice, almost none of existing implementations of DMABUF exporter does it. This patch breaks the DMABUF specification in order to allow exchange DMABUF buffers

[RFCv2 PATCH 6/9] v4l: vb2-dma-contig: add support for DMABUF exporting

2012-03-13 Thread Tomasz Stanislawski
This patch adds support for exporting a dma-contig buffer using DMABUF interface. Signed-off-by: Tomasz Stanislawski Signed-off-by: Kyungmin Park --- drivers/media/video/videobuf2-dma-contig.c | 128 1 files changed, 128 insertions(+), 0 deletions(-) diff --git a/

[RFCv2 PATCH 8/9] v4l: fimc: integrate capture i-face with dmabuf

2012-03-13 Thread Tomasz Stanislawski
Signed-off-by: Tomasz Stanislawski Signed-off-by: Kyungmin Park --- drivers/media/video/Kconfig |1 + drivers/media/video/s5p-fimc/fimc-capture.c | 11 ++- 2 files changed, 11 insertions(+), 1 deletions(-) diff --git a/drivers/media/video/Kconfig b/drivers/media/vi

[RFCv2 PATCH 5/9] v4l: vb2: add buffer exporting via dmabuf

2012-03-13 Thread Tomasz Stanislawski
This patch adds extension to videobuf2-core. It allow to export a mmap buffer as a file descriptor. Signed-off-by: Tomasz Stanislawski Signed-off-by: Kyungmin Park --- drivers/media/video/videobuf2-core.c | 64 ++ include/media/videobuf2-core.h |2 +

  1   2   >