* [PATCH] dma-buf: actually set signaling bit for private sub fences
@ 2023-01-26 0:28 Danilo Krummrich
2023-01-26 6:58 ` Christian König
0 siblings, 1 reply; 5+ messages in thread
From: Danilo Krummrich @ 2023-01-26 0:28 UTC (permalink / raw)
To: christian.koenig, Arvind.Yadav, sumit.semwal, gustavo
Cc: dri-devel, linux-media, linux-kernel, Danilo Krummrich
In dma_fence_allocate_private_stub() set the signaling bit of the newly
allocated private stub fence rather than the signaling bit of the
shared dma_fence_stub.
Fixes: c85d00d4fd8b ("dma-buf: set signaling bit for the stub fence")
Signed-off-by: Danilo Krummrich <dakr@redhat.com>
---
drivers/dma-buf/dma-fence.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/dma-buf/dma-fence.c b/drivers/dma-buf/dma-fence.c
index 406b4e26f538..0de0482cd36e 100644
--- a/drivers/dma-buf/dma-fence.c
+++ b/drivers/dma-buf/dma-fence.c
@@ -167,7 +167,7 @@ struct dma_fence *dma_fence_allocate_private_stub(void)
0, 0);
set_bit(DMA_FENCE_FLAG_ENABLE_SIGNAL_BIT,
- &dma_fence_stub.flags);
+ &fence->flags);
dma_fence_signal(fence);
--
2.39.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] dma-buf: actually set signaling bit for private sub fences
2023-01-26 0:28 [PATCH] dma-buf: actually set signaling bit for private sub fences Danilo Krummrich
@ 2023-01-26 6:58 ` Christian König
2023-01-26 22:25 ` Danilo Krummrich
0 siblings, 1 reply; 5+ messages in thread
From: Christian König @ 2023-01-26 6:58 UTC (permalink / raw)
To: Danilo Krummrich, Arvind.Yadav, sumit.semwal, gustavo
Cc: dri-devel, linux-media, linux-kernel
Am 26.01.23 um 01:28 schrieb Danilo Krummrich:
> In dma_fence_allocate_private_stub() set the signaling bit of the newly
> allocated private stub fence rather than the signaling bit of the
> shared dma_fence_stub.
>
> Fixes: c85d00d4fd8b ("dma-buf: set signaling bit for the stub fence")
> Signed-off-by: Danilo Krummrich <dakr@redhat.com>
Good catch, Reviewed-by: Christian König <christian.koenig@amd.com>
Should I push it upstream as well or do you have commit access?
> ---
> drivers/dma-buf/dma-fence.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/dma-buf/dma-fence.c b/drivers/dma-buf/dma-fence.c
> index 406b4e26f538..0de0482cd36e 100644
> --- a/drivers/dma-buf/dma-fence.c
> +++ b/drivers/dma-buf/dma-fence.c
> @@ -167,7 +167,7 @@ struct dma_fence *dma_fence_allocate_private_stub(void)
> 0, 0);
>
> set_bit(DMA_FENCE_FLAG_ENABLE_SIGNAL_BIT,
> - &dma_fence_stub.flags);
> + &fence->flags);
>
> dma_fence_signal(fence);
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] dma-buf: actually set signaling bit for private sub fences
2023-01-26 6:58 ` Christian König
@ 2023-01-26 22:25 ` Danilo Krummrich
2023-01-27 7:49 ` Christian König
0 siblings, 1 reply; 5+ messages in thread
From: Danilo Krummrich @ 2023-01-26 22:25 UTC (permalink / raw)
To: Christian König, Arvind.Yadav, sumit.semwal, gustavo
Cc: dri-devel, linux-media, linux-kernel
On 1/26/23 07:58, Christian König wrote:
> Am 26.01.23 um 01:28 schrieb Danilo Krummrich:
>> In dma_fence_allocate_private_stub() set the signaling bit of the newly
>> allocated private stub fence rather than the signaling bit of the
>> shared dma_fence_stub.
>>
>> Fixes: c85d00d4fd8b ("dma-buf: set signaling bit for the stub fence")
>> Signed-off-by: Danilo Krummrich <dakr@redhat.com>
>
> Good catch, Reviewed-by: Christian König <christian.koenig@amd.com>
>
> Should I push it upstream as well or do you have commit access?
Thanks, I can push it to drm-misc-next.
>
>> ---
>> drivers/dma-buf/dma-fence.c | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/drivers/dma-buf/dma-fence.c b/drivers/dma-buf/dma-fence.c
>> index 406b4e26f538..0de0482cd36e 100644
>> --- a/drivers/dma-buf/dma-fence.c
>> +++ b/drivers/dma-buf/dma-fence.c
>> @@ -167,7 +167,7 @@ struct dma_fence
>> *dma_fence_allocate_private_stub(void)
>> 0, 0);
>> set_bit(DMA_FENCE_FLAG_ENABLE_SIGNAL_BIT,
>> - &dma_fence_stub.flags);
>> + &fence->flags);
>> dma_fence_signal(fence);
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] dma-buf: actually set signaling bit for private sub fences
2023-01-26 22:25 ` Danilo Krummrich
@ 2023-01-27 7:49 ` Christian König
2023-02-01 10:34 ` Thomas Zimmermann
0 siblings, 1 reply; 5+ messages in thread
From: Christian König @ 2023-01-27 7:49 UTC (permalink / raw)
To: Danilo Krummrich, Arvind.Yadav, sumit.semwal, gustavo
Cc: dri-devel, linux-media, linux-kernel
Am 26.01.23 um 23:25 schrieb Danilo Krummrich:
> On 1/26/23 07:58, Christian König wrote:
>> Am 26.01.23 um 01:28 schrieb Danilo Krummrich:
>>> In dma_fence_allocate_private_stub() set the signaling bit of the newly
>>> allocated private stub fence rather than the signaling bit of the
>>> shared dma_fence_stub.
>>>
>>> Fixes: c85d00d4fd8b ("dma-buf: set signaling bit for the stub fence")
>>> Signed-off-by: Danilo Krummrich <dakr@redhat.com>
>>
>> Good catch, Reviewed-by: Christian König <christian.koenig@amd.com>
>>
>> Should I push it upstream as well or do you have commit access?
>
> Thanks, I can push it to drm-misc-next.
This is clearly a bug fix so better push this to drm-misc-fixes and
maybe even add a CC:stable tag.
Christian.
>
>>
>>> ---
>>> drivers/dma-buf/dma-fence.c | 2 +-
>>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>>
>>> diff --git a/drivers/dma-buf/dma-fence.c b/drivers/dma-buf/dma-fence.c
>>> index 406b4e26f538..0de0482cd36e 100644
>>> --- a/drivers/dma-buf/dma-fence.c
>>> +++ b/drivers/dma-buf/dma-fence.c
>>> @@ -167,7 +167,7 @@ struct dma_fence
>>> *dma_fence_allocate_private_stub(void)
>>> 0, 0);
>>> set_bit(DMA_FENCE_FLAG_ENABLE_SIGNAL_BIT,
>>> - &dma_fence_stub.flags);
>>> + &fence->flags);
>>> dma_fence_signal(fence);
>>
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] dma-buf: actually set signaling bit for private sub fences
2023-01-27 7:49 ` Christian König
@ 2023-02-01 10:34 ` Thomas Zimmermann
0 siblings, 0 replies; 5+ messages in thread
From: Thomas Zimmermann @ 2023-02-01 10:34 UTC (permalink / raw)
To: Christian König, Danilo Krummrich, Arvind.Yadav,
sumit.semwal, gustavo
Cc: linux-kernel, dri-devel, linux-media
[-- Attachment #1.1: Type: text/plain, Size: 1762 bytes --]
Am 27.01.23 um 08:49 schrieb Christian König:
> Am 26.01.23 um 23:25 schrieb Danilo Krummrich:
>> On 1/26/23 07:58, Christian König wrote:
>>> Am 26.01.23 um 01:28 schrieb Danilo Krummrich:
>>>> In dma_fence_allocate_private_stub() set the signaling bit of the newly
>>>> allocated private stub fence rather than the signaling bit of the
>>>> shared dma_fence_stub.
>>>>
>>>> Fixes: c85d00d4fd8b ("dma-buf: set signaling bit for the stub fence")
>>>> Signed-off-by: Danilo Krummrich <dakr@redhat.com>
>>>
>>> Good catch, Reviewed-by: Christian König <christian.koenig@amd.com>
>>>
>>> Should I push it upstream as well or do you have commit access?
>>
>> Thanks, I can push it to drm-misc-next.
>
> This is clearly a bug fix so better push this to drm-misc-fixes and
> maybe even add a CC:stable tag.
I have cherry-picked the patch into drm-misc-next-fixes.
>
> Christian.
>
>>
>>>
>>>> ---
>>>> drivers/dma-buf/dma-fence.c | 2 +-
>>>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>>>
>>>> diff --git a/drivers/dma-buf/dma-fence.c b/drivers/dma-buf/dma-fence.c
>>>> index 406b4e26f538..0de0482cd36e 100644
>>>> --- a/drivers/dma-buf/dma-fence.c
>>>> +++ b/drivers/dma-buf/dma-fence.c
>>>> @@ -167,7 +167,7 @@ struct dma_fence
>>>> *dma_fence_allocate_private_stub(void)
>>>> 0, 0);
>>>> set_bit(DMA_FENCE_FLAG_ENABLE_SIGNAL_BIT,
>>>> - &dma_fence_stub.flags);
>>>> + &fence->flags);
>>>> dma_fence_signal(fence);
>>>
>>
>
--
Thomas Zimmermann
Graphics Driver Developer
SUSE Software Solutions Germany GmbH
Maxfeldstr. 5, 90409 Nürnberg, Germany
(HRB 36809, AG Nürnberg)
Geschäftsführer: Ivo Totev
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2023-02-01 10:34 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-26 0:28 [PATCH] dma-buf: actually set signaling bit for private sub fences Danilo Krummrich
2023-01-26 6:58 ` Christian König
2023-01-26 22:25 ` Danilo Krummrich
2023-01-27 7:49 ` Christian König
2023-02-01 10:34 ` Thomas Zimmermann
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).