Skip to content
Snippets Groups Projects
  1. Jan 16, 2014
  2. Dec 11, 2013
    • Stefano Stabellini's avatar
      xen/arm64: do not call the swiotlb functions twice · 02ab71cd
      Stefano Stabellini authored
      
      On arm64 the dma_map_ops implementation is based on the swiotlb.
      swiotlb-xen, used by default in dom0 on Xen, is also based on the
      swiotlb.
      
      Avoid calling into the default arm64 dma_map_ops functions from
      xen_dma_map_page, xen_dma_unmap_page, xen_dma_sync_single_for_cpu, and
      xen_dma_sync_single_for_device otherwise we end up calling into the
      swiotlb twice.
      
      When arm64 gets a non-swiotlb based implementation of dma_map_ops, we'll
      probably have to reintroduce dma_map_ops calls in page-coherent.h.
      
      Signed-off-by: default avatarStefano Stabellini <stefano.stabellini@eu.citrix.com>
      CC: catalin.marinas@arm.com
      CC: Will.Deacon@arm.com
      CC: Ian.Campbell@citrix.com
      02ab71cd
  3. Dec 06, 2013
  4. Nov 29, 2013
  5. Nov 25, 2013
  6. Nov 15, 2013
  7. Nov 13, 2013
  8. Nov 09, 2013
  9. Nov 08, 2013
  10. Nov 07, 2013
  11. Nov 05, 2013
  12. Oct 30, 2013
  13. Oct 29, 2013
    • Marc Zyngier's avatar
      arm64: KVM: Yield CPU when vcpu executes a WFE · d241aac7
      Marc Zyngier authored
      
      On an (even slightly) oversubscribed system, spinlocks are quickly
      becoming a bottleneck, as some vcpus are spinning, waiting for a
      lock to be released, while the vcpu holding the lock may not be
      running at all.
      
      The solution is to trap blocking WFEs and tell KVM that we're
      now spinning. This ensures that other vpus will get a scheduling
      boost, allowing the lock to be released more quickly. Also, using
      CONFIG_HAVE_KVM_CPU_RELAX_INTERCEPT slightly improves the performance
      when the VM is severely overcommited.
      
      Acked-by: default avatarChristoffer Dall <christoffer.dall@linaro.org>
      Signed-off-by: default avatarMarc Zyngier <marc.zyngier@arm.com>
      d241aac7
  14. Oct 25, 2013
  15. Oct 24, 2013
  16. Oct 23, 2013
  17. Oct 22, 2013
  18. Oct 18, 2013
  19. Oct 14, 2013
  20. Oct 10, 2013
  21. Oct 09, 2013
    • Stefano Stabellini's avatar
      xen: introduce xen_alloc/free_coherent_pages · d6fe76c5
      Stefano Stabellini authored
      
      xen_swiotlb_alloc_coherent needs to allocate a coherent buffer for cpu
      and devices. On native x86 is sufficient to call __get_free_pages in
      order to get a coherent buffer, while on ARM (and potentially ARM64) we
      need to call the native dma_ops->alloc implementation.
      
      Introduce xen_alloc_coherent_pages to abstract the arch specific buffer
      allocation.
      
      Similarly introduce xen_free_coherent_pages to free a coherent buffer:
      on x86 is simply a call to free_pages while on ARM and ARM64 is
      arm_dma_ops.free.
      
      Signed-off-by: default avatarStefano Stabellini <stefano.stabellini@eu.citrix.com>
      
      
      Changes in v7:
      - rename __get_dma_ops to __generic_dma_ops;
      - call __generic_dma_ops(hwdev)->alloc/free on arm64 too.
      
      Changes in v6:
      - call __get_dma_ops to get the native dma_ops pointer on arm.
      d6fe76c5
  22. Oct 18, 2013
  23. Oct 15, 2013
Loading