1. 29 3月, 2011 1 次提交
  2. 18 3月, 2011 2 次提交
  3. 10 1月, 2011 3 次提交
    • Y
      Blackfin: SMP: rewrite IPI handling to avoid memory allocation · 73a40064
      Yi Li 提交于
      Currently, sending an interprocessor interrupt (IPI) requires building up
      a message dynamically which means memory allocation.  But often times, we
      will want to send an IPI in low level contexts where allocation is not
      possible which may lead to a panic().  So create a per-cpu static array
      for the message queue and use that instead.
      
      Further, while we have two supplemental interrupts, we are currently only
      using one of them.  So use the second one for the most common IPI message
      of all -- smp_send_reschedule().  This avoids ugly contention for locks
      which in turn would require an IPI message ...
      
      In general, this improves SMP performance, and in some cases allows the
      SMP port to work in places it wouldn't before.  Such as the PREEMPT_RT
      state where the slab is protected by a per-cpu spin lock.  If the slab
      kmalloc/kfree were to put the task to sleep, and that task was actually
      the IPI handler, then the system falls down yet again.
      
      After running some various stress tests on the system, the static limit
      of 5 messages seems to work.  On the off chance even this overflows, we
      simply panic(), and we can review that scenario to see if the limit needs
      to be increased a bit more.
      Signed-off-by: NYi Li <yi.li@analog.com>
      Signed-off-by: NMike Frysinger <vapier@gentoo.org>
      73a40064
    • G
      Blackfin: SMP: tweak platform_request_ipi() usage · 75734e66
      Graf Yang 提交于
      This function takes an irq_handler_t function, but the prototype in
      the header doesn't match the function definition.  This is due to the
      smp headers needing to avoid circular dependencies.  So change the
      function to take a simple pointer.
      Signed-off-by: NGraf Yang <graf.yang@analog.com>
      Signed-off-by: NMike Frysinger <vapier@gentoo.org>
      75734e66
    • M
      Blackfin: bf561: update a few more SIC_SYSCR locations · 94a038c2
      Mike Frysinger 提交于
      Looks like I missed a few new spots when renaming the SICA macros.
      Signed-off-by: NMike Frysinger <vapier@gentoo.org>
      94a038c2
  4. 23 10月, 2010 1 次提交
  5. 09 3月, 2010 3 次提交
  6. 15 12月, 2009 1 次提交
    • Y
      Blackfin: SMP: don't start up core b until its state has been completely onlined · 578d36f5
      Yi Li 提交于
      When testing PREEMPT_RT kernel on BF561-EZKit, the kernel blocks while
      booting.  When the kernel initializes the ethernet driver, it sleeps and
      never wakes up.
      
      The issue happens when the kernel waits for a timer for Core B to timeout
      (the timers are per-cpu based: static DEFINE_PER_CPU(struct tvec_base *,
      tvec_bases) = &boot_tvec_bases).
      
      However, the ksoftirqd thread for Core B (note, the ksoftirqd thread is
      also per-cpu based) cannot work properly, and the timers for Core B never
      times out.
      
      When ksoftirqd() for the first time runs on core B, it is possible core A
      is still initializing core B (see smp_init() -> cpu_up() -> __cpu_up()).
      So the "cpu_is_offline()" check may return true and ksoftirqd moves to
      "wait_to_die".
      
      So delay the core b start up until the per-cpu timers have been set up
      fully.
      Signed-off-by: NYi Li <yi.li@analog.com>
      Signed-off-by: NMike Frysinger <vapier@gentoo.org>
      578d36f5
  7. 07 10月, 2009 1 次提交
    • R
      Blackfin: mass clean up of copyright/licensing info · 96f1050d
      Robin Getz 提交于
      Bill Gatliff & David Brownell pointed out we were missing some
      copyrights, and licensing terms in some of the files in
      ./arch/blackfin, so this fixes things, and cleans them up.
      
      It also removes:
       - verbose GPL text(refer to the top level ./COPYING file)
       - file names (you are looking at the file)
       - bug url (it's in the ./MAINTAINERS file)
       - "or later" on GPL-2, when we did not have that right
      
      It also allows some Blackfin-specific assembly files to be under a BSD
      like license (for people to use them outside of Linux).
      Signed-off-by: NRobin Getz <robin.getz@analog.com>
      Signed-off-by: NMike Frysinger <vapier@gentoo.org>
      96f1050d
  8. 12 6月, 2009 2 次提交
  9. 07 1月, 2009 2 次提交