* [PATCH] drm/gem: Tiny kernel clarification for drm_gem_fence_array_add
@ 2021-05-21 9:10 Daniel Vetter
2021-05-21 15:03 ` Daniel Vetter
0 siblings, 1 reply; 2+ messages in thread
From: Daniel Vetter @ 2021-05-21 9:10 UTC (permalink / raw)
To: DRI Development
Cc: David Airlie, Daniel Vetter, Thomas Zimmermann, Daniel Vetter
Spotted while trying to convert panfrost to these.
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Cc: Maxime Ripard <mripard@kernel.org>
Cc: Thomas Zimmermann <tzimmermann@suse.de>
Cc: David Airlie <airlied@linux.ie>
Cc: Daniel Vetter <daniel@ffwll.ch>
---
drivers/gpu/drm/drm_gem.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/gpu/drm/drm_gem.c b/drivers/gpu/drm/drm_gem.c
index 9989425e9875..e5dc98425896 100644
--- a/drivers/gpu/drm/drm_gem.c
+++ b/drivers/gpu/drm/drm_gem.c
@@ -1312,6 +1312,9 @@ EXPORT_SYMBOL(drm_gem_unlock_reservations);
* @fence_array: array of dma_fence * for the job to block on.
* @fence: the dma_fence to add to the list of dependencies.
*
+ * This functions consumes the reference for @fence both on success and error
+ * cases.
+ *
* Returns:
* 0 on success, or an error on failing to expand the array.
*/
--
2.31.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] drm/gem: Tiny kernel clarification for drm_gem_fence_array_add
2021-05-21 9:10 [PATCH] drm/gem: Tiny kernel clarification for drm_gem_fence_array_add Daniel Vetter
@ 2021-05-21 15:03 ` Daniel Vetter
0 siblings, 0 replies; 2+ messages in thread
From: Daniel Vetter @ 2021-05-21 15:03 UTC (permalink / raw)
To: DRI Development
Cc: Emma Anholt, David Airlie, Daniel Vetter, Thomas Zimmermann,
Daniel Vetter
On Fri, May 21, 2021 at 11:10:57AM +0200, Daniel Vetter wrote:
> Spotted while trying to convert panfrost to these.
>
> Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
> Cc: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
> Cc: Maxime Ripard <mripard@kernel.org>
> Cc: Thomas Zimmermann <tzimmermann@suse.de>
> Cc: David Airlie <airlied@linux.ie>
> Cc: Daniel Vetter <daniel@ffwll.ch>
Cc: Emma Anholt <emma@anholt.net>
As original author of these.
-Daniel
> ---
> drivers/gpu/drm/drm_gem.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/drivers/gpu/drm/drm_gem.c b/drivers/gpu/drm/drm_gem.c
> index 9989425e9875..e5dc98425896 100644
> --- a/drivers/gpu/drm/drm_gem.c
> +++ b/drivers/gpu/drm/drm_gem.c
> @@ -1312,6 +1312,9 @@ EXPORT_SYMBOL(drm_gem_unlock_reservations);
> * @fence_array: array of dma_fence * for the job to block on.
> * @fence: the dma_fence to add to the list of dependencies.
> *
> + * This functions consumes the reference for @fence both on success and error
> + * cases.
> + *
> * Returns:
> * 0 on success, or an error on failing to expand the array.
> */
> --
> 2.31.0
>
--
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-05-21 15:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-21 9:10 [PATCH] drm/gem: Tiny kernel clarification for drm_gem_fence_array_add Daniel Vetter
2021-05-21 15:03 ` Daniel Vetter
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).