[PATCH v2] of: Add videomode helper

2012-07-11 Thread Guennadi Liakhovetski
On Wed, 11 Jul 2012, Sascha Hauer wrote: > Hi Guennadi, > > On Wed, Jul 11, 2012 at 10:34:54AM +0200, Guennadi Liakhovetski wrote: > > Hi Sascha > > > > > + > > > +Optional properties: > > > + - width-mm, height-mm: Display dimensions in mm > > > + - hsync-active-high (bool): Hsync pulse is acti

[PATCH v2] of: Add videomode helper

2012-07-11 Thread Sascha Hauer
Hi Guennadi, On Wed, Jul 11, 2012 at 10:34:54AM +0200, Guennadi Liakhovetski wrote: > Hi Sascha > > > + > > +Optional properties: > > + - width-mm, height-mm: Display dimensions in mm > > + - hsync-active-high (bool): Hsync pulse is active high > > + - vsync-active-high (bool): Vsync pulse is act

[PATCH v3] DRM: Add DRM kms/fb cma helper

2012-07-11 Thread Sascha Hauer
On Mon, Jul 02, 2012 at 04:37:47PM +0200, Lars-Peter Clausen wrote: > This patchset introduces a set of helper function for implementing the KMS > framebuffer layer for drivers which use the drm gem CMA helper function. > > Signed-off-by: Lars-Peter Clausen > > --- > Note: This patch depends on

[PATCH] dma-fence: dma-buf synchronization

2012-07-11 Thread Rob Clark
On Wed, Jul 11, 2012 at 6:49 PM, Maarten Lankhorst wrote: > Op 12-07-12 00:29, Rob Clark schreef: >> From: Rob Clark >> >> A dma-fence can be attached to a buffer which is being filled or consumed >> by hw, to allow userspace to pass the buffer without waiting to another >> device. For example,

[RFC] dma-fence: dma-buf synchronization

2012-07-11 Thread Rob Clark
oh, btw, this should be an [RFC] On Wed, Jul 11, 2012 at 5:29 PM, Rob Clark wrote: > From: Rob Clark > > A dma-fence can be attached to a buffer which is being filled or consumed > by hw, to allow userspace to pass the buffer without waiting to another > device. For example, userspace can call

[PATCH] dma-fence: dma-buf synchronization

2012-07-11 Thread Rob Clark
From: Rob Clark A dma-fence can be attached to a buffer which is being filled or consumed by hw, to allow userspace to pass the buffer without waiting to another device. For example, userspace can call page_flip ioctl to display the next frame of graphics after kicking the GPU but while the GPU

Re: [PATCH] dma-fence: dma-buf synchronization

2012-07-11 Thread Rob Clark
On Wed, Jul 11, 2012 at 6:49 PM, Maarten Lankhorst wrote: > Op 12-07-12 00:29, Rob Clark schreef: >> From: Rob Clark >> >> A dma-fence can be attached to a buffer which is being filled or consumed >> by hw, to allow userspace to pass the buffer without waiting to another >> device. For example,

Re: [PATCH] dma-fence: dma-buf synchronization

2012-07-11 Thread Maarten Lankhorst
Op 12-07-12 00:29, Rob Clark schreef: > From: Rob Clark > > A dma-fence can be attached to a buffer which is being filled or consumed > by hw, to allow userspace to pass the buffer without waiting to another > device. For example, userspace can call page_flip ioctl to display the > next frame of

[PATCH 25/81] drm: remove the list_head from drm_mode_set

2012-07-11 Thread Daniel Vetter
It's unused. At it confused me quite a bit until I've discovered that. Cc: dri-devel at lists.freedesktop.org Signed-Off-by: Daniel Vetter --- include/drm/drm_crtc.h |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h index ba

[PATCH 24/81] drm/fb helper: don't call drm_crtc_helper_set_config

2012-07-11 Thread Daniel Vetter
Go through the interface vtable instead, because not everyone might be using the crtc helper code. Cc: dri-devel at lists.freedesktop.org Signed-Off-by: Daniel Vetter --- drivers/gpu/drm/drm_fb_helper.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/gpu/drm/drm

Re: [RFC] dma-fence: dma-buf synchronization

2012-07-11 Thread Rob Clark
oh, btw, this should be an [RFC] On Wed, Jul 11, 2012 at 5:29 PM, Rob Clark wrote: > From: Rob Clark > > A dma-fence can be attached to a buffer which is being filled or consumed > by hw, to allow userspace to pass the buffer without waiting to another > device. For example, userspace can call

[PATCH] dma-fence: dma-buf synchronization

2012-07-11 Thread Rob Clark
From: Rob Clark A dma-fence can be attached to a buffer which is being filled or consumed by hw, to allow userspace to pass the buffer without waiting to another device. For example, userspace can call page_flip ioctl to display the next frame of graphics after kicking the GPU but while the GPU

[Bug 15844] Failed to load firmware "radeon/RV770_pfp.bin"

2012-07-11 Thread bugzilla-dae...@bugzilla.kernel.org
https://bugzilla.kernel.org/show_bug.cgi?id=15844 Alan changed: What|Removed |Added Status|NEW |RESOLVED CC|

[PATCH 7/7] drm/exynos: Add IOMMU support for mapping gem object

2012-07-11 Thread Prathyush K
A gem object is created using dma_alloc_writecombine. Currently, this buffer is assumed to be contiguous. If a IOMMU mapping is created for DRM, this buffer would be non-contig so the map functions are modified to call dma_mmap_writecombine. This works for both contig and non-contig buffers. Signe

[PATCH 6/7] drm/exynos: Add exynos drm specific fb_mmap function

2012-07-11 Thread Prathyush K
This patch adds a exynos drm specific implementation of fb_mmap which supports mapping a non-contiguous buffer to user space. This new function does not assume that the frame buffer is contiguous and calls dma_mmap_writecombine for mapping the buffer to user space. dma_mmap_writecombine will be abl

[PATCH 5/7] drm/exynos: attach drm device with common drm mapping

2012-07-11 Thread Prathyush K
This patch sets the common mapping created during drm init, to the drm device's archdata. The dma_ops of drm device is set as arm_iommu_ops. The common mapping is shared across all the drm devices which ensures that any buffer allocated with drm is accessible by drm-fimd or drm-hdmi or both. Signe

[PATCH 4/7] ARM: dma-mapping: rename and export iommu_ops

2012-07-11 Thread Prathyush K
This patch renames the dma_ops structure for arm from iommu_ops to arm_iommu_ops. This structure is also exported and declared extern so that it can be set as any device's dma ops directly. Signed-off-by: Prathyush K --- arch/arm/include/asm/dma-mapping.h |1 + arch/arm/mm/dma-mapping.c

[PATCH 3/7] drm/exynos: add IOMMU support to drm fimd

2012-07-11 Thread Prathyush K
This patch adds device tree based IOMMU support to DRM FIMD. During probe, the driver searches for a 'sysmmu' field in the device node. The sysmmu field points to the corresponding sysmmu device of fimd. This sysmmu device is retrieved and set as fimd's sysmmu. The common IOMMU mapping created duri

[PATCH 2/7] ARM: EXYNOS5: add sysmmu field to fimd device node

2012-07-11 Thread Prathyush K
This patch adds the sysmmu field to the fimd device node in the exynos5250 device tree. This field is used to link the parent device and its sysmmu device in the device tree. Signed-off-by: Prathyush K --- arch/arm/boot/dts/exynos5250.dtsi |1 + 1 files changed, 1 insertions(+), 0 deletions(

[PATCH 1/7] drm/exynos: create common IOMMU mapping for DRM

2012-07-11 Thread Prathyush K
This patch creates an IOMMU mapping during drm init. This is used by all the drm devices including the exynos drm virtual device. This ensures that when drm creates a buffer using the dma-mapping framework, this buffer is accessible by all the drm devices like hdmi/fimd. Signed-off-by: Prathyush K

[PATCH 0/7] [RFC] drm/exynos: Add IOMMU support to DRM

2012-07-11 Thread Prathyush K
The dma-mapping framework needs a IOMMU mapping to be created for the device which allocates/maps/frees the non-contig buffer. In the DRM framework, a gem buffer is created by the DRM virtual device and not directly by any of the physical devices (FIMD, HDMI etc). Each gem object can be set as a fr

[Bug 15748] BUG: unable to handle kernel NULL pointer dereference at 0000000000000028

2012-07-11 Thread bugzilla-dae...@bugzilla.kernel.org
https://bugzilla.kernel.org/show_bug.cgi?id=15748 Alan changed: What|Removed |Added Status|NEW |RESOLVED CC|

[Bug 15738] VGA output of Radeon HD3450 displays too bright colors with KMS radeon driver

2012-07-11 Thread bugzilla-dae...@bugzilla.kernel.org
https://bugzilla.kernel.org/show_bug.cgi?id=15738 Alan changed: What|Removed |Added Status|NEW |RESOLVED CC|

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

2012-07-11 Thread Leela Krishna Amudala
From: Prathyush K The name of the exynos drm fimd device is renamed to exynos-drm-fimd and two ids are created from exynos4-fb and exynos5-fb. Signed-off-by: Prathyush K --- drivers/gpu/drm/exynos/exynos_drm_fimd.c | 13 - 1 files changed, 12 insertions(+), 1 deletions(-) diff -

[PATCH V2 1/2] video: drm: exynos: Add device tree support

2012-07-11 Thread Leela Krishna Amudala
Add device tree based discovery support for DRM-FIMD driver. Signed-off-by: Leela Krishna Amudala --- Documentation/devicetree/bindings/fb/drm-fimd.txt | 73 + drivers/gpu/drm/exynos/exynos_drm_fimd.c | 88 - 2 files changed, 159 insertions(+), 2

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

2012-07-11 Thread Leela Krishna Amudala
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 errors and changed compatibility string Leela Krishna Amudala (1): vid

3.5-rc5: radeon acceleration regression on Transmeta system

2012-07-11 Thread Meelis Roos
> > It's actually more complicated than that. Old kernel images started > > misbehaving from around 2.6.35-rc5 and any kernel older than that was > > OK. When I recompiled the older kernels with squeeze gcc (migh have been > > lenny gcc before, or different answers to make oldconfig), anything from

Re: [PATCH v2] of: Add videomode helper

2012-07-11 Thread Guennadi Liakhovetski
On Wed, 11 Jul 2012, Sascha Hauer wrote: > Hi Guennadi, > > On Wed, Jul 11, 2012 at 10:34:54AM +0200, Guennadi Liakhovetski wrote: > > Hi Sascha > > > > > + > > > +Optional properties: > > > + - width-mm, height-mm: Display dimensions in mm > > > + - hsync-active-high (bool): Hsync pulse is acti

general protection fault on ttm_init()

2012-07-11 Thread Fengguang Wu
On Sat, Jul 07, 2012 at 11:31:42PM +0800, Fengguang Wu wrote: > On Sat, Jul 07, 2012 at 10:08:47AM +0800, Fengguang Wu wrote: > > On Fri, Jul 06, 2012 at 06:09:20PM +0100, Dave Airlie wrote: > > > On Fri, Jul 6, 2012 at 5:49 PM, Dave Airlie wrote: > > > > On Fri, Jul 6, 2012 at 3:48 PM, Fengguang

Re: [PATCH v2] of: Add videomode helper

2012-07-11 Thread Sascha Hauer
Hi Guennadi, On Wed, Jul 11, 2012 at 10:34:54AM +0200, Guennadi Liakhovetski wrote: > Hi Sascha > > > + > > +Optional properties: > > + - width-mm, height-mm: Display dimensions in mm > > + - hsync-active-high (bool): Hsync pulse is active high > > + - vsync-active-high (bool): Vsync pulse is act

Re: [PATCH v3] DRM: Add DRM kms/fb cma helper

2012-07-11 Thread Sascha Hauer
On Mon, Jul 02, 2012 at 04:37:47PM +0200, Lars-Peter Clausen wrote: > This patchset introduces a set of helper function for implementing the KMS > framebuffer layer for drivers which use the drm gem CMA helper function. > > Signed-off-by: Lars-Peter Clausen > > --- > Note: This patch depends on

[PATCH v2] of: Add videomode helper

2012-07-11 Thread Guennadi Liakhovetski
Hi Sascha On Wed, 4 Jul 2012, Sascha Hauer wrote: > This patch adds a helper function for parsing videomodes from the devicetree. > The videomode can be either converted to a struct drm_display_mode or a > struct fb_videomode. > > Signed-off-by: Sascha Hauer > --- > > changes since v1: > - use

[PATCH 14/15] drm/radeon: record what is next valid wptr for each ring v2

2012-07-11 Thread Christian König
On 10.07.2012 18:56, Jerome Glisse wrote: > On Tue, Jul 10, 2012 at 8:51 AM, Christian K?nig > wrote: >> Before emitting any indirect buffer, emit the offset of the next >> valid ring content if any. This allow code that want to resume >> ring to resume ring right after ib that caused GPU lockup.

[PATCH 25/81] drm: remove the list_head from drm_mode_set

2012-07-11 Thread Daniel Vetter
It's unused. At it confused me quite a bit until I've discovered that. Cc: dri-devel@lists.freedesktop.org Signed-Off-by: Daniel Vetter --- include/drm/drm_crtc.h |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h index bac55

[PATCH 24/81] drm/fb helper: don't call drm_crtc_helper_set_config

2012-07-11 Thread Daniel Vetter
Go through the interface vtable instead, because not everyone might be using the crtc helper code. Cc: dri-devel@lists.freedesktop.org Signed-Off-by: Daniel Vetter --- drivers/gpu/drm/drm_fb_helper.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/gpu/drm/drm_fb

[Bug 15844] Failed to load firmware "radeon/RV770_pfp.bin"

2012-07-11 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=15844 Alan changed: What|Removed |Added Status|NEW |RESOLVED CC|

[Bug 15748] BUG: unable to handle kernel NULL pointer dereference at 0000000000000028

2012-07-11 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=15748 Alan changed: What|Removed |Added Status|NEW |RESOLVED CC|

[Bug 15738] VGA output of Radeon HD3450 displays too bright colors with KMS radeon driver

2012-07-11 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=15738 Alan changed: What|Removed |Added Status|NEW |RESOLVED CC|

Re: 3.5-rc5: radeon acceleration regression on Transmeta system

2012-07-11 Thread Meelis Roos
> > It's actually more complicated than that. Old kernel images started > > misbehaving from around 2.6.35-rc5 and any kernel older than that was > > OK. When I recompiled the older kernels with squeeze gcc (migh have been > > lenny gcc before, or different answers to make oldconfig), anything from

[PATCH 7/7] drm/exynos: Add IOMMU support for mapping gem object

2012-07-11 Thread Prathyush K
A gem object is created using dma_alloc_writecombine. Currently, this buffer is assumed to be contiguous. If a IOMMU mapping is created for DRM, this buffer would be non-contig so the map functions are modified to call dma_mmap_writecombine. This works for both contig and non-contig buffers. Signe

[PATCH 6/7] drm/exynos: Add exynos drm specific fb_mmap function

2012-07-11 Thread Prathyush K
This patch adds a exynos drm specific implementation of fb_mmap which supports mapping a non-contiguous buffer to user space. This new function does not assume that the frame buffer is contiguous and calls dma_mmap_writecombine for mapping the buffer to user space. dma_mmap_writecombine will be abl

[PATCH 4/7] ARM: dma-mapping: rename and export iommu_ops

2012-07-11 Thread Prathyush K
This patch renames the dma_ops structure for arm from iommu_ops to arm_iommu_ops. This structure is also exported and declared extern so that it can be set as any device's dma ops directly. Signed-off-by: Prathyush K --- arch/arm/include/asm/dma-mapping.h |1 + arch/arm/mm/dma-mapping.c

[PATCH 5/7] drm/exynos: attach drm device with common drm mapping

2012-07-11 Thread Prathyush K
This patch sets the common mapping created during drm init, to the drm device's archdata. The dma_ops of drm device is set as arm_iommu_ops. The common mapping is shared across all the drm devices which ensures that any buffer allocated with drm is accessible by drm-fimd or drm-hdmi or both. Signe

[PATCH 3/7] drm/exynos: add IOMMU support to drm fimd

2012-07-11 Thread Prathyush K
This patch adds device tree based IOMMU support to DRM FIMD. During probe, the driver searches for a 'sysmmu' field in the device node. The sysmmu field points to the corresponding sysmmu device of fimd. This sysmmu device is retrieved and set as fimd's sysmmu. The common IOMMU mapping created duri

[PATCH 2/7] ARM: EXYNOS5: add sysmmu field to fimd device node

2012-07-11 Thread Prathyush K
This patch adds the sysmmu field to the fimd device node in the exynos5250 device tree. This field is used to link the parent device and its sysmmu device in the device tree. Signed-off-by: Prathyush K --- arch/arm/boot/dts/exynos5250.dtsi |1 + 1 files changed, 1 insertions(+), 0 deletions(

[PATCH 1/7] drm/exynos: create common IOMMU mapping for DRM

2012-07-11 Thread Prathyush K
This patch creates an IOMMU mapping during drm init. This is used by all the drm devices including the exynos drm virtual device. This ensures that when drm creates a buffer using the dma-mapping framework, this buffer is accessible by all the drm devices like hdmi/fimd. Signed-off-by: Prathyush K

[PATCH 0/7] [RFC] drm/exynos: Add IOMMU support to DRM

2012-07-11 Thread Prathyush K
The dma-mapping framework needs a IOMMU mapping to be created for the device which allocates/maps/frees the non-contig buffer. In the DRM framework, a gem buffer is created by the DRM virtual device and not directly by any of the physical devices (FIMD, HDMI etc). Each gem object can be set as a fr

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

2012-07-11 Thread Leela Krishna Amudala
From: Prathyush K The name of the exynos drm fimd device is renamed to exynos-drm-fimd and two ids are created from exynos4-fb and exynos5-fb. Signed-off-by: Prathyush K --- drivers/gpu/drm/exynos/exynos_drm_fimd.c | 13 - 1 files changed, 12 insertions(+), 1 deletions(-) diff -

[PATCH V2 1/2] video: drm: exynos: Add device tree support

2012-07-11 Thread Leela Krishna Amudala
Add device tree based discovery support for DRM-FIMD driver. Signed-off-by: Leela Krishna Amudala --- Documentation/devicetree/bindings/fb/drm-fimd.txt | 73 + drivers/gpu/drm/exynos/exynos_drm_fimd.c | 88 - 2 files changed, 159 insertions(+), 2

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

2012-07-11 Thread Leela Krishna Amudala
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 errors and changed compatibility string Leela Krishna Amudala (1): vid

Re: [PATCH v2] of: Add videomode helper

2012-07-11 Thread Guennadi Liakhovetski
Hi Sascha On Wed, 4 Jul 2012, Sascha Hauer wrote: > This patch adds a helper function for parsing videomodes from the devicetree. > The videomode can be either converted to a struct drm_display_mode or a > struct fb_videomode. > > Signed-off-by: Sascha Hauer > --- > > changes since v1: > - use

Re: [PATCH 14/15] drm/radeon: record what is next valid wptr for each ring v2

2012-07-11 Thread Christian König
On 10.07.2012 18:56, Jerome Glisse wrote: On Tue, Jul 10, 2012 at 8:51 AM, Christian König wrote: Before emitting any indirect buffer, emit the offset of the next valid ring content if any. This allow code that want to resume ring to resume ring right after ib that caused GPU lockup. v2: use s