1. 06 11月, 2013 1 次提交
  2. 10 10月, 2013 3 次提交
  3. 12 9月, 2013 1 次提交
    • N
      ARC: SMP failed to boot due to missing IVT setup · c3567f8a
      Noam Camus 提交于
      Commit 05b016ec "ARC: Setup Vector Table Base in early boot" moved
      the Interrupt vector Table setup out of arc_init_IRQ() which is called
      for all CPUs, to entry point of boot cpu only, breaking booting of others.
      
      Fix by adding the same to entry point of non-boot CPUs too.
      
      read_arc_build_cfg_regs() printing IVT Base Register didn't help the
      casue since it prints a synthetic value if zero which is totally bogus,
      so fix that to print the exact Register.
      
      [vgupta: Remove the now stale comment from header of arc_init_IRQ and
      also added the commentary for halt-on-reset]
      
      Cc: Gilad Ben-Yossef <gilad@benyossef.com>
      Cc: Cc: <stable@vger.kernel.org> #3.11
      Signed-off-by: NNoam Camus <noamc@ezchip.com>
      Signed-off-by: NVineet Gupta <vgupta@synopsys.com>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      c3567f8a
  4. 05 9月, 2013 1 次提交
  5. 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
  6. 22 6月, 2013 1 次提交
  7. 07 5月, 2013 2 次提交
  8. 09 4月, 2013 3 次提交
  9. 11 3月, 2013 1 次提交
  10. 26 2月, 2013 1 次提交
  11. 16 2月, 2013 8 次提交
    • 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: Support for single cycle Close Coupled Mem (CCM) · 8b5850f8
      Vineet Gupta 提交于
      * Includes mapping of CCMs in address space
      * Annotations to move arbitrary code/data into CCM
      * Moving some of the critical code/data into CCM
      * Runtime detection/reporting
      Signed-off-by: NVineet Gupta <vgupta@synopsys.com>
      8b5850f8
    • V
      af617428
    • V
      ARC: DWARF2 .debug_frame based stack unwinder · 854a0d95
      Vineet Gupta 提交于
      -Originally written by Rajeshwar Ranga
      -Derived off of generic unwinder in 2.6.19 and adapted to ARC
      Signed-off-by: NVineet Gupta <vgupta@synopsys.com>
      Cc: Rajeshwar Ranga <rajeshwar.ranga@gmail.com>
      854a0d95
    • 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
    • V
      ARC: [DeviceTree] Basic support · 999159a5
      Vineet Gupta 提交于
      This is minimal infrastructure needed for devicetree work.
      It uses an a sample "skeleton" devicetree - embedded in kernel image -
      to print the board, manufacturer by parsing the top-level "compatible"
      string.
      
      As of now we don't need any additional "board" specific "machine_desc".
      
      TODO: support interpreting the command line as boot-loader passed dtb
      Signed-off-by: NVineet Gupta <vgupta@synopsys.com>
      Cc: Arnd Bergmann <arnd@arndb.de>
      Cc: Grant Likely <grant.likely@secretlab.ca>
      Cc: devicetree-discuss@lists.ozlabs.org
      Cc: Rob Herring <rob.herring@calxeda.com>
      Cc: James Hogan <james.hogan@imgtec.com>
      Reviewed-by: NRob Herring <rob.herring@calxeda.com>
      Reviewed-by: NJames Hogan <james.hogan@imgtec.com>
      999159a5
    • V