[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <2824B99DC70CE746926327C52CA42F7648404FBF@ORSMSX111.amr.corp.intel.com>
Date: Tue, 2 Jan 2018 21:01:23 +0000
From: "Kammela, Gayatri" <gayatri.kammela@...el.com>
To: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>,
"Mehta, Sohil" <sohil.mehta@...el.com>,
Joerg Roedel <joro@...tes.org>,
Alex Williamson <alex.williamson@...hat.com>
CC: David Woodhouse <dwmw2@...radead.org>,
"Raj, Ashok" <ashok.raj@...el.com>,
"iommu@...ts.linux-foundation.org" <iommu@...ts.linux-foundation.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
Jacob Pan <jacob.jun.pan@...ux.intel.com>,
"Shankar, Ravi V" <ravi.v.shankar@...el.com>,
Lu Baolu <baolu.lu@...ux.intel.com>,
"Yu, Fenghua" <fenghua.yu@...el.com>
Subject: RE: [PATCH v5 2/5] iommu/vt-d: Add debugfs support to show context
internals
> -----Original Message-----
> From: Andy Shevchenko [mailto:andriy.shevchenko@...ux.intel.com]
> Sent: Thursday, December 28, 2017 12:52 AM
> To: Mehta, Sohil <sohil.mehta@...el.com>; Joerg Roedel <joro@...tes.org>;
> Alex Williamson <alex.williamson@...hat.com>
> Cc: David Woodhouse <dwmw2@...radead.org>; Raj, Ashok
> <ashok.raj@...el.com>; iommu@...ts.linux-foundation.org; linux-
> kernel@...r.kernel.org; Jacob Pan <jacob.jun.pan@...ux.intel.com>; Kammela,
> Gayatri <gayatri.kammela@...el.com>; Shankar, Ravi V
> <ravi.v.shankar@...el.com>; Lu Baolu <baolu.lu@...ux.intel.com>; Yu, Fenghua
> <fenghua.yu@...el.com>
> Subject: Re: [PATCH v5 2/5] iommu/vt-d: Add debugfs support to show context
> internals
>
> On Thu, 2017-12-21 at 16:32 -0800, Sohil Mehta wrote:
> > From: Gayatri Kammela <gayatri.kammela@...el.com>
> >
> > IOMMU internals states such as root and context can be exported to the
> > userspace.
> >
> > Example of such dump in Kabylake:
>
> > v5: Change to a SPDX license tag
> > Fix seq_printf formatting
> >
> >
>
> > +#define pr_fmt(fmt) "INTEL_IOMMU: " fmt
> > +#include <linux/err.h>
> > +#include <linux/io.h>
> > +#include <linux/slab.h>
> > +#include <linux/uaccess.h>
> > +#include <linux/pm_runtime.h>
> > +#include <linux/debugfs.h>
> > +#include <linux/pci.h>
> > +#include <linux/iommu.h>
> > +#include <linux/intel-iommu.h>
> > +#include <linux/intel-svm.h>
> > +#include <linux/dmar.h>
> > +#include <linux/spinlock.h>
>
> It might make sense to keep above ordered alphabetically.
Sure Andy!
>
> > +static void root_tbl_entry_show(struct seq_file *m, struct
> > intel_iommu *iommu,
> > + u64 rtaddr_reg, bool ext, bool
> > new_ext)
> > +{
> > + int bus;
> > +
> > + seq_printf(m, "\nIOMMU %s: %2s Root Table Addr:%llx\n",
> > iommu->name,
> > + ext ? "Extended" : "", rtaddr_reg);
>
> Still leading '\n'...
My bad, will correct it
>
> --
> Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
> Intel Finland Oy
Powered by blists - more mailing lists