From: Lionel Landwerlin Subject: Time for execbuf3 ? Date: Tue, 19 Mar 2019 16:39:52 +0000 Message-ID: <6dafbe35-eac1-16cc-d937-88fe3c43d91c@intel.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1152635985==" Return-path: Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by gabe.freedesktop.org (Postfix) with ESMTPS id F1F3C89948 for ; Tue, 19 Mar 2019 16:39:53 +0000 (UTC) Content-Language: en-US List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" To: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org This is a multi-part message in MIME format. --===============1152635985== Content-Type: multipart/alternative; boundary="------------8AC0360DE2CEEE8C89D95F5A" Content-Language: en-US This is a multi-part message in MIME format. --------------8AC0360DE2CEEE8C89D95F5A Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Hi all, There are couple of extensions coming up for our userspace drivers (anv/i965) where we need to add additional parameters to execbuf : - VK_KHR_timeline_semaphore : supplying u64 points together with syncobjs [1] - a non public piece of work related to performance counters [2] : supplying a performance configuration ID to reconfigure the performance HW Recently some discussions on IRC also highlighted the need for better reporting of execbuf failure. We have a number of bugs where execbuf fails after a number of hours running an application or some random conditions and it's almost impossible to figure out where the problem lies. Having a way for i915 to report what validation the input parameters actually fail would more helpful than EINVAL. Some of the virtual engine stuff could also fit in there but maybe the timeline is too tight for that. We've added a i915_query mechanism that is easily extendable and after exposing topology, it seems to be useful for adding other types of queries (engine discovery, memory regions and the series in [2] also exposes performance query configuration data). I would really like to see a similar mechanism for an execbuf3. How can we help getting started in that direction? Do people have a better idea? Thanks, -Lionel [1] : https://github.com/djdeath/linux/commit/8f26fca6dc41d98cb01c5758be01e382a72c84aa [2] : https://github.com/djdeath/linux/commit/58be37aae22f7b9b31792aa13415cb5809087c10 --------------8AC0360DE2CEEE8C89D95F5A Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit Hi all,

There are couple of extensions coming up for our userspace drivers (anv/i965) where we need to add additional parameters to execbuf :
- VK_KHR_timeline_semaphore : supplying u64 points together with syncobjs [1]
- a non public piece of work related to performance counters [2] : supplying a performance configuration ID to reconfigure the performance HW

Recently some discussions on IRC also highlighted the need for better reporting of execbuf failure.
We have a number of bugs where execbuf fails after a number of hours running an application or some random conditions and it's almost impossible to figure out where the problem lies.
Having a way for i915 to report what validation the input parameters actually fail would more helpful than EINVAL.

Some of the virtual engine stuff could also fit in there but maybe the timeline is too tight for that.

We've added a i915_query mechanism that is easily extendable and after exposing topology, it seems to be useful for adding other types of queries (engine discovery, memory regions and the series in [2] also exposes performance query configuration data).

I would really like to see a similar mechanism for an execbuf3.
How can we help getting started in that direction?
Do people have a better idea?

Thanks,

-Lionel

[1] : https://github.com/djdeath/linux/commit/8f26fca6dc41d98cb01c5758be01e382a72c84aa
[2] : https://github.com/djdeath/linux/commit/58be37aae22f7b9b31792aa13415cb5809087c10
--------------8AC0360DE2CEEE8C89D95F5A-- --===============1152635985== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KSW50ZWwtZ2Z4 IG1haWxpbmcgbGlzdApJbnRlbC1nZnhAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vaW50ZWwtZ2Z4 --===============1152635985==--