From: Eric Anholt Subject: Re: [PATCH 1/4] introduce intel_ring_buffer structure Date: Wed, 19 May 2010 09:54:56 -0700 Message-ID: <87tyq3esrj.fsf@pollan.anholt.net> References: <1273108805-1354-1-git-send-email-nanhai.zou@intel.com> <201005181719.33501.simon.farnsworth@onelan.com> <41EFD7A46E18724CAB128DAD0073348006A65A1B45@shsmsx502.ccr.corp.intel.com> <201005191000.11272.simon.farnsworth@onelan.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1295725956==" Return-path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by gabe.freedesktop.org (Postfix) with ESMTP id 079899E77A for ; Wed, 19 May 2010 10:02:42 -0700 (PDT) In-Reply-To: <201005191000.11272.simon.farnsworth@onelan.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Mime-version: 1.0 Sender: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org To: Simon Farnsworth , "Zou, Nanhai" Cc: "intel-gfx@lists.freedesktop.org" List-Id: intel-gfx@lists.freedesktop.org --===============1295725956== Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" --=-=-= Content-Transfer-Encoding: quoted-printable On Wed, 19 May 2010 10:00:10 +0100, Simon Farnsworth wrote: > On Wednesday 19 May 2010, "Zou, Nanhai" wrote: > > Currently we do not find any regression or slowness. We have been test= ing > > full HD video test along with regression tests for more than 1 month. T= he > > only slowness we find now is with playing 2 1080p H.264 video. That was > > caused by too much GPU memory usage which is not related to the interfa= ce. > >=20 > And are you utterly confident that if anyone finds a way to use your new = ioctl=20 > to (e.g.) hang the GPU, stall rendering indefinitely waiting for media en= gine=20 > events that will never happen, or perhaps bypass system security, you can= fix=20 > it without changing the ioctl interface to userspace? If not, you have a= =20 > problem, and need to redesign the ioctl. >=20 > Bear in mind that I don't have to use VAAPI to call your ioctl; I can wri= te=20 > evil code that calls it directly. On the other hand, you can't remove the= =20 > ioctl later - users will want to use older VAAPI versions with new kernel= s, so=20 > that they can upgrade without too much fear of regression. OK, now you're going over the top. The GPU can't schedule[1], is turing complete, and you hand it programs. You can hang it with or without his interface. If you don't want to be able to do that, then don't let non-root use the DRI. Our goal in designing kernel interfaces is to make sure that we get the best behavior we can. After clarifying the cache behavior of the BSD rendering (it all goes into the render cache, so if we're tracking which ring is producing the results, having objects only on one ring, and then tracking them in the one flushing list once they fall off a ring's active list), we can safely handle normal operation with a client dying in the middle. Also, userland is not having to manage caching differently from how userland already does in GEM. That was the part that was unclear before, so I think we're good to go. [1] OK, there's support for scheduling of operations between rings at batch or packet boundaries. Not helping. --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAkv0F+AACgkQHUdvYGzw6vcmzwCeNWqFTV+oJrazMKa0iVCaX/bP WPgAn25SiUnxBLrZIvGqZNt7Ae8g8wLc =5qLO -----END PGP SIGNATURE----- --=-=-=-- --===============1295725956== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/intel-gfx --===============1295725956==--