[PATCH libdrm] xf86drm: correct the OpenBSD DRM_MAJOR define

2015-07-21 Thread Jonathan Gray
On Mon, Jul 20, 2015 at 05:06:09PM +0100, Emil Velikov wrote: > On 18 July 2015 at 22:20, Jonathan Gray wrote: > > As far as I can tell no OpenBSD platform ever used 81 > > for a drm major. While the value was added to libdrm in 2003 > > or earlier drm didn't appear in OpenBSD till 2007. > > > >

[PATCH libdrm v2] xf86drm: correct the OpenBSD DRM_MAJOR define

2015-07-21 Thread Jonathan Gray
As far as I can tell no OpenBSD platform ever used 81 for a drm major. While the value was added to libdrm in 2003 or earlier drm didn't appear in OpenBSD till 2007. Of the OpenBSD platforms that support drm amd64/macppc/sparc64 use a major of 87, i386 uses 88. v2: rearrange ifdefs as suggested

[PATCH libdrm v2] xf86drm: use the correct device minor names on OpenBSD

2015-07-21 Thread Jonathan Gray
Add defines for the device minor names and make use of them in drmGetMinorName() so the correct paths will be used on OpenBSD. v2: don't add new defines to xf86drm.h to keep them out of the API as requested by Emil. Signed-off-by: Jonathan Gray --- xf86drm.c | 16 +---

[Bug 91386] Tonga HDMI Audio needs CPU load

2015-07-21 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=91386 --- Comment #2 from Andy Furniss --- (In reply to Alex Deucher from comment #1) > Does audio work ok with the proprietary Linux driver? No, fglrx on ubuntu 15.04 has the same issue. -- You are receiving this mail because: You are the

[Bug 91278] Tonga GPU lock/reset fail with Unigine Valley

2015-07-21 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=91278 --- Comment #4 from Andy Furniss --- I tested Xonotic with load over the weekend and it did lock after about 10 minutes - but I then tested without any memory pressure and still managed to lock, it did take longer. I got another lock ehile

[Bug 91371] Tonga HDMI Audio none on TV working on monitor - possible eld issue

2015-07-21 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=91371 --- Comment #8 from Andy Furniss --- Created attachment 117268 --> https://bugs.freedesktop.org/attachment.cgi?id=117268=edit tv eld ubuntu fglrx I do get sound from the TV with ubuntu 15.04 and fglrx (with cpu load). The eld still doesn't

[PATCH v2 3/4] of: Add NVIDIA Tegra VIC binding

2015-07-21 Thread Mikko Perttunen
On 07/20/2015 08:20 PM, Emil Velikov wrote: > Hi Mikko, > > On 20 July 2015 at 08:54, Mikko Perttunen wrote: >> This adds device tree binding documentation for the Video Image >> Compositor (VIC) present on Tegra124 and newer SoC's. >> >> Signed-off-by: Mikko Perttunen >> --- >>

[Intel-gfx] [PATCH v2] drm/i915: remove unnecessary null test

2015-07-21 Thread Sudip Mukherjee
On Mon, Jul 20, 2015 at 05:33:50PM +0200, Daniel Vetter wrote: > On Mon, Jul 20, 2015 at 08:36:01PM +0530, Sudip Mukherjee wrote: > > While creating the debugfs file we are setting the inode->i_private to > > dev. That same dev is passed to these functions as private of struct > > seq_file via

KMS timings (Re: [PATCH 6/8] drm/bochs: phase 3: provide a custom ->atomic_commit implementation)

2015-07-21 Thread Pekka Paalanen
On Mon, 20 Jul 2015 10:32:31 -0700 Stéphane Marchesin wrote: > On Mon, Jul 20, 2015 at 7:21 AM, Daniel Vetter wrote: > > On Mon, Jul 20, 2015 at 12:35:48PM +0300, Pekka Paalanen wrote: > >> On Mon, 20 Jul 2015 01:58:33 -0700 > >> Stéphane Marchesin wrote: > >> > >> > On Mon, Jul 20, 2015 at

[Intel-gfx] [v3 0/7] Crystalcove (CRC) PMIC based panel and pwm control

2015-07-21 Thread Shobhit Kumar
On Fri, Jul 10, 2015 at 6:36 PM, Shobhit Kumar wrote: > On Mon, Jun 29, 2015 at 3:48 AM, Paul Gortmaker > wrote: >> [Re: [Intel-gfx] [v3 0/7] Crystalcove (CRC) PMIC based panel and pwm >> control] On 26/06/2015 (Fri 20:47) Ville Syrjälä wrote: >> >>> On Fri, Jun 26, 2015 at 06:31:37PM +0200,

[Intel-gfx] [v3 0/7] Crystalcove (CRC) PMIC based panel and pwm control

2015-07-21 Thread Daniel Vetter
On Tue, Jul 21, 2015 at 12:43:48PM +0530, Shobhit Kumar wrote: > On Fri, Jul 10, 2015 at 6:36 PM, Shobhit Kumar wrote: > > On Mon, Jun 29, 2015 at 3:48 AM, Paul Gortmaker > > wrote: > >> [Re: [Intel-gfx] [v3 0/7] Crystalcove (CRC) PMIC based panel and pwm > >> control] On 26/06/2015 (Fri 20:47)

[PULL] drm: atmel-hlcdc: Fix for 4.1

2015-07-21 Thread Boris Brezillon
Hi Dave, This pull request contains a bug fix preventing a warning backtrace when we call drm_vblank_on just after the DRM device initialization. Best Regards, Boris The following changes since commit e9308884878942c618a42cab122df80fbf458dc9: drm/ttm: improve uncached page deallocation.

[PULL] drm: atmel-hlcdc: Fix for 4.1

2015-07-21 Thread Boris Brezillon
On Tue, 21 Jul 2015 09:19:53 +0200 Boris Brezillon wrote: This PR is for 4.2 not 4.1. > Hi Dave, > > This pull request contains a bug fix preventing a warning backtrace > when we call drm_vblank_on just after the DRM device > initialization. > > Best Regards, > > Boris > > The following

[PATCH v2 5/5] drm/rockchip: default enable win2/3 area0 bit

2015-07-21 Thread Tomasz Figa
On Fri, Jul 3, 2015 at 7:08 PM, Mark yao wrote: > On 2015年07月03日 17:24, Tomasz Figa wrote: >> >> On Fri, Jul 3, 2015 at 5:19 PM, Mark yao wrote: >>> >>> On 2015年07月03日 16:02, Tomasz Figa wrote: Hi Mark, Please see my comments inline. On Fri, Jun 26, 2015

[Intel-gfx] [PATCH v2] drm/i915: remove unnecessary null test

2015-07-21 Thread Daniel Vetter
On Tue, Jul 21, 2015 at 12:11:18PM +0530, Sudip Mukherjee wrote: > On Mon, Jul 20, 2015 at 05:33:50PM +0200, Daniel Vetter wrote: > > On Mon, Jul 20, 2015 at 08:36:01PM +0530, Sudip Mukherjee wrote: > > > While creating the debugfs file we are setting the inode->i_private to > > > dev. That same

[PATCH v2] drm/rockchip: vop: remove hardware cursor window

2015-07-21 Thread Tomasz Figa
On Thu, Jul 2, 2015 at 4:07 PM, Mark Yao wrote: > hardware cursor windows only have some fixed size, and not support > width virtual, when move hardware cursor windows outside of left, > the display would be wrong, so this window can't for cursor now. > > And Tag hardware cursor window as a

[PATCH v2 4/5] drm/rockchip: vop: switch cursor plane to window 3

2015-07-21 Thread Tomasz Figa
I missed it originally, but if it's not too late yet... On Fri, Jun 26, 2015 at 7:07 PM, Mark Yao wrote: > Window 1 support scale and yuv format, it's waste use it for a > cursor, use window 3 is enough. > > Signed-off-by: Mark Yao > --- > Changes in v2: None > >

[PATCH] drm: Make the connector dpms callback return a value.

2015-07-21 Thread Maarten Lankhorst
This is required to properly handle failing dpms calls. When making a wait in i915 interruptible, I've noticed that the dpms sequence could fail with -ERESTARTSYS because it was waiting interruptibly for flips. So from now on allow drivers to fail in their connector dpms callback. Encoder and

[PATCH v3 1/6] drm/rockchip: vop: Fix virtual stride calculation

2015-07-21 Thread Mark Yao
vir_stride need number words of the virtual width, and fb->pitches save bytes_per_pixel, so just div 4 switch to stride. Signed-off-by: Mark Yao --- Changes in v3: Adviced by Tomasz Figa - use more suitable tile for this patch. Changes in v2: None drivers/gpu/drm/rockchip/rockchip_drm_vop.c

[PATCH v3 0/6] drm/rockchip: fixes and new features

2015-07-21 Thread Mark Yao
This series patches are used for yuv image overlay display. Rockchip vop support NV11, NV16, NV24 yuv format, and can scale the image scale 1/8 to 8. Changes in v3: - make code more readable - fix some bugs Changes in v2: - Uv buffer not support odd offset, align it. - Fix error display when

[PATCH v3 2/6] drm/rockchip: vop: Fix window dest start point

2015-07-21 Thread Mark Yao
Dest start point use crtc_x/y is wrong, crtc_x/y is not equal to dest.x1/y1 at plane scale. Signed-off-by: Mark Yao --- drivers/gpu/drm/rockchip/rockchip_drm_vop.c |6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c

[PATCH v3 3/6] drm/rockchip: vop: Add yuv plane support

2015-07-21 Thread Mark Yao
vop support yuv with NV12, NV16 and NV24, only 2 plane yuv. Signed-off-by: Mark Yao --- Changes in v3: Adviced by Tomasz Figa - separate dest calculate to another patch - fix src x1,x2 when do align, and remove unnecessary src.y1 align. Changes in v2: - Uv buffer not support odd offset, align

[PATCH v3 4/6] drm/rockchip: vop: Default enable win2/3 area0 bit

2015-07-21 Thread Mark Yao
Win2/3 support multiple area function, but we haven't found a suitable way to use it yet, so let's just use them as other windows with only area 0 enabled. Signed-off-by: Mark Yao --- Changes in v3: Adviced by Tomasz Figa - fix patch comments. Changes in v2: None

[PATCH v3 5/6] drm/rockchip: vop: restore vop registers when resume

2015-07-21 Thread Mark Yao
The registers will be reset to default values when whole power domain off, so restore registers from regsbak. Signed-off-by: Mark Yao --- drivers/gpu/drm/rockchip/rockchip_drm_vop.c |1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c

[PATCH v3 6/6] drm/rockchip: vop: support plane scale

2015-07-21 Thread Mark Yao
Win_full support 1/8 to 8 scale down/up engine, support all format scale. Signed-off-by: Mark Yao --- Changes in v3: Adviced by Tomasz Figa - remove unused code and unnecessary scale path. - use static inline funcion instead "#define", let gcc check the cast - move same call into helper, make

KMS timings (Re: [PATCH 6/8] drm/bochs: phase 3: provide a custom ->atomic_commit implementation)

2015-07-21 Thread Daniel Vetter
On Tue, Jul 21, 2015 at 10:06:09AM +0300, Pekka Paalanen wrote: > On Mon, 20 Jul 2015 10:32:31 -0700 > Stéphane Marchesin wrote: > > > On Mon, Jul 20, 2015 at 7:21 AM, Daniel Vetter wrote: > > > On Mon, Jul 20, 2015 at 12:35:48PM +0300, Pekka Paalanen wrote: > > >> On Mon, 20 Jul 2015 01:58:33

[PATCH] tests: modetest: Accept connector names in addition to connector IDs

2015-07-21 Thread Thierry Reding
scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20150721/74f7b18f/attachment.sig>

[PATCH v2] drm: Make the connector dpms callback return a value, v2.

2015-07-21 Thread Maarten Lankhorst
This is required to properly handle failing dpms calls. When making a wait in i915 interruptible, I've noticed that the dpms sequence could fail with -ERESTARTSYS because it was waiting interruptibly for flips. So from now on allow drivers to fail in their connector dpms callback. Encoder and

[PATCH 10/16] drm/i915: Add set_property handler for pipe Gamma correction on CHV/BSW

2015-07-21 Thread Malladi, Kausal
On Tuesday 21 July 2015 05:33 AM, Matt Roper wrote: > On Wed, Jul 15, 2015 at 06:39:34PM +0530, Kausal Malladi wrote: >> This patch adds set_property handler for Gamma color correction and >> enhancement capability at Pipe level on CHV/BSW platform. The set >> function just attaches the Gamma blob

[PATCH 11/16] drm/i915: Add pipe level Gamma correction for CHV/BSW

2015-07-21 Thread Malladi, Kausal
On Tuesday 21 July 2015 05:33 AM, Matt Roper wrote: > On Wed, Jul 15, 2015 at 06:39:35PM +0530, Kausal Malladi wrote: >> CHV/BSW platform supports various Gamma correction modes, which are: >> 1. Legacy 8-bit mode >> 2. 10-bit CGM (Color Gamut Mapping) mode >> >> This patch does the following: >>

KMS timings (Re: [PATCH 6/8] drm/bochs: phase 3: provide a custom ->atomic_commit implementation)

2015-07-21 Thread Pekka Paalanen
On Tue, 21 Jul 2015 11:02:58 +0200 Daniel Vetter wrote: > On Tue, Jul 21, 2015 at 10:06:09AM +0300, Pekka Paalanen wrote: > > On Mon, 20 Jul 2015 10:32:31 -0700 > > Stéphane Marchesin wrote: > > > > > On Mon, Jul 20, 2015 at 7:21 AM, Daniel Vetter wrote: > > > > On Mon, Jul 20, 2015 at

[PATCH 2/6] drm/atomic: pass old crtc state to atomic_begin/flush.

2015-07-21 Thread Maarten Lankhorst
In intel it's useful to keep track of some state changes with old crtc state vs new state, for example to disable initial planes or when a modeset's prevented during fastboot. Cc: dri-devel at lists.freedesktop.org Signed-off-by: Maarten Lankhorst ---

[PATCH 1/6] drm/atomic: add connectors_changed to separate it from mode_changed, v2

2015-07-21 Thread Maarten Lankhorst
This can be a separate case from mode_changed, when connectors stay the same but only the mode is different. Drivers may choose to implement specific optimizations to prevent a full modeset for this case. Changes since v1: - Update kerneldocs slightly. Cc: dri-devel at lists.freedesktop.org

[PATCH v3 1/2] drm/i915: remove unnecessary null test

2015-07-21 Thread Sudip Mukherjee
While creating the debugfs file we are setting the inode->i_private to dev. That same dev is passed to these functions as private of struct seq_file via single_open(). Moreover single_open is setting file->private_data->private to dev. So at this point it can never be NULL. This check was added by

[PATCH v3 2/2] drm/i915: remove redundant if check

2015-07-21 Thread Sudip Mukherjee
The extra check for connector_type is not required as we are already checking for connector_type != DRM_MODE_CONNECTOR_DisplayPort. The check was added by commit eb3394faeb97 ("drm/i915: Add debugfs test control files for Displayport compliance testing") Signed-off-by: Sudip Mukherjee --- v3: It

[PATCH] tests: modetest: Accept connector names in addition to connector IDs

2015-07-21 Thread Laurent Pinchart
Hi Thierry, On Tuesday 21 July 2015 11:05:59 Thierry Reding wrote: > On Mon, Jul 20, 2015 at 07:56:20PM +0300, Laurent Pinchart wrote: > > From: Thierry Reding > > > > Allow connector names to be used in the specification of the -s option. > > This requires storing the string passed on the

[PATCH] drm: Detect no-op drmModeAtomicRequest and return early

2015-07-21 Thread Chris Wilson
If the number of items to process in the request is zero, we can forgo duplicating, sorting the request and feeding it into the kernel and instead report success immediately. This prevents a NULL dereference of the sorted->items for the no-op request. Fixes:

[PATCHv7 14/15] cec: s5p-cec: Add s5p-cec driver

2015-07-21 Thread Marek Szyprowski
Hello, On 2015-07-16 15:09, Hans Verkuil wrote: > Marek, Kamil, > > On 06/29/15 12:14, Hans Verkuil wrote: >> From: Kamil Debski >> >> Add CEC interface driver present in the Samsung Exynos range of >> SoCs. >> >> The following files were based on work by SangPil Moon: >> - exynos_hdmi_cec.h >>

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

2015-07-21 Thread Krzysztof Kozlowski
Hi, Today's linux-next (next-20150721) encounters boot failures on Exynos Octa (Exynos5422) based boards. The boards hangs. I bisected it to: d80167b85024982c5f18d0481a5c248100360118 is the first bad commit commit d80167b85024982c5f18d0481a5c248100360118 Author: Joonyoung Shim Date: Thu Jul 2

KMS timings (Re: [PATCH 6/8] drm/bochs: phase 3: provide a custom ->atomic_commit implementation)

2015-07-21 Thread Daniel Vetter
On Tue, Jul 21, 2015 at 02:22:03PM +0300, Pekka Paalanen wrote: > On Tue, 21 Jul 2015 11:02:58 +0200 > Daniel Vetter wrote: > > > On Tue, Jul 21, 2015 at 10:06:09AM +0300, Pekka Paalanen wrote: > > > On Mon, 20 Jul 2015 10:32:31 -0700 > > > Stéphane Marchesin wrote: > > > If one does not ask

[PATCH v3 1/2] drm/i915: remove unnecessary null test

2015-07-21 Thread Daniel Vetter
On Tue, Jul 21, 2015 at 05:36:45PM +0530, Sudip Mukherjee wrote: > While creating the debugfs file we are setting the inode->i_private to > dev. That same dev is passed to these functions as private of struct > seq_file via single_open(). Moreover single_open is setting >

[PATCH v3 1/2] drm/i915: remove unnecessary null test

2015-07-21 Thread Sudip Mukherjee
On Tue, Jul 21, 2015 at 03:51:40PM +0200, Daniel Vetter wrote: > On Tue, Jul 21, 2015 at 05:36:45PM +0530, Sudip Mukherjee wrote: > > While creating the debugfs file we are setting the inode->i_private to > > dev. That same dev is passed to these functions as private of struct > > seq_file via

[PATCH] tests: modetest: Accept connector names in addition to connector IDs

2015-07-21 Thread Thierry Reding
on't think you need it since I authored it, but yeah, if this works, just go ahead and I'll figure out what to do about it when rebasing on top of your version. Thierry -- next part -- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20150721/1257e60b/attachment.sig>

likely signedness bug in drm and nvidia drivers

2015-07-21 Thread Daniel Thompson
On 21/07/15 03:44, Ilia Mirkin wrote: > I think you're right. The intent is to mask off the bits above> bits_per_pixel. So if bits_per_pixel is 24, the mask would be> 0xff00. If it's 16, then the mask would be 0x. If it's 32,> then the mask is 0.> > In reality, bits_per_pixel is

[Bug 91371] Tonga HDMI Audio none on TV working on monitor - possible eld issue

2015-07-21 Thread bugzilla-dae...@freedesktop.org
e: You are the assignee for the bug. -- next part -- An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20150721/b5cc8f18/attachment-0001.html>

[Bug 91416] vsync limits fps but still tearing in picture

2015-07-21 Thread bugzilla-dae...@freedesktop.org
vel/attachments/20150721/5feb3ef8/attachment.html>

[PATCH] drm/panel: auo novatek 1080p video mode panel

2015-07-21 Thread Rob Clark
This is one of several different panels that are used on the Sony Xperia Z3 phone. It can operate in either command or video mode, although so far only video mode is implemented (since that is the mode that the downstream kernel version I happened to be looking at was using, and that is where I

[Bug 90681] Radeon Kernel Oops & Lockup when switching on DisplayPort attached monitor

2015-07-21 Thread bugzilla-dae...@freedesktop.org
ttp://lists.freedesktop.org/archives/dri-devel/attachments/20150721/5b17b9f9/attachment.html>

[Bug 90681] Radeon Kernel Oops & Lockup when switching on DisplayPort attached monitor

2015-07-21 Thread bugzilla-dae...@freedesktop.org
art -- An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20150721/e1e9bc92/attachment.html>

[PATCH 11/16] drm/i915: Add pipe level Gamma correction for CHV/BSW

2015-07-21 Thread Matt Roper
On Tue, Jul 21, 2015 at 04:40:08PM +0530, Malladi, Kausal wrote: > On Tuesday 21 July 2015 05:33 AM, Matt Roper wrote: > >On Wed, Jul 15, 2015 at 06:39:35PM +0530, Kausal Malladi wrote: ... > >>diff --git a/drivers/gpu/drm/i915/intel_display.c > >>b/drivers/gpu/drm/i915/intel_display.c > >>index

[PATCH V4 4/6] mm: mlock: Introduce VM_LOCKONFAULT and add mlock flags to enable it

2015-07-21 Thread Eric B Munson
The cost of faulting in all memory to be locked can be very high when working with large mappings. If only portions of the mapping will be used this can incur a high penalty for locking. For the example of a large file, this is the usage pattern for a large statical language model (probably