[PATCH -mm 0/11] fix iommu sg merging problem

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <akpm@...>
Cc: <linux-kernel@...>, <linux-scsi@...>, <James.Bottomley@...>, <jens.axboe@...>, <greg@...>, <jeff@...>, <muli@...>, <paulus@...>, <tony.luck@...>, <davem@...>, <kyle@...>, <aacraid@...>, <fujita.tomonori@...>
Date: Wednesday, October 24, 2007 - 6:47 am

IOMMUs merges scatter/gather segments without considering a low level
driver's restrictions. The problem is that IOMMUs can't access to the
limitations because they are in request_queue.

This patchset introduces a new structure, device_dma_parameters,
including dma information. A pointer to device_dma_parameters is added
to struct device. The bus specific structures (like pci_dev) includes
device_dma_parameters. Low level drivers can use dma_set_max_seg_size
to tell IOMMUs about the restrictions.

We can move more dma stuff in struct device (like dma_mask) to struct
device_dma_parameters later (needs some cleanups before that).

This includes patches for all the IOMMUs that could merge sg (x86_64,
ppc, IA64, alpha, sparc64, and parisc) though only the ppc patch was
tested. The patches for other IOMMUs are only compile tested.

Thanks to everyone for the comments on the previous submission
to linux-scsi.

This is against 2.6.24-rc1. The same patchset is also available:

git://git.kernel.org/pub/scm/linux/kernel/git/tomo/linux-2.6-misc.git iommu-sg-fixes
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH -mm 0/11] fix iommu sg merging problem, FUJITA Tomonori, (Wed Oct 24, 6:47 am)
Re: [PATCH -mm 0/11] fix iommu sg merging problem, Jens Axboe, (Wed Oct 24, 9:24 am)
Re: [PATCH -mm 0/11] fix iommu sg merging problem, Jeff Garzik, (Wed Oct 24, 7:40 am)
Re: [PATCH -mm 0/11] fix iommu sg merging problem, FUJITA Tomonori, (Wed Oct 24, 10:32 am)
[PATCH -mm 01/11] add device_dma_parameters structure, FUJITA Tomonori, (Wed Oct 24, 6:48 am)
[PATCH -mm 02/11] PCI: add device_dma_parameters support, FUJITA Tomonori, (Wed Oct 24, 6:48 am)
Re: [PATCH -mm 02/11] PCI: add device_dma_parameters support, FUJITA Tomonori, (Wed Oct 24, 9:41 am)
[PATCH -mm 11/11] aacraid: use pci_set_dma_max_seg_size, FUJITA Tomonori, (Wed Oct 24, 6:48 am)
RE: [PATCH -mm 11/11] aacraid: use pci_set_dma_max_seg_size, FUJITA Tomonori, (Wed Oct 24, 12:21 pm)
Re: [PATCH -mm 11/11] aacraid: use pci_set_dma_max_seg_size, FUJITA Tomonori, (Wed Oct 24, 7:35 am)