Re: [PATCH] ttm: Make parts of a struct ttm_bo_device global.

2009-08-20 Thread Thomas Hellström
Dave Airlie wrote: On Wed, Aug 19, 2009 at 12:51 AM, Thomas Hellstromthellst...@vmware.com wrote: Common resources, like memory accounting and swap lists should be global and not per device. Introduce a struct ttm_bo_global to accomodate this, and register it with sysfs. Add a small

[PATCH] drm: Fix sysfs device confusion.

2009-08-20 Thread Thomas Hellstrom
The drm sysfs class suspend / resume methods could not distinguish between different device types wich could lead to illegal type casts. Use struct device_type and make sure the class suspend / resume callbacks are aware of those. There is no per device-type suspend / resume. Only new-style PM.

[PATCH resend] drm/i915: Add support for dual-channel LVDS on 8xx.

2009-08-20 Thread Bruno Prémont
drm/i915: Check if BIOS enabled dual-channel LVDS on 8xx, not only on 9xx Commit 0c2e39525b3b53a97a0202c5f35058147e53977e is not sufficient to get fd.o bug #20115 fixed. In addition intel_find_best_PLL() must not only rely on BIOS settings for i9xx chips but also for i8xx, so drop the IS_I9XX()

Intel KMS on vanilla 2.6.30.4

2009-08-20 Thread Peter Hanzel
Hello. I upgraded my kernel from 2.6.29 to 2.6.30.4. I was using intel KMS to get framebuffer console on my laptop. With 2.6.29 i got full 1280x800 resulution. Also console used whole space of my LVDS screen. But after upgrade to 2.6.30.4 i got console only to 1024x768 but screen resolution

Lost patch

2009-08-20 Thread Thomas Hellström
Dave, The patch titled [PATCH] drm: Fix sysfs device confusion seems to have been lost somewhere. It's not drm-next and is a prerequisite for the ttm sysfs patches. Funny, Jbarnes have replied by a Reviewed-by, but I can't find it in my dri-devel folder. I've resent it to dri-devel.

[PATCH] drm/ttm: Fixes for Make parts of a struct ttm_bo_device global

2009-08-20 Thread Thomas Hellstrom
ttm: Remove a stray debug printout. Remove a re-init of the lru spinlock at device init. radeon: Fix the size of the bo_global allocation. Signed-off-by: Thomas Hellstrom thellst...@vmware.com --- drivers/gpu/drm/radeon/radeon_ttm.c |2 +- drivers/gpu/drm/ttm/ttm_bo.c|3 --- 2

[PATCH] drm/ttm: Fixes for Memory accounting rework.

2009-08-20 Thread Thomas Hellstrom
ttm: Fix error paths when kobject_add returns an error. Signed-off-by: Thomas Hellstrom thellst...@vmware.com --- drivers/gpu/drm/ttm/ttm_memory.c | 36 1 files changed, 28 insertions(+), 8 deletions(-) diff --git a/drivers/gpu/drm/ttm/ttm_memory.c

Re: Lost patch

2009-08-20 Thread Dave Airlie
2009/8/20 Thomas Hellström tho...@shipmail.org: Dave, The patch titled [PATCH] drm: Fix sysfs device confusion seems to have been lost somewhere. It's not drm-next and is a prerequisite for the ttm sysfs patches. Funny, Jbarnes have replied by a Reviewed-by, but  I can't find it in my

Re: UPDATED: drm/mesa patches for getting num Z pipes from drm for rv530

2009-08-20 Thread Maciej Cencora
2009/8/20 Alex Deucher alexdeuc...@gmail.com: Previous drm patches had some problems.  Untested. Alex -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report

[PATCH] drm/radeon/kms: Special handling of gamma set for 16bpp is not needed

2009-08-20 Thread Yang Zhao
Fix 16bpp case for fdo.o bug #21489. Signed-off-by: Yang Zhao y...@yangman.ca --- drivers/gpu/drm/radeon/radeon_display.c | 21 - 1 files changed, 4 insertions(+), 17 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_display.c

Problem: Wait for VSync on pipe A and Wake up on pipe B

2009-08-20 Thread Nicolas Cadio
Hello, I have an application which must to synchronize with the vertical synchronisation of my display. To do this synchronization, I use a function of GLX (glXWaitVideoSyncSGI). This function call the function DRM to wait the vertical synchronization (drmWaitVBlank) and the driver (drm.ko)

[RFC] dri2-sarea

2009-08-20 Thread Thomas Hellstrom
Hi! I wanted to get some comments about an idea to use dri2 that might improve some drawbacks on dri2 compared to dri1. What's motivating this is the following: 1) On some systems, X roundtrips are very costly. For example on via processors when running gears, X ends up at around 10% for just

[PATCH] drm/kms/radeon: Add kconfig to specify the default modesetting

2009-08-20 Thread Takashi Iwai
This patch adds a Kconfig item to specify the default radeon modeset value. Also fixed the description of CONFIG_DRM_RADEON_KMS. Since KMS gives problems on some Radeon devices, it's safer to disable it as default on distro kernels. But distros would love to include the feature itself instead

[Bug 13373] fbcon, intelfb, i915: INFO: possible circular locking dependency detected

2009-08-20 Thread bugzilla-daemon
http://bugzilla.kernel.org/show_bug.cgi?id=13373 Rafael J. Wysocki r...@sisk.pl changed: What|Removed |Added Status|NEW |RESOLVED

[Bug 13373] fbcon, intelfb, i915: INFO: possible circular locking dependency detected

2009-08-20 Thread bugzilla-daemon
http://bugzilla.kernel.org/show_bug.cgi?id=13373 Rafael J. Wysocki r...@sisk.pl changed: What|Removed |Added Status|RESOLVED|CLOSED -- Configure

[Bug 13819] system freeze when switching to console

2009-08-20 Thread bugzilla-daemon
http://bugzilla.kernel.org/show_bug.cgi?id=13819 --- Comment #9 from Rafael J. Wysocki r...@sisk.pl 2009-08-20 14:54:11 --- On Thursday 20 August 2009, reinette chatre wrote: On Wed, 2009-08-19 at 13:26 -0700, Rafael J. Wysocki wrote: This message has been generated automatically as a

Re: UPDATED: drm/mesa patches for getting num Z pipes from drm for rv530

2009-08-20 Thread Alex Deucher
On Thu, Aug 20, 2009 at 4:59 AM, Maciej Cencoram.cenc...@gmail.com wrote: 2009/8/20 Alex Deucher alexdeuc...@gmail.com: Previous drm patches had some problems.  Untested. Alex -- Let Crystal Reports handle the

[PATCH] libdrm_radeon: Add bo_is_busy interface to request for state of buffer object.

2009-08-20 Thread Pauli Nieminen
Signed-off-by: Pauli Nieminen suok...@gmail.com --- libdrm/radeon/radeon_bo.h | 13 + libdrm/radeon/radeon_bo_gem.c | 18 ++ shared-core/radeon_drm.h |4 +++- 3 files changed, 34 insertions(+), 1 deletions(-) diff --git a/libdrm/radeon/radeon_bo.h

Re: Problem: Wait for VSync on pipe A and Wake up on pipe B

2009-08-20 Thread Jesse Barnes
On Thu, 20 Aug 2009 09:41:28 + (GMT) Nicolas Cadio nicolas.ca...@ymail.com wrote: Hello, I have an application which must to synchronize with the vertical synchronisation of my display. To do this synchronization, I use a function of GLX (glXWaitVideoSyncSGI). This function call the

Re: [HINT] check your version of drmmode_display.c if kms + xrandr + gamma isn't working

2009-08-20 Thread Maarten Maathuis
A minor addition: http://cgit.freedesktop.org/nouveau/xf86-video-nouveau/commit/?id=569a17a98d03d965f9500c37c0cb14e0fb462311 Maarten. -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial.

[Bug 13634] [drm:drm_wait_vblank] *ERROR* failed to acquire vblank counter, -22

2009-08-20 Thread bugzilla-daemon
http://bugzilla.kernel.org/show_bug.cgi?id=13634 Rafael J. Wysocki r...@sisk.pl changed: What|Removed |Added Status|NEW |RESOLVED

[Bug 13634] [drm:drm_wait_vblank] *ERROR* failed to acquire vblank counter, -22

2009-08-20 Thread bugzilla-daemon
http://bugzilla.kernel.org/show_bug.cgi?id=13634 --- Comment #1 from Rafael J. Wysocki r...@sisk.pl 2009-08-20 19:00:10 --- On Thursday 20 August 2009, Jesse Barnes wrote: On Thu, 20 Aug 2009 20:19:23 +0200 Rafael J. Wysocki r...@sisk.pl wrote: On Thursday 20 August 2009, Jesse Barnes

[Bug 13634] [drm:drm_wait_vblank] *ERROR* failed to acquire vblank counter, -22

2009-08-20 Thread bugzilla-daemon
http://bugzilla.kernel.org/show_bug.cgi?id=13634 Rafael J. Wysocki r...@sisk.pl changed: What|Removed |Added Status|RESOLVED|CLOSED -- Configure

Re: 2.6.31-rc6-git5: Reported regressions from 2.6.30

2009-08-20 Thread Rafael J. Wysocki
On Thursday 20 August 2009, John Dykstra wrote: On Wed, 2009-08-19 at 22:20 +0200, Rafael J. Wysocki wrote: Bug-Entry : http://bugzilla.kernel.org/show_bug.cgi?id=14002 Subject : WARNING: at net/ipv4/af_inet.c:154 inet_sock_destruct+0x164/0x1c0() Submitter : Ralf

Re: [PATCH] drm: Fix sysfs device confusion.

2009-08-20 Thread Dave Airlie
On Thu, Aug 20, 2009 at 5:52 PM, Thomas Hellstromthellst...@vmware.com wrote: The drm sysfs class suspend / resume methods could not distinguish between different device types wich could lead to illegal type casts. Use struct device_type and make sure the class suspend / resume callbacks are

Re: [PATCH] drm/kms/radeon: Add kconfig to specify the default modesetting

2009-08-20 Thread Dave Airlie
On Thu, Aug 20, 2009 at 11:26 PM, Takashi Iwaiti...@suse.de wrote: This patch adds a Kconfig item to specify the default radeon modeset value.  Also fixed the description of CONFIG_DRM_RADEON_KMS. Since KMS gives problems on some Radeon devices, it's safer to disable it as default on distro

[PATCH] drm/mm: add ability to dump mm lists via debugfs (v2)

2009-08-20 Thread Dave Airlie
From: Dave Airlie airl...@linux.ie This adds code to the drm_mm to talk to debugfs, and adds support to radeon to add the VRAM and GTT mm lists to debugfs. changes since v1: don't bother with free list just add used/free to main list add totals in pages Signed-off-by: Dave Airlie

[PATCH] drm/mm: add ability to dump mm lists via debugfs.

2009-08-20 Thread Dave Airlie
From: Dave Airlie airl...@linux.ie This adds code to the drm_mm to talk to debugfs, and adds support to radeon to add the VRAM and GTT mm lists to debugfs. It allows you to see the used and free lists. Signed-off-by: Dave Airlie airl...@redhat.com --- drivers/gpu/drm/drm_mm.c| 23