The following series implements a fix for:
A kdump problem about DMA that has been discussed for a long time.
That is, when a kernel panics and boots into the kdump kernel, DMA that was
started by the panicked kernel is not stopped before the kdump kernel is booted;
and the kdump kernel disables th
In intel-iommu.c, move downward the few lines near the
front that should not move to an intel-iommu-private.h
file (mostly data-item definitions) This leaves a
consolidated block of the lines that would move to an
intel-iommu-private.h file at the front of the file.
Signed-off-by: Bill Sumne
Move the single block of #define, static inline ... ; struct definitions
to intel-iommu-private.h from intel-iommu.c
Replace them with #include "intel-iommu-private.h"
Signed-off-by: Bill Sumner
---
drivers/iommu/intel-iommu-private.h | 351
drivers/iommu
Allow specification of the domain-id for the new domain.
Signed-off-by: Bill Sumner
---
drivers/iommu/intel-iommu.c | 23 ++-
1 file changed, 14 insertions(+), 9 deletions(-)
diff --git a/drivers/iommu/intel-iommu.c b/drivers/iommu/intel-iommu.c
index 4352731..0c00c2d 1006
Items needed for fixing crashdump.
Signed-off-by: Bill Sumner
---
drivers/iommu/intel-iommu-private.h | 92 +
1 file changed, 92 insertions(+)
diff --git a/drivers/iommu/intel-iommu-private.h
b/drivers/iommu/intel-iommu-private.h
index 73dabec..b436cd8 1006
Things like:
1. no space before tabs
2. no initialization of static variables to 0 or NULL
3. no extra parentheses around the value on the 'return' statement
4. no line over 80-characters
Signed-off-by: Bill Sumner
---
drivers/iommu/intel-iommu.c | 14 +++---
1 file changed, 7 insertions
intel_iommu_did_to_domain_values_entry()
intel_iommu_get_dids_from_old_kernel()
Signed-off-by: Bill Sumner
---
drivers/iommu/intel-iommu-kdump.c | 39 +++
1 file changed, 39 insertions(+)
diff --git a/drivers/iommu/intel-iommu-kdump.c
b/drivers/iommu/inte
Add "#include "
Chg device_to_domain_id
Chg get_domain_for_dev
Chg init_dmars
Chg intel_iommu_init
Signed-off-by: Bill Sumner
---
drivers/iommu/intel-iommu.c | 210 +---
1 file changed, 158 insertions(+), 52 deletions(-)
diff --git a/drivers/iommu/i
Populate with "Copy iommu translation tables" function set.
Edit Makefile to add intel-iommu-kdump.o
Signed-off-by: Bill Sumner
---
drivers/iommu/Makefile| 2 +-
drivers/iommu/intel-iommu-kdump.c | 590 ++
2 files changed, 591 insertions(+), 1 d
Hi Joerg,
Please can you pull the following two ARM SMMU fixes for 3.15? They address
a problem with unmap return codes and a panic when unmapping a buffer larger
than 2MB.
Cheers,
Will
--->8
The following changes since commit c9eaa447e77efe77b7fa4c953bd62de8297fd6c5:
Linux 3.15-rc1 (2014-0
Hi Will,
On Monday 14 April 2014 17:58:58 Will Deacon wrote:
> On Tue, Apr 08, 2014 at 02:57:43PM +0100, Marc Zyngier wrote:
> > On 08/04/14 14:41, Laurent Pinchart wrote:
> > > I've obviously forgotten that Will was away for a month. CC'ing Marc
> > > Zyngier.
> > >
> > > On Thursday 03 April 201
The DMA Contiguous Memory Allocator support on x86 is disabled when
swiotlb config option is enabled. So DMA CMA is always disabled on
x86_64 because swiotlb is always enabled. This attempts to support
for DMA CMA with enabling swiotlb config option.
The contiguous memory allocator on x86 is int
Currently, "cma=" kernel parameter is used to specify the size of CMA,
but we can't specify where it is located. We want to locate CMA below
4GB for devices only supporting 32-bit addressing on 64-bit systems
without iommu.
This enables to specify the placement of CMA by extending "cma=" kernel
p
This patch set enhances the DMA Contiguous Memory Allocator on x86.
Currently the DMA CMA is only supported with pci-nommu dma_map_ops
and furthermore it can't be enabled on x86_64. But I would like to
allocate big contiguous memory with dma_alloc_coherent() and tell it
to the device that require
This introduces memblock_alloc_range() which allocates memblock from
the specified range of physical address. I would like to use this
function to specify the location of CMA.
Cc: Marek Szyprowski
Cc: Konrad Rzeszutek Wilk
Cc: David Woodhouse
Cc: Don Dutile
Cc: Thomas Gleixner
Cc: Ingo Molna
Calling dma_alloc_coherent() with __GFP_ZERO must return zeroed memory.
But when the contiguous memory allocator (CMA) is enabled on x86 and
the memory region is allocated by dma_alloc_from_contiguous(), it
doesn't return zeroed memory. Because dma_generic_alloc_coherent()
forgot to fill the memo
This adds support for the DMA Contiguous Memory Allocator for intel-iommu.
This change enables dma_alloc_coherent() to allocate big contiguous
memory.
It is achieved in the same way as nommu_dma_ops currently does, i.e.
trying to allocate memory by dma_alloc_from_contiguous() and alloc_pages()
is
On Mon, 2014-02-10 at 10:02 +0530, Sachin Kamat wrote:
> +cc linux-samsung-soc list
>
> On 10 February 2014 01:38, Paul Bolle wrote:
> > I noted this one about a year ago (see
> > https://lkml.org/lkml/2013/3/5/401 ). By now I wonder whether
> > EXYNOS_IOMMU (and everything depending on it) shoul
18 matches
Mail list logo