From: Jerome Glisse Subject: Re: [PATCH] drm/ttm: Only try to preserve caching in moves in the same space Date: Mon, 1 Feb 2010 19:05:52 +0100 Message-ID: <4240b9161002011005se3980b7r3f673e28461a0768@mail.gmail.com> References: <1264670799-16101-1-git-send-email-luca@luca-barbieri.com> <21d7e9971001311735q3718ad8dy5298f19175a79a6e@mail.gmail.com> <20100201133317.GH29000@localhost.localdomain> <4240b9161002010905q22580b60w10b7d4ffc531494a@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.sourceforge.net To: Luca Barbieri Cc: airlied@linux.ie, thellstrom@vmware.com, dri-devel@lists.sourceforge.net List-Id: dri-devel@lists.freedesktop.org On Mon, Feb 1, 2010 at 6:46 PM, Luca Barbieri wrote: >> Idea is to mask all move which involve TT (AGP) with the agp_caching_mask, >> it's easy to do in radeon ttm layer code and i believe it's easy to do >> in nouveau >> too. On non AGP you set agp_caching_mask to UC|WC|CACHED. > > Sure, but isn't that uglier and much more ad-hoc that the patch I proposed? > Your patch remove the consistency of caching attribute and make move btw non fixed area different than others move, while driver can already achieve so. As i said others change in ttm which wouldn't change consistency can simplify the problem from the driver POV. I think it's better to avoid tweaking core ttm to fix issue your driver can fix by using already existing functionalities. That's my feeling. Cheers, Jerome ------------------------------------------------------------------------------ The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com --