]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
mtip32xx: don't use block layer bounce buffers
authorChristoph Hellwig <hch@lst.de>
Wed, 9 May 2018 13:59:42 +0000 (15:59 +0200)
committerJens Axboe <axboe@kernel.dk>
Fri, 11 May 2018 21:07:52 +0000 (15:07 -0600)
mtip32xx just sets the block bounce limit to the dma mask, which means
that the iommu or swiotlb already take care of the bounce buffering,
and the block bouncing can be removed.

Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/mtip32xx/mtip32xx.c

index 06257b872a7db691d279030d97d8d608c6d2892c..6df5b0b1517a55d837c5fd5cdfd76d875e6523d0 100644 (file)
@@ -3862,7 +3862,6 @@ skip_create_disk:
        blk_queue_max_hw_sectors(dd->queue, 0xffff);
        blk_queue_max_segment_size(dd->queue, 0x400000);
        blk_queue_io_min(dd->queue, 4096);
-       blk_queue_bounce_limit(dd->queue, dd->pdev->dma_mask);
 
        /* Signal trim support */
        if (dd->trim_supp == true) {