Re: [PATCH v4] iommu/vt-d: consider real PCI device when checking if mapping is needed

2020-04-08 Thread Derrick, Jonathan
Hm that didn't come through right.. On Wed, 2020-04-08 at 18:16 -0600, Jonathan Derrick wrote: > Hi Daniel, > > Reviving this thread > > On Thu, 2020-02-20 at 18:06 +0800, Daniel Drake wrote: > > > On Wed, Feb 19, 2020 at 11:40 AM Lu Baolu > > > wrote: > > > > With respect, this is problematic

Re: [PATCH v4] iommu/vt-d: consider real PCI device when checking if mapping is needed

2020-04-08 Thread Derrick, Jonathan
Hi Daniel, Reviving this thread On Thu, 2020-02-20 at 18:06 +0800, Daniel Drake wrote: > > On Wed, Feb 19, 2020 at 11:40 AM Lu Baolu wrote: > > > With respect, this is problematical. The parent and all subdevices share > > > a single translation entry. The DMA mask should be consistent. > > > >

Re: [PATCH v4] iommu/vt-d: consider real PCI device when checking if mapping is needed

2020-02-27 Thread Derrick, Jonathan
Hi Baolu, Daniel, Sorry for the delay. Was offline for the last week. On Thu, 2020-02-20 at 19:58 +0800, Lu Baolu wrote: > Hi, > > On 2020/2/20 18:06, Daniel Drake wrote: > > > On Wed, Feb 19, 2020 at 11:40 AM Lu Baolu > > > wrote: > > > > With respect, this is problematical. The parent and al

Re: [PATCH v4] iommu/vt-d: consider real PCI device when checking if mapping is needed

2020-02-20 Thread Lu Baolu
Hi, On 2020/2/20 18:06, Daniel Drake wrote: On Wed, Feb 19, 2020 at 11:40 AM Lu Baolu wrote: With respect, this is problematical. The parent and all subdevices share a single translation entry. The DMA mask should be consistent. Otherwise, for example, subdevice A has 64-bit DMA capability an

Re: [PATCH v4] iommu/vt-d: consider real PCI device when checking if mapping is needed

2020-02-20 Thread Daniel Drake
> On Wed, Feb 19, 2020 at 11:40 AM Lu Baolu wrote: > > With respect, this is problematical. The parent and all subdevices share > > a single translation entry. The DMA mask should be consistent. > > > > Otherwise, for example, subdevice A has 64-bit DMA capability and uses > > an identity domain f

Re: [PATCH v4] iommu/vt-d: consider real PCI device when checking if mapping is needed

2020-02-19 Thread Daniel Drake
On Wed, Feb 19, 2020 at 11:40 AM Lu Baolu wrote: > With respect, this is problematical. The parent and all subdevices share > a single translation entry. The DMA mask should be consistent. > > Otherwise, for example, subdevice A has 64-bit DMA capability and uses > an identity domain for DMA trans

Re: [PATCH v4] iommu/vt-d: consider real PCI device when checking if mapping is needed

2020-02-18 Thread Lu Baolu
Hi, On 2020/2/19 11:21, Daniel Drake wrote: From: Jon Derrick The PCI devices handled by intel-iommu may have a DMA requester on another bus, such as VMD subdevices needing to use the VMD endpoint. The real DMA device is now used for the DMA mapping, but one case was missed earlier: if the VMD

[PATCH v4] iommu/vt-d: consider real PCI device when checking if mapping is needed

2020-02-18 Thread Daniel Drake
From: Jon Derrick The PCI devices handled by intel-iommu may have a DMA requester on another bus, such as VMD subdevices needing to use the VMD endpoint. The real DMA device is now used for the DMA mapping, but one case was missed earlier: if the VMD device (and hence subdevices too) are under I