Re: [PATCH 2/6] iommu/vt-d: Move intel_drain_pasid_prq() into intel_pasid_tear_down_entry()

Baolu Lu
2024-06-28T09:42:56Z

On 2024/6/28 16:55, Yi Liu wrote:
> Draining PRQ is needed before repurposing a PASID. It makes sense to invoke
> it in the intel_pasid_tear_down_entry().

Can you please elaborate on the value of this merge?

Draining the PRQ is necessary when PRI is enabled on the device, and a
page table is about to be removed from the PASID. This might occur in
conjunction with tearing down a PASID entry, but it seems they are two
distinct actions.

Best regards,
baolu