From: Eric Anholt Subject: Re: [PATCH igt] igt/vc4_dmabuf_poll: Add a test for polling to wait for dmabuf fences. Date: Wed, 07 Jun 2017 12:56:03 -0700 Message-ID: <8737bbtvvw.fsf@eliezer.anholt.net> References: <20170411012432.17197-1-eric@anholt.net> <20170412072932.e7z2mdvi5rdoy6hs@phenom.ffwll.local> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1870456293==" Return-path: Received: from anholt.net (anholt.net [50.246.234.109]) by gabe.freedesktop.org (Postfix) with ESMTP id 9872F89BB3 for ; Wed, 7 Jun 2017 19:56:06 +0000 (UTC) In-Reply-To: <20170412072932.e7z2mdvi5rdoy6hs@phenom.ffwll.local> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" To: Daniel Vetter Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org --===============1870456293== Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Daniel Vetter writes: > On Mon, Apr 10, 2017 at 06:24:32PM -0700, Eric Anholt wrote: >> This successfully catches vc4's lack of dmabuf fencing. >>=20 >> Signed-off-by: Eric Anholt >> --- >>=20 >> Has anyone looked into shared infrastructure for tests to do >> KMS/dmabuf/etc. things with a generic "get a BO that's being rendered >> to for this driver" call? > > We have some helpers for i915 to make a bo busy with an explicit release > (we create a looping batch which we break with a cpu write), for extremely > well-control busy tests. Not sure how well that's portable, and without > full control it's hard to make busy tests reliable. I think I would need a new kernel ioctl for that. I can queue up 32MB read/write jobs, and with ~1GB/s of memory bandwidth, that's been plenty of time to write tests that catch at least some bugs in synchronization. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEE/JuuFDWp9/ZkuCBXtdYpNtH8nugFAlk4WlMACgkQtdYpNtH8 nujoVBAArq5Co3DgD93OruQTlXVd6Yt+CNwTfo3IxdSySjSxx0reDk4oC6rwo8FZ DeulfGdhlW3nJqWomhbPte/XqzeJzUUgbNaxuF4N1ImNDPgcHz1fNkZB3st3qYju EMdQRly+TpRtkgQUnGf4JVup7M3/gGZ4OxvyRJkeTdPXr5coDxnDbBLcuohL2mby fiizukU3uuO4KO4KQ9ooS07xBMQwfDgtc7TmlLZwTevsJqryiemAhSq9sFBUrVRE sqLZbrWaPkL9AsCDFJtPw9z9B1IAbxBbz+BdRKgeVoGXtVxJAo/rqqLZ9EL8YBFv iC+kVic28dGoBYIM0z+OdwMi+DVf/hwimrfTakGuKRgwBD0vCRe3bY+F7Mu9bpMN gJD22vmjg5KqjBE6qH47P/HtuoxxfW/sq7PVdSeN1KVnwdUvZfa8Gr89WVrWDqab 3HqEQwQ5TC+j0cY3H7r6GQp9ewkOMyv7pt29tDslRdR7OE3wlgFLR7r7RY3l5hOF tTd9O6j+2DEBWWwCzxTJGosWWoOr4RIm01LSTD3tzt/IdeiWUKkRyYFDD5UhcHVg iGI/AVM+6sQCSVH+g4p8k50WAcr+jcIjQ2DqVSedAOH/mwt3I5Hd7XUIavfbAmM4 8LvEHd8lYg4l2MtfSeZk1eFfVRVaZnFAJ8IRNnA3EPVpHKZm7Pg= =8ZB1 -----END PGP SIGNATURE----- --=-=-=-- --===============1870456293== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KSW50ZWwtZ2Z4 IG1haWxpbmcgbGlzdApJbnRlbC1nZnhAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vaW50ZWwtZ2Z4Cg== --===============1870456293==--