From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lauri Kasanen Subject: Re: TTM's role in score-based eviction Date: Tue, 10 Dec 2013 13:59:26 +0200 Message-ID: <20131210135926.7d74bf73.cand@gmx.com> References: <20131205113658.52c84991.cand@gmx.com> <20131209223005.a33d4312.cand@gmx.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable Return-path: Received: from mout.gmx.net (mout.gmx.net [212.227.17.20]) by gabe.freedesktop.org (Postfix) with ESMTP id 36066FAB90 for ; Tue, 10 Dec 2013 03:58:37 -0800 (PST) Received: from Valinor ([84.248.177.169]) by mail.gmx.com (mrgmx103) with ESMTPA (Nemesis) id 0Lh7M3-1VB1ad03JH-00oUIH for ; Tue, 10 Dec 2013 12:58:36 +0100 In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org To: Marek =?ISO-8859-15?Q?Ol=A8=E1k?= Cc: dri-devel List-Id: dri-devel@lists.freedesktop.org On Mon, 9 Dec 2013 23:45:12 +0100 Marek Ol=A8=E1k wrote: > > Note that the hotness calculation will be in userspace, as only there > > are the necessary counters available. So the finished hotness score > > will be passed to the kernel, instead of sending all the necessary data > > there. Ought to be less context switches that way. > = > This sounds good, but you will also need to update the DDX for > everything up to and including Cayman. Hopefully the DDX doesn't emit > IBs outside of glamor on Southern Islands and later chips. Do you mean to pass an empty score (0) for 2d buffers, or that 2d buffers should also get the calculation? I suppose this depends on which ioctl is used to pass it. IMHO for 2d use the current behavior is ok, so passing a dummy value and falling back should be enough. - Lauri