Re: [Intel-gfx] [PATCH 1/2] drm/drm_vma_manager: Add drm_vma_node_allow_once()

2023-01-19 Thread Das, Nirmoy
On 1/19/2023 2:25 PM, Maxime Ripard wrote: On Tue, 17 Jan 2023 18:52:35 +0100, Nirmoy Das wrote: Currently there is no easy way for a drm driver to safely check and allow drm_vma_offset_node for a drm file just once. Allow drm drivers to call non-refcounted version of drm_vma_node_allow() so t

Re: [Intel-gfx] [PATCH 1/2] drm/drm_vma_manager: Add drm_vma_node_allow_once()

2023-01-19 Thread Maxime Ripard
On Tue, 17 Jan 2023 18:52:35 +0100, Nirmoy Das wrote: > Currently there is no easy way for a drm driver to safely check and allow > drm_vma_offset_node for a drm file just once. Allow drm drivers to call > non-refcounted version of drm_vma_node_allow() so that a driver doesn't > need to keep track

Re: [Intel-gfx] [PATCH 1/2] drm/drm_vma_manager: Add drm_vma_node_allow_once()

2023-01-18 Thread Tvrtko Ursulin
On 18/01/2023 13:19, Tvrtko Ursulin wrote: Hi Dave & Daniel, On 17/01/2023 17:52, Nirmoy Das wrote: Currently there is no easy way for a drm driver to safely check and allow drm_vma_offset_node for a drm file just once. Allow drm drivers to call non-refcounted version of drm_vma_node_allow()

Re: [Intel-gfx] [PATCH 1/2] drm/drm_vma_manager: Add drm_vma_node_allow_once()

2023-01-18 Thread Tvrtko Ursulin
Hi Dave & Daniel, On 17/01/2023 17:52, Nirmoy Das wrote: Currently there is no easy way for a drm driver to safely check and allow drm_vma_offset_node for a drm file just once. Allow drm drivers to call non-refcounted version of drm_vma_node_allow() so that a driver doesn't need to keep track

Re: [Intel-gfx] [PATCH 1/2] drm/drm_vma_manager: Add drm_vma_node_allow_once()

2023-01-18 Thread Das, Nirmoy
On 1/18/2023 10:38 AM, Andi Shyti wrote: On Tue, Jan 17, 2023 at 06:52:35PM +0100, Nirmoy Das wrote: Currently there is no easy way for a drm driver to safely check and allow drm_vma_offset_node for a drm file just once. Allow drm drivers to call non-refcounted version of drm_vma_node_allow()

Re: [Intel-gfx] [PATCH 1/2] drm/drm_vma_manager: Add drm_vma_node_allow_once()

2023-01-18 Thread Andi Shyti
On Tue, Jan 17, 2023 at 06:52:35PM +0100, Nirmoy Das wrote: > Currently there is no easy way for a drm driver to safely check and allow > drm_vma_offset_node for a drm file just once. Allow drm drivers to call > non-refcounted version of drm_vma_node_allow() so that a driver doesn't > need to keep

Re: [Intel-gfx] [PATCH 1/2] drm/drm_vma_manager: Add drm_vma_node_allow_once()

2023-01-18 Thread Tvrtko Ursulin
On 17/01/2023 17:52, Nirmoy Das wrote: Currently there is no easy way for a drm driver to safely check and allow drm_vma_offset_node for a drm file just once. Allow drm drivers to call non-refcounted version of drm_vma_node_allow() so that a driver doesn't need to keep track of each drm_vma_nod

[Intel-gfx] [PATCH 1/2] drm/drm_vma_manager: Add drm_vma_node_allow_once()

2023-01-17 Thread Nirmoy Das
Currently there is no easy way for a drm driver to safely check and allow drm_vma_offset_node for a drm file just once. Allow drm drivers to call non-refcounted version of drm_vma_node_allow() so that a driver doesn't need to keep track of each drm_vma_node_allow() to call subsequent drm_vma_node_r