2008-03-29 22:09:20

by Dave Airlie

[permalink] [raw]
Subject: [git pull] drm fixes for 2.6.25 final


Hi Linus,

Please pull the 'drm-fixes' branch from
ssh://master.kernel.org/pub/scm/linux/kernel/git/airlied/drm-2.6.git drm-fixes

This contains a bug fix for hangs in the r300 3D system due to a really
badly defined hardware wait interface, I've had to do some workarounds as
its a userspace exposed interface and I want to fix it for old and new
users. I've also included an oops fixer, a sparse cleanup, and patch to
support non-coherent DMA for powerpc that I was going to hold but since
I'm pushing stuff it may as well go now..

Dave.

drivers/char/drm/ati_pcigart.c | 6 ++++
drivers/char/drm/drm_scatter.c | 11 +++++++-
drivers/char/drm/drm_vm.c | 20 +++++++++++---
drivers/char/drm/i915_dma.c | 3 ++
drivers/char/drm/r300_cmdbuf.c | 54 +++++++++++++++++++++++++++++++---------
drivers/char/drm/radeon_drm.h | 12 +++++++++
drivers/char/drm/radeon_mem.c | 8 +++---
7 files changed, 92 insertions(+), 22 deletions(-)

commit 6876b3bacaaa4c73fb8752b47c84b2b7fad5422a
Author: Benjamin Herrenschmidt <[email protected]>
Date: Fri Mar 28 14:23:07 2008 -0700

drm: fix for non-coherent DMA PowerPC

This patch fixes bits of the DRM so to make the radeon DRI work on
non-cache coherent PCI DMA variants of the PowerPC processors.

It moves the few places that needs change to wrappers to that
other architectures with similar issues can easily add their
own changes to those wrappers, at least until we have more useful
generic kernel API.

Signed-off-by: Benjamin Herrenschmidt <[email protected]>
Cc: "David S. Miller" <[email protected]>
Cc: "Luck, Tony" <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>

commit 2b46278b6af0a4df43016f01a0741d8e0a76bfd4
Author: Harvey Harrison <[email protected]>
Date: Fri Mar 28 14:23:06 2008 -0700

drm: radeon: fix sparse integer as NULL pointer warnings in radeon_mem.c

drivers/char/drm/radeon_mem.c:91:23: warning: Using plain integer as NULL pointer
drivers/char/drm/radeon_mem.c:116:28: warning: Using plain integer as NULL pointer
drivers/char/drm/radeon_mem.c:124:28: warning: Using plain integer as NULL pointer
drivers/char/drm/radeon_mem.c:177:26: warning: Using plain integer as NULL pointer
drivers/char/drm/radeon_mem.c:177:53: warning: Using plain integer as NULL pointer

Signed-off-by: Harvey Harrison <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>

commit 144a75fa1faa4a81530bded2e59872ef80d496b6
Author: Dave Airlie <[email protected]>
Date: Sun Mar 30 07:53:58 2008 +1000

drm/i915: fix oops on agp=off

From Kernel BZ 10289 - not sure why anyone would boot an intel with no agp
but it shouldn't crash.

Signed-off-by: Dave Airlie <[email protected]>

commit 0c76be35194563f56e02fc1775d0fe29281e84d4
Author: Dave Airlie <[email protected]>
Date: Sun Mar 30 07:51:49 2008 +1000

drm/r300: fix bug in r300 userspace hardware wait emission

This interface was originally designed wrong, confusing bit-fields and
integers, major brown paper bag going back many years...

But userspace only ever used 4 values so fix the interface for new
users and fix the implementation to deal with the 4 values userspace
has ever emitted (0x1, 0x2, 0x3, 0x6).

Signed-off-by: Dave Airlie <[email protected]>