All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/radeon: Always flush the VM
@ 2013-04-16 16:26 alexdeucher
  2013-04-16 17:45 ` Christian König
  0 siblings, 1 reply; 2+ messages in thread
From: alexdeucher @ 2013-04-16 16:26 UTC (permalink / raw)
  To: dri-devel; +Cc: Jerome Glisse, Alex Deucher, stable

From: Jerome Glisse <jglisse@redhat.com>

This is slightly cleaned up version of Jerome's patch.
There seems to be an issue tracking the last flush of
the VM which results in hangs in certain cases when
VM is used.  For now just flush the VM for every IB.

Fixes:
https://bugs.freedesktop.org/show_bug.cgi?id=62959
https://bugs.freedesktop.org/show_bug.cgi?id=62997

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
---
 drivers/gpu/drm/radeon/radeon_ring.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/drivers/gpu/drm/radeon/radeon_ring.c b/drivers/gpu/drm/radeon/radeon_ring.c
index 31e47d8..e17faa7 100644
--- a/drivers/gpu/drm/radeon/radeon_ring.c
+++ b/drivers/gpu/drm/radeon/radeon_ring.c
@@ -180,7 +180,8 @@ int radeon_ib_schedule(struct radeon_device *rdev, struct radeon_ib *ib,
 		radeon_semaphore_free(rdev, &ib->semaphore, NULL);
 	}
 	/* if we can't remember our last VM flush then flush now! */
-	if (ib->vm && !ib->vm->last_flush) {
+	/* XXX figure out why we have to flush for every IB */
+	if (ib->vm /*&& !ib->vm->last_flush*/) {
 		radeon_ring_vm_flush(rdev, ib->ring, ib->vm);
 	}
 	if (const_ib) {
-- 
1.7.7.5

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] drm/radeon: Always flush the VM
  2013-04-16 16:26 [PATCH] drm/radeon: Always flush the VM alexdeucher
@ 2013-04-16 17:45 ` Christian König
  0 siblings, 0 replies; 2+ messages in thread
From: Christian König @ 2013-04-16 17:45 UTC (permalink / raw)
  To: alexdeucher; +Cc: dri-devel, Alex Deucher, Jerome Glisse, stable

Am 16.04.2013 18:26, schrieb alexdeucher@gmail.com:
> From: Jerome Glisse <jglisse@redhat.com>
>
> This is slightly cleaned up version of Jerome's patch.
> There seems to be an issue tracking the last flush of
> the VM which results in hangs in certain cases when
> VM is used.  For now just flush the VM for every IB.
>
> Fixes:
> https://bugs.freedesktop.org/show_bug.cgi?id=62959
> https://bugs.freedesktop.org/show_bug.cgi?id=62997
>
> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

Reviewed-by: Christian König <christian.koenig@amd.com>

> Cc: stable@vger.kernel.org
> ---
>   drivers/gpu/drm/radeon/radeon_ring.c |    3 ++-
>   1 files changed, 2 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/gpu/drm/radeon/radeon_ring.c b/drivers/gpu/drm/radeon/radeon_ring.c
> index 31e47d8..e17faa7 100644
> --- a/drivers/gpu/drm/radeon/radeon_ring.c
> +++ b/drivers/gpu/drm/radeon/radeon_ring.c
> @@ -180,7 +180,8 @@ int radeon_ib_schedule(struct radeon_device *rdev, struct radeon_ib *ib,
>   		radeon_semaphore_free(rdev, &ib->semaphore, NULL);
>   	}
>   	/* if we can't remember our last VM flush then flush now! */
> -	if (ib->vm && !ib->vm->last_flush) {
> +	/* XXX figure out why we have to flush for every IB */
> +	if (ib->vm /*&& !ib->vm->last_flush*/) {
>   		radeon_ring_vm_flush(rdev, ib->ring, ib->vm);
>   	}
>   	if (const_ib) {

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-04-16 17:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-16 16:26 [PATCH] drm/radeon: Always flush the VM alexdeucher
2013-04-16 17:45 ` Christian König

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.