[patch] i915: cleanup: use ARRAY_SIZE()

2010-06-23 Thread Dan Carpenter
NUM_TV_MODES is the same as ARRAY_SIZE(tv_modes). In the end, I decided it was cleaner to remove NUM_TV_MODES and just use ARRAY_SIZE(tv_modes) through out. Signed-off-by: Dan Carpenter diff --git a/drivers/gpu/drm/i915/intel_tv.c b/drivers/gpu/drm/i915/intel_tv.c index 6d553c2..ee4de98 100644

[patch] i915: remove unneed NULL checks

2010-06-23 Thread Dan Carpenter
We don't need to check the list cursor in a list_for_each_entry(). It's always non-null. Signed-off-by: Dan Carpenter diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index cc8131f..8a2bdfc 100644 --- a/drivers/gpu/drm/i915/intel_display.c +++ b/drivers/

[patch] i915: return -EFAULT if copy_to_user fails

2010-06-23 Thread Dan Carpenter
copy_to_user() returns the number of bytes remaining to be copied and I'm pretty sure we want to return a negative error code here. Signed-off-by: Dan Carpenter diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c index 9ded3da..22691b4 100644 --- a/drivers/gpu/drm/i915

[PATCH] drm/radeon/kms: fix typos in evergreen command checker

2010-06-23 Thread Alex Deucher
Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/evergreen_cs.c |4 ++-- drivers/gpu/drm/radeon/reg_srcs/evergreen | 10 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/radeon/evergreen_cs.c b/drivers/gpu/drm/radeon/evergreen_cs.c index 6

[PATCH] drm/radeon/kms: fix typos in evergreen command checker

2010-06-23 Thread Alex Deucher
Signed-off-by: Alex Deucher --- drivers/gpu/drm/radeon/evergreen_cs.c |4 ++-- drivers/gpu/drm/radeon/reg_srcs/evergreen | 10 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/radeon/evergreen_cs.c b/drivers/gpu/drm/radeon/evergreen_cs.c index 6

[patch] i915: take struct_mutex in i915_dma_cleanup()

2010-06-23 Thread Dan Carpenter
intel_cleanup_ring_buffer() calls drm_gem_object_unreference() (as opposed to drm_gem_object_unreference_unlocked()) so it needs to be called with "struct_mutex" held. If we don't hold the lock, it triggers a BUG_ON(!mutex_is_locked(&dev->struct_mutex)); I also audited the other places that call

[Bug 28671] Seg. fault and Oops with Radeon KMS (v2.6.34) on PPC ATI Radeon AGP r420 JH.

2010-06-23 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=28671 --- Comment #12 from Brett Witherspoon 2010-06-23 13:19:06 PDT --- Ok I will pull from the git tree and give those a try. Changing the AGP mode did not improve any of the symptoms. Also disabling one or all of the EXA options did not seem to he

[Bug 28671] Seg. fault and Oops with Radeon KMS (v2.6.34) on PPC ATI Radeon AGP r420 JH.

2010-06-23 Thread bugzilla-dae...@freedesktop.org
https://bugs.freedesktop.org/show_bug.cgi?id=28671 --- Comment #12 from Brett Witherspoon 2010-06-23 13:19:06 PDT --- Ok I will pull from the git tree and give those a try. Changing the AGP mode did not improve any of the symptoms. Also disabling one or all of the EXA options did not seem to he

[patch] i915: take struct_mutex in i915_dma_cleanup()

2010-06-23 Thread Jesse Barnes
On Wed, 23 Jun 2010 13:19:55 +0200 Dan Carpenter wrote: > intel_cleanup_ring_buffer() calls drm_gem_object_unreference() (as > opposed to drm_gem_object_unreference_unlocked()) so it needs to be > called with "struct_mutex" held. If we don't hold the lock, it triggers > a BUG_ON(!mutex_is_locked

No subject

2010-06-23 Thread
--=20 controlled by gamma light

[patch] i915: take struct_mutex in i915_dma_cleanup()

2010-06-23 Thread Dan Carpenter
intel_cleanup_ring_buffer() calls drm_gem_object_unreference() (as opposed to drm_gem_object_unreference_unlocked()) so it needs to be called with "struct_mutex" held. If we don't hold the lock, it triggers a BUG_ON(!mutex_is_locked(&dev->struct_mutex)); I also audited the other places that call