1. 20 3月, 2014 1 次提交
  2. 19 2月, 2014 1 次提交
    • D
      ARM: 7962/2: Make all mcpm functions notrace · ea36d2ab
      Dave Martin 提交于
      The functions in mcpm_entry.c are mostly intended for use during
      scary cache and coherency disabling sequences, or do other things
      which confuse trace ... like powering a CPU down and not
      returning. Similarly for the backend code.
      
      For simplicity, this patch just makes whole files notrace.
      There should be more than enough traceable points on the paths to
      these functions, but we can be more fine-grained later if there is
      a need for it.
      
      Jon Medhurst:
      Also added spc.o to the list of files as it contains functions used by
      MCPM code which have comments comments like: "might be used in code
      paths where normal cacheable locks are not working"
      Signed-off-by: NDave Martin <dave.martin@linaro.org>
      Signed-off-by: NJon Medhurst <tixy@linaro.org>
      Acked-by: NNicolas Pitre <nico@linaro.org>
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      ea36d2ab
  3. 13 2月, 2014 1 次提交
  4. 29 12月, 2013 2 次提交
  5. 12 12月, 2013 1 次提交
  6. 22 11月, 2013 1 次提交
  7. 07 11月, 2013 1 次提交
  8. 30 10月, 2013 1 次提交
  9. 29 10月, 2013 3 次提交
  10. 20 10月, 2013 1 次提交
  11. 03 10月, 2013 2 次提交
  12. 01 10月, 2013 1 次提交
    • J
      ARM: edma: Fix clearing of unused list for DT DMA resources · 6cdaca48
      Joel Fernandes 提交于
      HWMOD removal for MMC is breaking edma_start as the events are being manually
      triggered due to unused channel list not being clear.
      
      The above issue is fixed by reading the "dmas" property from the DT node if it
      exists and clearing the bits in the unused channel list if the dma controller
      used by any device is EDMA. For this purpose we use the of_* helpers to parse
      the arguments in the dmas phandle list.
      
      Also introduced is a minor clean up of a checkpatch error in old code.
      Reviewed-by: NSekhar Nori <nsekhar@ti.com>
      Reported-by: NBalaji T K <balajitk@ti.com>
      Cc: Sekhar Nori <nsekhar@ti.com>
      Cc: Tony Lindgren <tony@atomide.com>
      Cc: Olof Johansson <olof@lixom.net>
      Cc: Nishanth Menon <nm@ti.com>
      Cc: Pantel Antoniou <panto@antoniou-consulting.com>
      Cc: Jason Kridner <jkridner@beagleboard.org>
      Cc: Koen Kooi <koen@dominion.thruhere.net>
      Signed-off-by: NJoel Fernandes <joelf@ti.com>
      Signed-off-by: NOlof Johansson <olof@lixom.net>
      6cdaca48
  13. 24 9月, 2013 10 次提交
    • D
      ARM: bL_switcher: Add query interface to discover CPU affinities · d08e2e09
      Dave Martin 提交于
      When the switcher is active, there is no straightforward way to
      figure out which logical CPU a given physical CPU maps to.
      
      This patch provides a function
      bL_switcher_get_logical_index(mpidr), which is analogous to
      get_logical_index().
      
      This function returns the logical CPU on which the specified
      physical CPU is grouped (or -EINVAL if unknown).
      If the switcher is inactive or not present, -EUNATCH is returned instead.
      Signed-off-by: NDave Martin <dave.martin@linaro.org>
      Signed-off-by: NNicolas Pitre <nico@linaro.org>
      d08e2e09
    • D
      ARM: bL_switcher/trace: Add kernel trace trigger interface · 29064b88
      Dave Martin 提交于
      This patch exports a bL_switcher_trace_trigger() function to
      provide a means for drivers using the trace events to get the
      current status when starting a trace session.
      
      Calling this function is equivalent to pinging the trace_trigger
      file in sysfs.
      Signed-off-by: NDave Martin <dave.martin@linaro.org>
      29064b88
    • D
      ARM: bL_switcher/trace: Add trace trigger for trace bootstrapping · b09bbe5b
      Dave Martin 提交于
      When tracing switching, an external tracer needs a way to bootstrap
      its knowledge of the logical<->physical CPU mapping.
      
      This patch adds a sysfs attribute trace_trigger.  A write to this
      attribute will generate a power:cpu_migrate_current event for each
      online CPU, indicating the current physical CPU for each logical
      CPU.
      
      Activating or deactivating the switcher also generates these
      events, so that the tracer knows about the resulting remapping of
      affected CPUs.
      Signed-off-by: NDave Martin <dave.martin@linaro.org>
      b09bbe5b
    • D
      ARM: bL_switcher: Basic trace events support · 1bfbddb6
      Dave Martin 提交于
      This patch adds simple trace events to the b.L switcher code
      to allow tracing of CPU migration events.
      
      To make use of the trace events, you will need:
      
      CONFIG_FTRACE=y
      CONFIG_ENABLE_DEFAULT_TRACERS=y
      
      The following events are added:
        * power:cpu_migrate_begin
        * power:cpu_migrate_finish
      
      each with the following data:
          u64     timestamp;
          u32     cpu_hwid;
      
      power:cpu_migrate_begin occurs immediately before the
      switcher-specific migration operations start.
      power:cpu_migrate_finish occurs immediately when migration is
      completed.
      
      The cpu_hwid field contains the ID fields of the MPIDR.
      
      * For power:cpu_migrate_begin, cpu_hwid is the ID of the outbound
        physical CPU (equivalent to (from_phys_cpu,from_phys_cluster)).
      
      * For power:cpu_migrate_finish, cpu_hwid is the ID of the inbound
        physical CPU (equivalent to (to_phys_cpu,to_phys_cluster)).
      
      By design, the cpu_hwid field is masked in the same way as the
      device tree cpu node reg property, allowing direct correlation to
      the DT description of the hardware.
      
      The timestamp is added in order to minimise timing noise.  An
      accurate system-wide clock should be used for generating this
      (hopefully getnstimeofday is appropriate, but it could be changed).
      It could be any monotonic shared clock, since the aim is to allow
      accurate deltas to be computed.  We don't necessarily care about
      accurate synchronisation with wall clock time.
      
      In practice, each switch takes place on a single logical CPU,
      and the trace infrastructure should guarantee that events are
      well-ordered with respect to a single logical CPU.
      Signed-off-by: NDave Martin <dave.martin@linaro.org>
      Signed-off-by: NNicolas Pitre <nico@linaro.org>
      1bfbddb6
    • N
      ARM: bL_switcher: wait until inbound is alive before performing a switch · 6137eba6
      Nicolas Pitre 提交于
      In some cases, a significant delay may be observed between the moment
      a request for a CPU to come up is made and the moment it is ready to
      start executing kernel code.  This is especially true when a whole
      cluster has to be powered up which may take in the order of miliseconds.
      It is therefore a good idea to let the outbound CPU continue to execute
      code in the mean time, and be notified when the inbound is ready before
      performing the actual switch.
      
      This is achieved by registering a completion block with the appropriate
      IPI callback, and programming the sending of an IPI by the early assembly
      code prior to entering the main kernel code.  Once the IPI is delivered
      to the outbound CPU, the completion block is "completed" and the switcher
      thread is resumed.
      Signed-off-by: NNicolas Pitre <nico@linaro.org>
      6137eba6
    • N
      ARM: mcpm: add a simple poke mechanism to the early entry code · de885d14
      Nicolas Pitre 提交于
      This allows to poke a predetermined value into a specific address
      upon entering the early boot code in bL_head.S.
      Signed-off-by: NNicolas Pitre <nico@linaro.org>
      de885d14
    • N
      ARM: bL_switcher: synchronize the outbound with the inbound · 108a9640
      Nicolas Pitre 提交于
      Let's wait for the inbound CPU to come up and snoop some of the outbound
      CPU cache before bringing the outbound CPU down.  That should be more
      efficient than going down right away.
      
      Possible improvements might involve some monitoring of the CCI event
      counters.
      Signed-off-by: NNicolas Pitre <nico@linaro.org>
      108a9640
    • D
      ARM: bL_switcher: Add switch completion callback for bL_switch_request() · 0577fee2
      Dave Martin 提交于
      There is no explicit way to know when a switch started via
      bL_switch_request() is complete.  This can lead to unpredictable
      behaviour when the switcher is controlled by a subsystem which
      makes dynamic decisions (such as cpufreq).
      
      The CPU PM notifier is not really suitable for signalling
      completion, because the CPU could get suspended and resumed for
      other, independent reasons while a switch request is in flight.
      Adding a whole new notifier for this seems excessive, and may tempt
      people to put heavyweight code on this path.
      
      This patch implements a new bL_switch_request_cb() function that
      allows for a per-request lightweight callback, private between the
      switcher and the caller of bL_switch_request_cb().
      
      Overlapping switches on a single CPU are considered incorrect if
      they are requested via bL_switch_request_cb() with a callback (they
      will lead to an unpredictable final state without explicit external
      synchronisation to force the requests into a particular order).
      Queuing requests robustly would be overkill because only one
      subsystem should be attempting to control the switcher at any time.
      
      Overlapping requests of this kind will be failed with -EBUSY to
      indicate that the second request won't take effect and the
      completer will never be called for it.
      
      bL_switch_request() is retained as a wrapper round the new function,
      with the old, fire-and-forget semantics.  In this case the last request
      will always win. The request may still be denied if a previous request
      with a completer is still pending.
      Signed-off-by: NDave Martin <dave.martin@linaro.org>
      Signed-off-by: NNicolas Pitre <nicolas.pitre@linaro.org>
      0577fee2
    • D
      ARM: bL_switcher: Add runtime control notifier · 491990e2
      Dave Martin 提交于
      Some subsystems will need to respond synchronously to runtime
      enabling and disabling of the switcher.
      
      This patch adds a dedicated notifier interface to support such
      subsystems.  Pre- and post- enable/disable notifications are sent
      to registered callbacks, allowing safe transition of non-b.L-
      transparent subsystems across these control transitions.
      
      Notifier callbacks may veto switcher (de)activation on pre notifications
      only.  Post notifications won't revert the action.
      
      If enabling or disabling of the switcher fails after the pre-change
      notification has been sent, subsystems which have registered
      notifiers can be left in an inappropriate state.
      
      This patch sends a suitable post-change notification on failure,
      indicating that the old state has been reestablished.
      
      For example, a failed initialisation will result in the following
      sequence:
      
          BL_NOTIFY_PRE_ENABLE
          /* switcher initialisation fails */
          BL_NOTIFY_POST_DISABLE
      
      It is the responsibility of notified subsystems to respond in an
      appropriate way.
      Signed-off-by: NDave Martin <dave.martin@linaro.org>
      Signed-off-by: NNicolas Pitre <nico@linaro.org>
      491990e2
    • D
      ARM: bL_switcher: Add synchronous enable/disable interface · c0f43751
      Dave Martin 提交于
      Some subsystems will need to know for sure whether the switcher is
      enabled or disabled during certain critical regions.
      
      This patch provides a simple mutex-based mechanism to discover
      whether the switcher is enabled and temporarily lock out further
      enable/disable:
      
        * bL_switcher_get_enabled() returns true iff the switcher is
          enabled and temporarily inhibits enable/disable.
      
        * bL_switcher_put_enabled() permits enable/disable of the switcher
          again after a previous call to bL_switcher_get_enabled().
      Signed-off-by: NDave Martin <dave.martin@linaro.org>
      Signed-off-by: NNicolas Pitre <nico@linaro.org>
      c0f43751
  14. 17 9月, 2013 1 次提交
    • L
      ARM: delete mach-shark · 136dfa5e
      Linus Walleij 提交于
      The Shark machine sub-architecture (also known as DNARD, the
      DIGITAL Network Appliance Reference Design) lacks a maintainer
      able to apply and test patches to modernize the architecture.
      
      It is suspected that the current kernel, while it compiles,
      does not even boot on this machine. The listed maintainer has
      expressed that he will not be able to spend any time on the
      maintenance for the coming year.
      
      So let's delete it from the kernel for now. It can always be
      resurrected with git revert if maintenance is resumed.
      
      As the VIA82c505 PCI adapter was only used by this
      architecture, that gets deleted too.
      
      Cc: arm@kernel.org
      Cc: Alexander Schulz <alex@shark-linux.de>
      Signed-off-by: NLinus Walleij <linus.walleij@linaro.org>
      136dfa5e
  15. 04 9月, 2013 1 次提交
  16. 22 8月, 2013 1 次提交
    • V
      ARM: timer-sp: Set dynamic irq affinity · 887708f0
      Viresh Kumar 提交于
      When a cpu goes to a deep idle state where its local timer is shutdown, it
      notifies the time frame work to use the broadcast timer instead.
      
      Unfortunately, the broadcast device could wake up any CPU, including an idle one
      which is not concerned by the wake up at all.
      
      This implies, in the worst case, an idle CPU will wake up to send an IPI to
      another idle cpu.
      
      This patch fixes this for ARM platforms using timer-sp, by setting
      CLOCK_EVT_FEAT_DYNIRQ feature.
      Signed-off-by: NViresh Kumar <viresh.kumar@linaro.org>
      Signed-off-by: NDaniel Lezcano <daniel.lezcano@linaro.org>
      887708f0
  17. 12 8月, 2013 1 次提交
  18. 05 8月, 2013 3 次提交
  19. 30 7月, 2013 7 次提交