Re: AMD Ryzen KVM/NPT/IOMMU issue

2017-06-24 Thread Nick Sarnie
On Fri, May 5, 2017 at 1:27 PM, Alex Williamson wrote: > On Wed, 3 May 2017 12:28:35 -0400 > Nick Sarnie wrote: > >> On Wed, May 3, 2017 at 10:37 AM, Matthias Ehrenfeuchter >> wrote: >> > Hi, >> > >> > There are a lot of messages/threads out there about bad performance while >> > using AMDs Ryz

Re: [PATCH] iommu/amd: Fix interrupt remapping when disable guest_mode

2017-06-24 Thread kbuild test robot
-interrupt-remapping-when-disable-guest_mode/20170624-162701 base: https://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu.git next config: x86_64-randconfig-b0-06242320 (attached as .config) compiler: gcc-4.4 (Debian 4.4.7-8) 4.4.7 reproduce: # save the attached .config to linux build tree

Re: clean up and modularize arch dma_mapping interface V2

2017-06-24 Thread Benjamin Herrenschmidt
On Sat, 2017-06-24 at 09:18 +0200, Christoph Hellwig wrote: > On Wed, Jun 21, 2017 at 12:24:28PM -0700, tndave wrote: > > Thanks for doing this. > > So archs can still have their own definition for dma_set_mask() if > > HAVE_ARCH_DMA_SET_MASK is y? > > (and similarly for dma_set_coherent_mask() wh

DMA_ATTR_WEAK_ORDERING defintion, was Re: [PATCH] nvme: set DMA_ATTR_WEAK_ORDERING attribute on dma buffers

2017-06-24 Thread Christoph Hellwig
I always assumed that our streaming mappings are relaxed order for TLP anyway. And at very least Documentation/DMA-attributes.txt seems to imply something different: DMA_ATTR_WEAK_ORDERING -- DMA_ATTR_WEAK_ORDERING specifies that reads and writes to the mapping may b

Re: clean up and modularize arch dma_mapping interface V2

2017-06-24 Thread Christoph Hellwig
On Wed, Jun 21, 2017 at 12:24:28PM -0700, tndave wrote: > Thanks for doing this. > So archs can still have their own definition for dma_set_mask() if > HAVE_ARCH_DMA_SET_MASK is y? > (and similarly for dma_set_coherent_mask() when > CONFIG_ARCH_HAS_DMA_SET_COHERENT_MASK is y) > Any plan to change