Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5632010imu; Sat, 1 Dec 2018 23:16:10 -0800 (PST) X-Google-Smtp-Source: AFSGD/VTy0H/KlsyIVTdqNJigvbG5doQXNU9isZKE/vBr7PET0YTmkc7NJhPof2iQxanznQuQ1pU X-Received: by 2002:a17:902:22f:: with SMTP id 44mr11506890plc.137.1543734970113; Sat, 01 Dec 2018 23:16:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543734970; cv=none; d=google.com; s=arc-20160816; b=RSjojV84WZ40vzExcXXk8tpY62IXK8dmvXqC/4Fb0VNwpURrGX7+OHKgun3FKdZzxv A6q+IcV1PRlrqH0DMN4QGWOmKmmvZb7aj99XX7vczRLwOpYlKvymWDzeIvRmLggYuMHN 3Nbt2fy5rvzxqdAm/ZkvtrsqFvmR/fZ9P2hhGNAW61YfjMMe8MjwF0I/SclNqgZlekls lWENSLiVaUYi4fVfbA+fYTOPFcKLCdQno/9ZpEJ5wwqkKEI0JyEG7++qeju1xSVfvUL6 PwXxfR2m0M8MUAW+skYqk1ZfDxdbZQurDDH32u5pTzZU4QouMJlGbiDSvRpCv4Pyu4cJ ll1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=vzoWqQtDsvVATsp7VpianwQnmItLlfMUZHimg7Eq3pQ=; b=syuSDsGyUhAk9ggHaa7pKWDbhmeYpOTqDzp2j2xNzVl/HG7KOaZ9dx78/9+1ODvh/b yVVTEPV3Pt+6yR+wLB082GMLXufw68uHBivUdsRNYern47a/CA1XfSSPxSczHGUebvDN NZCtemC37efELUFpI0I+xqwKbZ8ietrWk3y5NmNxJ/jeOKVsKSNQvljJ4jWeVGQK4XWZ d8l1DDOvuHIYsuefPgmBuf8UnpWAChj6eQu98DkZodu7fXNRkswvvPDAMP6TenCLwvLv ClOQnvaVi38XeZrYgidV62DlMMbOTSj+mHe7j3WC8l3sQZbC8aSeo/n2HzPkej5TwPFc rKaQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t10si9147043pgn.551.2018.12.01.23.15.43; Sat, 01 Dec 2018 23:16:10 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725747AbeLBHOq (ORCPT + 99 others); Sun, 2 Dec 2018 02:14:46 -0500 Received: from mail.bootlin.com ([62.4.15.54]:57738 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725379AbeLBHOp (ORCPT ); Sun, 2 Dec 2018 02:14:45 -0500 Received: by mail.bootlin.com (Postfix, from userid 110) id AEB1D20786; Sun, 2 Dec 2018 08:14:41 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT shortcircuit=ham autolearn=disabled version=3.4.2 Received: from bbrezillon (91-160-177-164.subs.proxad.net [91.160.177.164]) by mail.bootlin.com (Postfix) with ESMTPSA id 478912071D; Sun, 2 Dec 2018 08:14:41 +0100 (CET) Date: Sun, 2 Dec 2018 08:14:40 +0100 From: Boris Brezillon To: Eric Anholt Cc: Paul Kocialkowski , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, David Airlie , Maxime Ripard , Thomas Petazzoni Subject: Re: [PATCH v2] drm/vc4: Add a debugfs entry to disable/enable the load tracker Message-ID: <20181202081440.0ec235c4@bbrezillon> In-Reply-To: <87r2f2patf.fsf@anholt.net> References: <20181130161104.16352-1-paul.kocialkowski@bootlin.com> <87r2f2patf.fsf@anholt.net> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 30 Nov 2018 12:30:52 -0800 Eric Anholt wrote: > Paul Kocialkowski writes: > > > In order to test whether the load tracker is working as expected, we > > need the ability to compare the commit result with the underrun > > indication. With the load tracker always enabled, commits that are > > expected to trigger an underrun are always rejected, so userspace > > cannot get the actual underrun indication from the hardware. > > > > Add a debugfs entry to disable/enable the load tracker, so that a DRM > > commit expected to trigger an underrun can go through with the load > > tracker disabled. The underrun indication is then available to > > userspace and can be checked against the commit result with the load > > tracker enabled. > > > > Signed-off-by: Paul Kocialkowski > > Given that the load tracker is going to be conservative and say things > will underrun even when they might not in practice, will this actually > be useful for automated testing? Or is the intent to make it easier to > tune the load tracker by disabling it so that you can experiment freely? Yes, that's one goal, though I'm not sure IGT is supposed to contain such debugging tools. But the main benefit is being able to track regressions in the load tracking algo that makes it more (too?) conservative. I think people won't like this sort of regressions. The idea would be to settle on an acceptable load tracking algo (maybe after refining the proposed one), record the results (both good and too conservative predictions) and use that as a reference for the IGT test.