pci_get_bus_and_slot() is restrictive such that it assumes domain=0 as
where a PCI device is present. This restricts the device drivers to be
reused for other domain numbers.
Use pci_get_domain_bus_and_slot() with a domain number of 0 where we can't
extract the domain number. Other places, use the
Christoph,
> this series fixes scsi and libsas operations on platforms with cache
> incoherent dma operations. Patch 2 and 3 are originally from Huacai Chen,
> but I've modified patch two so that it doesn't require his
> dma_get_cache_alignment() rework, which I'd rather get into the next
> merg
> -Original Message-
> From: Konrad Rzeszutek Wilk [mailto:konrad.w...@oracle.com]
> Sent: Tuesday, November 21, 2017 12:27 AM
> To: Eric Yang ; iommu@lists.linux-foundation.org
> Cc: linux-ker...@vger.kernel.org; Greg Kroah-Hartman
> ; Andrew Morton ;
> Andrey Ryabinin ; David Miller
> ;
From: Miles Chen
Coverity found that the commit 3aaabbf1c39e ("lib/dma-debug.c:
fix incorrect pfn calculation") uses incorrect API to check
if a given address is a linear address.
The condition should be: (as discussed in Christoph's review)
if (!is_vmalloc_addr(virt) && !virt_addr_valid(virt))
n
Hey Jean,
On 2017/10/6 21:31, Jean-Philippe Brucker wrote:
> IOMMU drivers need a way to bind Linux processes to devices. This is used
> for Shared Virtual Memory (SVM), where devices support paging. In that
> mode, DMA can directly target virtual addresses of a process.
>
> Introduce boilerplate
On Tue, Nov 21, 2017 at 10:21:32AM -0700, Alex Williamson wrote:
> On Tue, 21 Nov 2017 12:08:01 +
> Liviu Dudau wrote:
>
> > On Mon, Nov 20, 2017 at 03:01:44PM -0700, Alex Williamson wrote:
> > > On Mon, 20 Nov 2017 14:25:14 +
> > > Liviu Dudau wrote:
> > >
> > > > On Fri, Oct 13, 201
On Tue, 21 Nov 2017 12:08:01 +
Liviu Dudau wrote:
> On Mon, Nov 20, 2017 at 03:01:44PM -0700, Alex Williamson wrote:
> > On Mon, 20 Nov 2017 14:25:14 +
> > Liviu Dudau wrote:
> >
> > > On Fri, Oct 13, 2017 at 04:48:45PM +0100, Robin Murphy wrote:
> > > > Hi Joerg,
> > >
> > > H
The IPMMU driver still uses initcalls to do its initialisation, while
other IOMMU drivers have moved to probe deferal mechanism. Update
the IPMMU driver so that it can use modern driver probing which allows
for it to be compiled together with other IOMMU drivers and not
trying at boot time to repla
From: Huacai Chen
The rps_resp buffer in ata_device is a DMA target, but it isn't
explicitly cacheline aligned. Due to this, adjacent fields can be
overwritten with stale data from memory on non-coherent architectures.
As a result, the kernel is sometimes unable to communicate with an
SATA device
Hi Martin,
this series fixes scsi and libsas operations on platforms with cache
incoherent dma operations. Patch 2 and 3 are originally from Huacai Chen,
but I've modified patch two so that it doesn't require his
dma_get_cache_alignment() rework, which I'd rather get into the next
merge window af
Provide the dummy version of dma_get_cache_alignment that always returns 1
even if CONFIG_HAS_DMA is not set, so that drivers and subsystems can
use it without ifdefs.
Cc: sta...@vger.kernel.org
Signed-off-by: Christoph Hellwig
---
include/linux/dma-mapping.h | 2 --
1 file changed, 2 deletions(
From: Huacai Chen
In non-coherent DMA mode, kernel uses cache flushing operations to maintain
I/O coherency, so scsi's block queue should be aligned to the value
returned by dma_get_cache_alignment(). Otherwise, If a DMA buffer and a
kernel structure share a same cache line, and if the kernel st
Hi Alex,
On 20/11/17 22:01, Alex Williamson wrote:
On Mon, 20 Nov 2017 14:25:14 +
Liviu Dudau wrote:
On Fri, Oct 13, 2017 at 04:48:45PM +0100, Robin Murphy wrote:
Hi Joerg,
Hi,
On 20/09/17 15:13, Liviu Dudau wrote:
If the IPMMU driver is compiled in the kernel it will replace the
p
On Mon, Nov 20, 2017 at 03:01:44PM -0700, Alex Williamson wrote:
> On Mon, 20 Nov 2017 14:25:14 +
> Liviu Dudau wrote:
>
> > On Fri, Oct 13, 2017 at 04:48:45PM +0100, Robin Murphy wrote:
> > > Hi Joerg,
> >
> > Hi,
> >
> > >
> > > On 20/09/17 15:13, Liviu Dudau wrote:
> > > > If the IP
14 matches
Mail list logo