1. 08 Nov, 2013 8 commits
    • Konrad Rzeszutek Wilk's avatar
      Merge remote-tracking branch 'stefano/swiotlb-xen-9.1' into stable/for-linus-3.13 · e1d8f62a
      Konrad Rzeszutek Wilk authored
      * stefano/swiotlb-xen-9.1:
        swiotlb-xen: fix error code returned by xen_swiotlb_map_sg_attrs
        swiotlb-xen: static inline xen_phys_to_bus, xen_bus_to_phys, xen_virt_to_bus and range_straddles_page_boundary
        grant-table: call set_phys_to_machine after mapping grant refs
        arm,arm64: do not always merge biovec if we are running on Xen
        swiotlb: print a warning when the swiotlb is full
        swiotlb-xen: use xen_dma_map/unmap_page, xen_dma_sync_single_for_cpu/device
        xen: introduce xen_dma_map/unmap_page and xen_dma_sync_single_for_cpu/device
        swiotlb-xen: use xen_alloc/free_coherent_pages
        xen: introduce xen_alloc/free_coherent_pages
        arm64/xen: get_dma_ops: return xen_dma_ops if we are running as xen_initial_domain
        arm/xen: get_dma_ops: return xen_dma_ops if we are running as xen_initial_domain
        swiotlb-xen: introduce xen_swiotlb_set_dma_mask
        xen/arm,arm64: enable SWIOTLB_XEN
        xen: make xen_create_contiguous_region return the dma address
        xen/x86: allow __set_phys_to_machine for autotranslate guests
        arm/xen,arm64/xen: introduce p2m
        arm64: define DMA_ERROR_CODE
        arm: make SWIOTLB available
      Signed-off-by: default avatarKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
      
      Conflicts:
      	arch/arm/include/asm/dma-mapping.h
      	drivers/xen/swiotlb-xen.c
      
      [Conflicts arose b/c "arm: make SWIOTLB available" v8 was in Stefano's
      branch, while I had v9 + Ack from Russel. I also fixed up white-space
      issues]
      e1d8f62a
    • Konrad Rzeszutek Wilk's avatar
      Merge tag 'v3.12-rc5' into stable/for-linus-3.13 · bad97817
      Konrad Rzeszutek Wilk authored
      Linux 3.12-rc5
      
      Because the Stefano branch (for SWIOTLB ARM changes) is based on that.
      Signed-off-by: default avatarKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
      
      * tag 'v3.12-rc5': (550 commits)
        Linux 3.12-rc5
        watchdog: sunxi: Fix section mismatch
        watchdog: kempld_wdt: Fix bit mask definition
        watchdog: ts72xx_wdt: locking bug in ioctl
        ARM: exynos: dts: Update 5250 arch timer node with clock frequency
        parisc: let probe_kernel_read() capture access to page zero
        parisc: optimize variable initialization in do_page_fault
        parisc: fix interruption handler to respect pagefault_disable()
        parisc: mark parisc_terminate() noreturn and cold.
        parisc: remove unused syscall_ipi() function.
        parisc: kill SMP single function call interrupt
        parisc: Export flush_cache_page() (needed by lustre)
        vfs: allow O_PATH file descriptors for fstatfs()
        ext4: fix memory leak in xattr
        ARC: Ignore ptrace SETREGSET request for synthetic register "stop_pc"
        ALSA: hda - Sony VAIO Pro 13 (haswell) now has a working headset jack
        ALSA: hda - Add a headset mic model for ALC269 and friends
        ALSA: hda - Fix microphone for Sony VAIO Pro 13 (Haswell model)
        compiler/gcc4: Add quirk for 'asm goto' miscompilation bug
        Revert "i915: Update VGA arbiter support for newer devices"
        ...
      bad97817
    • Stefano Stabellini's avatar
    • Stefano Stabellini's avatar
    • Stefano Stabellini's avatar
      arm: make SWIOTLB available · fbd989b1
      Stefano Stabellini authored
      IOMMU_HELPER is needed because SWIOTLB calls iommu_is_span_boundary,
      provided by lib/iommu_helper.c.
      Signed-off-by: default avatarStefano Stabellini <stefano.stabellini@eu.citrix.com>
      Reviewed-by: default avatarKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
      CC: will.deacon@arm.com
      Acked-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
      
      Changes in v9:
      - remove uneeded include asm/cacheflush.h;
      - just return 0 if !dev->dma_mask in dma_capable.
      
      Changes in v8:
      - use __phys_to_pfn and __pfn_to_phys.
      
      Changes in v7:
      - dma_mark_clean: empty implementation;
      - in dma_capable use coherent_dma_mask if dma_mask hasn't been
        allocated.
      
      Changes in v6:
      - check for dev->dma_mask being NULL in dma_capable.
      
      Changes in v5:
      - implement dma_mark_clean using dmac_flush_range.
      
      Changes in v3:
      - dma_capable: do not treat dma_mask as a limit;
      - remove SWIOTLB dependency on NEED_SG_DMA_LENGTH.
      fbd989b1
    • Paul Gortmaker's avatar
      xen: delete new instances of added __cpuinit · 3b284bde
      Paul Gortmaker authored
      commit 6efa20e4
      ("xen: Support 64-bit PV guest receiving NMIs") and
      commit cd9151e2
      ( "xen/balloon: set a mapping for ballooned out pages")
      added new instances of __cpuinit usage.
      
      We removed this a couple versions ago; we now want to remove
      the compat no-op stubs.  Introducing new users is not what
      we want to see at this point in time, as it will break once
      the stubs are gone.
      
      Cc: Konrad Rzeszutek Wilk <konrad@kernel.org>
      Cc: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
      Signed-off-by: default avatarPaul Gortmaker <paul.gortmaker@windriver.com>
      Signed-off-by: default avatarKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
      3b284bde
    • Boris Ostrovsky's avatar
      xen/balloon: Set balloon's initial state to number of existing RAM pages · c275a57f
      Boris Ostrovsky authored
      Currently balloon's initial value is set to max_pfn which includes
      non-RAM ranges such as MMIO hole. As result, initial memory target
      (specified by guest's configuration file) will appear smaller than
      what balloon driver perceives to be the current number of available
      pages. Thus it will balloon down "extra" pages, decreasing amount of
      available memory for no good reason.
      Signed-off-by: default avatarBoris Ostrovsky <boris.ostrovsky@oracle.com>
      Signed-off-by: default avatarKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
      c275a57f
    • Konrad Rzeszutek Wilk's avatar
      xen/mcfg: Call PHYSDEVOP_pci_mmcfg_reserved for MCFG areas. · 8deb3eb1
      Konrad Rzeszutek Wilk authored
      The PCI MMCONFIG area is usually reserved via the E820 so the Xen hypervisor
      is aware of these regions. But they can also be enumerated in the ACPI
      DSDT which means the hypervisor won't know of them until the initial
      domain informs it of via PHYSDEVOP_pci_mmcfg_reserved.
      
      This is what this patch does for all of the MCFG regions that the
      initial domain is aware of (E820 enumerated and ACPI).
      Reported-by: default avatarSantosh Jodh <Santosh.Jodh@citrix.com>
      CC: Jan Beulich <JBeulich@suse.com>
      Reviewed-by: default avatarBoris Ostrovsky <boris.ostrovsky@oracle.com>
      CC: David Vrabel <david.vrabel@citrix.com>
      CC: Mukesh Rathor <mukesh.rathor@oracle.com>
      Signed-off-by: default avatarKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
      [v1: Redid it a bit]
      [v2: Dropped the P2M 1-1 setting]
      [v3: Check for Xen in-case we are running under baremetal]
      [v4: Wrap with CONFIG_PCI_MMCONFIG]
      8deb3eb1
  2. 06 Nov, 2013 2 commits
  3. 29 Oct, 2013 1 commit
  4. 25 Oct, 2013 6 commits
  5. 24 Oct, 2013 1 commit
  6. 13 Oct, 2013 17 commits
  7. 12 Oct, 2013 5 commits