From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Anholt Subject: Re: [PATCH v3] drm/vc4: Expose performance counters to userspace Date: Sun, 11 Feb 2018 10:07:28 +0000 Message-ID: <87a7wfsuu7.fsf@anholt.net> References: <20180112090926.12538-1-boris.brezillon@free-electrons.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0971119386==" Return-path: Received: from anholt.net (anholt.net [50.246.234.109]) by gabe.freedesktop.org (Postfix) with ESMTP id E43F689C09 for ; Sun, 11 Feb 2018 10:10:34 +0000 (UTC) In-Reply-To: <20180112090926.12538-1-boris.brezillon@free-electrons.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: David Airlie , Daniel Vetter , dri-devel@lists.freedesktop.org Cc: Boris Brezillon List-Id: dri-devel@lists.freedesktop.org --===============0971119386== Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" --=-=-= Content-Type: text/plain Boris Brezillon writes: > The V3D engine has various hardware counters which might be interesting > to userspace performance analysis tools. > > Expose new ioctls to create/destroy a performance monitor object and > query the counter values of this perfmance monitor. > > Note that a perfomance monitor is given an ID that is only valid on the > file descriptor it has been allocated from. A performance monitor can be > attached to a CL submission and the driver will enable HW counters for > this request and update the performance monitor values at the end of the > job. > > Signed-off-by: Boris Brezillon > Reviewed-by: Eric Anholt Pushed. Thanks! --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEE/JuuFDWp9/ZkuCBXtdYpNtH8nugFAlqAFeAACgkQtdYpNtH8 nujhuQ//XRJxaA4LxgsmPCop8qky2IjXwnlUy/JGVkwuPFwAv//zbvBSTf/Dm513 MbIAfUvT1fNMSihmKTPpgC3GnwL/WbBelErwArtNpsuPUp3mDOzwYLXe2bqOLxu5 I7pTzNTQ+AB5jNnLOCjp7UPWIzAwsmtqqmiFVKVDhljU1lIOK9Hqg41p46nqJayf RnOeW5q6sTXbziq1bH5n8aVJJHfN37yY6GGbnu78ajgg+fwI5y3tfwO20tAjUmRQ xlvry8XUfLSv+sBr6LJ4aQujeYUsk6UJfBGM80uQsQZuT/t1X46PRFbP8QI1QldW zvnlqyZ/7d0+p2wurM67YIAPfYIoGRMjCjCbASdAic9cgQ3EgG8a5895/8BSG7Xo so+59vZHvp59vcCpGgoJ+H8dL+cPilO0xAUSYWRnI6gSnFGxeVEMRwUW8quPgEp2 DD4yIO16k0vYi/BmMVQkT30G0quhIgjX/0UOwQUJjPr2uNRvjHWLZws4wchMLbKQ ViqiQRqK4NqVQvfHl0QHSNs3OSgabH5cXjHmRWqCN1xdrQzVN3htHtcZEX9Rpyw/ CEsi+OVRAQhAn9cZJnJ/YebhZL9muLjAzk+9uOd7fSiKUIIi8kTJ7J/CNtoTZpJj 7Mo/StWerDdElZ81XdPJ/YpgTmxD1a4+nq63UOfHayVtnXlzNTw= =XnI4 -----END PGP SIGNATURE----- --=-=-=-- --===============0971119386== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0971119386==--