From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jacob Pan Subject: Re: [PATCH v7 0/5] Add Intel IOMMU debugfs support Date: Thu, 22 Feb 2018 09:09:29 -0800 Message-ID: <20180222090929.12cc8344@jacob-builder> References: <1517619001-148586-1-git-send-email-sohil.mehta@intel.com> <20180213140303.42mbzfxpypljy37l@8bytes.org> <20180213214002.GA27066@otc-nc-03> <1518992132.2542.5.camel@debian.org> <20180220142512.039309aa@jacob-builder> <1519285717.2388.11.camel@debian.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1519285717.2388.11.camel-8fiUuRrzOP0dnm+yROfE0A@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: iommu-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: iommu-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: Yves-Alexis Perez Cc: Ravi V Shankar , "Raj, Ashok" , Fenghua Yu , iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Andy Shevchenko , David Woodhouse , Gayatri Kammela List-Id: iommu@lists.linux-foundation.org On Thu, 22 Feb 2018 08:48:37 +0100 Yves-Alexis Perez wrote: > On Tue, 2018-02-20 at 14:25 -0800, Jacob Pan wrote: > > I didn't know about chipsec but reading the code seems to rely on an > > out-of-tree kernel module. I don't think it matches what we need > > here. > > Yes good indeed, I had forgot about that. Maybe the userland part is > still useful, but there's definitely a need for (protected) access to > privileged memory (and access to /dev/mem is less practical than > debugfs, I guess). > Another reason we can't use /dev/mem is that the context entries are not static, they are created for each device when the first map() comes. So we need to rely on the list in the intel iommu driver to dump the context. > Regards, [Jacob Pan]