dri-devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Hellstrom <thellstrom@vmware.com>
To: Maarten Lankhorst <maarten.lankhorst@canonical.com>
Cc: dri-devel@lists.freedesktop.org
Subject: Re: buggy/weird behavior in ttm
Date: Thu, 11 Oct 2012 21:35:43 +0200	[thread overview]
Message-ID: <50771F8F.7080403@vmware.com> (raw)
In-Reply-To: <50771D50.5000104@vmware.com>

On 10/11/2012 09:26 PM, Thomas Hellstrom wrote:
> On 10/11/2012 08:42 PM, Maarten Lankhorst wrote:

> I can't see how the waiting reserve in ttm_bo_cleanup_refs would cause 
> a deadlock,
> because the buffer about to be reserved is always *last* in a 
> reservation sequence, and the
> reservation is always released (or the buffer destroyed) before trying 
> to reserve another buffer.
> Technically the buffer is not looked up from a LRU list but from the 
> delayed delete list.
> Could you describe such a deadlock case?
> (There is a bug in there, though that the reservation is not released 
> if the buffer is no longer
> on the reservation list here):
>
> if (unlikely(ret != 0) || list_empty(&bo->ddestroy)) {
>      spin_unlock(&glob->lru_lock);
>      return ret;
> }

Actually I was looking at older code. That bug is already fixed.

/Thomas

  reply	other threads:[~2012-10-11 19:35 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-11 14:50 buggy/weird behavior in ttm Maarten Lankhorst
2012-10-11 16:57 ` Thomas Hellstrom
2012-10-11 18:42   ` Maarten Lankhorst
2012-10-11 19:26     ` Thomas Hellstrom
2012-10-11 19:35       ` Thomas Hellstrom [this message]
2012-10-11 20:55       ` Maarten Lankhorst
2012-10-12  5:57         ` Thomas Hellstrom
2012-10-12  7:49           ` Maarten Lankhorst
2012-10-15 12:14             ` Thomas Hellstrom
2012-10-12 10:09           ` Maarten Lankhorst
2012-10-15 12:27             ` Thomas Hellstrom
2012-10-15 15:37               ` Maarten Lankhorst
2012-10-15 18:34                 ` Maarten Lankhorst
2012-10-15 19:44                   ` Jerome Glisse
2012-10-15 18:40                 ` Thomas Hellstrom
2012-10-15 19:32                   ` Maarten Lankhorst

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=50771F8F.7080403@vmware.com \
    --to=thellstrom@vmware.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=maarten.lankhorst@canonical.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox