]> git.baikalelectronics.ru Git - kernel.git/commit
ufs: adjust queue settings to PRDT limitations
authorAkinobu Mita <akinobu.mita@gmail.com>
Tue, 1 Jul 2014 14:00:32 +0000 (23:00 +0900)
committerChristoph Hellwig <hch@lst.de>
Fri, 25 Jul 2014 21:17:02 +0000 (17:17 -0400)
commitaf9708cfcc5a6d530944012260dca39817af9078
treea81d23f82d1b104844b7207bc75c956cd057643d
parent1ba84cdaeda51399bf0b68b1b56f2f946588591f
ufs: adjust queue settings to PRDT limitations

The data byte count field of PRDT indicates the length of data block
which is a segment of data transfer for SCSI commands.  The value of
this field shall have Dword granularity and the the maximum of length
is 256KB.

This adjusts dma pad mask and max segment size to the above-mentioned
PRDT limitations.

Signed-off-by: Akinobu Mita <mita@fixstars.com>
Reviewed-by: Subhash Jadavani <subhashj@codeaurora.org>
Tested-by: Dolev Raviv <draviv@codeaurora.org>
Acked-by: Vinayak Holikatti <vinholikatti@gmail.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/scsi/ufs/ufshcd.c
drivers/scsi/ufs/ufshci.h