RE: [PATCH v2 1/1] aacraid: pci_alloc_consistent() failures on ARM64

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> -----Original Message-----
> From: Christoph Hellwig [mailto:hch@xxxxxxxxxxxxx]
> Sent: Tuesday, April 25, 2017 12:07 AM
> To: Mahesh Rajashekhara <mahesh.rajashekhara@xxxxxxxxxxxxx>
> Cc: Dave Carroll <david.carroll@xxxxxxxxxxxxx>; linux-scsi@xxxxxxxxxxxxxxx;
> jejb@xxxxxxxxxxxxxxxxxx; martin.petersen@xxxxxxxxxx; dl-esc-Aacraid Linux
> Driver <aacraid@xxxxxxxxxxxxx>
> Subject: Re: [PATCH v2 1/1] aacraid: pci_alloc_consistent() failures on ARM64
> 
> On Wed, Apr 05, 2017 at 04:14:16PM +0530, Mahesh Rajashekhara wrote:
> > There were pci_alloc_consistent() failures on ARM64 platform.
> > Use dma_alloc_coherent() with GFP_KERNEL flag DMA memory allocations.
> >
> > Signed-off-by: Mahesh Rajashekhara <mahesh.rajashekhara@xxxxxxxxxxxxx>
> > ---
> > v2:
> >  - Removed platform specific MACRO and call dma_*_coherent routines
> directly.
> >  - Removed all the casts to and from void * in the arguments and
> > return values
> 
> The indentation is weird, and you're also adding memsets of the allocations
> which is a behavior change.  Please take a look at the the attached version that
> fixes this up.
> 
> If you really need the zeroing please send an additional patch to switch to
> dma_zalloc_coherent.
> 
> ---
> From 522b355c4fe021822d385332de525c7de5c2b290 Mon Sep 17 00:00:00
> 2001
> From: Mahesh Rajashekhara <mahesh.rajashekhara@xxxxxxxxxxxxx>
> Date: Wed, 5 Apr 2017 16:14:16 +0530
> Subject: aacraid: pci_alloc_consistent() failures on ARM64
> 
> There were pci_alloc_consistent() failures on ARM64 platform.
> Use dma_alloc_coherent() with GFP_KERNEL flag DMA memory allocations.
> 
> Signed-off-by: Mahesh Rajashekhara <mahesh.rajashekhara@xxxxxxxxxxxxx>
> [hch: tweaked indentation, removed memsets]
> Signed-off-by: Christoph Hellwig <hch@xxxxxx>
> ---
Acked-by: Dave Carroll <david.carroll@xxxxxxxxxxxxx>




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]

  Powered by Linux