Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.4 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_PASS,USER_AGENT_MUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0A413C04AB3 for ; Fri, 10 May 2019 14:56:57 +0000 (UTC) Received: from mail.linuxfoundation.org (mail.linuxfoundation.org [140.211.169.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D95352175B for ; Fri, 10 May 2019 14:56:56 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D95352175B Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linux.intel.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=iommu-bounces@lists.linux-foundation.org Received: from mail.linux-foundation.org (localhost [127.0.0.1]) by mail.linuxfoundation.org (Postfix) with ESMTP id F0465DD5; Fri, 10 May 2019 14:56:44 +0000 (UTC) Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org [172.17.192.35]) by mail.linuxfoundation.org (Postfix) with ESMTPS id 8E5A9DB5 for ; Fri, 10 May 2019 14:56:43 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by smtp1.linuxfoundation.org (Postfix) with ESMTPS id 73EB3CF for ; Fri, 10 May 2019 14:56:42 +0000 (UTC) X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 May 2019 07:56:41 -0700 X-ExtLoop1: 1 Received: from smile.fi.intel.com (HELO smile) ([10.237.72.86]) by fmsmga005.fm.intel.com with ESMTP; 10 May 2019 07:56:39 -0700 Received: from andy by smile with local (Exim 4.92) (envelope-from ) id 1hP6ww-0004eI-RD; Fri, 10 May 2019 17:56:38 +0300 Date: Fri, 10 May 2019 17:56:38 +0300 From: Andy Shevchenko To: Sai Praneeth Prakhya Subject: Re: [PATCH 0/3] Add debugfs support to show scalable mode DMAR table Message-ID: <20190510145638.GB9224@smile.fi.intel.com> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.10.1 (2018-07-13) Cc: Ashok Raj , iommu@lists.linux-foundation.org, David Woodhouse X-BeenThere: iommu@lists.linux-foundation.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Development issues for Linux IOMMU support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: iommu-bounces@lists.linux-foundation.org Errors-To: iommu-bounces@lists.linux-foundation.org On Thu, May 09, 2019 at 11:41:42AM -0700, Sai Praneeth Prakhya wrote: > From: Sai Praneeth > > Presently, "/sys/kernel/debug/iommu/intel/dmar_translation_struct" file dumps > only legacy DMAR table which consists of root table and context table. Scalable > mode DMAR table adds PASID directory and PASID table. Hence, add support to dump > these tables as well. > > Directly extending the present dumping format for PASID tables will make the > output look clumsy. Hence, the first patch modifies the present format to a > tabular format. The second patch introduces macros that are used during PASID > table walk and the third patch actually adds support to dump scalable mode DMAR > table. FWIW, Reviewed-by: Andy Shevchenko Since it's debugfs the format is not carved in stone. > > Sai Praneeth (3): > iommu/vt-d: Modify the format of intel DMAR tables dump > iommu/vt-d: Introduce macros useful for dumping DMAR table > iommu/vt-d: Add debugfs support to show scalable mode DMAR table > internals > > drivers/iommu/intel-iommu-debugfs.c | 132 +++++++++++++++++++++++++++++------- > drivers/iommu/intel-pasid.c | 17 ----- > drivers/iommu/intel-pasid.h | 26 +++++++ > 3 files changed, 134 insertions(+), 41 deletions(-) > > Cc: Joerg Roedel > Cc: Ashok Raj > Cc: Lu Baolu > Cc: Sohil Mehta > Cc: David Woodhouse > Cc: Jacob Pan > Cc: Andy Shevchenko > Signed-off-by: Sai Praneeth Prakhya > > -- > 2.7.4 > -- With Best Regards, Andy Shevchenko _______________________________________________ iommu mailing list iommu@lists.linux-foundation.org https://lists.linuxfoundation.org/mailman/listinfo/iommu