From: Christoph Hellwig <hch@lst.de> To: iommu@lists.linux-foundation.org, linux-arch@vger.kernel.org, linux-block@vger.kernel.org, linux-ide@vger.kernel.org, linux-scsi@vger.kernel.org, netdev@vger.kernel.org Cc: linux-kernel@vger.kernel.org Subject: [PATCH 03/12] mtip32xx: don't use block layer bounce buffers Date: Mon, 16 Apr 2018 10:50:23 +0200 [thread overview] Message-ID: <20180416085032.7367-4-hch@lst.de> (raw) In-Reply-To: <20180416085032.7367-1-hch@lst.de> 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. Signed-off-by: Christoph Hellwig <hch@lst.de> --- drivers/block/mtip32xx/mtip32xx.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/block/mtip32xx/mtip32xx.c b/drivers/block/mtip32xx/mtip32xx.c index 769c551e3d71..b03bb27dcc58 100644 --- a/drivers/block/mtip32xx/mtip32xx.c +++ b/drivers/block/mtip32xx/mtip32xx.c @@ -3862,7 +3862,6 @@ static int mtip_block_initialize(struct driver_data *dd) 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) { -- 2.17.0
WARNING: multiple messages have this Message-ID (diff)
From: Christoph Hellwig <hch-jcswGhMUV9g@public.gmane.org> To: iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org, linux-arch-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-block-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-ide-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-scsi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, netdev-u79uwXL29TY76Z2rM5mHXA@public.gmane.org Cc: linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org Subject: [PATCH 03/12] mtip32xx: don't use block layer bounce buffers Date: Mon, 16 Apr 2018 10:50:23 +0200 [thread overview] Message-ID: <20180416085032.7367-4-hch@lst.de> (raw) In-Reply-To: <20180416085032.7367-1-hch-jcswGhMUV9g@public.gmane.org> 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. Signed-off-by: Christoph Hellwig <hch-jcswGhMUV9g@public.gmane.org> --- drivers/block/mtip32xx/mtip32xx.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/block/mtip32xx/mtip32xx.c b/drivers/block/mtip32xx/mtip32xx.c index 769c551e3d71..b03bb27dcc58 100644 --- a/drivers/block/mtip32xx/mtip32xx.c +++ b/drivers/block/mtip32xx/mtip32xx.c @@ -3862,7 +3862,6 @@ static int mtip_block_initialize(struct driver_data *dd) 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) { -- 2.17.0
next prev parent reply other threads:[~2018-04-16 8:50 UTC|newest] Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top 2018-04-16 8:50 remove PCI_DMA_BUS_IS_PHYS Christoph Hellwig 2018-04-16 8:50 ` Christoph Hellwig 2018-04-16 8:50 ` [PATCH 01/12] iscsi_tcp: don't set a bounce limit Christoph Hellwig 2018-04-16 8:50 ` Christoph Hellwig 2018-04-19 4:29 ` Martin K. Petersen 2018-04-19 4:29 ` Martin K. Petersen 2018-04-16 8:50 ` [PATCH 02/12] storsvc: " Christoph Hellwig 2018-04-16 8:50 ` Christoph Hellwig 2018-04-19 4:29 ` Martin K. Petersen 2018-04-19 4:29 ` Martin K. Petersen 2018-04-16 8:50 ` Christoph Hellwig [this message] 2018-04-16 8:50 ` [PATCH 03/12] mtip32xx: don't use block layer bounce buffers Christoph Hellwig 2018-04-16 8:50 ` [PATCH 04/12] DAC960: " Christoph Hellwig 2018-04-16 8:50 ` Christoph Hellwig 2018-04-16 8:50 ` [PATCH 05/12] sata_nv: " Christoph Hellwig 2018-04-16 8:50 ` Christoph Hellwig 2018-04-16 8:50 ` [PATCH 06/12] memstick: don't call blk_queue_bounce_limit Christoph Hellwig 2018-04-16 8:50 ` Christoph Hellwig 2018-04-16 8:50 ` [PATCH 07/12] scsi: reduce use of block bounce buffers Christoph Hellwig 2018-04-16 8:50 ` Christoph Hellwig 2018-04-16 8:50 ` [PATCH 08/12] mmc: " Christoph Hellwig 2018-04-16 8:50 ` Christoph Hellwig 2018-04-16 10:51 ` Robin Murphy 2018-04-16 10:51 ` Robin Murphy 2018-04-16 8:50 ` [PATCH 09/12] ide: kill ide_toggle_bounce Christoph Hellwig 2018-04-16 8:50 ` Christoph Hellwig 2018-04-16 8:50 ` [PATCH 10/12] ide: remove the PCI_DMA_BUS_IS_PHYS check Christoph Hellwig 2018-04-16 8:50 ` Christoph Hellwig 2018-04-16 8:50 ` [PATCH 11/12] net: remove the PCI_DMA_BUS_IS_PHYS check in illegal_highdma Christoph Hellwig 2018-04-16 8:50 ` Christoph Hellwig 2018-04-16 8:50 ` [PATCH 12/12] PCI: remove PCI_DMA_BUS_IS_PHYS Christoph Hellwig 2018-04-16 8:50 ` Christoph Hellwig
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20180416085032.7367-4-hch@lst.de \ --to=hch@lst.de \ --cc=iommu@lists.linux-foundation.org \ --cc=linux-arch@vger.kernel.org \ --cc=linux-block@vger.kernel.org \ --cc=linux-ide@vger.kernel.org \ --cc=linux-kernel@vger.kernel.org \ --cc=linux-scsi@vger.kernel.org \ --cc=netdev@vger.kernel.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.