1. 28 7月, 2014 1 次提交
  2. 17 6月, 2014 1 次提交
  3. 28 5月, 2014 1 次提交
  4. 26 5月, 2014 1 次提交
  5. 22 5月, 2014 7 次提交
  6. 30 4月, 2014 1 次提交
  7. 29 4月, 2014 1 次提交
    • T
      ARM: common: edma: Fix xbar mapping · cf7eb979
      Thomas Gleixner 提交于
      This is another great example of trainwreck engineering:
      
      commit 2646a0e529 (ARM: edma: Add EDMA crossbar event mux support)
      added support for using EDMA on peripherals which have no direct EDMA
      event mapping.
      
      The code compiles and does not explode in your face, but that's it.
      
      1) Reading an u16 array from an u32 device tree array simply does not
         work. Even if the function is named "edma_of_read_u32_to_s16_array".
      
         It merily calls of_property_read_u16_array. So the resulting 16bit
         array will have every other entry = 0.
      
      2) The DT entry for the xbar registers related to xbar has length 0x10
         instead of the real length: 0xfd0 - 0xf90 = 0x40.
      
         Not a real problem as it does not cross a page boundary, but
         wrong nevertheless.
      
      3) But none of this matters as the mapping never happens:
      
         After reading nonsense edma_of_read_u32_to_s16_array() invalidates
         the first array entry pair, so nobody can ever notice the
         braindamage by immediate explosion.
      
      Seems the QA criteria for this code was solely not to explode when
      someone adds edma-xbar-event-map entries to the DT. Goal achieved,
      congratulations!
      
      Not really helpful if someone wants to use edma on a device which
      requires a xbar mapping.
      
      Fix the issues by:
      
      - annotating the device tree entry with "/bits/ 16" as documented in
        the of_property_read_u16_array kernel doc
      
      - make the size of the xbar register mapping correct
      
      - invalidating the end of the array and not the start
      
      This convoluted mess wants to be completely rewritten as there is no
      point to keep the xbar_chan array memory and the iomapping of the xbar
      regs around forever. Marking the xbar mapped channels as used should
      be done right there.
      
      But that's a different issue and this patch is small enough to make it
      work and allows a simple backport for stable.
      
      Cc: stable@vger.kernel.org # v3.12+
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      Signed-off-by: NSekhar Nori <nsekhar@ti.com>
      cf7eb979
  8. 23 4月, 2014 3 次提交
  9. 20 3月, 2014 1 次提交
  10. 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
  11. 13 2月, 2014 1 次提交
  12. 29 12月, 2013 2 次提交
  13. 12 12月, 2013 1 次提交
  14. 22 11月, 2013 1 次提交
  15. 07 11月, 2013 1 次提交
  16. 30 10月, 2013 1 次提交
  17. 29 10月, 2013 3 次提交
  18. 20 10月, 2013 1 次提交
  19. 03 10月, 2013 2 次提交
  20. 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
  21. 24 9月, 2013 8 次提交
    • 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