RE: Plan for /dev/ioasid RFC v2

2021-06-25 Thread Tian, Kevin
Hi, Alex/Joerg/Jason, Want to draw your attention on an updated proposal below. Let's see whether there is a converged direction to move forward.  > From: Jason Gunthorpe > Sent: Saturday, June 19, 2021 2:23 AM > > On Fri, Jun 18, 2021 at 04:57:40PM +, Tian, Kevin wrote: > > > From: Jason

Re: [PATCH v5 0/5] Add support for ACPI VIOT

2021-06-25 Thread Joerg Roedel
On Fri, Jun 18, 2021 at 05:20:55PM +0200, Jean-Philippe Brucker wrote: > Jean-Philippe Brucker (5): > ACPI: arm64: Move DMA setup operations out of IORT > ACPI: Move IOMMU setup code out of IORT > ACPI: Add driver for the VIOT table > iommu/dma: Pass address limit rather than size to >

Re: [PATCH v15 00/12] Restricted DMA

2021-06-25 Thread Will Deacon
On Thu, Jun 24, 2021 at 03:19:48PM -0400, Konrad Rzeszutek Wilk wrote: > On Thu, Jun 24, 2021 at 11:55:14PM +0800, Claire Chang wrote: > > This series implements mitigations for lack of DMA access control on > > systems without an IOMMU, which could result in the DMA accessing the > > system

Re: [PATCH v2 0/3] iommu: Enable non-strict DMA on QCom SD/MMC

2021-06-25 Thread Joerg Roedel
Hi Douglas, On Thu, Jun 24, 2021 at 10:17:56AM -0700, Douglas Anderson wrote: > The goal of this patch series is to get better SD/MMC performance on > Qualcomm eMMC controllers and in generally nudge us forward on the > path of allowing some devices to be in strict mode and others to be in >

Re: [PATCH v5 3/5] drm/msm: Improve the a6xx page fault handler

2021-06-25 Thread Rob Clark
On Thu, Jun 24, 2021 at 8:39 PM Bjorn Andersson wrote: > > On Thu 10 Jun 16:44 CDT 2021, Rob Clark wrote: > [..] > > diff --git a/drivers/gpu/drm/msm/msm_iommu.c > > b/drivers/gpu/drm/msm/msm_iommu.c > > index 50d881794758..6975b95c3c29 100644 > > --- a/drivers/gpu/drm/msm/msm_iommu.c > > +++

Re: [PATCH] x86/cpufeatures: Force disable X86_FEATURE_ENQCMD and remove update_pasid()

2021-06-25 Thread Luck, Tony
On Wed, Jun 09, 2021 at 04:34:31PM -0700, Andy Lutomirski wrote: > On 6/9/21 10:32 AM, Luck, Tony wrote: > >>> I've told Fenghua to dig out the previous iteration of this patch where > >>> the plan was to lazily fix the PASID_MSR in other threads in the #GP > >>> handler. > >> > >> Blech. Also

Re: Plan for /dev/ioasid RFC v2

2021-06-25 Thread Jason Gunthorpe
On Fri, Jun 25, 2021 at 10:27:18AM +, Tian, Kevin wrote: > - When receiving the binding call for the 1st device in a group, iommu_fd > calls iommu_group_set_block_dma(group, dev->driver) which does > several things: The whole problem here is trying to match this new world where

Re: [PATCH v2 0/3] iommu: Enable non-strict DMA on QCom SD/MMC

2021-06-25 Thread Doug Anderson
Hi, On Fri, Jun 25, 2021 at 6:19 AM Joerg Roedel wrote: > > Hi Douglas, > > On Thu, Jun 24, 2021 at 10:17:56AM -0700, Douglas Anderson wrote: > > The goal of this patch series is to get better SD/MMC performance on > > Qualcomm eMMC controllers and in generally nudge us forward on the > > path

Re: [PATCH v14 0/6] iommu: Enhance IOMMU default DMA mode build options

2021-06-25 Thread John Garry
On 18/06/2021 12:34, John Garry wrote: This is a reboot of Zhen Lei's series from a couple of years ago, which never made it across the line. I still think that it has some value, so taking up the mantle. Motivation: Allow lazy mode be default mode for DMA domains for all ARCHs, and not only

Re: IOMMU regression in 5.11 kernel related to device removal from PCI topolgy

2021-06-25 Thread Robin Murphy
Hi Andrey, On 2021-06-24 17:19, Andrey Grodzovsky via iommu wrote: Hello, We are testing AMD GPU removal from PCI topology using sysfs 'remove' hook. We encountered a crash in IOMMU code related to double free. Note that the crash happens without even loading AMD graphic driver - amdgpu. The