diff options
| author | Dave Airlie <airlied@redhat.com> | 2009-08-20 13:38:04 +1000 | 
|---|---|---|
| committer | Dave Airlie <airlied@redhat.com> | 2009-08-20 13:38:04 +1000 | 
| commit | 51c8b4071d84d46cc100baa5931ad06b2a823c95 (patch) | |
| tree | 098cf9d41ce1c548d922708a770a9efe35e434df /drivers/gpu/drm/radeon/radeon_ring.c | |
| parent | a987fcaa805fcb24ba885c2e29fd4fdb6816f08f (diff) | |
| parent | 6c30c53fd5ae6a99a23ad78e90c428d2c8ffb07f (diff) | |
| download | olio-linux-3.10-51c8b4071d84d46cc100baa5931ad06b2a823c95.tar.xz olio-linux-3.10-51c8b4071d84d46cc100baa5931ad06b2a823c95.zip  | |
Merge Linus master to drm-next
linux-next conflict reported needed resolution.
Conflicts:
	drivers/gpu/drm/drm_crtc.c
	drivers/gpu/drm/drm_edid.c
	drivers/gpu/drm/i915/intel_sdvo.c
	drivers/gpu/drm/radeon/radeon_ttm.c
	drivers/gpu/drm/ttm/ttm_bo.c
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon_ring.c')
| -rw-r--r-- | drivers/gpu/drm/radeon/radeon_ring.c | 15 | 
1 files changed, 1 insertions, 14 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_ring.c b/drivers/gpu/drm/radeon/radeon_ring.c index a853261d188..60d159308b8 100644 --- a/drivers/gpu/drm/radeon/radeon_ring.c +++ b/drivers/gpu/drm/radeon/radeon_ring.c @@ -126,32 +126,19 @@ static void radeon_ib_align(struct radeon_device *rdev, struct radeon_ib *ib)  	}  } -static void radeon_ib_cpu_flush(struct radeon_device *rdev, -				struct radeon_ib *ib) -{ -	unsigned long tmp; -	unsigned i; - -	/* To force CPU cache flush ugly but seems reliable */ -	for (i = 0; i < ib->length_dw; i += (rdev->cp.align_mask + 1)) { -		tmp = readl(&ib->ptr[i]); -	} -} -  int radeon_ib_schedule(struct radeon_device *rdev, struct radeon_ib *ib)  {  	int r = 0;  	mutex_lock(&rdev->ib_pool.mutex);  	radeon_ib_align(rdev, ib); -	radeon_ib_cpu_flush(rdev, ib);  	if (!ib->length_dw || !rdev->cp.ready) {  		/* TODO: Nothings in the ib we should report. */  		mutex_unlock(&rdev->ib_pool.mutex);  		DRM_ERROR("radeon: couldn't schedule IB(%lu).\n", ib->idx);  		return -EINVAL;  	} -	/* 64 dwords should be enought for fence too */ +	/* 64 dwords should be enough for fence too */  	r = radeon_ring_lock(rdev, 64);  	if (r) {  		DRM_ERROR("radeon: scheduling IB failled (%d).\n", r);  |