From: Eric Anholt Subject: Re: [PATCH v2] drm/vc4: Add a debugfs entry to disable/enable the load tracker Date: Fri, 30 Nov 2018 12:30:52 -0800 Message-ID: <87r2f2patf.fsf@anholt.net> References: <20181130161104.16352-1-paul.kocialkowski@bootlin.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: In-Reply-To: <20181130161104.16352-1-paul.kocialkowski@bootlin.com> Sender: linux-kernel-owner@vger.kernel.org To: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Cc: David Airlie , Maxime Ripard , Thomas Petazzoni , Boris Brezillon , Paul Kocialkowski List-Id: dri-devel@lists.freedesktop.org --=-=-= Content-Type: text/plain 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? --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEE/JuuFDWp9/ZkuCBXtdYpNtH8nugFAlwBnfwACgkQtdYpNtH8 nujXZw/+KuKh2GVi6ZB7AucHRjOryoXV4Bmp3aK60fhZM0uL/sRoJAIqCPotYf1b xlJblJ9H8Deg7B4r0aHmkuOASdgjGWSUoyyTkLh9IZKlM0ejlzAr2KSXk2XBLpyp 0SrYEmCBFrbSfFlXJt8CRpl+dujDfHq+b8mm2n7aj7egGhrAJRXC7FDMs2zsD4JT GivlBwDw32ysCT8wp7YhIHZ7lEkZBqhD2k5/oABL7Qa3/96JFjFu2ukeadKG0Hwk ib9F+tH3CFwOrCeKRjJwbI7AIKzQ1KHiqY1doTximwlg0fxw3n4HyOe7Pn14izWX 4rpd7OvECqfCDY9a48wJzdQOJOC8eM/qwtBn+2h4Z+eU0n6i2MnLhUBQs2geqGAz WNYUJUbnzTOMA2EHMGwryAGjkEZk5U70vamg3UyyGsdanTuDBVHMO4oqu48PqHmd IeM1KQqVdptbLwB95WlqUAnR3G+xJaCFnEF7l4C4jlctFmsEDpcCbUt6Ey/gn+hx CceSsk8QuNFi3u5c7pfXSLtIQxKRRILAb060exMFuFqDdIHcyjLC3SO+sxftlhiG 9ksklB0g49JBvkuFZqOXiDgC/26MS7uIS77iOMOg6kp4FFjbNmSACPeyk9vCE/7u Cqxact55PR1Fg1iECgYoP6CGz0LIFQxypGw858C4nT2p0v+g0FI= =jCqI -----END PGP SIGNATURE----- --=-=-=--