[git pull] drm request 3

2010-03-02 Thread Dave Airlie
domains in pin_and_relocate Dave Airlie (23): drm/radeon/kms: switch all KMS driver ioctls to unlocked. drm/radeon/kms: use udelay for short delays drm: switch all GEM/KMS ioctls to unlocked ioctl status. drm/kms: fix fb_changed = true else statement drm/radeon/kms: check

Re: [Linux-fbdev-devel] drm_fb_helper: Impossible to change video mode

2010-03-02 Thread Dave Airlie
On Mon, Mar 1, 2010 at 7:18 PM, Michal Suchanek hramr...@centrum.cz wrote: On 21 November 2009 05:27, Dave Airlie airl...@gmail.com wrote: At the moment the problem with fbset is what to do with it in the dual head case. Currently we create an fb console that is lowest common size of the two

Re: [PATCH] agpgart: Reprobe VGA devices when a new GART device is added

2010-03-01 Thread Dave Airlie
On Sun, Feb 28, 2010 at 1:30 PM, Ben Hutchings b...@decadent.org.uk wrote: This addresses http://bugzilla.kernel.org/show_bug.cgi?id=15021. DRM drivers may fail to probe their devices when the associated AGP GART does not yet have a driver, so we reprobe unbound VGA devices when a GART device

[PATCH] vga_switcheroo: fix build on platforms with no ACPI

2010-03-01 Thread Dave Airlie
From: Dave Airlie airl...@ppcg5.localdomain radeon was always including the atpx code unnecessarily, also core switcheroo was including acpi headers. Signed-off-by: Dave Airlie airl...@redhat.com --- drivers/gpu/drm/radeon/Makefile |3 ++- drivers/gpu/drm/radeon

Re: [git pull] drm merge

2010-03-01 Thread Dave Airlie
Mar 2010, Dave Airlie wrote: Hi Linus, The following changes since commit 60b341b778cc2929df16c0a504c91621b3c6a4ad: Linus Torvalds (1): Linux 2.6.33 are available in the git repository at: ssh://master.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6.git drm-linus

[git pull] drm request 2

2010-03-01 Thread Dave Airlie
i915_gem_flush_gpu_write_domain drm/i915: check for multiple write domains in pin_and_relocate Dave Airlie (21): drm/radeon/kms: switch all KMS driver ioctls to unlocked. drm/radeon/kms: use udelay for short delays drm: switch all GEM/KMS ioctls to unlocked ioctl status. drm/kms: fix fb_changed

Re: Unmappable VRAM patchset V4

2010-02-28 Thread Dave Airlie
On Fri, Feb 26, 2010 at 3:01 AM, Jerome Glisse jgli...@redhat.com wrote: Updated patchset, to apply cleanly on top of TTM split no_wait argument. Compile tested for nouveau+vmwgfx, test in progress for radeon. So with the new change radeon won't wait for bo reserving other bo in fault path

Re: Convert DRM_INFO/DRM_ERROR to dev_info/dev_err

2010-02-28 Thread Dave Airlie
On Fri, Feb 26, 2010 at 4:56 AM, Jerome Glisse gli...@freedesktop.org wrote: Attached is conversion from DRM_INFO/DRM_ERROR to dev_info/dev_err to apply it copy all doconv* file into the radeon subfolder of the kernel run ./doconv.sh and then apply the 0001 patch which fix compilation after

Re: [PATCH] drm/radeon/kms: fence cleanup + more reliable GPU lockup detection

2010-02-28 Thread Dave Airlie
On Mon, Mar 1, 2010 at 2:47 AM, Jerome Glisse jgli...@redhat.com wrote: On Sun, Feb 28, 2010 at 12:22:52PM +, Alan Swanson wrote: On Fri, 2010-02-26 at 15:49 +0100, Jerome Glisse wrote: This patch cleanup the fence code, it drops the timeout field of fence as the time to complete each IB

[git pull] drm merge

2010-02-28 Thread Dave Airlie
for multiple write domains in pin_and_relocate Dave Airlie (20): drm/radeon/kms: switch all KMS driver ioctls to unlocked. drm/radeon/kms: use udelay for short delays drm: switch all GEM/KMS ioctls to unlocked ioctl status. drm/kms: fix fb_changed = true else statement drm

Re: [PATCH 2/2] vga_switcheroo: initial implementation (v8)

2010-02-26 Thread Dave Airlie
Oh I should probably have dropped all the audio bits, I didn't even see this reply before I updated to v11. The r600 audio code is a bit of disaster area hopefully we can clean it up, like the timer was firing after the device was suspended. I'll repost with all that r600 audio ripped out and

[PATCH] vga_switcheroo: initial implementation (v11)

2010-02-25 Thread Dave Airlie
From: Dave Airlie airl...@linux.ie Many new laptops now come with 2 gpus, one to be used for low power modes and one for gaming/on-ac applications. These GPUs are typically wired to the laptop panel and VGA ports via a multiplexer unit which is controlled via ACPI methods. 4 combinations

fb fix + laptop gpu switching support

2010-02-24 Thread Dave Airlie
The first patch is a trivial change to the fb handover code. The second adds initial support framework for laptops with GPU switching features, it has some changes to fb code, along with changes to dri drivers. I'm happy to deal with these patches via drm-2.6 for this merge window if nobody has

fb + vga switcher patches (THE CORRECT ONES)

2010-02-24 Thread Dave Airlie
Oops send an old junk patch last time. Here we go again, fb patch + vga switcher patch affects fb as well I'm happy to put this all via drm-2.6 tree any objections? Dave. -- Download Intel#174; Parallel Studio Eval Try

[PATCH 2/2] vga_switcheroo: initial implementation (v8)

2010-02-24 Thread Dave Airlie
From: Dave Airlie airl...@linux.ie Many new laptops now come with 2 gpus, one to be used for low power modes and one for gaming/on-ac applications. These GPUs are typically wired to the laptop panel and VGA ports via a multiplexer unit which is controlled via ACPI methods. 4 combinations

Re: [PATCH] drm/ttm: handle OOM in ttm_tt_swapout

2010-02-22 Thread Dave Airlie
with it,. Reviewed-by: Dave Airlie airl...@redhat.com I'll need Thomas's ack on this also. Dave. -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune

[git pull] drm staging driver fixes.

2010-02-22 Thread Dave Airlie
. The following changes since commit 635f1a31292087a2e99568bf4451c10ee287adaa: Dave Airlie (1): drm/radeon: bump the UMS driver version number to indicate rv740 fix are available in the git repository at: ssh://master.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6.git drm-linus Ben

[git pull] drm regression final fixes

2010-02-19 Thread Dave Airlie
down yet, so we'll do the proper fix in .34, this is a minimal workaround for now). Dave. The following changes since commit 6b15835282f9c6a023e2625455bfdb822bb9cc64: Dave Airlie (1): Merge branch 'for-airlied' of git://git.freedesktop.org/git/nouveau/linux-2.6 into drm-linus

Re: [git pull] drm regression final fixes

2010-02-19 Thread Dave Airlie
the rv740 fix is in. For KMS we can consider the kernel release to be the v2.0.0 release so we don't need the bump there. Signed-off-by: Dave Airlie airl...@redhat.com Is on to of the tree now. Dave. Dave. The following changes since commit 6b15835282f9c6a023e2625455bfdb822bb9cc64

Re: [PATCH] [rfc] drm/radeon/kms: pm debugging check for vbl.

2010-02-18 Thread Dave Airlie
2010/2/18 Rafał Miłecki zaj...@gmail.com: 2010/2/18 Dave Airlie airl...@gmail.com: From: Dave Airlie airl...@redhat.com This patch adds a check on avivo chips to see if we are in the VBL region for the active crtcs when we trigger the engine change. I appear to have glitches locally on pm

Re: [PATCH] [rfc] drm/radeon/kms: pm debugging check for vbl.

2010-02-18 Thread Dave Airlie
It adds some reading printing steps before every reclock, while we really want it to happen as soon as possible. Maybe you could execute this only on some btw you won't get the print if you are in vblank, and if you aren't well the print doesn't matter, I'm also thinking the engine change

Re: [PATCH] [rfc] drm/radeon/kms: pm debugging check for vbl.

2010-02-18 Thread Dave Airlie
2010/2/18 Rafał Miłecki zaj...@gmail.com: W dniu 18 lutego 2010 09:28 użytkownik Dave Airlie airl...@gmail.com napisał: It adds some reading printing steps before every reclock, while we really want it to happen as soon as possible. Maybe you could execute this only on some btw you won't

Re: [PATCH] drm/radeon/kms: Create asic structure for r300 pcie cards.

2010-02-17 Thread Dave Airlie
On Fri, Feb 12, 2010 at 3:55 AM, Pauli Nieminen suok...@gmail.com wrote: Setting global asic structure to point to different function would cause problem in system where is multiple r300 cards with different bus type. This contains a typo which I fixed locally please make sure it compiles

Re: [PATCH] drm/radeon/kms: implement reading PCIE lanes on R600+

2010-02-17 Thread Dave Airlie
2010/2/18 Rafał Miłecki zaj...@gmail.com: Ported from DDX The PCIE regs on r600 are the same offsets at the ones on rv370 from what I can see probably don't need to add a new PCIE_P struct at all I think the rv370 functions should work. Dave.

[git pull] drm fixes

2010-02-17 Thread Dave Airlie
two issues and we've backported the patches from Jerome to solve some r600 lockups we've been seeing a lot off in the field but funnily not on any of my or Jerome's systems. Dave. The following changes since commit e803e8b2628f3e9a42f45c5b7bb1f9821b08352c: Dave Airlie (1): drm/radeon

[PATCH] [rfc] drm/radeon/kms: pm debugging check for vbl.

2010-02-17 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com This patch adds a check on avivo chips to see if we are in the VBL region for the active crtcs when we trigger the engine change. I appear to have glitches locally on pm transistion (not sure all fixes are in yet) and this at least seems to be correct here

Re: vesafb handover

2010-02-15 Thread Dave Airlie
On Mon, Feb 15, 2010 at 8:04 PM, Thomas Hellstrom tho...@shipmail.org wrote: Hi, Dave! Could you point me to what's needed in drm fb setup to utilize the vesafb handover mechanism? In intel_fb.c /* setup aperture base/size for vesafb takeover */ info-aperture_base =

[git pull] drm fixes

2010-02-14 Thread Dave Airlie
Two ttm regression fixes from Thomas, and one alpha unaligned issue in the atom parser for radeon KMS. The following changes since commit 724e6d3fe8003c3f60bf404bf22e4e331327c596: Linus Torvalds (1): Linux 2.6.33-rc8 are available in the git repository at:

Re: [git pull] drm fixes

2010-02-14 Thread Dave Airlie
/kms: make sure retry count increases. In testing I've never seen it go past 1 retry anyways but better safe than sorry. Reported by Droste on irc. Signed-off-by: Dave Airlie airl...@redhat.com Dave. -- SOLARIS

[git pull] drm

2010-02-10 Thread Dave Airlie
xfer len check for reads only drm/nv50: prevent multiple init tables being parsed at the same time drm/nv50: disregard dac outputs in nv50_sor_dpms() Dave Airlie (7): drm/radeon/kms: change Kconfig text to reflect the new option. drm/radeon/kms: don't crash if no DDC bus

Re: Radeon hwmon driver

2010-02-08 Thread Dave Airlie
On Mon, Feb 8, 2010 at 6:48 PM, Domenico Andreoli ca...@dandreoli.com wrote: [i'm subscribed to this list, thanks] On Mon, Feb 08, 2010 at 01:32:33AM -0500, Alex Deucher wrote: On Sun, Feb 7, 2010 at 6:12 PM, Domenico Andreoli ca...@dandreoli.com wrote: I'd like to write a hwmon driver

[PATCH 2/2] drm/radeon/kms: add quirk for VGA without DDC on rv730 XFX card.

2010-02-08 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com Reported on irc by nirbheek. Signed-off-by: Dave Airlie airl...@redhat.com --- drivers/gpu/drm/radeon/radeon_atombios.c |9 + 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_atombios.c b/drivers/gpu

[PATCH 1/2] drm/radeon/kms: don't crash if no DDC bus on VGA/DVI connector.

2010-02-08 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com This is strange - like really really strange, twilight zone of strange. VGA ports have DDC buses, but sometimes for some reasons the BIOS says we don't and we oops - AMD mentioned bios bugs so we'll have to add quirks. reported on irc by nirbheek and https

[PATCH] drm/radeon/kms: fix screen clearing before fbcon.

2010-02-08 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com This memset_io was added to debug something way back and got left behind, memset the fb to black so the borders don't be all white. Signed-off-by: Dave Airlie airl...@redhat.com --- drivers/gpu/drm/radeon/radeon_fb.c |2 +- 1 files changed, 1 insertions

Re: Removal of mach64

2010-02-07 Thread Dave Airlie
Except for mach64 :-) Unless I'm mistaken, that never made it into the linux kernel. If someone wants to add mach64 to staging it would be possible, it would be nice if clean patches that pass checkpatch.pl could be constructed for it. Since I think all the security issues were resolved

[PATCH] drm/radeon/kms: add support for hardcoded edids in rom (v2)

2010-02-07 Thread Dave Airlie
just try and use it.] Signed-off-by: Alex Deucher alexdeuc...@gmail.com Signed-off-by: Dave Airlie airl...@redhat.com --- drivers/gpu/drm/drm_edid.c | 30 ++-- drivers/gpu/drm/radeon/radeon_combios.c | 33 +++ drivers/gpu/drm

[PATCH] drm/radeon/kms: don't crash is no DDC bus on VGA connector.

2010-02-07 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com This is strange - like really really strange, twilight zone of strange. VGA ports have DDC buses, but sometimes for some reasons the BIOS says we don't and we oops. reported on irc by nirbheek Signed-off-by: Dave Airlie airl...@redhat.com --- drivers/gpu

Re: 3D OpenGL applications eat CPU ressources

2010-02-06 Thread Dave Airlie
Anyway, I don't know whether this is due to PCI mode or not, but OpenGL performances, although there's no more GPU lockup, are poor. And serious OpenGL applications, as simulated by the SPECviewperf test suite, have very irregular frame rates. If I'm not mistaken, the BusType option is

Re: hung bootup with drm/radeon/kms: move radeon KMS on/off switch out of staging.

2010-02-05 Thread Dave Airlie
If it now does not boot up if all its sub-options are enabled, even of some of those sub-options are new, does that count as a driver regression? Sure it does to me ... But it doesn't to anyone else under any reasonable meaning of the word regression. The config option states Choose this

Re: hung bootup with drm/radeon/kms: move radeon KMS on/off switch out of staging.

2010-02-05 Thread Dave Airlie
On Fri, Feb 5, 2010 at 7:00 PM, Ingo Molnar mi...@elte.hu wrote: * Dave Airlie airl...@linux.ie wrote: If it now does not boot up if all its sub-options are enabled, even of some of those sub-options are new, does that count as a driver regression? Sure it does to me

Re: [2.6.33-rc6-git regression] idr fix breaks Xorg

2010-02-04 Thread Dave Airlie
On Thu, Feb 4, 2010 at 6:16 PM, Tejun Heo t...@kernel.org wrote: Hello, On 02/04/2010 04:56 PM, Andy Isaacson wrote: 1265267921.568269 ioctl(8, 0xc020645e, 0x7fffe2196980) = -1 EBADF (Bad file descriptor) Hmm... -EBADF?  I suppose it doesn't mean that the fd is invalid in this case but

Re: hung bootup with drm/radeon/kms: move radeon KMS on/off switch out of staging.

2010-02-04 Thread Dave Airlie
On Fri, Feb 5, 2010 at 5:24 AM, Linus Torvalds torva...@linux-foundation.org wrote: On Thu, 4 Feb 2010, Alex Deucher wrote: And if it crashes, he'll report a bug and we'll fix it. Ok, you have a bug-report. See earlier in the thread: btw., i just found another bug activated via this same

Re: [crash, PATCH] Revert drm/radeon/kms: move radeon KMS on/off switch out of staging.

2010-02-04 Thread Dave Airlie
On Wed, Feb 3, 2010 at 1:44 AM, Ingo Molnar mi...@elte.hu wrote: * Dave Airlie airl...@linux.ie wrote: It's the moving of radeom KMS out of staging after -rc6 that causes it, because it brought it into the scope of my testing:  f71d018: drm/radeon/kms: move radeon KMS on/off switch out

Re: [crash, PATCH] Revert drm/radeon/kms: move radeon KMS on/off switch out of staging.

2010-02-04 Thread Dave Airlie
On Fri, Feb 5, 2010 at 6:46 AM, Ingo Molnar mi...@elte.hu wrote: * Dave Airlie airl...@gmail.com wrote: On Wed, Feb 3, 2010 at 1:44 AM, Ingo Molnar mi...@elte.hu wrote: * Dave Airlie airl...@linux.ie wrote: It's the moving of radeom KMS out of staging after -rc6 that causes

Re: hung bootup with drm/radeon/kms: move radeon KMS on/off switch out of staging.

2010-02-04 Thread Dave Airlie
On Fri, Feb 5, 2010 at 7:23 AM, Andrew Morton a...@linux-foundation.org wrote: On Thu, 4 Feb 2010 22:05:59 +0100 Ingo Molnar mi...@elte.hu wrote: * Matthew Garrett mj...@srcf.ucam.org wrote: On Thu, Feb 04, 2010 at 09:22:54PM +0100, Ingo Molnar wrote:   Hey, -rc7 just hung on me

Re: [crash, PATCH] Revert drm/radeon/kms: move radeon KMS on/off switch out of staging.

2010-02-04 Thread Dave Airlie
These were random configs - the size doesnt match an allyesconfig, those are way bigger. My above comment related to the first crash, and to my argument that all other drivers are fine during bootup - and there's a lot of them. So do you have something you are running after allyesconfig to

[git pull] drm fixes

2010-02-04 Thread Dave Airlie
5ff55717674470b96562f931f778c878080755b7 Author: Dave Airlie airl...@redhat.com Date: Fri Feb 5 13:57:03 2010 +1000 drm/radeon/kms: fix r300 vram width calculations This was incorrect according to the docs and the UMS driver does it like this. Signed-off-by: Dave Airlie airl...@redhat.com

[PATCH] drm/radeon/kms: set gart pages to invalid on unbind

2010-02-04 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com this uses a new entrypoint to invalidate gart entries instead of using 0. I'm not 100% sure this is going to work, we probably need to allocate a dummy page and point all the GTT entries at it similiar to what AGP does. but we can test this first I suppose

[PATCH 2/2] drm/radeon/kms: switch all KMS driver ioctls to unlocked.

2010-02-03 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com Internal locking should be sufficent for all these cases. Signed-off-by: Dave Airlie airl...@redhat.com --- drivers/gpu/drm/radeon/radeon_kms.c | 24 1 files changed, 12 insertions(+), 12 deletions(-) diff --git a/drivers/gpu/drm

[PATCH 1/2] drm: switch all GEM/KMS ioctls to unlocked ioctl status.

2010-02-03 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com These ioctls are all protected by their own locking mechanisms so should be fine to not bother locking around. Signed-off-by: Dave Airlie airl...@redhat.com --- drivers/gpu/drm/drm_drv.c | 44 ++-- 1 files changed

Re: [crash, PATCH] Revert drm/radeon/kms: move radeon KMS on/off switch out of staging.

2010-02-03 Thread Dave Airlie
On Wed, Feb 3, 2010 at 1:46 AM, Ingo Molnar mi...@elte.hu wrote: * Dave Airlie airl...@gmail.com wrote: On Tue, Feb 2, 2010 at 6:17 PM, Ingo Molnar mi...@elte.hu wrote: * Dave Airlie airl...@linux.ie wrote: Hi Linus, Please pull the 'drm-linus' branch from ssh

Re: [crash, PATCH] Revert drm/radeon/kms: move radeon KMS on/off switch out of staging.

2010-02-03 Thread Dave Airlie
On Thu, Feb 4, 2010 at 5:36 PM, Ingo Molnar mi...@elte.hu wrote: * Dave Airlie airl...@gmail.com wrote: On Wed, Feb 3, 2010 at 1:46 AM, Ingo Molnar mi...@elte.hu wrote: * Dave Airlie airl...@gmail.com wrote: On Tue, Feb 2, 2010 at 6:17 PM, Ingo Molnar mi...@elte.hu wrote

Re: [crash, PATCH] Revert drm/radeon/kms: move radeon KMS on/off switch out of staging.

2010-02-02 Thread Dave Airlie
It's the moving of radeom KMS out of staging after -rc6 that causes it, because it brought it into the scope of my testing: f71d018: drm/radeon/kms: move radeon KMS on/off switch out of staging. So at least on this box it's clearly not ready for mainline enablement yet. I've

Re: [crash, PATCH] Revert drm/radeon/kms: move radeon KMS on/off switch out of staging.

2010-02-02 Thread Dave Airlie
On Tue, Feb 2, 2010 at 6:17 PM, Ingo Molnar mi...@elte.hu wrote: * Dave Airlie airl...@linux.ie wrote: Hi Linus, Please pull the 'drm-linus' branch from ssh://master.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6.git drm-linus I've also added an oops fix I seem to lose off

Re: [crash, PATCH] Revert drm/radeon/kms: move radeon KMS on/off switch out of staging.

2010-02-02 Thread Dave Airlie
On Tue, Feb 2, 2010 at 6:35 PM, Dave Airlie airl...@gmail.com wrote: On Tue, Feb 2, 2010 at 6:17 PM, Ingo Molnar mi...@elte.hu wrote: * Dave Airlie airl...@linux.ie wrote: Hi Linus, Please pull the 'drm-linus' branch from ssh://master.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6

Re: [crash, PATCH] Revert drm/radeon/kms: move radeon KMS on/off switch out of staging.

2010-02-02 Thread Dave Airlie
On Wed, Feb 3, 2010 at 1:46 AM, Ingo Molnar mi...@elte.hu wrote: * Dave Airlie airl...@gmail.com wrote: On Tue, Feb 2, 2010 at 6:17 PM, Ingo Molnar mi...@elte.hu wrote: * Dave Airlie airl...@linux.ie wrote: Hi Linus, Please pull the 'drm-linus' branch from ssh

Re: [PATCH 1/2] drm: Add generic multipart buffer.

2010-02-02 Thread Dave Airlie
On Tue, Feb 2, 2010 at 3:11 AM, Pauli Nieminen suok...@gmail.com wrote: Allocating multiple pages of memory for data that is coming from user space may fail. To fix memory allocation failures the buffer object should be split to multiple independ pages. Just some quick comments radeon_cs.c

Re: [PATCH] libdrm/radeon: Fix section size mismatch to reset the section.

2010-02-01 Thread Dave Airlie
On Tue, Feb 2, 2010 at 4:24 AM, Pauli Nieminen suok...@gmail.com wrote: If there is section size mismatch reusing the section object makes section start fail. Reseting the object before doing error checking prevents the possible flood of errors. That can't be right. did you read what your

Re: [PATCH] drm/ttm: Only try to preserve caching in moves in the same space

2010-01-31 Thread Dave Airlie
On Thu, Jan 28, 2010 at 7:26 PM, Luca Barbieri l...@luca-barbieri.com wrote: Currently TTM tries to preserve the previous caching even for moves between unrelated memory spaces. This results for instance in moves from VRAM to PCIE GART changing system memory to WC state needlessly. This

[git pull] drm fixes

2010-01-31 Thread Dave Airlie
|2 +- 20 files changed, 244 insertions(+), 164 deletions(-) commit f71d0187987e691516cd10c2702f002c0e2f0edc Author: Dave Airlie airl...@redhat.com Date: Mon Feb 1 11:35:47 2010 +1000 drm/radeon/kms: move radeon KMS on/off switch out of staging. We are happy enough

Re: [git pull] drm fixes

2010-01-31 Thread Dave Airlie
yet - boom. Add a test for parser- being non-NULL before dereferencing it. Signed-off-by: Michel Dänzer daen...@vmware.com Signed-off-by: Dave Airlie airl...@redhat.com Major change is to move the radeon KMS enable out of staging and into normal Kconfig land, its not perfect

Re: drm/radeon/kms: pm: single frame corruptions on reclocking

2010-01-30 Thread Dave Airlie
2009/12/24 Rafał Miłecki zaj...@gmail.com: I applied patches from http://www.botchco.com/alex/xorg/pm/ and now engine reclocks between 110MHz and 680MHz. The problem is I see ~10 black horizontal lines for a one frame time on almost every reclock. I tried to fix this or at least understand it

[PATCH] drm/kms/radeon: pick digitial encoders smarter. (v2)

2010-01-28 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com booting a Lenovo W500 with LVDS + DP outputs showed up a TODO we had on our list, to pick a correct digital encoder block. The LVTMA encoder requires the second digital encoder, all others can use any encoder at all. This fixes the digital encoder selection

[PATCH] drm/radeon/kms: fix incorrect logic in DP vs eDP connector checking.

2010-01-28 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com This makes displayport work again here. Signed-off-by: Dave Airlie airl...@redhat.com --- drivers/gpu/drm/radeon/atombios_dp.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/radeon/atombios_dp.c b/drivers/gpu/drm

[PATCH 1/2] drm/radeon/kms: use active device to pick connector for encoder

2010-01-28 Thread Dave Airlie
From: Dave Airlie airl...@linux.ie On the W500 we have UNIPHY routed to both DVI and DP, this seems to always pick the DVI connector which means link training fails. Switch to using active device to pick the connector, this seems like it should be safe from a code review, and it fixes things

[PATCH 2/2] drm/kms/radeon: pick digitial encoders smarter. (v3)

2010-01-28 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com booting a Lenovo W500 with LVDS + DP outputs showed up a TODO we had on our list, to pick a correct digital encoder block. The LVTMA encoder requires the second digital encoder, all others can use any encoder at all. This fixes the digital encoder selection

Re: [PATCH] drm: Add a generic function to change connector type/id of connector dynamically

2010-01-27 Thread Dave Airlie
On Wed, 2010-01-27 at 15:16 +0800, yakui.z...@intel.com wrote: From: Zhao Yakui yakui.z...@intel.com Sometimes one connector can support more than one connector type. And it will switch the connector type/id dynamically according to the external connected device. Connectors cannot change

Re: [PATCH] drm: Add a generic function to change connector type/id of connector dynamically

2010-01-27 Thread Dave Airlie
Only one plug is used for this encoder. But it can be detected as different type when the different adaptor is used. For one multi-function SDVO card, it can be detected as LVDS, VGA, SDVO-TV(composite/S-video). Before the external device is connected, we can't know the exact connector type.

[PATCH] drm/kms/radeon: pick digitial encoders smarter.

2010-01-27 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com booting a Lenovo W500 with LVDS + DP outputs showed up a TODO we had on our list, to pick a correct digital encoder block. The LVTMA encoder requires the second digital encoder, all others can use any encoder at all. This fixes the digital encoder selection

Re: [PATCH] drm/radeon/kms: Bailout of blit if error happen protect with mutex V2

2010-01-24 Thread Dave Airlie
On Sat, Jan 23, 2010 at 1:56 AM, Jerome Glisse jgli...@redhat.com wrote: If an error happen in r600_blit_prepare_copy report it rather than WARNING and keeping execution. For instance if ib allocation failed we did just warn about but then latter tried to access NULL ib ptr causing oops. This

Re: [PATCH] drm: fix regression in fb blank handling

2010-01-24 Thread Dave Airlie
On Thu, 2010-01-21 at 09:09 +0800, Zhenyu Wang wrote: On 2010.01.20 13:14:23 +, James Simmons wrote: It's just adding the backlight api to the intel driver. In fact it gives the user the ablity to control the brightness of the backlight which I see is lacking in the intel driver.

[git pull] drm fixes queue

2010-01-24 Thread Dave Airlie
| 12 +- drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c |9 - drivers/gpu/drm/vmwgfx/vmwgfx_resource.c| 64 --- include/drm/ttm/ttm_bo_driver.h |5 + 51 files changed, 958 insertions(+), 520 deletions(-) commit 7087e16286913b41ba9a5186360645b57b8508dd Author: Dave Airlie

[PATCH] drm/radeon/kms: fix displayport-dvi connector DDC.

2010-01-13 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com It appears that attempting AUXCH DDC breaks the subsequent attempt to do DDC over the i2c lines, so use the sink type to determine if we should be doing AUXCH or i2c DDC. This fixes my DVI monitor plugged into DP-DVI convertor. Signed-off-by: Dave Airlie

[PATCH] drm/radeon/kms: only evict to GTT if CP is ready

2010-01-12 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com Testing GTT ready might be more correct but cp.ready works fine and has been tested on irc by 2-3 ppl. fixes bug k.org 15035 and fd.o 25733 Signed-off-by: Dave Airlie airl...@redhat.com --- drivers/gpu/drm/radeon/radeon_ttm.c |5 - 1 files changed

[git pull] drm fixes

2010-01-12 Thread Dave Airlie
|8 drivers/gpu/drm/radeon/radeon_legacy_encoders.c | 21 - drivers/gpu/drm/radeon/radeon_ttm.c |5 - 6 files changed, 42 insertions(+), 8 deletions(-) commit 194fda0dd83623f7927d505e39008c73fbc1c141 Merge: ef14587 9270eb1 Author: Dave Airlie

Re: [PATCH] DRM / i915: Fix resume regression on MSI Wind U100 w/o KMS

2010-01-11 Thread Dave Airlie
On Tue, Jan 12, 2010 at 2:38 AM, Jesse Barnes jbar...@virtuousgeek.org wrote: On Sun, 10 Jan 2010 07:32:30 +1000 Dave Airlie airl...@gmail.com wrote: I'm in the 2-3 years at a minimum, with at least one kernel with no serious regressions in Intel KMS, which we haven't gotten close to yet. I'm

Re: [PATCH] DRM / i915: Fix resume regression on MSI Wind U100 w/o KMS

2010-01-11 Thread Dave Airlie
On Tue, Jan 12, 2010 at 8:22 AM, Rafael J. Wysocki r...@sisk.pl wrote: On Monday 11 January 2010, Julien Cristau wrote: On Mon, Jan 11, 2010 at 22:04:36 +0100, Rafael J. Wysocki wrote: Hmm, are you trying to say radeon is better at that? My experience is quite the opposite to be honest.

[git pull] drm

2010-01-10 Thread Dave Airlie
drivers/gpu/drm/radeon/reg_srcs/r420 commit f22d6ddaeb8126623d62c828a4d4a96dfc4cbc5c Merge: 0c9d2c4 40c2298 Author: Dave Airlie airl...@redhat.com Date: Mon Jan 11 14:43:16 2010 +1000 Merge branch 'for-airlied' of /ssd/git/drm-nouveau-next into drm-linus * 'for-airlied' of /ssd/git

Re: [PATCH] DRM / i915: Fix resume regression on MSI Wind U100 w/o KMS

2010-01-09 Thread Dave Airlie
On Sun, Jan 10, 2010 at 4:17 AM, Linus Torvalds torva...@linux-foundation.org wrote: On Sat, 9 Jan 2010, Jerome Glisse wrote: On Fri, Jan 08, 2010 at 06:50:41PM -0800, Jesse Barnes wrote: Linus, can we ever drop those old paths?  Maybe after the new bits have been around for awhile?  

Re: [PATCH] i915: Always register as a PCI driver (was: Re: [PATCH] DRM / i915: Fix resume regression on MSI Wind U100 w/o KMS)

2010-01-09 Thread Dave Airlie
On Sat, Jan 9, 2010 at 11:35 PM, Rafael J. Wysocki r...@sisk.pl wrote: On Saturday 09 January 2010, Jesse Barnes wrote: On Fri, 8 Jan 2010 16:50:57 -0800 (PST) Linus Torvalds torva...@linux-foundation.org wrote: On Sat, 9 Jan 2010, Rafael J. Wysocki wrote: Which is functionally

Re: [PATCH] DRM / i915: Fix resume regression on MSI Wind U100 w/o KMS

2010-01-08 Thread Dave Airlie
From: Rafael J. Wysocki r...@sisk.pl Commit cbda12d77ea590082edb6d30bd342a67ebc459e0 (drm/i915: implement new pm ops for i915), among other things, removed the .suspend and .resume pointers from the struct drm_driver object in i915_drv.c, which broke resume without KMS on my MSI Wind

[PATCH] drm/kms/fb: check for depth changes from userspace for resizing.

2010-01-07 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com If userspace (plymouth in this case) asks for a deeper depth, refuse it as well due to lack of resizing. This fixes an issue since 32MB cards went to 8bpp and plymouth crashes on startup. Signed-off-by: Dave Airlie airl...@redhat.com --- drivers/gpu/drm

Re: [PATCH] drm/radeon/r100.c: check for invalid family

2010-01-06 Thread Dave Airlie
On Wed, Dec 30, 2009 at 11:24 AM, Darren Jenkins darrenrjenk...@gmail.com wrote: If there is an invalid family the fw_name is NULL and causes an NULL pointer dereference. This just adds a check for something unexpected. NAK. This can't happen, only gpus with those families set can call this

Re: [PATCH] drm/radeon/radeon_cp.c: fix resource leak on error

2010-01-06 Thread Dave Airlie
On Wed, Dec 30, 2009 at 11:25 AM, Darren Jenkins darrenrjenk...@gmail.com wrote: If drm_addmap() fails master_priv is leaked. I got a patch from Roel Kluin to fix this already, will push it out soon. Dave. -- This

Re: [PATCH] drm/radeon/radeon_cp.c: check for invalid radeon family

2010-01-06 Thread Dave Airlie
On Wed, Dec 30, 2009 at 11:23 AM, Darren Jenkins darrenrjenk...@gmail.com wrote: If there is an invalid radeon family the fw_name is NULL and causes an NULL pointer dereference. This just adds a check for something unexpected. Same as for last one, unless a developer explicity writes code

Re: [PATCH] drm/radeon: fix a couple of array index errors

2010-01-06 Thread Dave Airlie
On Wed, Dec 30, 2009 at 11:21 AM, Darren Jenkins darrenrjenk...@gmail.com wrote: There are a couple of array overruns, and some associated confusion in the code. This is just a wild guess at what the code should actually look like. Alex can you take a look at this, though I suspect its mostly

[git pull] drm fixes

2010-01-06 Thread Dave Airlie
| 10 +++--- drivers/gpu/drm/radeon/rs600.c |2 +- include/drm/drmP.h |2 +- 17 files changed, 87 insertions(+), 44 deletions(-) commit a81406b4143ff07e586bbe03c50f089da94eefe1 Merge: 90520b7 43b19f1 Author: Dave Airlie airl...@redhat.com Date

[PATCH] drm/radeon/kms: detect sideport enabled on rs690/740/780/880.

2010-01-04 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com This detects if the sideport memory is enabled on these IGPs, and if it is VRAM is evicted on suspend/resume. This should fix s/r issues on some IGPs. TODO: check rs880 is same as rs780 add rs480 support if possible. Signed-off-by: Dave Airlie airl

Re: Recommendations for distributions?

2009-12-22 Thread Dave Airlie
We want to ship packages with all new features wherever possible. But we have to make sure, that at least 2D is always working and 3D should be stable and fast. We know we will often run into bugs first but our community likes it - see us as a big testing group for you :) Unless you have a

[git pull] drm-linus

2009-12-22 Thread Dave Airlie
drivers/gpu/drm/nouveau/nouveau_grctx.c create mode 100644 drivers/gpu/drm/nouveau/nouveau_grctx.h create mode 100644 drivers/gpu/drm/nouveau/nv40_grctx.c commit d94a5108f716bbd524358eb5a440d63991744a62 Merge: 44f9e6c 0786201 Author: Dave Airlie airl...@redhat.com Date: Wed Dec 23 11:18:33 2009

Re: [patch 2/2] drm: fix build error in include/drm/ttm/ttm_memory.h

2009-12-21 Thread Dave Airlie
On Tue, Dec 22, 2009 at 10:21 AM, a...@linux-foundation.org wrote: From: Ralf Baechle r...@linux-mips.org include/drm/ttm/ttm_memory.h uses struct page * without having included the required headers or a forward declaration resulting in the following build error for mtx1_defconfig on Linus'

drm unlocked ioctl + vmwgfx fix.

2009-12-20 Thread Dave Airlie
I've reworked Arnd's two patches to we have all the core changes in one patch, this in theory should change no behaviour in any of the current drivers. Patch 2: updates the vmwgfx unlocked ioctl code, to use the new interface as this work conflicts with its current interface.

[PATCH 2/3] drm/vmwgfx: fixup unlocked ioctl code on top of Arnd's work.

2009-12-20 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com For some reason these ioctls have no DRM flags, which just seems wrong, so I guess that needs reviewing also before staging exit. Signed-off-by: Dave Airlie airl...@redhat.com --- drivers/gpu/drm/vmwgfx/vmwgfx_drv.c | 69

[PATCH 1/3] drm: convert drm_ioctl to unlocked_ioctl

2009-12-20 Thread Dave Airlie
Cc: David Airlie airl...@linux.ie Cc: dri-devel@lists.sourceforge.net Cc: Frederic Weisbecker fweis...@gmail.com Cc: Thomas Gleixner t...@linutronix.de Signed-off-by: Dave Airlie airl...@redhat.com --- drivers/gpu/drm/drm_drv.c | 13 - drivers/gpu/drm/drm_ioc32.c

[PATCH] drm/mm: fix logic for selection of best fit block

2009-12-20 Thread Dave Airlie
From: Bob Gleitsmann rjgle...@bellsouth.net This is from bug 25728. [airlied: I'm just forwarding the patch for review, Thomas, ickle?] --- drivers/gpu/drm/drm_mm.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/drm_mm.c b/drivers/gpu/drm/drm_mm.c

[PATCH] stable - drm/radeon/kms: fix crtc vblank update for r600

2009-12-20 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com In 2.6.32.2 r600 had no IRQ support, however the patch in 500b758725314ab1b5316eb0caa5b0fa26740e6b to fix vblanks on avivo cards, needs irqs. So check for an R600 card and avoid this path if so. This is a stable only patch for 2.6.32.2 as 2.6.33 has IRQs

[ANNOUNCE] libdrm 2.4.17

2009-12-20 Thread Dave Airlie
to guarantee thread-safety of bo during reloc intel: Clear virtual after failing to mmap_gtt. Dave Airlie (3): radeon: straighten out the API insanity. radeon: fix BO null check, should be in higher level fn libdrm 2.4.17 Jakob Bornecrantz (4): Bring dirty code from old

Re: [PATCH 0/2] drm/radeon/kms: add support for depth-only rendering and 3DC texture compression on R3xx-R5xx

2009-12-18 Thread Dave Airlie
I'd like to propose two patches for kernel DRM. Both these sounds sane to me, I'll push them into a testing tree early next week, Dave. Currently the R300 CS checker doesn't allow rendering with no color buffer set. This is needed for depth-only rendering which is required for

Re: [PATCH] drm: convert drm_ioctl to unlocked_ioctl

2009-12-17 Thread Dave Airlie
On Thu, Dec 17, 2009 at 8:17 AM, Arnd Bergmann a...@arndb.de wrote: drm_ioctl is called with the Big Kernel Lock held, which shows up very high in statistics on vfs_ioctl. Moving the lock into the drm_ioctl function itself makes sure we blame the right subsystem and it gets us one step

Re: [git pull] vmware drm/kms driver under staging

2009-12-16 Thread Dave Airlie
...@vmware.com    Signed-off-by: Jakob Bornecrantz ja...@vmware.com    Signed-off-by: Dave Airlie airl...@redhat.com commit 632f61178d0473861ba77e774bb654b37bc7eccc Author: Jakob Bornecrantz ja...@vmware.com Date:   Thu Dec 10 00:19:10 2009 +    drm/vmwgfx: Add svga headers for vmwgfx driver

<    1   2   3   4   5   6   7   8   9   10   >