Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4741585imu; Sat, 1 Dec 2018 01:59:28 -0800 (PST) X-Google-Smtp-Source: AFSGD/Vz5tTy+LGIRiXp1Itkr+by5eY03Ji4/Gx3Jcb8olV45x2AT6xyJ94Z6UvbHPdbxITcsycv X-Received: by 2002:a17:902:b01:: with SMTP id 1mr8923211plq.331.1543658368290; Sat, 01 Dec 2018 01:59:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543658368; cv=none; d=google.com; s=arc-20160816; b=EBKrwiNWGU4OZLi1OVbDqrP2pbpsgcYely0tAIuaYZyeqBYWvxjvo5amH2nibjG6PX Q0QyzRd+DM1UrqOVpe8FVU26BpO/OErvO9My+nOmsj1RNKTXkTX2soVPyEQY/1+Swib2 7eVhh2tp4klMiRSgCGlWk7d1UTvGMnx5dc0uIFVUK7Bzro/dhRBRf1n/9elAGxC9q/TS YbFWtfdKzjWAXiYhEN30gJVj4mn5xgK6aeElCU8oZk94ZwW4Uyz58JfwZ3TRiHOO2Qgu rdedBI/cP0MqvpFsBRTbhG1FbMsoApovHu1e8Mmw7wWopicbwvecKFx9GV/bgexSgppj GYMQ== 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 :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=4wZVpwn/L1YmjgS3DXNdAuNwFiFsuJVSEbSkUWv5hqE=; b=K/o0kgC6aam/E7k1OhK//jXdG5NXv+sAIWlNlNKwLjVDCyNe/Xw4K+cXEEXdP825Rr FH/GBoqipTI09lkMi1SJw4jEwF3GpBCt9nW5IX9Ck7g8Al/ONMiO33A1dLssf6NUVmXp Wc7jFLducciYVP4SRbhbFhIu6DQ4Wdr1yTyA1GsBYovxR7skpoZGbiqfE/DLZWtGmKjb 08aWw32EX7fQxmNuasV5LNImKLW+GtXATSWIRXlKBDaBQpbkTTHpDLUHwnACsn8RrrJQ muTdnximtq83zsTeNEAbtemfNSZZJtIb7t/DgJAQLE+5Ls8/XGIC6D6XF2CGopK22ACh VLOA== 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 j20si6715158pgh.224.2018.12.01.01.59.13; Sat, 01 Dec 2018 01:59:28 -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 S1726690AbeLAVJn (ORCPT + 99 others); Sat, 1 Dec 2018 16:09:43 -0500 Received: from mail.bootlin.com ([62.4.15.54]:49175 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726342AbeLAVJm (ORCPT ); Sat, 1 Dec 2018 16:09:42 -0500 Received: by mail.bootlin.com (Postfix, from userid 110) id 035F320742; Sat, 1 Dec 2018 10:57:33 +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, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.2 Received: from collins (unknown [77.128.107.220]) by mail.bootlin.com (Postfix) with ESMTPSA id BCB7120717; Sat, 1 Dec 2018 10:57:22 +0100 (CET) Message-ID: Subject: Re: [PATCH v2] drm/vc4: Add a debugfs entry to disable/enable the load tracker From: Paul Kocialkowski To: Eric Anholt , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Cc: David Airlie , Maxime Ripard , Thomas Petazzoni , Boris Brezillon Date: Sat, 01 Dec 2018 10:58:57 +0100 In-Reply-To: <87r2f2patf.fsf@anholt.net> References: <20181130161104.16352-1-paul.kocialkowski@bootlin.com> <87r2f2patf.fsf@anholt.net> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.30.2 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Eric, Le vendredi 30 novembre 2018 à 12:30 -0800, Eric Anholt a écrit : > 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? The intent here is to be able to compare the load tracker's result with the underrun indication from the HVS. The idea is to have the following testing scheme: 1. enable the load tracker 2. try a commit and get the errno if it fails 3. disable the load tracker 4. do the commit 5. wait for vblank and get the underrun indication 6. check that the underrun occurs when errno == -ENOSPC This way, we can find out when the load tracker gave us a false positive and refine the load calculation. Cheers, Paul