All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Christian König" <deathsimple@vodafone.de>
To: j.glisse@gmail.com
Cc: Jerome Glisse <jglisse@redhat.com>,
	stable@vger.kernel.org, dri-devel@lists.freedesktop.org
Subject: Re: [PATCH] drm/radeon: update lockup tracking when scheduling in empty ring
Date: Wed, 19 Jun 2013 16:56:26 +0200	[thread overview]
Message-ID: <51C1C69A.6010909@vodafone.de> (raw)
In-Reply-To: <1371650548-1896-1-git-send-email-j.glisse@gmail.com>

Am 19.06.2013 16:02, schrieb j.glisse@gmail.com:
> From: Jerome Glisse <jglisse@redhat.com>
>
> There might be issue with lockup detection when scheduling on an
> empty ring that have been sitting idle for a while. Thus update
> the lockup tracking data when scheduling new work in an empty ring.
>
> Signed-off-by: Jerome Glisse <jglisse@redhat.com>
> Tested-by: Andy Lutomirski <luto@amacapital.net>
> Cc: stable@vger.kernel.org

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

> ---
>   drivers/gpu/drm/radeon/radeon_ring.c | 7 +++++++
>   1 file changed, 7 insertions(+)
>
> diff --git a/drivers/gpu/drm/radeon/radeon_ring.c b/drivers/gpu/drm/radeon/radeon_ring.c
> index e17faa7..82434018 100644
> --- a/drivers/gpu/drm/radeon/radeon_ring.c
> +++ b/drivers/gpu/drm/radeon/radeon_ring.c
> @@ -402,6 +402,13 @@ int radeon_ring_alloc(struct radeon_device *rdev, struct radeon_ring *ring, unsi
>   		return -ENOMEM;
>   	/* Align requested size with padding so unlock_commit can
>   	 * pad safely */
> +	radeon_ring_free_size(rdev, ring);
> +	if (ring->ring_free_dw == (ring->ring_size / 4)) {
> +		/* This is an empty ring update lockup info to avoid
> +		 * false positive.
> +		 */
> +		radeon_ring_lockup_update(ring);
> +	}
>   	ndw = (ndw + ring->align_mask) & ~ring->align_mask;
>   	while (ndw > (ring->ring_free_dw - 1)) {
>   		radeon_ring_free_size(rdev, ring);

      reply	other threads:[~2013-06-19 14:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-19 14:02 [PATCH] drm/radeon: update lockup tracking when scheduling in empty ring j.glisse
2013-06-19 14:56 ` Christian König [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=51C1C69A.6010909@vodafone.de \
    --to=deathsimple@vodafone.de \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=j.glisse@gmail.com \
    --cc=jglisse@redhat.com \
    --cc=stable@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.