This is a cut and paste from the current amd_iommu driver. I really
have no idea if it's a good idea or not. It looks like
joerg.roe...@amd.com might be the person to ask.
@Joerg Roedel should we keep this?
On Mon, Apr 15, 2019 at 7:33 AM Christoph Hellwig wrote:
>
> > +static void amd_iommu_flu
> +static void amd_iommu_flush_np_cache(struct iommu_domain *domain,
> + unsigned long iova, size_t size)
> +{
> + struct protection_domain *dom = to_pdomain(domain);
> +
> + if (unlikely(amd_iommu_np_cache)) {
Is this case really so unlikely that it needs a static branch predi
Implement flush_np_cache for the AMD iommu driver. This allows the amd
iommu non present cache to be flushed if amd_iommu_np_cache is set.
Signed-off-by: Tom Murphy
---
drivers/iommu/amd_iommu.c | 13 +
1 file changed, 13 insertions(+)
diff --git a/drivers/iommu/amd_iommu.c b/driver