aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/libsas/sas_init.c
diff options
context:
space:
mode:
authorYoshihiro Shimoda <[email protected]>2017-10-20 03:12:41 +0000
committerUlf Hansson <[email protected]>2017-10-20 09:24:58 +0000
commite90e8da72ad694a16a4ffa6e5adae3610208f73b (patch)
treefc0d836ca8f159fb9972d8bb9276688c0ab9d011 /drivers/scsi/libsas/sas_init.c
parentmmc: sdhci-pci: Fix default d3_retune for Intel host controllers (diff)
downloadkernel-e90e8da72ad694a16a4ffa6e5adae3610208f73b.tar.gz
kernel-e90e8da72ad694a16a4ffa6e5adae3610208f73b.zip
mmc: tmio: fix swiotlb buffer is full
Since the commit de3ee99b097d ("mmc: Delete bounce buffer handling") deletes the bounce buffer handling, a request data size will be referred to max_{req,seg}_size instead of MMC_QUEUE_BOUNCESZ (64k bytes). In other hand, renesas_sdhi_internal_dmac.c will set very big value of max_{req,seg}_size because the max_blk_count is set to 0xffffffff. And then, "swiotlb buffer is full" happens because swiotlb can handle a memory size up to 256k bytes only (IO_TLB_SEGSIZE = 128 and IO_TLB_SHIFT = 11). So, as a workaround, this patch avoids the issue by setting the max_{req,seg}_size up to 256k bytes if swiotlb is running. Reported-by: Dirk Behme <[email protected]> Signed-off-by: Yoshihiro Shimoda <[email protected]> Acked-by: Wolfram Sang <[email protected]> Reviewed-by: Geert Uytterhoeven <[email protected]> Signed-off-by: Ulf Hansson <[email protected]>
Diffstat (limited to 'drivers/scsi/libsas/sas_init.c')
0 files changed, 0 insertions, 0 deletions