From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joerg Roedel Subject: Re: [PATCH 2/2] iommu/vt-d: Report superpage support in sysfs Date: Mon, 3 Aug 2015 16:30:29 +0200 Message-ID: <20150803143029.GD20968@8bytes.org> References: <20150714211624.11515.25204.stgit@gimli.home> <20150714212459.11515.71211.stgit@gimli.home> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <20150714212459.11515.71211.stgit-GCcqpEzw8uZBDLzU/O5InQ@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: Alex Williamson Cc: iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org, dwmw2-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: iommu@lists.linux-foundation.org On Tue, Jul 14, 2015 at 03:25:04PM -0600, Alex Williamson wrote: > We already have the VT-d capability register printed raw, but it > typically involves a trip to the code or the spec to figure out > whether superpages are supported. Make this easier with "2M_pages" > and "1G_pages" sysfs entries that clearly report Y/N. > > Signed-off-by: Alex Williamson > --- > drivers/iommu/intel-iommu.c | 22 ++++++++++++++++++++++ > 1 file changed, 22 insertions(+) Can we make this a generic entry for all iommu types and export a pagesize bitmap instead? Joerg