Re: [PATCH v3 3/6] iommu/vt-d: Add Intel IOMMU debugfs to show extended context internals

From: Mehta, Sohil
Date: Thu Dec 07 2017 - 15:30:37 EST


On Wed, 2017-12-06 at 16:17 +0800, Lu Baolu wrote:
> Hi,
>
> On 12/06/2017 11:43 AM, Sohil Mehta wrote:
> >
> > From: Gayatri Kammela <gayatri.kammela@xxxxxxxxx>
> >
> > +
> > + if (new_ext) {
> > + seq_printf(m, "Higher Context tbl entries for Bus:
> > %d\n", bus);
> > + ctx_lo = context[0].lo;
> > +
> > + if (!(ctx_lo & CONTEXT_PASIDE)) {
> > + context[1].hi = (u64)virt_to_phys(
> > + iommu->pasid_state_table);
> > + context[1].lo = (u64)virt_to_phys(iommu-
> > >pasid_table) |
> > + intel_iommu_get_pts(iommu)
> > ;
> Why do you change the context entries here?
>

Thanks for catching this. The context entires were mistakenly getting
changed. We'll remove it.