1. 20 8月, 2015 1 次提交
    • A
      ARCv2: Support IO Coherency and permutations involving L1 and L2 caches · f2b0b25a
      Alexey Brodkin 提交于
      In case of ARCv2 CPU there're could be following configurations
      that affect cache handling for data exchanged with peripherals
      via DMA:
       [1] Only L1 cache exists
       [2] Both L1 and L2 exist, but no IO coherency unit
       [3] L1, L2 caches and IO coherency unit exist
      
      Current implementation takes care of [1] and [2].
      Moreover support of [2] is implemented with run-time check
      for SLC existence which is not super optimal.
      
      This patch introduces support of [3] and rework of DMA ops
      usage. Instead of doing run-time check every time a particular
      DMA op is executed we'll have 3 different implementations of
      DMA ops and select appropriate one during init.
      
      As for IOC support for it we need:
       [a] Implement empty DMA ops because IOC takes care of cache
           coherency with DMAed data
       [b] Route dma_alloc_coherent() via dma_alloc_noncoherent()
           This is required to make IOC work in first place and also
           serves as optimization as LD/ST to coherent buffers can be
           srviced from caches w/o going all the way to memory
      Signed-off-by: NAlexey Brodkin <abrodkin@synopsys.com>
      [vgupta:
        -Added some comments about IOC gains
        -Marked dma ops as static,
        -Massaged changelog a bit]
      Signed-off-by: NVineet Gupta <vgupta@synopsys.com>
      f2b0b25a
  2. 25 6月, 2015 1 次提交
  3. 22 6月, 2015 2 次提交
  4. 13 10月, 2014 1 次提交
  5. 16 6月, 2014 1 次提交
  6. 03 6月, 2014 1 次提交
  7. 06 11月, 2013 1 次提交
  8. 05 9月, 2013 1 次提交
    • V
      ARC: fix new Section mismatches in build (post __cpuinit cleanup) · 07b9b651
      Vineet Gupta 提交于
      ```------------>8--------------------
      WARNING: vmlinux.o(.text+0x708): Section mismatch in reference from the
      function read_arc_build_cfg_regs() to the function
      .init.text:read_decode_cache_bcr()
      
      WARNING: vmlinux.o(.text+0x702): Section mismatch in reference from the
      function read_arc_build_cfg_regs() to the function
      .init.text:read_decode_mmu_bcr()
      ```
      
      ------------>8--------------------
      Signed-off-by: NVineet Gupta <vgupta@synopsys.com>
      07b9b651
  9. 22 6月, 2013 3 次提交
  10. 10 5月, 2013 1 次提交
  11. 16 2月, 2013 1 次提交
  12. 11 2月, 2013 1 次提交
    • V
      ARC: Fundamental ARCH data-types/defines · 3be80aae
      Vineet Gupta 提交于
      * L1_CACHE_SHIFT
      * PAGE_SIZE, PAGE_OFFSET
      * struct pt_regs, struct user_regs_struct
      * struct thread_struct, cpu_relax(), task_pt_regs(), start_thread(), ...
      * struct thread_info, THREAD_SIZE, INIT_THREAD_INFO(), TIF_*, ...
      * BUG()
      * ELF_*
      * Elf_*
      
      To disallow user-space visibility into some of the core kernel data-types
      such as struct pt_regs, #ifdef __KERNEL__ which also makes the UAPI header
      spit (further patch in the series) to NOT export it to asm/uapi/ptrace.h
      Signed-off-by: NVineet Gupta <vgupta@synopsys.com>
      Cc: Jonas Bonn <jonas.bonn@gmail.com>
      Cc: Al Viro <viro@ZenIV.linux.org.uk>
      Acked-by: NArnd Bergmann <arnd@arndb.de>
      3be80aae