Re: [PATCH v4 3/5] iommu/vt-d: Disable non-recoverable fault processing before unbind

2020-05-07 Thread Lu Baolu
On 5/8/20 10:12 AM, Tian, Kevin wrote: From: Lu Baolu Sent: Thursday, May 7, 2020 9:23 PM Hi Kevin, On 2020/5/7 13:45, Tian, Kevin wrote: From: Lu Baolu Sent: Thursday, May 7, 2020 8:56 AM When a PASID is used for SVA by the device, it's possible that the PASID entry is cleared before the

RE: [PATCH v4 3/5] iommu/vt-d: Disable non-recoverable fault processing before unbind

2020-05-07 Thread Tian, Kevin
> From: Lu Baolu > Sent: Thursday, May 7, 2020 9:23 PM > > Hi Kevin, > > On 2020/5/7 13:45, Tian, Kevin wrote: > >> From: Lu Baolu > >> Sent: Thursday, May 7, 2020 8:56 AM > >> > >> When a PASID is used for SVA by the device, it's possible that the PASID > >> entry is cleared before the device

Re: [PATCH v4 3/5] iommu/vt-d: Disable non-recoverable fault processing before unbind

2020-05-07 Thread Lu Baolu
On 5/8/20 12:55 AM, Jacob Pan wrote: On Thu, 7 May 2020 08:55:32 +0800 Lu Baolu wrote: When a PASID is used for SVA by the device, it's possible that the PASID entry is cleared before the device flushes all ongoing DMA requests. The IOMMU should ignore the non-recoverable faults caused by

Re: [PATCH v4 3/5] iommu/vt-d: Disable non-recoverable fault processing before unbind

2020-05-07 Thread Jacob Pan
On Thu, 7 May 2020 08:55:32 +0800 Lu Baolu wrote: > When a PASID is used for SVA by the device, it's possible that the > PASID entry is cleared before the device flushes all ongoing DMA > requests. The IOMMU should ignore the non-recoverable faults caused > by these requests. Perhaps be more

Re: [PATCH v4 3/5] iommu/vt-d: Disable non-recoverable fault processing before unbind

2020-05-07 Thread Lu Baolu
Hi Kevin, On 2020/5/7 13:45, Tian, Kevin wrote: From: Lu Baolu Sent: Thursday, May 7, 2020 8:56 AM When a PASID is used for SVA by the device, it's possible that the PASID entry is cleared before the device flushes all ongoing DMA requests. The IOMMU should ignore the non-recoverable faults

RE: [PATCH v4 3/5] iommu/vt-d: Disable non-recoverable fault processing before unbind

2020-05-06 Thread Tian, Kevin
> From: Lu Baolu > Sent: Thursday, May 7, 2020 8:56 AM > > When a PASID is used for SVA by the device, it's possible that the PASID > entry is cleared before the device flushes all ongoing DMA requests. The > IOMMU should ignore the non-recoverable faults caused by these requests. > Intel VT-d

[PATCH v4 3/5] iommu/vt-d: Disable non-recoverable fault processing before unbind

2020-05-06 Thread Lu Baolu
When a PASID is used for SVA by the device, it's possible that the PASID entry is cleared before the device flushes all ongoing DMA requests. The IOMMU should ignore the non-recoverable faults caused by these requests. Intel VT-d provides such function through the FPD bit of the PASID entry. This