1. 17 12月, 2015 1 次提交
  2. 28 10月, 2015 3 次提交
    • V
      ARC: smp: Introduce smp hook @init_irq_cpu called for all cores · 286130eb
      Vineet Gupta 提交于
      Note this is not part of platform owned static machine_desc,
      but more of device owned plat_smp_ops (rather misnamed) which a IPI
      provider or some such typically defines.
      
      This will help us seperate out the IPI registration from platform
      specific init_cpu_smp() into device specific init_irq_cpu()
      Signed-off-by: NVineet Gupta <vgupta@synopsys.com>
      286130eb
    • V
      ARC: smp: Rename platform hook @init_smp -> @init_cpu_smp · 8721a7f5
      Vineet Gupta 提交于
      This conveys better that it is called for each cpu
      Signed-off-by: NVineet Gupta <vgupta@synopsys.com>
      8721a7f5
    • V
      ARC: smp: Introduce smp hook @init_early_smp for Master core · e55af4da
      Vineet Gupta 提交于
      This adds a platform agnostic early SMP init hook which is called on
      Master core before calling setup_processor()
      
        setup_arch()
           smp_init_cpus()
               smp_ops.init_early_smp()
           ...
           setup_processor()
      
      How this helps:
       - Used for one time init of certain SMP centric IP blocks, before
         calling setup_processor() which probes various bits of core,
         possibly including this block
      
       - Currently platforms need to call this IP block init from their
         init routines, which doesn't make sense as this is specific to ARC
         core and not platform and otherwise requires copy/paste in all
         (and hence a possible point of failure)
      
      e.g. MCIP init is called from 2 platforms currently (axs10x and sim)
      which will go away once we have this.
      
      This change only adds the hooks but they are empty for now. Next commit
      will populate them and remove the explicit init calls from platforms.
      Signed-off-by: NVineet Gupta <vgupta@synopsys.com>
      e55af4da
  3. 17 10月, 2015 1 次提交
  4. 22 6月, 2015 2 次提交
  5. 19 6月, 2015 1 次提交
  6. 02 2月, 2015 1 次提交
  7. 12 12月, 2014 1 次提交
  8. 27 9月, 2014 1 次提交
  9. 23 7月, 2014 2 次提交
  10. 26 6月, 2014 1 次提交
  11. 03 6月, 2014 1 次提交
  12. 23 12月, 2013 5 次提交
  13. 07 11月, 2013 1 次提交
  14. 06 11月, 2013 2 次提交
  15. 27 6月, 2013 1 次提交
    • P
      arc: delete __cpuinit usage from all arc files · ce759956
      Paul Gortmaker 提交于
      The __cpuinit type of throwaway sections might have made sense
      some time ago when RAM was more constrained, but now the savings
      do not offset the cost and complications.  For example, the fix in
      commit 5e427ec2 ("x86: Fix bit corruption at CPU resume time")
      is a good example of the nasty type of bugs that can be created
      with improper use of the various __init prefixes.
      
      After a discussion on LKML[1] it was decided that cpuinit should go
      the way of devinit and be phased out.  Once all the users are gone,
      we can then finally remove the macros themselves from linux/init.h.
      
      Note that some harmless section mismatch warnings may result, since
      notify_cpu_starting() and cpu_up() are arch independent (kernel/cpu.c)
      are flagged as __cpuinit  -- so if we remove the __cpuinit from
      arch specific callers, we will also get section mismatch warnings.
      As an intermediate step, we intend to turn the linux/init.h cpuinit
      content into no-ops as early as possible, since that will get rid
      of these warnings.  In any case, they are temporary and harmless.
      
      This removes all the arch/arc uses of the __cpuinit macros from
      all C files.  Currently arc does not have any __CPUINIT used in
      assembly files.
      
      [1] https://lkml.org/lkml/2013/5/20/589
      
      Cc: Vineet Gupta <vgupta@synopsys.com>
      Signed-off-by: NPaul Gortmaker <paul.gortmaker@windriver.com>
      Signed-off-by: NVineet Gupta <vgupta@synopsys.com>
      ce759956
  16. 08 4月, 2013 1 次提交
  17. 16 2月, 2013 4 次提交
    • V
      ARC: [Review] Multi-platform image #7: SMP common code to use callbacks · 10b12718
      Vineet Gupta 提交于
      This again is for switch from singleton platform SMP API to
      multi-platform paradigm
      
      Platform code is not yet setup to populate the callbacks, that happens
      in next commit
      Signed-off-by: NVineet Gupta <vgupta@synopsys.com>
      Cc: Arnd Bergmann <arnd@arndb.de>
      Acked-by: NArnd Bergmann <arnd@arndb.de>
      10b12718
    • V
      ARC: [Review] Multi-platform image #3: switch to board callback · 877768c8
      Vineet Gupta 提交于
      -platform API is retired and instead callbacks are used
      Signed-off-by: NVineet Gupta <vgupta@synopsys.com>
      Cc: Arnd Bergmann <arnd@arndb.de>
      Acked-by: NArnd Bergmann <arnd@arndb.de>
      877768c8
    • V
      ARC: [Review] Multi-platform image #2: Board callback Infrastructure · 03a6d28c
      Vineet Gupta 提交于
      The orig platform code orgnaization was singleton design pattern - only
      one platform (and board thereof) would build at a time.
      
      Thus any platform/board specific code (e.g. irq init, early init ...)
      expected by ARC common code was exported as well defined set of APIs,
      with only ONE instance building ever.
      
      Now with multiple-platform build requirement, that design of code no
      longer holds - multiple board specific calls need to build at the same
      time - so ARC common code can't use the API approach, it needs a
      callback based design where each board registers it's specific set of
      functions, and at runtime, depending on board detection, the callbacks
      are used from the registry.
      
      This commit adds all the infrastructure, where board specific callbacks
      are specified as a "maThine description".
      
      All the hooks are placed in right spots, no board callbacks registered
      yet (with MACHINE_STARt/END constructs) so the hooks will not run.
      
      Next commit will actually convert the platform to this infrastructure.
      Signed-off-by: NVineet Gupta <vgupta@synopsys.com>
      Cc: Arnd Bergmann <arnd@arndb.de>
      Acked-by: NArnd Bergmann <arnd@arndb.de>
      03a6d28c
    • V
      ARC: SMP support · 41195d23
      Vineet Gupta 提交于
      ARC common code to enable a SMP system + ISS provided SMP extensions.
      
      ARC700 natively lacks SMP support, hence some of the core features are
      are only enabled if SoCs have the necessary h/w pixie-dust. This
      includes:
      -Inter Processor Interrupts (IPI)
      -Cache coherency
      -load-locked/store-conditional
      ...
      
      The low level exception handling would be completely broken in SMP
      because we don't have hardware assisted stack switching. Thus a fair bit
      of this code is repurposing the MMU_SCRATCH reg for event handler
      prologues to keep them re-entrant.
      
      Many thanks to Rajeshwar Ranga for his initial "major" contributions to
      SMP Port (back in 2008), and to Noam Camus and Gilad Ben-Yossef for help
      with resurrecting that in 3.2 kernel (2012).
      
      Note that this platform code is again singleton design pattern - so
      multiple SMP platforms won't build at the moment - this deficiency is
      addressed in subsequent patches within this series.
      Signed-off-by: NVineet Gupta <vgupta@synopsys.com>
      Cc: Arnd Bergmann <arnd@arndb.de>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Rajeshwar Ranga <rajeshwar.ranga@gmail.com>
      Cc: Noam Camus <noamc@ezchip.com>
      Cc: Gilad Ben-Yossef <gilad@benyossef.com>
      41195d23