Re: switch most scsi drivers to the generic DMA API v2

2018-10-17 Thread Martin K. Petersen


Christoph,

> A lot of SCSI drivers still use the legacy PCI DMA API.  While a few
> of them have various oddities that should be deal with separately,
> most of them can be very trivially converted over.

Applied to 4.20/scsi-queue. Thanks!

-- 
Martin K. Petersen  Oracle Linux Engineering


switch most scsi drivers to the generic DMA API v2

2018-10-14 Thread Christoph Hellwig
A lot of SCSI drivers still use the legacy PCI DMA API.  While a few of
them have various oddities that should be deal with separately, most of
them can be very trivially converted over.

Two interesting things to look out for:

  - pci_(z)alloc_consistent forced GFP_ATOMIC allocations, which is a bad
idea almost all the time.  All these patches switch over to GFP_KERNEL.
The few drivers were we can't do this will be deal with separately.
  - a lot of odd things were going on when setting the dma mask.  This
series switches to use dma_set_mask_and_coherent where possible.

Change since v1:
 - minor indentation and comment fixups
 - collected various reviewed-by/acked-by/tested-by tags