1. 21 11月, 2017 1 次提交
    • R
      ARM: make decompressor debug output user selectable · 29337b60
      Russell King 提交于
      Make the decompressor debug output user selectable, otherwise merely
      enabling DEBUG_LL causes the decompressor to become board specific,
      thereby preventing a multi-platform kernel from booting.  Enabling
      DEBUG_LL doesn't cause the kernel itself to become platform specific
      unless EARLY_PRINTK is enabled, or one of the debugging routines is
      added in a path that results in it being called.
      Signed-off-by: NRussell King <rmk+kernel@armlinux.org.uk>
      29337b60
  2. 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
  3. 13 10月, 2017 1 次提交
  4. 18 9月, 2017 1 次提交
  5. 27 7月, 2017 1 次提交
  6. 17 7月, 2017 4 次提交
    • T
      ARM: debug: Use generic 8250 debug_ll for am3517 and am335x · 51ef7003
      Tony Lindgren 提交于
      We want to use generic 8250 debug_ll code to get DEBUG_UNCOMPRESS
      working and to simplify the code. The old debug_ll code is no longer
      needed and the machine ID based detection is no longer used.
      
      Note that for most part there's no need to keep DEBUG_LL enabled.
      We now have CONFIG_SERIAL_EARLYCON working very early as long as
      the kernel cmdline has "earlycon" in it and the board specific dts
      file has chosen configured with with the port using stdout-path.
      
      Cc: Hoeun Ryu <hoeun.ryu@gmail.com>
      Cc: Russell King <linux@armlinux.org.uk>
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      51ef7003
    • T
      ARM: debug: Use generic 8250 debug_ll for ti81xx · 2d1f7d2e
      Tony Lindgren 提交于
      We want to use generic 8250 debug_ll code to get DEBUG_UNCOMPRESS
      working and to simplify the code. The old debug_ll code is no longer
      needed and the machine ID based detection is no longer used.
      
      Note that for most part there's no need to keep DEBUG_LL enabled.
      We now have CONFIG_SERIAL_EARLYCON working very early as long as
      the kernel cmdline has "earlycon" in it and the board specific dts
      file has chosen configured with with the port using stdout-path.
      
      Cc: Hoeun Ryu <hoeun.ryu@gmail.com>
      Cc: Russell King <linux@armlinux.org.uk>
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      2d1f7d2e
    • T
      ARM: debug: Use generic 8250 debug_ll for omap3/4/5 · fc23beb8
      Tony Lindgren 提交于
      We want to use generic 8250 debug_ll code to get DEBUG_UNCOMPRESS
      working and to simplify the code. The old debug_ll code is no longer
      needed and the machine ID based detection is no longer used.
      
      Note that for most part there's no need to keep DEBUG_LL enabled.
      We now have CONFIG_SERIAL_EARLYCON working very early as long as
      the kernel cmdline has "earlycon" in it and the board specific dts
      file has chosen configured with with the port using stdout-path.
      
      Cc: Hoeun Ryu <hoeun.ryu@gmail.com>
      Cc: Russell King <linux@armlinux.org.uk>
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      fc23beb8
    • T
      ARM: debug: Use generic 8250 debug_ll for omap2 and omap3/4/5 common uarts · d2b310b0
      Tony Lindgren 提交于
      We want to use generic 8250 debug_ll code to get DEBUG_UNCOMPRESS
      working and to simplify the code. The old debug_ll code is no longer
      needed and the machine ID based detection is no longer used.
      
      Note that for most part there's no need to keep DEBUG_LL enabled.
      We now have CONFIG_SERIAL_EARLYCON working very early as long as
      the kernel cmdline has "earlycon" in it and the board specific dts
      file has chosen configured with with the port using stdout-path.
      
      Cc: Hoeun Ryu <hoeun.ryu@gmail.com>
      Cc: Russell King <linux@armlinux.org.uk>
      Signed-off-by: NTony Lindgren <tony@atomide.com>
      d2b310b0
  7. 06 6月, 2017 1 次提交
  8. 02 6月, 2017 1 次提交
  9. 14 5月, 2017 1 次提交
  10. 08 2月, 2017 1 次提交
  11. 17 8月, 2016 1 次提交
  12. 09 8月, 2016 1 次提交
    • F
      ARM: brcmstb: Add earlyprintk support using run-time checks · d0cf9d8a
      Florian Fainelli 提交于
      The SUN_TOP_CTRL_FAMILY_ID register  is at a fixed absolute address for
      all of our supported chips, so utilize its value to determine what the
      UARTA base address should be based on the value we read.
      
      Since the code is called both during decompressor when the MMU is off,
      and after the MMU has been turned on in the kernel, and we want to do
      the lookup only once, we use the same technique as tegra.S and have a
      shared storage location between the decompressor and the kernel.
      Signed-off-by: NFlorian Fainelli <f.fainelli@gmail.com>
      d0cf9d8a
  13. 07 7月, 2016 1 次提交
  14. 10 6月, 2016 2 次提交
  15. 26 4月, 2016 1 次提交
  16. 09 2月, 2016 1 次提交
  17. 19 1月, 2016 1 次提交
    • A
      ARM: debug-ll: fix BCM63xx entry for multiplatform · 6c548099
      Arnd Bergmann 提交于
      During my randconfig build testing, I found that a kernel with
      DEBUG_AT91_UART and ARCH_BCM_63XX fails to build:
      
      arch/arm/include/debug/at91.S:18:0: error: "CONFIG_DEBUG_UART_VIRT" redefined [-Werror]
      
      It turns out that the DEBUG_UART_BCM63XX option is enabled whenever
      the ARCH_BCM_63XX is, and that breaks multiplatform kernels because
      we then end up using the UART address from BCM63XX rather than the
      one we actually configured (if any).
      
      This changes the BCM63XX options to only have one Kconfig option,
      and only enable that if the user explicitly turns it on.
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Fixes: b51312be ("ARM: BCM63XX: add low-level UART debug support")
      Cc: stable@vger.kernel.org
      6c548099
  18. 09 1月, 2016 1 次提交
  19. 27 12月, 2015 1 次提交
  20. 18 12月, 2015 1 次提交
  21. 16 12月, 2015 9 次提交
    • A
      ARM: debug-ll: reorder Kconfig alphanumerically · 1dc93416
      Arnd Bergmann 提交于
      The file has gotten a little out of sync, as platforms got
      added in the wrong place, or have been renamed. This moves
      the options around, but should not change any functionality.
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      1dc93416
    • A
      ARM: debug-ll: rework footbridge handling · 0045c0dd
      Arnd Bergmann 提交于
      Footbridge has two debug ports that are handled a bit differently:
      
      The 8250 port uses the normal debug/8250.S implementation that is shared
      with a lot of other platforms, but it relies on the DEBUG_UART_8250
      option to be turned on automatically instead of being selected by
      DEBUG_FOOTBRIDGE_COM1 as we do for most other platforms. I'm changing
      this to use a 'select' and change the dependency to the debug symbol
      rather than the platform symbol for consistency.
      
      The DC21285 UART has a separate top-level option, and relies on
      the traditional include/mach/debug-macro.S method. With the s3c64xx
      multiplatform series queued up for 4.5, it is now the last one that does
      this, so by moving this file to include/debug/dc21285.S, we can get
      all platforms to do things the same way.
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      0045c0dd
    • A
      ARM: debug-ll: rework lpc32xx handling · 59bd4c38
      Arnd Bergmann 提交于
      LPC32xx can not yet be configured in a multiplatform kernel, but
      if we ever get there, enabling one of the LPC32xx platforms
      while trying to use DEBUG_LL for another platform can default to
      the wrong UART address, as the options are purely based on the
      architecture being enabled or not.
      
      This changes the logic to use the LPC32xx default addresses only
      if we have also picked the respective Kconfig symbols introduced
      here.
      
      While we're at it, this also reorders the virtual address as
      it should be.
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Acked-by: NVladimir Zapolskiy <vz@mleia.com>
      59bd4c38
    • A
      ARM: debug-ll: rework gemini handling · d7175a3b
      Arnd Bergmann 提交于
      Gemini can not yet be configured in a multiplatform kernel, but
      if we ever get there, enabling one of the gemini platforms
      while trying to use DEBUG_LL for another platform can default to
      the wrong UART address, as the options are purely based on the
      architecture being enabled or not.
      
      This changes the logic to use the gemini default addresses and
      the flow control settings only if we have also picked the respective
      Kconfig symbols introduced here.
      
      While we're at it, this also reorders the virtual address as
      it should be.
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Acked-by: NHans Ulli Kroll <ulli.kroll@googlemail.com>
      d7175a3b
    • A
      ARM: debug-ll: rework integrator/versatile handling · 4db22c10
      Arnd Bergmann 提交于
      Enabling one of the integrator platforms in a multiplatform kernel
      while trying to use DEBUG_LL for another platform can default to
      the wrong UART address, as the options are purely based on the
      architecture being enabled or not.
      
      This changes the logic to use the integrator default addresses only
      if we have also picked the respective Kconfig symbols introduced
      here. Versatile is not yet part of multiplatform, but hopefully
      soon will be, so we do the same change for versatile as well.
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      4db22c10
    • A
      ARM: debug-ll: rework SPEAr handling · 375d84cf
      Arnd Bergmann 提交于
      Enabling one of the SPEAr platforms in a multiplatform kernel
      while trying to use DEBUG_LL for another platform can default to
      the wrong UART address, as the options are purely based on the
      architecture being enabled or not.
      
      This changes the logic to use the SPEAr default addresses only
      if we have also picked the respective Kconfig symbols introduced
      here.
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      375d84cf
    • A
      ARM: debug-ll: rework ep93xx handling · f06455fa
      Arnd Bergmann 提交于
      This makes ep93xx debug-ll handling more consistent with the other
      platforms, by adding a separate Kconfig symbol for it that
      in turn selects the standard DEBUG_UART_PL01X symbol.
      
      We still have to pick a physical address even if DEBUG_LL is disabled
      here, because the EP93xx uncompress output code uses
      CONFIG_DEBUG_UART_PHYS. If we ever move to multiplatform support,
      this can go away.
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      f06455fa
    • A
      ARM: debug-ll: reorganize mvebu debug uart config · c047f529
      Arnd Bergmann 提交于
      As we are moving dove/mv78xx0/orion into multiplatform, the debug-ll
      configuration options for these platforms are conflicting with the
      multiplatform configuration: enabling one of those platforms sometimes
      changes the default addresses to the ones used on one of them, rather
      than the one that was selected in Kconfig.
      
      This changes the configuration so we share the physical address
      configuration with mach-mvebu.
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      c047f529
    • A
      ARM: debug-ll: fix UART configuration with ARCH_KEYSTONE · cdd2e08b
      Arnd Bergmann 提交于
      We may have multiple platforms enabled and also DEBUG_LL
      configured for one of them. However if we enable ARCH_KEYSTONE,
      we default to using 32-bit UART access independent of which
      platform we are actually using, which can be confusing.
      
      This changes the logic so the 32-bit default gets only
      used by default if we actually configure the keystone
      UART, as opposed to picking some other 8250 setting on
      a kernel that has keystone support enabled.
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      cdd2e08b
  22. 02 12月, 2015 1 次提交
  23. 21 9月, 2015 1 次提交
  24. 14 9月, 2015 1 次提交
  25. 05 8月, 2015 1 次提交
  26. 14 7月, 2015 1 次提交
  27. 29 6月, 2015 1 次提交
    • R
      ARM: fix DEBUG_SET_MODULE_RONX build dependencies · e6ae32c3
      Russell King 提交于
      randconfig testing reveals that DEBUG_SET_MODULE_RONX needs to depend on
      MMU otherwise these build errors are observed:
      
      kernel/built-in.o: In function `set_section_ro_nx':
      kernel/module.c:1738: undefined reference to `set_memory_nx'
      kernel/built-in.o: In function `set_page_attributes':
      kernel/module.c:1709: undefined reference to `set_memory_ro'
      
      This is because the pageattr functions are not built for !MMU configs as
      they don't have page tables.
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      e6ae32c3
  28. 03 6月, 2015 1 次提交