Re: [BUG 3.7-rc1] nouveau cli-mutex possible recursive locking detected

2012-10-25 Thread Arend van Spriel
On 10/16/2012 02:43 PM, Stanislaw Gruszka wrote: I have this lockdep warning on wireless-testing tree based on 3.7-rc1 (no other patches except wireless bits). = Restarting tasks ... done. [ INFO: possible recursive locking detected ] 3.7.0-rc1-wl+ #2

Re: [BUG 3.7-rc1] nouveau cli-mutex possible recursive locking detected

2012-10-25 Thread Arend van Spriel
On 10/24/2012 01:14 PM, Arend van Spriel wrote: On 10/16/2012 02:43 PM, Stanislaw Gruszka wrote: I have this lockdep warning on wireless-testing tree based on 3.7-rc1 (no other patches except wireless bits). = Restarting tasks ... done. [ INFO:

[PATCH] drivers/gpu/drm/radeon/evergreen_cs.c: Remove unnecessary semicolon

2012-10-25 Thread Peter Senna Tschudin
A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // smpl @r1@ statement S; position p,p1; @@ S@p1;@p @script:python r2@ p r1.p; p1 r1.p1; @@ if p[0].line != p1[0].line_end: cocci.include_match(False) @@ position r1.p; @@

Re: [drm:i915_hangcheck_hung] *ERROR* Hangcheck timer elapsed... GPU hung

2012-10-25 Thread Justin P. Mattock
On Tue, Oct 23, 2012 at 10:06:52AM -0700, Justin P. Mattock wrote: This is happening both with MAINLINE and NEXT. basically system is running fine, then under load system becomes really sluggish and unresponsive. I was able to get dmesg of the error..: [ 7745.007008] ath9k

Re: [PATCH] DRM/Radeon: Set depth on low mem Radeon cards to 16 instead of 8.

2012-10-25 Thread Michel Dänzer
On Mit, 2012-10-24 at 18:33 +0200, Egbert Eich wrote: The Radeon driver reduces the framebuffer resolution to 8bpp if a device with less than 32 Mb VRAM is found. This causes the framebuffer to run in 8 bit paletted mode. For a text console this is not an issue as 256 different colors is more

[Bug 56329] System does not hibernate ATI Technologies Inc RV370 secondary [Sapphire X550 Silent]

2012-10-25 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=56329 --- Comment #7 from Giacomo Perale ghe...@virgilio.it --- FWIW I've got the same card and hibernation has been working reliably for at least two years and it's still working with current git. -- You are receiving this mail because: You are the

Re: [PATCH 1/3] drm/ttm: add ttm_bo_is_reserved

2012-10-25 Thread Thomas Hellstrom
On 10/12/2012 04:58 PM, Maarten Lankhorst wrote: Signed-off-by: Maarten Lankhorst maarten.lankho...@canonical.com --- drivers/gpu/drm/ttm/ttm_bo.c | 12 ++-- include/drm/ttm/ttm_bo_api.h | 14 ++ 2 files changed, 20 insertions(+), 6 deletions(-) diff --git

Re: [PATCH 2/3] drm/radeon: Use ttm_bo_is_reserved

2012-10-25 Thread Thomas Hellstrom
On 10/12/2012 04:59 PM, Maarten Lankhorst wrote: Signed-off-by: Maarten Lankhorst maarten.lankho...@canonical.com --- drivers/gpu/drm/radeon/radeon_gart.c |2 +- drivers/gpu/drm/radeon/radeon_object.c |6 +++--- drivers/gpu/drm/radeon/radeon_object.h |2 +- 3 files changed, 5

Re: [PATCH 3/3] drm/vmwgfx: use ttm_bo_is_reserved

2012-10-25 Thread Thomas Hellstrom
On 10/12/2012 04:59 PM, Maarten Lankhorst wrote: Signed-off-by: Maarten Lankhorst maarten.lankho...@canonical.com --- drivers/gpu/drm/vmwgfx/vmwgfx_dmabuf.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_dmabuf.c

Re: [PATCH 1/4] drm/vmwgfx: remove use of fence_obj_args

2012-10-25 Thread Thomas Hellstrom
On 10/12/2012 05:01 PM, Maarten Lankhorst wrote: It's always hardcoded to the same value. Signed-off-by: Maarten Lankhorst maarten.lankho...@canonical.com --- drivers/gpu/drm/vmwgfx/vmwgfx_buffer.c |7 ++- drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c | 15 ++-

Re: [drm:i915_hangcheck_hung] *ERROR* Hangcheck timer elapsed... GPU hung

2012-10-25 Thread Daniel Vetter
On Thu, Oct 25, 2012 at 7:22 AM, Justin P. Mattock justinmatt...@gmail.com wrote: here is a link to the file..: intel_error_decode http://www.filefactory.com/file/22bypyjhs4mx I haven't figured out how to access this thing. Can you please file a bug report on bugs.freedesktop.org and attach it

Re: [drm:i915_hangcheck_hung] *ERROR* Hangcheck timer elapsed... GPU hung

2012-10-25 Thread Chris Wilson
On Thu, 25 Oct 2012 10:16:08 +0200, Daniel Vetter dan...@ffwll.ch wrote: On Thu, Oct 25, 2012 at 7:22 AM, Justin P. Mattock justinmatt...@gmail.com wrote: here is a link to the file..: intel_error_decode http://www.filefactory.com/file/22bypyjhs4mx I haven't figured out how to access

Re: [PATCH 1/2] drm: use monotonic time in drm_calc_vbltimestamp_from_scanoutpos

2012-10-25 Thread Imre Deak
On Thu, 2012-10-25 at 01:05 +0200, Mario Kleiner wrote: On 23.10.12 20:53, Imre Deak wrote: For measuring duration we want to avoid that our start/end timestamps jump, so use monotonic instead of real time for that. Signed-off-by: Imre Deak imre.d...@intel.com ---

[Bug 49431] [Apple Inc. MacBookPro5,4] suspend/resume failure

2012-10-25 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=49431 Alan a...@lxorguk.ukuu.org.uk changed: What|Removed |Added CC||a...@lxorguk.ukuu.org.uk

Re: [PATCH] drivers/gpu/drm/radeon/evergreen_cs.c: Remove unnecessary semicolon

2012-10-25 Thread Alex Deucher
On Wed, Oct 24, 2012 at 10:42 AM, Peter Senna Tschudin peter.se...@gmail.com wrote: A simplified version of the semantic match that finds this problem is as follows: (http://coccinelle.lip6.fr/) // smpl @r1@ statement S; position p,p1; @@ S@p1;@p @script:python r2@ p r1.p; p1 r1.p1;

Breakage in track dev_mapping in more robust and flexible way

2012-10-25 Thread Thomas Hellstrom
Hi, This commit From 949c4a34afacfe800fc442afac117aba15284962 Mon Sep 17 00:00:00 2001 From: Ilija Hadzic ihad...@research.bell-labs.com Date: Tue, 15 May 2012 16:40:10 -0400 Subject: [PATCH] drm: track dev_mapping in more robust and flexible way Setting dev_mapping (pointer to the

Re: Breakage in track dev_mapping in more robust and flexible way

2012-10-25 Thread Jerome Glisse
On Thu, Oct 25, 2012 at 04:02:25PM +0200, Thomas Hellstrom wrote: Hi, This commit From 949c4a34afacfe800fc442afac117aba15284962 Mon Sep 17 00:00:00 2001 From: Ilija Hadzic ihad...@research.bell-labs.com Date: Tue, 15 May 2012 16:40:10 -0400 Subject: [PATCH] drm: track dev_mapping in more

Re: Breakage in track dev_mapping in more robust and flexible way

2012-10-25 Thread Thomas Hellström
On 10/25/12 4:41 PM, Jerome Glisse wrote: On Thu, Oct 25, 2012 at 04:02:25PM +0200, Thomas Hellstrom wrote: Hi, This commit From 949c4a34afacfe800fc442afac117aba15284962 Mon Sep 17 00:00:00 2001 From: Ilija Hadzic ihad...@research.bell-labs.com Date: Tue, 15 May 2012 16:40:10 -0400 Subject:

Re: mmotm 2012-10-24-17-15 uploaded (drm/i915)

2012-10-25 Thread Randy Dunlap
On 10/24/2012 05:16 PM, a...@linux-foundation.org wrote: The mm-of-the-moment snapshot 2012-10-24-17-15 has been uploaded to http://www.ozlabs.org/~akpm/mmotm/ mmotm-readme.txt says README for mm-of-the-moment: http://www.ozlabs.org/~akpm/mmotm/ on i386: ERROR:

Re: [BUG 3.7-rc1] nouveau cli-mutex possible recursive locking detected

2012-10-25 Thread Arend van Spriel
On 10/24/2012 02:45 PM, Arend van Spriel wrote: On 10/24/2012 01:14 PM, Arend van Spriel wrote: On 10/16/2012 02:43 PM, Stanislaw Gruszka wrote: I have this lockdep warning on wireless-testing tree based on 3.7-rc1 (no other patches except wireless bits).

Re: [BUG 3.7-rc1] nouveau cli-mutex possible recursive locking detected

2012-10-25 Thread Arend van Spriel
On 10/24/2012 02:45 PM, Arend van Spriel wrote: On 10/24/2012 01:14 PM, Arend van Spriel wrote: On 10/16/2012 02:43 PM, Stanislaw Gruszka wrote: I have this lockdep warning on wireless-testing tree based on 3.7-rc1 (no other patches except wireless bits).

[PATCH 2/2] vga_switcheroo: Drop unused include and unused variables.

2012-10-25 Thread Igor Murzov
Signed-off-by: Igor Murzov e-m...@date.by --- drivers/gpu/vga/vga_switcheroo.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/gpu/vga/vga_switcheroo.c b/drivers/gpu/vga/vga_switcheroo.c index e25cf31..fa60add 100644 --- a/drivers/gpu/vga/vga_switcheroo.c +++

[PATCH 1/2] drm/radeon: fix ATPX function documentation

2012-10-25 Thread Igor Murzov
Fix a copypasted documentation. Signed-off-by: Igor Murzov e-m...@date.by --- drivers/gpu/drm/radeon/radeon_atpx_handler.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_atpx_handler.c b/drivers/gpu/drm/radeon/radeon_atpx_handler.c index

Re: Breakage in track dev_mapping in more robust and flexible way

2012-10-25 Thread Ilija Hadzic
On Thu, Oct 25, 2012 at 11:10 AM, Thomas Hellström thellst...@vmware.com wrote: On 10/25/12 4:41 PM, Jerome Glisse wrote: On Thu, Oct 25, 2012 at 04:02:25PM +0200, Thomas Hellstrom wrote: Hi, This commit From 949c4a34afacfe800fc442afac117aba15284962 Mon Sep 17 00:00:00 2001 From: Ilija

Re: Breakage in track dev_mapping in more robust and flexible way

2012-10-25 Thread Ilija Hadzic
Or could the driver that causes the problem be vmwgfx ? I now looked at the code and I notice that indeed vmwgfx sets its private dev_mapping in the open hook, while all other TTM-based drivers (radeon and nouveau) do it when they create an object. -- Ilija

[Bug 56405] New: Distorted graphics on Radeon HD 6620G

2012-10-25 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=56405 Priority: medium Bug ID: 56405 Assignee: dri-devel@lists.freedesktop.org Summary: Distorted graphics on Radeon HD 6620G Severity: critical Classification: Unclassified OS:

[Bug 56405] Distorted graphics on Radeon HD 6620G

2012-10-25 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=56405 mdrs...@t-online.de changed: What|Removed |Added Attachment #69083|text/plain |image/png mime type|

[PATCH 01/51] drm: Be more paranoid with integer overflows

2012-10-25 Thread ville . syrjala
From: Ville Syrjälä ville.syrj...@linux.intel.com Make sure 'width * cpp' and 'height * pitch + offset' don't exceed UINT_MAX. Signed-off-by: Ville Syrjälä ville.syrj...@linux.intel.com Reviewed-by: Alex Deucher alexander.deuc...@amd.com --- drivers/gpu/drm/drm_crtc.c | 10 +- 1 files

[PATCH 00/51] Atomic mode setting and page flip

2012-10-25 Thread ville . syrjala
Here's the latest atomic stuff. It's finally starting to look somewhat reasonable. I rebased the work on top of drm-fixes as of today. There are quite a few preparatory patches in the series. Some of those are just fixes/cleanups that could be pushed independently. What's still unfinished: -

[PATCH 03/51] drm: Ignore blob propertys in drm_property_change_is_valid()

2012-10-25 Thread ville . syrjala
From: Ville Syrjälä ville.syrj...@linux.intel.com In case of a blob property drm_property_change_is_valid() can't tell whether the change is valid or not. So just return true for all blob properties, and leave it up to someone else to check it. Signed-off-by: Ville Syrjälä

[PATCH 04/51] drm: Add struct drm_region and assorted utility functions

2012-10-25 Thread ville . syrjala
From: Ville Syrjälä ville.syrj...@linux.intel.com struct drm_region represents a two dimensional region. The utility functions are there to help driver writers. Signed-off-by: Ville Syrjälä ville.syrj...@linux.intel.com --- drivers/gpu/drm/drm_crtc.c | 155

[PATCH 05/51] drm: Add drm_calc_{hscale, vscale}() utility functions

2012-10-25 Thread ville . syrjala
From: Ville Syrjälä ville.syrj...@linux.intel.com Signed-off-by: Ville Syrjälä ville.syrj...@linux.intel.com --- drivers/gpu/drm/drm_crtc.c | 102 include/drm/drm_crtc.h |4 ++ 2 files changed, 106 insertions(+), 0 deletions(-) diff --git

[PATCH 06/51] drm: Keep a copy of last plane coordinates

2012-10-25 Thread ville . syrjala
From: Ville Syrjälä ville.syrj...@linux.intel.com If the update_plane() operation succeeds, make a copy of the requested src and crtc coordinates, so that the the plane may be reclipped if the display mode changed later. Signed-off-by: Ville Syrjälä ville.syrj...@linux.intel.com ---

[PATCH 07/51] drm: Add restore_fbdev_mode() hook to drm_fb_helper

2012-10-25 Thread ville . syrjala
From: Ville Syrjälä ville.syrj...@linux.intel.com Add an optional driver specific restore_fbdev_mode() hook to drm_fb_helper. If the driver doesn't provide the hook, drm_fb_helper_restore_fbdev_mode() is called directly as before. In this hook the driver can disable additional planes, cursors

[PATCH 08/51] drm: Export drm_property_create_blob() and drm_property_destroy_blob()

2012-10-25 Thread ville . syrjala
From: Ville Syrjälä ville.syrj...@linux.intel.com Signed-off-by: Ville Syrjälä ville.syrj...@linux.intel.com --- drivers/gpu/drm/drm_crtc.c |8 +--- include/drm/drm_crtc.h |4 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/drm_crtc.c

[PATCH 09/51] drm: Allow signed values for range properties

2012-10-25 Thread ville . syrjala
From: Ville Syrjälä ville.syrj...@linux.intel.com Treat a range property as signed when the unsigned minimum value is larger than the unsigned maximum value. Signed-off-by: Ville Syrjälä ville.syrj...@linux.intel.com --- drivers/gpu/drm/drm_crtc.c | 17 ++--- 1 files changed, 14

[PATCH 12/51] drm: Export drm_crtc_prepare_encoders()

2012-10-25 Thread ville . syrjala
From: Ville Syrjälä ville.syrj...@linux.intel.com --- drivers/gpu/drm/drm_crtc_helper.c |3 ++- include/drm/drm_crtc_helper.h |1 + 2 files changed, 3 insertions(+), 1 deletions(-) diff --git a/drivers/gpu/drm/drm_crtc_helper.c b/drivers/gpu/drm/drm_crtc_helper.c index

[PATCH 13/51] drm: Refactor object property check code

2012-10-25 Thread ville . syrjala
From: Ville Syrjälä ville.syrj...@linux.intel.com Refactor the code to check whether an object has a specific property to a new function. Signed-off-by: Ville Syrjälä ville.syrj...@linux.intel.com --- drivers/gpu/drm/drm_crtc.c | 20 ++-- 1 files changed, 14 insertions(+), 6

[PATCH 14/51] drm: Export mode-umode conversion functions

2012-10-25 Thread ville . syrjala
From: Ville Syrjälä ville.syrj...@linux.intel.com Export drm_crtc_convert_to_umode() and drm_crtc_convert_umode(). Signed-off-by: Ville Syrjälä ville.syrj...@linux.intel.com --- drivers/gpu/drm/drm_crtc.c | 10 ++ include/drm/drm_crtc.h |4 2 files changed, 10

[PATCH 15/51] drm: Make blobs resizeable

2012-10-25 Thread ville . syrjala
From: Ville Syrjälä ville.syrj...@linux.intel.com When first allocated blobs can be given a maximum size for which memory is allocated. Later the data inside the blob can be replaced, assuming that the maximum size is not exceeded. Signed-off-by: Ville Syrjälä ville.syrj...@linux.intel.com ---

[PATCH 11/51] drm: Export drm_encoder_crtc_ok

2012-10-25 Thread ville . syrjala
From: Ville Syrjälä ville.syrj...@linux.intel.com --- drivers/gpu/drm/drm_crtc_helper.c |5 +++-- include/drm/drm_crtc_helper.h |3 +++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/drm_crtc_helper.c b/drivers/gpu/drm/drm_crtc_helper.c index

[PATCH 17/51] drm: Add mode_blob and connector_ids_blob to drm_crtc

2012-10-25 Thread ville . syrjala
From: Ville Syrjälä ville.syrj...@linux.intel.com These will be ued by standard properties MODE and CONNECTOR_IDS. Signed-off-by: Ville Syrjälä ville.syrj...@linux.intel.com --- include/drm/drm_crtc.h |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git

[PATCH 18/51] drm: Add the atomic modeset ioctl

2012-10-25 Thread ville . syrjala
From: Ville Syrjälä ville.syrj...@linux.intel.com This new ioctl can be used to update an arbitrary set of object properties in one operation. The ioctl simply takes a list of object IDs and property IDs and their values. For setting values of blob properties, the property value indicates the

[PATCH 20/51] drm/i915: Add SURFLIVE register definitions

2012-10-25 Thread ville . syrjala
From: Ville Syrjälä ville.syrj...@linux.intel.com Signed-off-by: Ville Syrjälä ville.syrj...@linux.intel.com --- drivers/gpu/drm/i915/i915_reg.h |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/i915/i915_reg.h b/drivers/gpu/drm/i915/i915_reg.h index

[PATCH 21/51] drm/i915: Implement execbuffer wait for all planes

2012-10-25 Thread ville . syrjala
From: Ville Syrjälä ville.syrj...@linux.intel.com Add the MI_WAIT_FOR_EVENT bits for sprites, and fix up the whole thing for IVB which moved most of the bits around. Not tested at all! Signed-off-by: Ville Syrjälä ville.syrj...@linux.intel.com --- drivers/gpu/drm/i915/i915_gem_execbuffer.c |

[PATCH 23/51] drm/i915: Check the framebuffer offset

2012-10-25 Thread ville . syrjala
From: Ville Syrjälä ville.syrj...@linux.intel.com The framebuffer offset must be aligned to (macro)pixel size. Signed-off-by: Ville Syrjälä ville.syrj...@linux.intel.com --- drivers/gpu/drm/i915/intel_display.c |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git

[PATCH 24/51] drm/i915: Handle framebuffer offsets[]

2012-10-25 Thread ville . syrjala
From: Ville Syrjälä ville.syrj...@linux.intel.com Take fb-offset[0] into account when calculating the linear and tile x/y offsets. For non-tiled surfaces fb-offset[0] is simply added to the linear byte offset. For tiled surfaces treat fb-offsets[0] as a byte offset into the linearized view of

[PATCH 19/51] drm/i915: Fix display pixel format handling

2012-10-25 Thread ville . syrjala
From: Ville Syrjälä ville.syrj...@linux.intel.com Fix support for all RGB/BGR pixel formats (except the 16:16:16:16 float format). Fix intel_init_framebuffer() to match hardware and driver limitations: * RGB332 is not supported at all * CI8 is supported * XRGB1555 co. are supported on Gen3 and

[PATCH 25/51] drm/i915: Implement proper clipping for video sprites

2012-10-25 Thread ville . syrjala
From: Ville Syrjälä ville.syrj...@linux.intel.com Properly clip the source when the destination gets clipped by the pipe dimensions. Sadly the video sprite hardware is rather limited so it can't do proper sub-pixel postitioning. Resort to a best effort approach, where the source coordinates are

[PATCH 28/51] drm/i915: Implement restore_fbdev_mode hook

2012-10-25 Thread ville . syrjala
From: Ville Syrjälä ville.syrj...@linux.intel.com Convert intel_fb_restore_mode to be useable as the drm_fb_helper.restore_fbdev_mode hook. This will cause all planes to be disabled when swithing back to fbcon. Signed-off-by: Ville Syrjälä ville.syrj...@linux.intel.com ---

[PATCH 29/51] drm/i915: Split clipping and checking from update_plane hook

2012-10-25 Thread ville . syrjala
From: Ville Syrjälä ville.syrj...@linux.intel.com Split the update_plane() codepath into two separate steps. The first step checkis and clips the plane, and the second step actually commits the changes to the hardware. This allows the atomic modesetting code to perform all checks before clobering

[PATCH 31/51] drm/i915: Consitify adjusted_mode parameter

2012-10-25 Thread ville . syrjala
From: Ville Syrjälä ville.syrj...@linux.intel.com i9xx_adjust_sdvo_tv_clock(), i9xx_compute_clocks() and ironlake_compute_clocks() do not modify the adjusted_mode passed in, so pass it as const. Signed-off-by: Ville Syrjälä ville.syrj...@linux.intel.com --- drivers/gpu/drm/i915/intel_display.c

[PATCH 27/51] drm/i915: Bad pixel formats can't reach the sprite code

2012-10-25 Thread ville . syrjala
From: Ville Syrjälä ville.syrj...@linux.intel.com The framebuffer pixel format is already checked by the common code. So there's no way an invalid format could reach the driver. So instead of falling back to a default format, call BUG(). Signed-off-by: Ville Syrjälä ville.syrj...@linux.intel.com

[PATCH 33/51] drm/i915: store cursor_handle in struct intel_crtc

2012-10-25 Thread ville . syrjala
From: Ander Conselvan de Oliveira conselv...@gmail.com This way it is possible to check if the cursor changed without doing any setup. Will be useful for the atomic modesetting api. --- drivers/gpu/drm/i915/intel_display.c |1 + drivers/gpu/drm/i915/intel_drv.h |2 +- 2 files

[PATCH 35/51] drm/i915: unstatic cursor functions for use with atomic modesetting

2012-10-25 Thread ville . syrjala
From: Ander Conselvan de Oliveira conselv...@gmail.com --- drivers/gpu/drm/i915/intel_display.c | 24 drivers/gpu/drm/i915/intel_drv.h | 13 + 2 files changed, 25 insertions(+), 12 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_display.c

[PATCH 37/51] drm/i915: Pull intel_pipe_set_base() out of the crtc_mode_set() functions

2012-10-25 Thread ville . syrjala
From: Ville Syrjälä ville.syrj...@linux.intel.com intel_pipe_set_base() (un)pins the buffers, so it can't be called from the atomic modeset paths. Pull the intel_pipe_set_base() and watermark modifications out of i9xx_crtc_mode_set() and ironlake_crtc_mode_set() into intel_crtc_mode_set(), so

[PATCH 39/51] drm/i915: Introduce intel_crtc_update_sarea_pos()

2012-10-25 Thread ville . syrjala
From: Ville Syrjälä ville.syrj...@linux.intel.com Refactor the code that stores the panning x/y position into the sarea. Make the new function intel_crtc_update_sarea_pos() available to the atomic mode setting code. Signed-off-by: Ville Syrjälä ville.syrj...@linux.intel.com ---

[PATCH 40/51] drm/i915: Constify mode argument to intel_modeset_adjusted_mode()

2012-10-25 Thread ville . syrjala
From: Ville Syrjälä ville.syrj...@linux.intel.com intel_modeset_adjusted_mode() doesn't modify the passed display mode. So pass it as const. Signed-off-by: Ville Syrjälä ville.syrj...@linux.intel.com --- drivers/gpu/drm/i915/intel_display.c |2 +- 1 files changed, 1 insertions(+), 1

[PATCH 41/51] drm/i915: Unstatic intel_crtc_mode_fixup()

2012-10-25 Thread ville . syrjala
From: Ville Syrjälä ville.syrj...@linux.intel.com Make intel_crtc_mode_fixup() available for the upcoming atomic modesetting code. Signed-off-by: Ville Syrjälä ville.syrj...@linux.intel.com --- drivers/gpu/drm/i915/intel_display.c |6 +++--- drivers/gpu/drm/i915/intel_drv.h |4

[PATCH 36/51] drm/i915: Unstatic intel_finish_fb()

2012-10-25 Thread ville . syrjala
From: Ville Syrjälä ville.syrj...@linux.intel.com intel_finish_fb() will be used by the atomic modeset code, so make it non-static. Signed-off-by: Ville Syrjälä ville.syrj...@linux.intel.com --- drivers/gpu/drm/i915/intel_display.c |2 +- drivers/gpu/drm/i915/intel_drv.h |1 + 2

[PATCH 42/51] drm/i915: Introduce intel_plane_regs

2012-10-25 Thread ville . syrjala
From: Ville Syrjälä ville.syrj...@linux.intel.com intel_plane_regs can be used to shadow all the typical plane registers. Signed-off-by: Ville Syrjälä ville.syrj...@linux.intel.com --- drivers/gpu/drm/i915/intel_drv.h | 14 ++ 1 files changed, 14 insertions(+), 0 deletions(-)

[PATCH 47/51] drm/i915: Add atomic page flip support

2012-10-25 Thread ville . syrjala
From: Ville Syrjälä ville.syrj...@linux.intel.com Add support for the DRM_MODE_ATOMIC_NONBLOCK flag. The drm_flip helper provides the necessary logic to track the progress of the flips. drm_flip is driven by a few extra calls from the interrupt handling and crtc_disable code paths. Since the

[PATCH 49/51] drm/i915: Respect primary_disabled in crtc_enable()

2012-10-25 Thread ville . syrjala
From: Ville Syrjälä ville.syrj...@linux.intel.com Check primary_disabled state before enabling the primary plane in crtc_enable() hooks. Signed-off-by: Ville Syrjälä ville.syrj...@linux.intel.com --- drivers/gpu/drm/i915/intel_display.c |6 -- 1 files changed, 4 insertions(+), 2

[PATCH 48/51] drm/i915: Unstatic intel_enable_primary() and intel_disable_primary()

2012-10-25 Thread ville . syrjala
From: Ville Syrjälä ville.syrj...@linux.intel.com intel_enable_primary() and intel_disable_primary() are needed in the atomic mode setting code. Signed-off-by: Ville Syrjälä ville.syrj...@linux.intel.com --- drivers/gpu/drm/i915/intel_drv.h|3 +++ drivers/gpu/drm/i915/intel_sprite.c |

[PATCH 50/51] drm/i915: Enable/disable primary plane in calc_plane()

2012-10-25 Thread ville . syrjala
From: Ville Syrjälä ville.syrj...@linux.intel.com Check the active and primary_disabled flags and set the DISPLAY_PLANE_ENABLE bit accordingly in calc_plane() hook for the primary plane. Signed-off-by: Ville Syrjälä ville.syrj...@linux.intel.com --- drivers/gpu/drm/i915/intel_display.c | 10

[PATCH 51/51] drm/i915: Add primary plane disable logic to atomic mode setting code

2012-10-25 Thread ville . syrjala
From: Ville Syrjälä ville.syrj...@linux.intel.com Enable/disable the primary plane accordingly when the sprite plane coverage changes. Signed-off-by: Ville Syrjälä ville.syrj...@linux.intel.com --- drivers/gpu/drm/i915/intel_atomic.c | 41 +++ 1 files changed,

[PATCH 02/51] drm: Constify some function arguments

2012-10-25 Thread ville . syrjala
From: Ville Syrjälä ville.syrj...@linux.intel.com None of drm_mode_debug_printmodeline(), drm_mode_equal(), drm_mode_width() or drm_mode_height() change the mode passed in, so make the arguments const. Signed-off-by: Ville Syrjälä ville.syrj...@linux.intel.com --- drivers/gpu/drm/drm_modes.c |

[PATCH 10/51] drm: Allow drm_mode_object_find() to look up an object of any type

2012-10-25 Thread ville . syrjala
From: Ville Syrjälä ville.syrj...@linux.intel.com To avoid having to pass object types from userspace for atomic mode setting ioctl, allow drm_mode_object_find() to look up an object of any type. This will only work as long as the all object types share the ID space. Signed-off-by: Ville Syrjälä

[PATCH 16/51] drm: Add drm_flip helper

2012-10-25 Thread ville . syrjala
From: Ville Syrjälä ville.syrj...@linux.intel.com The drm_flip mechanism can be used to implement robust page flipping support, and also to synchronize the flips on multiple hardware scanout engines (eg. CRTCs and overlays). Signed-off-by: Ville Syrjälä ville.syrj...@linux.intel.com ---

[PATCH 22/51] drm/i915: Check framebuffer stride more thoroughly

2012-10-25 Thread ville . syrjala
From: Ville Syrjälä ville.syrj...@linux.intel.com Make sure the the framebuffer stride is smaller than the maximum accepted by any plane. Also when using a tiled memory make sure the object stride matches the framebuffer stride. Signed-off-by: Ville Syrjälä ville.syrj...@linux.intel.com ---

[PATCH 26/51] drm/i915: pixel_size == cpp

2012-10-25 Thread ville . syrjala
From: Ville Syrjälä ville.syrj...@linux.intel.com Use drm_format_plane_cpp() to get 'pixel_size' in the sprite code. Signed-off-by: Ville Syrjälä ville.syrj...@linux.intel.com --- drivers/gpu/drm/i915/intel_sprite.c | 19 +++ 1 files changed, 3 insertions(+), 16 deletions(-)

[PATCH 38/51] drm/i915: Unstatic intel_crtc_update_sarea()

2012-10-25 Thread ville . syrjala
From: Ville Syrjälä ville.syrj...@linux.intel.com Make intel_crtc_update_sarea() available for the atomic mode setting code. Signed-off-by: Ville Syrjälä ville.syrj...@linux.intel.com --- drivers/gpu/drm/i915/intel_display.c |4 ++-- drivers/gpu/drm/i915/intel_drv.h |2 ++ 2 files

[PATCH 44/51] drm/i915: Split sprite update_plane() into calc+commit phases

2012-10-25 Thread ville . syrjala
From: Ville Syrjälä ville.syrj...@linux.intel.com Separate the part that calculates the register values from the part that writes the registers. This will be useful in the atomic page flip code. Also move the watermark magic into a prepare function that can be performed outside the critical parts

Re: Breakage in track dev_mapping in more robust and flexible way

2012-10-25 Thread Thomas Hellström
On 10/25/12 7:12 PM, Ilija Hadzic wrote: On Thu, Oct 25, 2012 at 11:10 AM, Thomas Hellström thellst...@vmware.com wrote: On 10/25/12 4:41 PM, Jerome Glisse wrote: On Thu, Oct 25, 2012 at 04:02:25PM +0200, Thomas Hellstrom wrote: Hi, This commit From

[PATCH 34/51] drm/i915: split cursor setting code into prepare/commit/unref parts

2012-10-25 Thread ville . syrjala
From: Ander Conselvan de Oliveira conselv...@gmail.com The atomic mode setting API will need to pin the cursor bo without making changes to the current setup. Only on a later stage the cursor registers can be written and the previous bo released. This patch splits intel_crtc_cursor_set() into

[Bug 49531] New: Powering down inactive GPU while running X causes NULL pointer dereference

2012-10-25 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=49531 Summary: Powering down inactive GPU while running X causes NULL pointer dereference Product: Drivers Version: 2.5 Kernel Version: 3.7.0-rc2+ Platform: All OS/Version: Linux

[Bug 49531] Powering down inactive GPU while running X causes NULL pointer dereference

2012-10-25 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=49531 --- Comment #1 from Igor Murzov e-m...@date.by 2012-10-25 18:45:46 --- Created an attachment (id=84851) -- (https://bugzilla.kernel.org/attachment.cgi?id=84851) lspci -vvv -- Configure bugmail:

[Bug 56405] Distorted graphics on Radeon HD 6620G

2012-10-25 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=56405 --- Comment #1 from Alex Deucher ag...@yahoo.com --- Can you checkout mesa from git an bisect? Also please attach your xorg log and dmesg output. -- You are receiving this mail because: You are the assignee for the bug.

Re: [PATCH] drm/i915/dp: allow configuring eDP panel fitting scaling mode

2012-10-25 Thread Daniel Vetter
On Thu, Oct 25, 2012 at 01:57:47PM -0400, Yuly Novikov wrote: LVDS allowed changing panel fitting scaling mode, while eDP didn't. Copied relevant code from LVDS to eDP. This also changes default mode on eDP to ascpect ratio preserving scaling. Signed-off-by: Yuly Novikov

[Bug 49531] Powering down inactive GPU while running X causes NULL pointer dereference

2012-10-25 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=49531 --- Comment #2 from Igor Murzov e-m...@date.by 2012-10-25 19:29:01 --- Created an attachment (id=84861) -- (https://bugzilla.kernel.org/attachment.cgi?id=84861) Call stack information from GDB -- Configure bugmail:

[Bug 49531] Powering down inactive GPU while running X causes NULL pointer dereference

2012-10-25 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=49531 --- Comment #3 from Alex Deucher alexdeuc...@gmail.com 2012-10-25 19:33:44 --- Are you using the new dynamic gpu switching stuff in xserver 1.13 or just the old static switching? -- Configure bugmail:

Re: [PATCH 1/2] drm: use monotonic time in drm_calc_vbltimestamp_from_scanoutpos

2012-10-25 Thread Mario Kleiner
On 25.10.12 12:28, Imre Deak wrote: On Thu, 2012-10-25 at 01:05 +0200, Mario Kleiner wrote: On 23.10.12 20:53, Imre Deak wrote: For measuring duration we want to avoid that our start/end timestamps jump, so use monotonic instead of real time for that. Signed-off-by: Imre Deak

[Bug 49531] Powering down inactive GPU while running X causes NULL pointer dereference

2012-10-25 Thread bugzilla-daemon
https://bugzilla.kernel.org/show_bug.cgi?id=49531 --- Comment #4 from Igor Murzov e-m...@date.by 2012-10-25 19:58:36 --- I use xorg-server-1.12.3 and i'm not switching GPUs while X is running. I've tried to power down unused GPU and then kernel crashed. Switching GPUs while X is running

Re: Linux 3.7-rc1 (nouveau_bios_score oops).

2012-10-25 Thread Paweł Sikora
On Saturday 20 of October 2012 11:40:04 Martin Peres wrote: On 20/10/2012 11:26, Heinz Diehl wrote: On 20.10.2012, Linus Torvalds wrote: Added more appropriate people to this. Added both i915 and nouveau people, since apparently that fine piece of hardware has both. Guys, any ideas?

[PATCH] drm/i915/dp: allow configuring eDP panel fitting scaling mode

2012-10-25 Thread Yuly Novikov
LVDS allowed changing panel fitting scaling mode, while eDP didn't. Copied relevant code from LVDS to eDP. This also changes default mode on eDP to ascpect ratio preserving scaling. Signed-off-by: Yuly Novikov ynovi...@chromium.org --- drivers/gpu/drm/i915/intel_dp.c | 33

Re: Linux 3.7-rc1 (nouveau_bios_score oops).

2012-10-25 Thread Heinz Diehl
On 25.10.2012, Paweł Sikora wrote: what is the reason of loading nouveau driver for laptops with nvidia optimus and enabling vga switcheroo which doesn't work in such (optimus) cases. You can safely compile a kernel without nouveau, your Nvidia card will not be used at all since neither

DRM agp_init error path oops

2012-10-25 Thread Bjorn Helgaas
I think there's a latent bug in a DRM error path, at least when used by i915. In the scenario below, if dev-driver-bus-agp_init() fails, we call drm_lastclose(). At least in i915_driver_lastclose(), this dereferences dev-dev_private (at 1 below). But dev-dev_private isn't initialized until 2,

Re: Breakage in track dev_mapping in more robust and flexible way

2012-10-25 Thread Ilija Hadzic
Can you give the attached patch a whirl and let me know if it fixes the problem? As I indicated in my previous note, vmwgfx should be the only affected driver because it looks at dev_mapping in the open hook (others do it when they create an object, so they are not affected). I'll

Re: [Linaro-mm-sig] [PATCH] dma-buf: Use EXPORT_SYMBOL

2012-10-25 Thread Dave Airlie
Unlikely as most of the code I've written belongs to Intel or Red Hat. I also have better things to do with life than sue Nvidia and start an all out copyright and patent war in Linuxspace. I forgot to ask, but after your petty G+ trolling, if most of the code belings to Intel or Red Hat, why

[PATCH] drm/omap: only advertise rotation prop if supported

2012-10-25 Thread Rob Clark
From: Rob Clark r...@ti.com For hardware that does not have DMM/TILER, there is no rotation, so no point in getting userspace's hopes up. Signed-off-by: Rob Clark r...@ti.com --- drivers/staging/omapdrm/omap_drv.c | 27 +++ drivers/staging/omapdrm/omap_plane.c | 34

Re: [PATCH] DRM/Radeon: Set depth on low mem Radeon cards to 16 instead of 8.

2012-10-25 Thread Egbert Eich
Dave Airlie writes: On Thu, Oct 25, 2012 at 3:07 AM, Alex Deucher alexdeuc...@gmail.com wrote: On Wed, Oct 24, 2012 at 12:33 PM, Egbert Eich e...@suse.de wrote: The Radeon driver reduces the framebuffer resolution to 8bpp if a device with less than 32 Mb VRAM is found. This causes the

[git pull] drm radeon fixes.

2012-10-25 Thread Dave Airlie
Hi Linus, Just radeon fixes in this one, some new PCI IDs, ATPX regression fix, async VM regression fixes some module options fixes. Dave. The following changes since commit b8e902f24fdd16c4373ddc37a4e150c4afe9c6db: drm/ttm: Fix a theoretical race in ttm_bo_cleanup_refs() (2012-10-23

[Bug 56139] [bisected] kernel 3.7.0-rc1 breaks 6950 (CAYMAN)

2012-10-25 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=56139 --- Comment #4 from Alexandre Demers alexandre.f.dem...@gmail.com --- First, I made a mistake last time I wrote: the evergreen_mc_resume() function patch was fine. The bad code was in the evergreen_mc_stop() function. Sorry for the wrong lead, I

[PATCH] DRM/Radeon: Set depth on low mem Radeon cards to 16 instead of 8.

2012-10-25 Thread Dave Airlie
On Thu, Oct 25, 2012 at 3:07 AM, Alex Deucher wrote: > On Wed, Oct 24, 2012 at 12:33 PM, Egbert Eich wrote: >> The Radeon driver reduces the framebuffer resolution to 8bpp if >> a device with less than 32 Mb VRAM is found. This causes the >> framebuffer to run in 8 bit paletted mode. For a text

[PATCH 1/2] drm: use monotonic time in drm_calc_vbltimestamp_from_scanoutpos

2012-10-25 Thread Mario Kleiner
On 23.10.12 20:53, Imre Deak wrote: > For measuring duration we want to avoid that our start/end timestamps > jump, so use monotonic instead of real time for that. > > Signed-off-by: Imre Deak > --- > drivers/gpu/drm/drm_irq.c | 18 -- > 1 file changed, 12 insertions(+), 6

[PATCH] DRM/Radeon: Set depth on low mem Radeon cards to 16 instead of 8.

2012-10-25 Thread Michel Dänzer
On Mit, 2012-10-24 at 18:33 +0200, Egbert Eich wrote: > The Radeon driver reduces the framebuffer resolution to 8bpp if > a device with less than 32 Mb VRAM is found. This causes the > framebuffer to run in 8 bit paletted mode. For a text console this > is not an issue as 256 different colors is

[Bug 56329] System does not hibernate ATI Technologies Inc RV370 secondary [Sapphire X550 Silent]

2012-10-25 Thread bugzilla-dae...@freedesktop.org
for the bug. -- next part -- An HTML attachment was scrubbed... URL: <http://lists.freedesktop.org/archives/dri-devel/attachments/20121025/6dcf65dd/attachment.html>

[PATCH 1/3] drm/ttm: add ttm_bo_is_reserved

2012-10-25 Thread Thomas Hellstrom
On 10/12/2012 04:58 PM, Maarten Lankhorst wrote: > Signed-off-by: Maarten Lankhorst > --- > drivers/gpu/drm/ttm/ttm_bo.c | 12 ++-- > include/drm/ttm/ttm_bo_api.h | 14 ++ > 2 files changed, 20 insertions(+), 6 deletions(-) > > diff --git a/drivers/gpu/drm/ttm/ttm_bo.c

[PATCH 2/3] drm/radeon: Use ttm_bo_is_reserved

2012-10-25 Thread Thomas Hellstrom
On 10/12/2012 04:59 PM, Maarten Lankhorst wrote: > Signed-off-by: Maarten Lankhorst > --- > drivers/gpu/drm/radeon/radeon_gart.c |2 +- > drivers/gpu/drm/radeon/radeon_object.c |6 +++--- > drivers/gpu/drm/radeon/radeon_object.h |2 +- > 3 files changed, 5 insertions(+), 5

[PATCH 3/3] drm/vmwgfx: use ttm_bo_is_reserved

2012-10-25 Thread Thomas Hellstrom
On 10/12/2012 04:59 PM, Maarten Lankhorst wrote: > Signed-off-by: Maarten Lankhorst > --- > drivers/gpu/drm/vmwgfx/vmwgfx_dmabuf.c |2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_dmabuf.c > b/drivers/gpu/drm/vmwgfx/vmwgfx_dmabuf.c >

  1   2   >