[PATCH 0/3] Add dma_set_mask to pci_controller_ops

Daniel Axtens dja at axtens.net
Tue Apr 28 15:12:04 AEST 2015


This adds dma_set_mask to pci_controller_ops.

Currently it's only implemented on PowerNV, because it gets very messy
on systems that have more than just simple PCI busses.

On the plus side, this series massively simplifies the code path on
PowerNV (see patch #3).

It is based on my recent MSI patch series[0], although it doesn't
depend on it. It could easily be respun on top of -rc1 if required.

It does depend on a PowerNV bug fix[1].

Tested on PowerNV big-endian.

Regards,
Daniel

[0] http://lkml.kernel.org/r/1428985683-24767-1-git-send-email-dja@axtens.net
[1] http://patchwork.ozlabs.org/patch/464765/

Daniel Axtens (3):
  powerpc/powernv: Specialise pci_controller_ops for each controller
    type
  powerpc/pci: add dma_set_mask to pci_controller_ops
  powerpc/powernv: Move dma_set_mask from pnv_phb to pci_controller_ops

 arch/powerpc/include/asm/pci-bridge.h       |  2 ++
 arch/powerpc/kernel/dma.c                   | 11 +++++++++++
 arch/powerpc/platforms/powernv/pci-ioda.c   | 25 ++++++++++++++++++-------
 arch/powerpc/platforms/powernv/pci-p5ioc2.c | 12 +++++++++++-
 arch/powerpc/platforms/powernv/pci.c        | 23 +++--------------------
 arch/powerpc/platforms/powernv/pci.h        |  8 ++++++--
 arch/powerpc/platforms/powernv/powernv.h    |  8 --------
 arch/powerpc/platforms/powernv/setup.c      |  8 --------
 8 files changed, 51 insertions(+), 46 deletions(-)

-- 
2.1.4



More information about the Linuxppc-dev mailing list