Re: [PATCH] megaraid_mbox: remove bogus use of pci_dma_sync_sg_* APIs

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

 



Christoph,

> The dma_map_sg / dma_unmap_sg APIs called from scsi_dma_map /
> scsi_dma_unmap already transfer memory ownership to the device or cpu
> respectively.  Adding additional calls to pci_dma_sync_sg_* will in
> fact lead to data corruption if we end up using swiotlb for some
> reason.
>
> Also remove the now pointless megaraid_mbox_sync_scb function.

Applied to 4.20/scsi-queue, thanks!

-- 
Martin K. Petersen	Oracle Linux Engineering



[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