[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <87sh012v6f.fsf@concordia.ellerman.id.au>
Date: Fri, 16 Nov 2018 21:06:32 +1100
From: Michael Ellerman <mpe@...erman.id.au>
To: Sabyasachi Gupta <sabyasachi.linux@...il.com>,
benh@...nel.crashing.org, paulus@...ba.org, joe@...ches.com,
darren@...vens-zone.net, christophe.leroy@....fr,
geoff@...radead.org
Cc: Souptick Joarder <jrdr.linux@...il.com>,
linuxppc-dev@...ts.ozlabs.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] arch/powerpc: Use dma_zalloc_coherent
Sabyasachi Gupta <sabyasachi.linux@...il.com> writes:
> On Mon, Nov 5, 2018 at 8:58 AM Sabyasachi Gupta
> <sabyasachi.linux@...il.com> wrote:
>>
>> Replaced dma_alloc_coherent + memset with dma_zalloc_coherent
>>
>> Signed-off-by: Sabyasachi Gupta <sabyasachi.linux@...il.com>
>
> Any comment on this patch?
Wait longer :)
I'm still chasing bugs in 4.20-rc2, I haven't started merging many
patches for 4.21 yet.
Your patches are tracked in patchwork here:
https://patchwork.ozlabs.org/project/linuxppc-dev/list/?submitter=75253
If they're still in "new" state around rc5 then feel free to ping me
again.
cheers
>> diff --git a/arch/powerpc/platforms/pasemi/dma_lib.c b/arch/powerpc/platforms/pasemi/dma_lib.c
>> index 53384eb..d18d164 100644
>> --- a/arch/powerpc/platforms/pasemi/dma_lib.c
>> +++ b/arch/powerpc/platforms/pasemi/dma_lib.c
>> @@ -255,15 +255,13 @@ int pasemi_dma_alloc_ring(struct pasemi_dmachan *chan, int ring_size)
>>
>> chan->ring_size = ring_size;
>>
>> - chan->ring_virt = dma_alloc_coherent(&dma_pdev->dev,
>> + chan->ring_virt = dma_zalloc_coherent(&dma_pdev->dev,
>> ring_size * sizeof(u64),
>> &chan->ring_dma, GFP_KERNEL);
>>
>> if (!chan->ring_virt)
>> return -ENOMEM;
>>
>> - memset(chan->ring_virt, 0, ring_size * sizeof(u64));
>> -
>> return 0;
>> }
>> EXPORT_SYMBOL(pasemi_dma_alloc_ring);
>> --
>> 2.7.4
>>
Powered by blists - more mailing lists