[RFC] Exclusive gpu access for SteamVR usecases

2017-05-24 Thread Andres Rodriguez
When multiple environments are running simultaneously on a system, e.g. an X desktop + a SteamVR game session, it may be useful to sacrifice performance in one environment in order to boost it on the other. This series provides a mechanism for a DRM_MASTER to provide exclusive gpu access to a grou

Re: [RFC] Exclusive gpu access for SteamVR usecases

2017-05-26 Thread Mao, David
Hi Andres, Why the fd is needed for this interface? Why not just using the dev->fd instead of fd? IIRC, if there are more than one fds opened in the process upon the same device, they will share the same amdgpu_device_handle which is guaranteed by amdgpu_device_initialize. In other word, we shoul

Re: [RFC] Exclusive gpu access for SteamVR usecases

2017-05-26 Thread Andres Rodriguez
On 2017-05-26 05:02 AM, Mao, David wrote: Hi Andres, Why the fd is needed for this interface? The fd is used to identify the process for which we wish to raise the priority. It can be any fd from the target process, it doesn't have to be a drm file descriptor at all. The fd is used to ret

Re: [RFC] Exclusive gpu access for SteamVR usecases

2017-05-26 Thread Christian König
Hi David, the idea is that the compositor (which is DRM master) can change the priority of it's clients. So using dev->fd is pointless because that is the fd of the DRM master process. Regards, Christian. Am 26.05.2017 um 11:02 schrieb Mao, David: Hi Andres, Why the fd is needed for this

Re: [RFC] Exclusive gpu access for SteamVR usecases

2017-05-30 Thread Christian König
Looks like a good start, but a few notes in general: 1. Split the patches into two sets. One for implementing changing the priorities and one for limiting the priorities. 2. How are the priorities from processes supposed to interact with the per context priority? 3. Thinking more about it

Re: [RFC] Exclusive gpu access for SteamVR usecases

2017-05-30 Thread Andres Rodriguez
On 2017-05-30 11:19 AM, Christian König wrote: Looks like a good start, but a few notes in general: 1. Split the patches into two sets. One for implementing changing the priorities and one for limiting the priorities. No problem. 2. How are the priorities from processes supposed to inte

Re: [RFC] Exclusive gpu access for SteamVR usecases

2017-05-30 Thread Christian König
2. How are the priorities from processes supposed to interact with the per context priority? Do you mean process niceness? There isn't any relationship between niceness and gpu priority. Let me know if you meant something different here. I meant something different. The application contro

Re: [RFC] Exclusive gpu access for SteamVR usecases

2017-05-31 Thread Andres Rodriguez
On 2017-05-31 02:53 AM, Christian König wrote: 2. How are the priorities from processes supposed to interact with the per context priority? Do you mean process niceness? There isn't any relationship between niceness and gpu priority. Let me know if you meant something different here. I

Re: [RFC] Exclusive gpu access for SteamVR usecases

2017-06-01 Thread Christian König
Am 31.05.2017 um 20:46 schrieb Andres Rodriguez: On 2017-05-31 02:53 AM, Christian König wrote: 2. How are the priorities from processes supposed to interact with the per context priority? Do you mean process niceness? There isn't any relationship between niceness and gpu priority. Let m