1. 10 6月, 2020 1 次提交
    • A
      irqchip: RISC-V per-HART local interrupt controller driver · 6b7ce892
      Anup Patel 提交于
      The RISC-V per-HART local interrupt controller manages software
      interrupts, timer interrupts, external interrupts (which are routed
      via the platform level interrupt controller) and other per-HART
      local interrupts.
      
      We add a driver for the RISC-V local interrupt controller, which
      eventually replaces the RISC-V architecture code, allowing for a
      better split between arch code and drivers.
      
      The driver is compliant with RISC-V Hart-Level Interrupt Controller
      DT bindings located at:
      Documentation/devicetree/bindings/interrupt-controller/riscv,cpu-intc.txt
      Co-developed-by: NPalmer Dabbelt <palmer@dabbelt.com>
      Signed-off-by: NAnup Patel <anup.patel@wdc.com>
      [Palmer: Cleaned up warnings]
      Signed-off-by: NPalmer Dabbelt <palmer@dabbelt.com>
      6b7ce892
  2. 29 5月, 2020 3 次提交
  3. 25 3月, 2020 2 次提交
  4. 21 1月, 2020 3 次提交
  5. 11 11月, 2019 1 次提交
    • R
      irqchip: Add support for Layerscape external interrupt lines · 0dcd9f87
      Rasmus Villemoes 提交于
      The LS1021A allows inverting the polarity of six interrupt lines
      IRQ[0:5] via the scfg_intpcr register, effectively allowing
      IRQ_TYPE_LEVEL_LOW and IRQ_TYPE_EDGE_FALLING for those. We just need to
      check the type, set the relevant bit in INTPCR accordingly, and fixup
      the type argument before calling the GIC's irq_set_type.
      
      In fact, the power-on-reset value of the INTPCR register on the LS1021A
      is so that all six lines have their polarity inverted. Hence any
      hardware connected to those lines is unusable without this: If the line
      is indeed active low, the generic GIC code will reject an irq spec with
      IRQ_TYPE_LEVEL_LOW, while if the line is active high, we must obviously
      disable the polarity inversion (writing 0 to the relevant bit) before
      unmasking the interrupt.
      
      Some other Layerscape SOCs (LS1043A, LS1046A) have a similar feature,
      just with a different number of external interrupt lines (and a
      different POR value for the INTPCR register). This driver should be
      prepared for supporting those by properly filling out the device tree
      node. I have the reference manuals for all three boards, but I've only
      tested the driver on an LS1021A.
      
      Unfortunately, the Kconfig symbol ARCH_LAYERSCAPE only exists on
      arm64, so do as is done for irq-ls-scfg-msi.c: introduce a new symbol
      which is set when either ARCH_LAYERSCAPE or SOC_LS1021A is set.
      Signed-off-by: NRasmus Villemoes <linux@rasmusvillemoes.dk>
      Signed-off-by: NMarc Zyngier <maz@kernel.org>
      Link: https://lore.kernel.org/r/20191107122115.6244-3-linux@rasmusvillemoes.dk
      0dcd9f87
  6. 09 8月, 2019 1 次提交
  7. 03 7月, 2019 1 次提交
  8. 29 5月, 2019 1 次提交
  9. 01 5月, 2019 2 次提交
    • L
      irqchip/ti-sci-inta: Add support for Interrupt Aggregator driver · 9f1463b8
      Lokesh Vutla 提交于
      Texas Instruments' K3 generation SoCs has an IP Interrupt Aggregator
      which is an interrupt controller that does the following:
      - Converts events to interrupts that can be understood by
        an interrupt router.
      - Allows for multiplexing of events to interrupts.
      
      Configuration of the interrupt aggregator registers can only be done by
      a system co-processor and the driver needs to send a message to this
      co processor over TISCI protocol. Add the required infrastructure to
      allow the allocation and routing of these events.
      Signed-off-by: NLokesh Vutla <lokeshvutla@ti.com>
      Signed-off-by: NMarc Zyngier <marc.zyngier@arm.com>
      9f1463b8
    • L
      irqchip/ti-sci-intr: Add support for Interrupt Router driver · cd844b07
      Lokesh Vutla 提交于
      Texas Instruments' K3 generation SoCs has an IP Interrupt Router
      that does allows for redirection of input interrupts to host
      interrupt controller. Interrupt Router inputs are either from a
      peripheral or from an Interrupt Aggregator which is another
      interrupt controller.
      
      Configuration of the interrupt router registers can only be done by
      a system co-processor and the driver needs to send a message to this
      co processor over TISCI protocol.
      
      Add support for Interrupt Router driver over TISCI protocol.
      Signed-off-by: NLokesh Vutla <lokeshvutla@ti.com>
      Signed-off-by: NMarc Zyngier <marc.zyngier@arm.com>
      cd844b07
  10. 20 4月, 2019 1 次提交
    • L
      irqchip: Add driver for IXP4xx · 5b978c10
      Linus Walleij 提交于
      The IXP4xx (arch/arm/mach-ixp4xx) is an old Intel XScale
      platform that has very wide deployment and use.
      
      As part of modernizing the platform, we need to implement a
      proper irqchip in the irqchip subsystem.
      
      The IXP4xx irqchip is tightly jotted together with the GPIO
      controller, and whereas in the past we would deal with this
      complex logic by adding necessarily different code, we can
      nowadays modernize it using a hierarchical irqchip.
      
      The actual IXP4 irqchip is a simple active low level IRQ
      controller, whereas the GPIO functionality resides in a
      different memory area and adds edge trigger support for
      the interrupts.
      
      The interrupts from GPIO lines 0..12 are 1:1 mapped to
      a fixed set of hardware IRQs on this IRQchip, so we
      expect the child GPIO interrupt controller to go in and
      allocate descriptors for these interrupts.
      
      For the other interrupts, as we do not yet have DT
      support for this platform, we create a linear irqdomain
      and then go in and allocate the IRQs that the legacy
      boards use. This code will be removed on the DT probe
      path when we add DT support to the platform.
      
      We add some translation code for supporting DT
      translations for the fwnodes, but we leave most of that
      for later.
      
      Cc: Marc Zyngier <marc.zyngier@arm.com>
      Cc: Jason Cooper <jason@lakedaemon.net>
      Acked-by: NMarc Zyngier <marc.zyngier@arm.com>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      5b978c10
  11. 19 2月, 2019 2 次提交
  12. 14 2月, 2019 1 次提交
  13. 18 12月, 2018 2 次提交
  14. 13 12月, 2018 1 次提交
  15. 26 10月, 2018 2 次提交
  16. 02 10月, 2018 1 次提交
  17. 13 8月, 2018 1 次提交
  18. 13 5月, 2018 1 次提交
  19. 22 3月, 2018 1 次提交
  20. 14 3月, 2018 1 次提交
  21. 23 2月, 2018 1 次提交
    • J
      irqchip: Remove metag irqchip drivers · df46bb19
      James Hogan 提交于
      Now that arch/metag/ has been removed, remove the two metag irqchip
      drivers. They are of no value without the architecture code.
       - irq-metag: Meta internal (HWSTATMETA) interrupt code.
       - irq-metag-ext: Meta External interrupt code.
      Signed-off-by: NJames Hogan <jhogan@kernel.org>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Jason Cooper <jason@lakedaemon.net>
      Cc: Marc Zyngier <marc.zyngier@arm.com>
      Cc: linux-metag@vger.kernel.org
      df46bb19
  22. 22 2月, 2018 2 次提交
  23. 04 1月, 2018 1 次提交
  24. 14 11月, 2017 1 次提交
    • M
      irqchip/gic-v3-its: Remove artificial dependency on PCI · 29f41139
      Marc Zyngier 提交于
      The GICv3 ITS doesn't really depend on PCI. Only the PCI/MSI
      part of it does, and there is no reason not to blow away most
      of the irqchip stack because PCI is not selected (though not
      selecting PCI seem to be asking for punishment, but hey...).
      
      So let's split the PCI-specific part from the ITS in the Kconfig
      file, and let's make that part depend on PCI. Architecture specific
      hacks (arch/arm{,64}/Kconfig) will be addressed in a separate patch.
      Reported-by: NArnd Bergmann <arnd@arndb.de>
      Signed-off-by: NMarc Zyngier <marc.zyngier@arm.com>
      29f41139
  25. 07 11月, 2017 1 次提交
  26. 03 11月, 2017 1 次提交
  27. 02 11月, 2017 1 次提交
    • G
      License cleanup: add SPDX GPL-2.0 license identifier to files with no license · b2441318
      Greg Kroah-Hartman 提交于
      Many source files in the tree are missing licensing information, which
      makes it harder for compliance tools to determine the correct license.
      
      By default all files without license information are under the default
      license of the kernel, which is GPL version 2.
      
      Update the files which contain no license information with the 'GPL-2.0'
      SPDX license identifier.  The SPDX identifier is a legally binding
      shorthand, which can be used instead of the full boiler plate text.
      
      This patch is based on work done by Thomas Gleixner and Kate Stewart and
      Philippe Ombredanne.
      
      How this work was done:
      
      Patches were generated and checked against linux-4.14-rc6 for a subset of
      the use cases:
       - file had no licensing information it it.
       - file was a */uapi/* one with no licensing information in it,
       - file was a */uapi/* one with existing licensing information,
      
      Further patches will be generated in subsequent months to fix up cases
      where non-standard license headers were used, and references to license
      had to be inferred by heuristics based on keywords.
      
      The analysis to determine which SPDX License Identifier to be applied to
      a file was done in a spreadsheet of side by side results from of the
      output of two independent scanners (ScanCode & Windriver) producing SPDX
      tag:value files created by Philippe Ombredanne.  Philippe prepared the
      base worksheet, and did an initial spot review of a few 1000 files.
      
      The 4.13 kernel was the starting point of the analysis with 60,537 files
      assessed.  Kate Stewart did a file by file comparison of the scanner
      results in the spreadsheet to determine which SPDX license identifier(s)
      to be applied to the file. She confirmed any determination that was not
      immediately clear with lawyers working with the Linux Foundation.
      
      Criteria used to select files for SPDX license identifier tagging was:
       - Files considered eligible had to be source code files.
       - Make and config files were included as candidates if they contained >5
         lines of source
       - File already had some variant of a license header in it (even if <5
         lines).
      
      All documentation files were explicitly excluded.
      
      The following heuristics were used to determine which SPDX license
      identifiers to apply.
      
       - when both scanners couldn't find any license traces, file was
         considered to have no license information in it, and the top level
         COPYING file license applied.
      
         For non */uapi/* files that summary was:
      
         SPDX license identifier                            # files
         ---------------------------------------------------|-------
         GPL-2.0                                              11139
      
         and resulted in the first patch in this series.
      
         If that file was a */uapi/* path one, it was "GPL-2.0 WITH
         Linux-syscall-note" otherwise it was "GPL-2.0".  Results of that was:
      
         SPDX license identifier                            # files
         ---------------------------------------------------|-------
         GPL-2.0 WITH Linux-syscall-note                        930
      
         and resulted in the second patch in this series.
      
       - if a file had some form of licensing information in it, and was one
         of the */uapi/* ones, it was denoted with the Linux-syscall-note if
         any GPL family license was found in the file or had no licensing in
         it (per prior point).  Results summary:
      
         SPDX license identifier                            # files
         ---------------------------------------------------|------
         GPL-2.0 WITH Linux-syscall-note                       270
         GPL-2.0+ WITH Linux-syscall-note                      169
         ((GPL-2.0 WITH Linux-syscall-note) OR BSD-2-Clause)    21
         ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)    17
         LGPL-2.1+ WITH Linux-syscall-note                      15
         GPL-1.0+ WITH Linux-syscall-note                       14
         ((GPL-2.0+ WITH Linux-syscall-note) OR BSD-3-Clause)    5
         LGPL-2.0+ WITH Linux-syscall-note                       4
         LGPL-2.1 WITH Linux-syscall-note                        3
         ((GPL-2.0 WITH Linux-syscall-note) OR MIT)              3
         ((GPL-2.0 WITH Linux-syscall-note) AND MIT)             1
      
         and that resulted in the third patch in this series.
      
       - when the two scanners agreed on the detected license(s), that became
         the concluded license(s).
      
       - when there was disagreement between the two scanners (one detected a
         license but the other didn't, or they both detected different
         licenses) a manual inspection of the file occurred.
      
       - In most cases a manual inspection of the information in the file
         resulted in a clear resolution of the license that should apply (and
         which scanner probably needed to revisit its heuristics).
      
       - When it was not immediately clear, the license identifier was
         confirmed with lawyers working with the Linux Foundation.
      
       - If there was any question as to the appropriate license identifier,
         the file was flagged for further research and to be revisited later
         in time.
      
      In total, over 70 hours of logged manual review was done on the
      spreadsheet to determine the SPDX license identifiers to apply to the
      source files by Kate, Philippe, Thomas and, in some cases, confirmation
      by lawyers working with the Linux Foundation.
      
      Kate also obtained a third independent scan of the 4.13 code base from
      FOSSology, and compared selected files where the other two scanners
      disagreed against that SPDX file, to see if there was new insights.  The
      Windriver scanner is based on an older version of FOSSology in part, so
      they are related.
      
      Thomas did random spot checks in about 500 files from the spreadsheets
      for the uapi headers and agreed with SPDX license identifier in the
      files he inspected. For the non-uapi files Thomas did random spot checks
      in about 15000 files.
      
      In initial set of patches against 4.14-rc6, 3 files were found to have
      copy/paste license identifier errors, and have been fixed to reflect the
      correct identifier.
      
      Additionally Philippe spent 10 hours this week doing a detailed manual
      inspection and review of the 12,461 patched files from the initial patch
      version early this week with:
       - a full scancode scan run, collecting the matched texts, detected
         license ids and scores
       - reviewing anything where there was a license detected (about 500+
         files) to ensure that the applied SPDX license was correct
       - reviewing anything where there was no detection but the patch license
         was not GPL-2.0 WITH Linux-syscall-note to ensure that the applied
         SPDX license was correct
      
      This produced a worksheet with 20 files needing minor correction.  This
      worksheet was then exported into 3 different .csv files for the
      different types of files to be modified.
      
      These .csv files were then reviewed by Greg.  Thomas wrote a script to
      parse the csv files and add the proper SPDX tag to the file, in the
      format that the file expected.  This script was further refined by Greg
      based on the output to detect more types of files automatically and to
      distinguish between header and source .c files (which need different
      comment types.)  Finally Greg ran the script using the .csv files to
      generate the patches.
      Reviewed-by: NKate Stewart <kstewart@linuxfoundation.org>
      Reviewed-by: NPhilippe Ombredanne <pombredanne@nexb.com>
      Reviewed-by: NThomas Gleixner <tglx@linutronix.de>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      b2441318
  28. 19 10月, 2017 1 次提交
  29. 31 8月, 2017 1 次提交
  30. 23 8月, 2017 1 次提交