1. 24 Mar, 2018 1 commit
    • Arnd Bergmann's avatar
      ARM: 8747/1: make CONFIG_DEBUG_WX depend on MMU · ad43fc9a
      Arnd Bergmann authored
      Without CONFIG_MMU, this results in a build failure:
      
      ./arch/arm/include/asm/memory.h:92:23: error: initializer element is not constant
       #define VECTORS_BASE  vectors_base
      arch/arm/mm/dump.c:32:4: note: in expansion of macro 'VECTORS_BASE'
        { VECTORS_BASE, "Vectors" },
      
      arch/arm/mm/dump.c:71:11: error: 'L_PTE_USER' undeclared here (not in a function); did you mean 'VTIME_USER'?
         .mask = L_PTE_USER,
                 ^~~~~~~~~~
      
      Obviously the feature only makes sense with an MMU, so let's add the
      dependency here.
      
      Fixes: a8e53c15
      
       ("ARM: 8737/1: mm: dump: add checking for writable and executable")
      Acked-by: default avatarLaura Abbott <labbott@redhat.com>
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      Signed-off-by: default avatarRussell King <rmk+kernel@armlinux.org.uk>
      ad43fc9a
  2. 21 Jan, 2018 2 commits
  3. 21 Nov, 2017 1 commit
    • Russell King's avatar
      ARM: make decompressor debug output user selectable · 29337b60
      Russell King authored
      
      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: default avatarRussell King <rmk+kernel@armlinux.org.uk>
      29337b60
  4. 02 Nov, 2017 1 commit
    • Greg Kroah-Hartman's avatar
      License cleanup: add SPDX GPL-2.0 license identifier to files with no license · b2441318
      Greg Kroah-Hartman authored
      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...
      b2441318
  5. 12 Oct, 2017 1 commit
  6. 18 Sep, 2017 1 commit
  7. 27 Jul, 2017 1 commit
  8. 17 Jul, 2017 4 commits
    • Tony Lindgren's avatar
      ARM: debug: Use generic 8250 debug_ll for am3517 and am335x · 51ef7003
      Tony Lindgren authored
      
      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: default avatarTony Lindgren <tony@atomide.com>
      51ef7003
    • Tony Lindgren's avatar
      ARM: debug: Use generic 8250 debug_ll for ti81xx · 2d1f7d2e
      Tony Lindgren authored
      
      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: default avatarTony Lindgren <tony@atomide.com>
      2d1f7d2e
    • Tony Lindgren's avatar
      ARM: debug: Use generic 8250 debug_ll for omap3/4/5 · fc23beb8
      Tony Lindgren authored
      
      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: default avatarTony Lindgren <tony@atomide.com>
      fc23beb8
    • Tony Lindgren's avatar
      ARM: debug: Use generic 8250 debug_ll for omap2 and omap3/4/5 common uarts · d2b310b0
      Tony Lindgren authored
      
      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: default avatarTony Lindgren <tony@atomide.com>
      d2b310b0
  9. 06 Jun, 2017 1 commit
  10. 02 Jun, 2017 1 commit
  11. 13 May, 2017 1 commit
  12. 07 Feb, 2017 1 commit
  13. 17 Aug, 2016 1 commit
  14. 08 Aug, 2016 1 commit
    • Florian Fainelli's avatar
      ARM: brcmstb: Add earlyprintk support using run-time checks · d0cf9d8a
      Florian Fainelli authored
      
      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: default avatarFlorian Fainelli <f.fainelli@gmail.com>
      d0cf9d8a
  15. 07 Jul, 2016 1 commit
  16. 10 Jun, 2016 2 commits
  17. 26 Apr, 2016 1 commit
  18. 08 Feb, 2016 1 commit
  19. 18 Jan, 2016 1 commit
    • Arnd Bergmann's avatar
      ARM: debug-ll: fix BCM63xx entry for multiplatform · 6c548099
      Arnd Bergmann authored
      
      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: default avatarArnd Bergmann <arnd@arndb.de>
      Fixes: b51312be ("ARM: BCM63XX: add low-level UART debug support")
      Cc: stable@vger.kernel.org
      6c548099
  20. 09 Jan, 2016 1 commit
  21. 26 Dec, 2015 1 commit
  22. 17 Dec, 2015 1 commit
  23. 15 Dec, 2015 9 commits
    • Arnd Bergmann's avatar
      ARM: debug-ll: reorder Kconfig alphanumerically · 1dc93416
      Arnd Bergmann authored
      
      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: default avatarArnd Bergmann <arnd@arndb.de>
      1dc93416
    • Arnd Bergmann's avatar
      ARM: debug-ll: rework footbridge handling · 0045c0dd
      Arnd Bergmann authored
      
      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: default avatarArnd Bergmann <arnd@arndb.de>
      0045c0dd
    • Arnd Bergmann's avatar
      ARM: debug-ll: rework lpc32xx handling · 59bd4c38
      Arnd Bergmann authored
      
      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: default avatarArnd Bergmann <arnd@arndb.de>
      Acked-by: default avatarVladimir Zapolskiy <vz@mleia.com>
      59bd4c38
    • Arnd Bergmann's avatar
      ARM: debug-ll: rework gemini handling · d7175a3b
      Arnd Bergmann authored
      
      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: default avatarArnd Bergmann <arnd@arndb.de>
      Acked-by: default avatarHans Ulli Kroll <ulli.kroll@googlemail.com>
      d7175a3b
    • Arnd Bergmann's avatar
      ARM: debug-ll: rework integrator/versatile handling · 4db22c10
      Arnd Bergmann authored
      
      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: default avatarArnd Bergmann <arnd@arndb.de>
      4db22c10
    • Arnd Bergmann's avatar
      ARM: debug-ll: rework SPEAr handling · 375d84cf
      Arnd Bergmann authored
      
      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: default avatarArnd Bergmann <arnd@arndb.de>
      375d84cf
    • Arnd Bergmann's avatar
      ARM: debug-ll: rework ep93xx handling · f06455fa
      Arnd Bergmann authored
      
      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: default avatarArnd Bergmann <arnd@arndb.de>
      f06455fa
    • Arnd Bergmann's avatar
      ARM: debug-ll: reorganize mvebu debug uart config · c047f529
      Arnd Bergmann authored
      
      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: default avatarArnd Bergmann <arnd@arndb.de>
      c047f529
    • Arnd Bergmann's avatar
      ARM: debug-ll: fix UART configuration with ARCH_KEYSTONE · cdd2e08b
      Arnd Bergmann authored
      
      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: default avatarArnd Bergmann <arnd@arndb.de>
      cdd2e08b
  24. 01 Dec, 2015 1 commit
  25. 21 Sep, 2015 1 commit
  26. 14 Sep, 2015 1 commit
  27. 05 Aug, 2015 1 commit