From mboxrd@z Thu Jan 1 00:00:00 1970 From: Francisco Jerez Subject: Re: [PATCH] drm/ttm: Fix race condition in ttm_bo_delayed_delete Date: Thu, 21 Jan 2010 18:39:03 +0100 Message-ID: <87r5pjbbns.fsf@riseup.net> References: <1263840434-9113-1-git-send-email-luca@luca-barbieri.com> <4B576FF5.9040907@shipmail.org> <4B584E48.8020806@shipmail.org> <87vdeveekk.fsf@riseup.net> <87pr53ecwd.fsf@riseup.net> <87y6jrbfef.fsf@riseup.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0028870904==" Return-path: In-Reply-To: (Luca Barbieri's message of "Thu, 21 Jan 2010 17:30:33 +0100") List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Mime-version: 1.0 Sender: nouveau-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org Errors-To: nouveau-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org To: Luca Barbieri Cc: "airlied-cv59FeDIM0c@public.gmane.org" , "nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org" , Thomas Hellstrom , "dri-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org" , Thomas Hellstrom List-Id: nouveau.vger.kernel.org --===============0028870904== Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Luca Barbieri writes: >> The card also keeps some internal FIFO caches, so it seems to me that >> getting that safe of races and efficient at the same time could be a bit >> non-trivial. > > Are they flushable? > It seems this *might* do the job: > if (!pfifo->cache_flush(dev)) > return; > pfifo->reassign(dev, false); > pfifo->cache_flush(dev); > pfifo->cache_pull(dev, false); > > > pfifo->cache_pull(dev, true); > pfifo->reassign(dev, true); Yeah, that would probably do the job, but it's likely to be too slow to be useful. --=-=-=-- --==-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAktYkTcACgkQ196Zy2qEI5f21wCgvya7B5pfbOHKjp4jQMSvEqaT rxwAoNC/v18DBC8KLDXE7LFtnE1oZf8K =QXA9 -----END PGP SIGNATURE----- --==-=-=-- --===============0028870904== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Nouveau mailing list Nouveau-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org http://lists.freedesktop.org/mailman/listinfo/nouveau --===============0028870904==--