13 Jun, 2014

1 commit

  • Pull more PCI updates from Bjorn Helgaas:
    "Here are some more things I'd like to see in v3.16-rc1:

    - DMA alias iterator, part of some work to fix IOMMU issues
    - MVEBU, Tegra, DesignWare changes that I forgot to include before
    - Some whitespace code cleanup

    Details:

    IOMMU
    - Add DMA alias iterator (Alex Williamson)
    - Add DMA alias quirks for ASMedia, ITE, Tundra bridges (Alex Williamson)
    - Add DMA alias quirks for Marvell, Ricoh devices (Alex Williamson)
    - Add DMA alias quirk for HighPoint devices (Jérôme Carretero)

    MSI
    - Fix leak in free_msi_irqs() (Alexei Starovoitov)

    Marvell MVEBU
    - Remove unnecessary use of 'conf_lock' spinlock (Andrew Murray)
    - Avoid setting an undefined window size (Jason Gunthorpe)
    - Allow several windows with the same target/attribute (Thomas Petazzoni)
    - Split PCIe BARs into multiple MBus windows when needed (Thomas Petazzoni)
    - Fix off-by-one in the computed size of the mbus windows (Willy Tarreau)

    NVIDIA Tegra
    - Use new OF interrupt mapping when possible (Lucas Stach)

    Synopsys DesignWare
    - Remove unnecessary use of 'conf_lock' spinlock (Andrew Murray)
    - Use new OF interrupt mapping when possible (Lucas Stach)
    - Split Exynos and i.MX bindings (Lucas Stach)
    - Fix comment for setting number of lanes (Mohit Kumar)
    - Fix iATU programming for cfg1, io and mem viewport (Mohit Kumar)

    Miscellaneous
    - EXPORT_SYMBOL cleanup (Ryan Desfosses)
    - Whitespace cleanup (Ryan Desfosses)
    - Merge multi-line quoted strings (Ryan Desfosses)"

    * tag 'pci-v3.16-changes-2' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci: (21 commits)
    PCI: Add function 1 DMA alias quirk for HighPoint RocketRaid 642L
    PCI/MSI: Fix memory leak in free_msi_irqs()
    PCI: Merge multi-line quoted strings
    PCI: Whitespace cleanup
    PCI: Move EXPORT_SYMBOL so it immediately follows function/variable
    PCI: Add bridge DMA alias quirk for ITE bridge
    PCI: designware: Split Exynos and i.MX bindings
    PCI: Add bridge DMA alias quirk for ASMedia and Tundra bridges
    PCI: Add support for PCIe-to-PCI bridge DMA alias quirks
    PCI: Add function 1 DMA alias quirk for Marvell devices
    PCI: Add function 0 DMA alias quirk for Ricoh devices
    PCI: Add support for DMA alias quirks
    PCI: Convert pci_dev_flags definitions to bit shifts
    PCI: Add DMA alias iterator
    PCI: mvebu: Use '%pa' for printing 'phys_addr_t' type
    PCI: mvebu: Remove unnecessary use of 'conf_lock' spinlock
    PCI: designware: Remove unnecessary use of 'conf_lock' spinlock
    PCI: designware: Use new OF interrupt mapping when possible
    PCI: designware: Fix iATU programming for cfg1, io and mem viewport
    PCI: designware: Fix comment for setting number of lanes
    ...

    Linus Torvalds
     

11 Jun, 2014

2 commits


16 May, 2014

1 commit

  • No functional change, just cleaned up a bit.

    This does not replace the requirement to move x86 to irq domains, but
    it limits the mess to some degree.

    Signed-off-by: Thomas Gleixner
    Reviewed-by: Grant Likely
    Cc: Tony Luck
    Cc: Peter Zijlstra
    Acked-by: Bjorn Helgaas
    Cc: x86@kernel.org
    Cc: linux-pci@vger.kernel.org
    Link: http://lkml.kernel.org/r/20140507154335.452206351@linutronix.de
    Signed-off-by: Thomas Gleixner

    Thomas Gleixner
     

01 Nov, 2011

1 commit


29 Mar, 2011

1 commit


12 Oct, 2010

1 commit


30 Mar, 2010

1 commit

  • …it slab.h inclusion from percpu.h

    percpu.h is included by sched.h and module.h and thus ends up being
    included when building most .c files. percpu.h includes slab.h which
    in turn includes gfp.h making everything defined by the two files
    universally available and complicating inclusion dependencies.

    percpu.h -> slab.h dependency is about to be removed. Prepare for
    this change by updating users of gfp and slab facilities include those
    headers directly instead of assuming availability. As this conversion
    needs to touch large number of source files, the following script is
    used as the basis of conversion.

    http://userweb.kernel.org/~tj/misc/slabh-sweep.py

    The script does the followings.

    * Scan files for gfp and slab usages and update includes such that
    only the necessary includes are there. ie. if only gfp is used,
    gfp.h, if slab is used, slab.h.

    * When the script inserts a new include, it looks at the include
    blocks and try to put the new include such that its order conforms
    to its surrounding. It's put in the include block which contains
    core kernel includes, in the same order that the rest are ordered -
    alphabetical, Christmas tree, rev-Xmas-tree or at the end if there
    doesn't seem to be any matching order.

    * If the script can't find a place to put a new include (mostly
    because the file doesn't have fitting include block), it prints out
    an error message indicating which .h file needs to be added to the
    file.

    The conversion was done in the following steps.

    1. The initial automatic conversion of all .c files updated slightly
    over 4000 files, deleting around 700 includes and adding ~480 gfp.h
    and ~3000 slab.h inclusions. The script emitted errors for ~400
    files.

    2. Each error was manually checked. Some didn't need the inclusion,
    some needed manual addition while adding it to implementation .h or
    embedding .c file was more appropriate for others. This step added
    inclusions to around 150 files.

    3. The script was run again and the output was compared to the edits
    from #2 to make sure no file was left behind.

    4. Several build tests were done and a couple of problems were fixed.
    e.g. lib/decompress_*.c used malloc/free() wrappers around slab
    APIs requiring slab.h to be added manually.

    5. The script was run on all .h files but without automatically
    editing them as sprinkling gfp.h and slab.h inclusions around .h
    files could easily lead to inclusion dependency hell. Most gfp.h
    inclusion directives were ignored as stuff from gfp.h was usually
    wildly available and often used in preprocessor macros. Each
    slab.h inclusion directive was examined and added manually as
    necessary.

    6. percpu.h was updated not to include slab.h.

    7. Build test were done on the following configurations and failures
    were fixed. CONFIG_GCOV_KERNEL was turned off for all tests (as my
    distributed build env didn't work with gcov compiles) and a few
    more options had to be turned off depending on archs to make things
    build (like ipr on powerpc/64 which failed due to missing writeq).

    * x86 and x86_64 UP and SMP allmodconfig and a custom test config.
    * powerpc and powerpc64 SMP allmodconfig
    * sparc and sparc64 SMP allmodconfig
    * ia64 SMP allmodconfig
    * s390 SMP allmodconfig
    * alpha SMP allmodconfig
    * um on x86_64 SMP allmodconfig

    8. percpu.h modifications were reverted so that it could be applied as
    a separate patch and serve as bisection point.

    Given the fact that I had only a couple of failures from tests on step
    6, I'm fairly confident about the coverage of this conversion patch.
    If there is a breakage, it's likely to be something in one of the arch
    headers which should be easily discoverable easily on most builds of
    the specific arch.

    Signed-off-by: Tejun Heo <tj@kernel.org>
    Guess-its-ok-by: Christoph Lameter <cl@linux-foundation.org>
    Cc: Ingo Molnar <mingo@redhat.com>
    Cc: Lee Schermerhorn <Lee.Schermerhorn@hp.com>

    Tejun Heo
     

12 May, 2009

1 commit


28 Apr, 2009

1 commit

  • Try to get irq_desc on the same node as create_irq_nr().

    [ Impact: optimization, make HT IRQs more NUMA-aware ]

    Signed-off-by: Yinghai Lu
    Cc: Andrew Morton
    Cc: Suresh Siddha
    Cc: "Eric W. Biederman"
    Cc: Rusty Russell
    LKML-Reference:
    Signed-off-by: Ingo Molnar

    Yinghai Lu
     

23 Apr, 2009

1 commit


16 Oct, 2008

4 commits


21 Dec, 2006

1 commit


09 Nov, 2006

2 commits

  • This patch adds a variant of ht_create_irq __ht_create_irq that takes an
    aditional parameter update that is a function that is called whenever we want
    to write to a drivers htirq configuration registers.

    This is needed to support the ipath_iba6110 because it's registers in the
    proper location are not actually conected to the hardware that controlls
    interrupt delivery.

    [bos@serpentine.com: fixes]
    Signed-off-by: Eric W. Biederman
    Cc: Andi Kleen
    Cc:
    Cc: Roland Dreier
    Signed-off-by: Bryan O'Sullivan
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Eric W. Biederman
     
  • This refactoring actually optimizes the code a little by caching the value
    that we think the device is programmed with instead of reading it back from
    the hardware. Which simplifies the code a little and should speed things up a
    bit.

    This patch introduces the concept of a ht_irq_msg and modifies the
    architecture read/write routines to update this code.

    There is a minor consistency fix here as well as x86_64 forgot to initialize
    the htirq as masked.

    Signed-off-by: Eric W. Biederman
    Cc: Andi Kleen
    Acked-by: Bryan O'Sullivan
    Cc:
    Cc: Roland Dreier
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Eric W. Biederman
     

04 Oct, 2006

2 commits

  • This moves the declarations for the architecture helpers into
    include/linux/htirq.h from the generic include/linux/pci.h. Hopefully this
    will make this distinction clearer.

    htirq.h is included where it is needed.

    The dependency on the msi code is fixed and removed.

    The Makefile is tidied up.

    Signed-off-by: Eric W. Biederman
    Cc: Ingo Molnar
    Cc: Tony Luck
    Cc: Andi Kleen
    Cc: Thomas Gleixner
    Cc: Greg KH
    Cc: Benjamin Herrenschmidt
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Eric W. Biederman
     
  • This patch implements two functions ht_create_irq and ht_destroy_irq for
    use by drivers. Several other functions are implemented as helpers for
    arch specific irq_chip handlers.

    The driver for the card I tested this on isn't yet ready to be merged.
    However this code is and hypertransport irqs are in use in a few other
    places in the kernel. Not that any of this will get merged before 2.6.19

    Because the ipath-ht400 is slightly out of spec this code will need to be
    generalized to work there.

    I think all of the powerpc uses are for a plain interrupt controller in a
    chipset so support for native hypertransport devices is a little less
    interesting.

    However I think this is a half way decent model on how to separate arch
    specific and generic helper code, and I think this is a functional model of
    how to get the architecture dependencies out of the msi code.

    [akpm@osdl.org: Kconfig fix]
    Signed-off-by: Eric W. Biederman
    Cc: Greg KH
    Cc: Andi Kleen
    Cc: Benjamin Herrenschmidt
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Eric W. Biederman