1. 06 7月, 2010 1 次提交
  2. 14 6月, 2010 1 次提交
  3. 02 6月, 2010 1 次提交
    • P
      sh: support for platforms without PIO. · 86e4dd5a
      Paul Mundt 提交于
      This extends some of the existing special casing for HAS_IOPORT
      platforms and gets it to the point where platforms can begin to
      conditionally select it.
      
      The major changes here are that the PIO routines themselves go away
      completely, including all of the machvec port mapping wrappers. With this
      in place it's possible for any non-machvec abusing platform to disable
      PIO completely. At present this is left as an opt-in until the abusers
      are the odd ones out instead of the majority.
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      86e4dd5a
  4. 31 5月, 2010 1 次提交
  5. 28 5月, 2010 1 次提交
  6. 11 5月, 2010 1 次提交
  7. 07 5月, 2010 1 次提交
  8. 01 5月, 2010 1 次提交
    • F
      hw-breakpoints: Separate constraint space for data and instruction breakpoints · 0102752e
      Frederic Weisbecker 提交于
      There are two outstanding fashions for archs to implement hardware
      breakpoints.
      
      The first is to separate breakpoint address pattern definition
      space between data and instruction breakpoints. We then have
      typically distinct instruction address breakpoint registers
      and data address breakpoint registers, delivered with
      separate control registers for data and instruction breakpoints
      as well. This is the case of PowerPc and ARM for example.
      
      The second consists in having merged breakpoint address space
      definition between data and instruction breakpoint. Address
      registers can host either instruction or data address and
      the access mode for the breakpoint is defined in a control
      register. This is the case of x86 and Super H.
      
      This patch adds a new CONFIG_HAVE_MIXED_BREAKPOINTS_REGS config
      that archs can select if they belong to the second case. Those
      will have their slot allocation merged for instructions and
      data breakpoints.
      
      The others will have a separate slot tracking between data and
      instruction breakpoints.
      Signed-off-by: NFrederic Weisbecker <fweisbec@gmail.com>
      Acked-by: NPaul Mundt <lethal@linux-sh.org>
      Cc: Will Deacon <will.deacon@arm.com>
      Cc: Mahesh Salgaonkar <mahesh@linux.vnet.ibm.com>
      Cc: K. Prasad <prasad@linux.vnet.ibm.com>
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: Ingo Molnar <mingo@elte.hu>
      0102752e
  9. 29 4月, 2010 1 次提交
  10. 27 4月, 2010 1 次提交
  11. 26 4月, 2010 1 次提交
  12. 13 4月, 2010 1 次提交
    • P
      sh: intc: userimask support. · 43b8774d
      Paul Mundt 提交于
      This adds support for hardware-assisted userspace irq masking for
      special priority levels. Due to the SR.IMASK interactivity, only some
      platforms implement this in hardware (including but not limited to
      SH-4A interrupt controllers, and ARM-based SH-Mobile CPUs). Each CPU
      needs to wire this up on its own, for now only SH7786 is wired up as an
      example.
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      43b8774d
  13. 13 3月, 2010 1 次提交
  14. 02 2月, 2010 5 次提交
  15. 29 1月, 2010 1 次提交
  16. 19 1月, 2010 2 次提交
    • P
      sh: SH7786 clock framework rewrite. · 43a1839c
      Paul Mundt 提交于
      This rewrites the SH7786 clock framework support completely. It's
      reworked to provide all of the DIV4 and MSTP function clocks. This brings
      it in line with the current clock framework code and lets us drop SH7786
      from the list of CPUs that require legacy CPG handling.
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      43a1839c
    • P
      sh: Limit ioremap_prot() to 32bit pgprot parts. · 6d63e73d
      Paul Mundt 提交于
      Presently ioremap_prot() uses an unsigned long to pass the pgprot value
      around. This results in the upper half of the pgprot being chomped when
      using 64-bit pgprots on a 32-bit ABI (X2TLB and SH-5).
      
      As the only users of ioremap_prot() are presently legacy parts, this
      doesn't cause too much of an issue. In the future when the interface is
      converted to use pgprot_t directly this can be re-enabled for the other
      parts, too.
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      6d63e73d
  17. 13 1月, 2010 1 次提交
  18. 12 1月, 2010 1 次提交
    • P
      sh: default to sparseirq. · ee2760ea
      Paul Mundt 提交于
      As SH has a very sparse IRQ map by default, all new CPUs and boards
      benefit from using sparseirq by default. Despite this, there are still a
      few stragglers (mostly due to using a fixed IRQ range for their FPGA
      IRQ mappings), and these still need to be converted over one by one. As
      these are now in the minority, and we do not want to encourage this sort
      of brain-damage in newer board ports, we force sparseirq on.
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      ee2760ea
  19. 06 1月, 2010 1 次提交
  20. 29 12月, 2009 1 次提交
    • P
      sh: Only provide a PCLK definition for legacy CPG CPUs. · 8152a74b
      Paul Mundt 提交于
      As CPUs are migrated over to more fully-featured clock frameworks of
      their own and off of the legacy CPG code, they no longer have any real
      need for defining the PCLK value. The PCLK define in itself is already
      fairly misleading, as many boards get their input clocks from different
      sources, making this value fairly arbitrary anyways.
      
      Outside of the legacy CPG clock framework, the only place where this
      value is used is for deriving CLOCK_TICK_RATE, which we set back to the
      legacy PIT value that it was before the PCLK definitions were added in
      the first place.
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      8152a74b
  21. 21 12月, 2009 1 次提交
  22. 08 12月, 2009 1 次提交
    • P
      sh: hw-breakpoints: Add preliminary support for SH-4A UBC. · 09a07294
      Paul Mundt 提交于
      This adds preliminary support for the SH-4A UBC to the hw-breakpoints API.
      Presently only a single channel is implemented, and the ptrace interface
      still needs to be converted. This is the first step to cleaning up the
      long-standing UBC mess, making the UBC more generally accessible, and
      finally making it SMP safe.
      
      An additional abstraction will be layered on top of this as with the perf
      events code to permit the various CPU families to wire up support for
      their own specific UBCs, as many variations exist.
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      09a07294
  23. 27 10月, 2009 4 次提交
  24. 20 10月, 2009 1 次提交
  25. 16 10月, 2009 2 次提交
  26. 13 10月, 2009 1 次提交
  27. 21 9月, 2009 1 次提交
    • I
      perf: Do the big rename: Performance Counters -> Performance Events · cdd6c482
      Ingo Molnar 提交于
      Bye-bye Performance Counters, welcome Performance Events!
      
      In the past few months the perfcounters subsystem has grown out its
      initial role of counting hardware events, and has become (and is
      becoming) a much broader generic event enumeration, reporting, logging,
      monitoring, analysis facility.
      
      Naming its core object 'perf_counter' and naming the subsystem
      'perfcounters' has become more and more of a misnomer. With pending
      code like hw-breakpoints support the 'counter' name is less and
      less appropriate.
      
      All in one, we've decided to rename the subsystem to 'performance
      events' and to propagate this rename through all fields, variables
      and API names. (in an ABI compatible fashion)
      
      The word 'event' is also a bit shorter than 'counter' - which makes
      it slightly more convenient to write/handle as well.
      
      Thanks goes to Stephane Eranian who first observed this misnomer and
      suggested a rename.
      
      User-space tooling and ABI compatibility is not affected - this patch
      should be function-invariant. (Also, defconfigs were not touched to
      keep the size down.)
      
      This patch has been generated via the following script:
      
        FILES=$(find * -type f | grep -vE 'oprofile|[^K]config')
      
        sed -i \
          -e 's/PERF_EVENT_/PERF_RECORD_/g' \
          -e 's/PERF_COUNTER/PERF_EVENT/g' \
          -e 's/perf_counter/perf_event/g' \
          -e 's/nb_counters/nb_events/g' \
          -e 's/swcounter/swevent/g' \
          -e 's/tpcounter_event/tp_event/g' \
          $FILES
      
        for N in $(find . -name perf_counter.[ch]); do
          M=$(echo $N | sed 's/perf_counter/perf_event/g')
          mv $N $M
        done
      
        FILES=$(find . -name perf_event.*)
      
        sed -i \
          -e 's/COUNTER_MASK/REG_MASK/g' \
          -e 's/COUNTER/EVENT/g' \
          -e 's/\<event\>/event_id/g' \
          -e 's/counter/event/g' \
          -e 's/Counter/Event/g' \
          $FILES
      
      ... to keep it as correct as possible. This script can also be
      used by anyone who has pending perfcounters patches - it converts
      a Linux kernel tree over to the new naming. We tried to time this
      change to the point in time where the amount of pending patches
      is the smallest: the end of the merge window.
      
      Namespace clashes were fixed up in a preparatory patch - and some
      stylistic fallout will be fixed up in a subsequent patch.
      
      ( NOTE: 'counters' are still the proper terminology when we deal
        with hardware registers - and these sed scripts are a bit
        over-eager in renaming them. I've undone some of that, but
        in case there's something left where 'counter' would be
        better than 'event' we can undo that on an individual basis
        instead of touching an otherwise nicely automated patch. )
      Suggested-by: NStephane Eranian <eranian@google.com>
      Acked-by: NPeter Zijlstra <a.p.zijlstra@chello.nl>
      Acked-by: NPaul Mackerras <paulus@samba.org>
      Reviewed-by: NArjan van de Ven <arjan@linux.intel.com>
      Cc: Mike Galbraith <efault@gmx.de>
      Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
      Cc: Frederic Weisbecker <fweisbec@gmail.com>
      Cc: Steven Rostedt <rostedt@goodmis.org>
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Cc: David Howells <dhowells@redhat.com>
      Cc: Kyle McMartin <kyle@mcmartin.ca>
      Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
      Cc: "David S. Miller" <davem@davemloft.net>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: "H. Peter Anvin" <hpa@zytor.com>
      Cc: <linux-arch@vger.kernel.org>
      LKML-Reference: <new-submission>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      cdd6c482
  28. 16 9月, 2009 1 次提交
  29. 24 8月, 2009 1 次提交
    • P
      sh: Allow for kernel command line concatenation. · d724a9c9
      Pawel Moll 提交于
      So far kernel command line arguments could be passed in by a bootloader
      or defined as CONFIG_CMDLINE, which completely overwriting the first one.
      
      This change allows a developer to declare selected kernel parameters in
      a kernel configuration (eg. project-specific defconfig), retaining
      possibility of passing others by a bootloader.
      
      The obvious examples of the first type are MTD partition or
      bigphysarea-like region definitions, while "debug" option or network
      configuration should be given by a bootloader or a JTAG boot script.
      Signed-off-by: NPawel Moll <pawel.moll@st.com>
      Signed-off-by: NStuart Menefy <stuart.menefy@st.com>
      Signed-off-by: NPaul Mundt <lethal@linux-sh.org>
      d724a9c9
  30. 23 8月, 2009 1 次提交
  31. 21 8月, 2009 1 次提交