Received: by 10.223.185.116 with SMTP id b49csp1154854wrg; Tue, 20 Feb 2018 14:25:13 -0800 (PST) X-Google-Smtp-Source: AH8x227f9iIAV6VZGVXInFsoQDyGkBZSORnDt46BaB1r+NLuZxSQ60MXcbuM4bYcstm3lblls0he X-Received: by 10.99.167.75 with SMTP id w11mr922228pgo.246.1519165513323; Tue, 20 Feb 2018 14:25:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519165513; cv=none; d=google.com; s=arc-20160816; b=hWzDsRsrymZfiUMqceWwlLXTuyYbZeNNaieq/a8dkmcL7c9t+h9VOpzW2kOsRvJtwr KSmivNNp5hf6KdkDAOiZe4pGz4I3XmI5WMnxJ4IR1M3Wt7RnmXf/lmhvdu9wGzE4ALY2 qPYHhZJyt8/74caXlSHm2fwqhkOgeW2xuxGqL8r2jgzYhWYL8ah7+5FCVy0n1SEUh0rU kwI/brYmjTtdxlPanyKWWFubO+Jk6QnwdtQ8EOhb0VWnYMpXLrbqix9yLkpA56i/R/sQ cd6vcwqxigjnh/yYVy9OeEa3Hq0rxNHFktIHBrKZzboySqH4gAfYy1rm2oHG1w0P0BB3 9Dzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:arc-authentication-results; bh=kUmxyOnThTZGFkod17EByE1KWKNBDiFAPa1/REAYh5E=; b=R4I8nVsIaktCtWjPE87v+t9Vo7G3YYL4I/WrlXxCoXpyDSM5S0Yoy/LKE0NRhC3pJ0 KqSqhQUweZnvULwpHBDjad019hGnFhEK3/ZEa3Lo0N3J/jDIv0P1bafmXnpVTj3qWD7x tvQoaTmy74Vat/MkQKGFutKXVxrTeHkkep2YEFidbC/h/bwH4qg85Y14rNxo+VpkZYTq xnaOEpI4W2JAbkZQLqfO3PttK53LNmKcQl0iWG8jjXXX16/YUYw+VKHKQfpoNcmQkQk8 Pz0ZTwcqKg4eLrVZjtIafwTDB48yrzXgMDZILO9E6WAWy4t1GtG1sLEgDq7PUnGsfaNl OWpw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g16-v6si182821plo.369.2018.02.20.14.24.45; Tue, 20 Feb 2018 14:25:13 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751351AbeBTWXP (ORCPT + 99 others); Tue, 20 Feb 2018 17:23:15 -0500 Received: from mga07.intel.com ([134.134.136.100]:47863 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750998AbeBTWXO (ORCPT ); Tue, 20 Feb 2018 17:23:14 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 20 Feb 2018 14:23:14 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,541,1511856000"; d="scan'208";a="29442912" Received: from jacob-builder.jf.intel.com (HELO jacob-builder) ([10.7.199.155]) by orsmga003.jf.intel.com with ESMTP; 20 Feb 2018 14:23:14 -0800 Date: Tue, 20 Feb 2018 14:25:12 -0800 From: Jacob Pan To: Yves-Alexis Perez Cc: "Raj, Ashok" , Joerg Roedel , Sohil Mehta , Alex Williamson , David Woodhouse , iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org, Gayatri Kammela , Ravi V Shankar , Andy Shevchenko , Lu Baolu , Fenghua Yu , jacob.jun.pan@linux.intel.com Subject: Re: [PATCH v7 0/5] Add Intel IOMMU debugfs support Message-ID: <20180220142512.039309aa@jacob-builder> In-Reply-To: <1518992132.2542.5.camel@debian.org> 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> Organization: OTC X-Mailer: Claws Mail 3.13.2 (GTK+ 2.24.30; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 18 Feb 2018 23:15:32 +0100 Yves-Alexis Perez wrote: > On Tue, 2018-02-13 at 13:40 -0800, Raj, Ashok wrote: > > This version has only hw dumps for now, but we plan to add some > > other things like walking 2nd level page-tables, or get some SVM > > specific data from the driver in the future. > > Hi, > > I'm not sure how much you know about chipsec [1], but with a oneliner > [2] you can have it print a lot of data from Vt-d configuration, > including page tables. As far as I remember, it doesn't need access > to /dev/mem (but I gidn't dig to check how it does it). > > It might still be useful to have everything from debugfs because > it'll always be consistent with the current running kernel, but at > least it might help users reporting bugs. > > [1] https://github.com/chipsec/chipsec > [2] http://paste.debian.net/1010105 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.