OK. Will have a look at that.As far as I can see, this patch should not make a difference unless theFor __ATA_BASE_SHT, we don't set max_sectors. As such, we default
ATA shost driver is setting the max_sectors value unnecessarily low.
shost->max_sectors = SCSI_DEFAULT_MAX_SECTORS (=1024) in
scsi_host_alloc(). I assume no shost dma mapping limit applied.
Then - for example - we could select dev->max_sectors =
ATA_MAX_SECTORS_LBA48 (=65535) in ata_dev_configure().
So with commit 0568e6122574 we would have final max sectors = 1024, as
opposed to 65535 previously. I guess that the problem is something like
this.
If so, it seems that we would need to apply the shost dma mapping limit
separately in ata_scsi_dev_config() and not use shost->max_sectors.