Re: [PATCH] scsi: libsas: fix ata xfer length

2017-03-20 Thread Martin K. Petersen
John Garry writes: > I should have added this originally to the changelog: > Fixes: ff2aeb1eb64c8a4770a6 ("libata: convert to chained sg") Added. -- Martin K. Petersen Oracle Linux Engineering

Re: [PATCH] scsi: libsas: fix ata xfer length

2017-03-20 Thread John Garry
On 19/03/2017 17:21, Martin K. Petersen wrote: John Garry writes: John, The total ata xfer length may not be calculated properly, in that we do not use the proper method to get an sg element dma length. According to the code comment, sg_dma_len() should be used after

Re: [PATCH] scsi: libsas: fix ata xfer length

2017-03-19 Thread Martin K. Petersen
John Garry writes: John, > The total ata xfer length may not be calculated properly, > in that we do not use the proper method to get an sg element > dma length. > > According to the code comment, sg_dma_len() should be used > after dma_map_sg() is called. > > This issue

[PATCH] scsi: libsas: fix ata xfer length

2017-03-16 Thread John Garry
The total ata xfer length may not be calculated properly, in that we do not use the proper method to get an sg element dma length. According to the code comment, sg_dma_len() should be used after dma_map_sg() is called. This issue was found by turning on the SMMUv3 in front of the hisi_sas