Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754606AbeAJNmK (ORCPT + 1 other); Wed, 10 Jan 2018 08:42:10 -0500 Received: from mga06.intel.com ([134.134.136.31]:16026 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753463AbeAJNmJ (ORCPT ); Wed, 10 Jan 2018 08:42:09 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,340,1511856000"; d="scan'208";a="9007099" Message-ID: <1515591339.7000.863.camel@linux.intel.com> Subject: Re: [PATCH v6 3/5] iommu/vt-d: Add debugfs support to show register contents From: Andy Shevchenko To: Sohil Mehta , Joerg Roedel , Alex Williamson Cc: Ashok Raj , David Woodhouse , iommu@lists.linux-foundation.org, linux-kernel@vger.kernel.org, Jacob Pan , Gayatri Kammela , Ravi V Shankar , Lu Baolu , Fenghua Yu Date: Wed, 10 Jan 2018 15:35:39 +0200 In-Reply-To: <1515556102-34150-4-git-send-email-sohil.mehta@intel.com> References: <1515556102-34150-1-git-send-email-sohil.mehta@intel.com> <1515556102-34150-4-git-send-email-sohil.mehta@intel.com> Organization: Intel Finland Oy Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.26.3-1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On Tue, 2018-01-09 at 19:48 -0800, Sohil Mehta wrote: > Debugfs extension to dump all the register contents for each IOMMU > device to the user space via debugfs. > > example: > root@OTC-KBLH-01:~# cat /sys/kernel/debug/intel_iommu/iommu_regset > > DMAR: dmar1: reg_base_addr fed90000 > Name Offset Contents > VER 0x00 0x0000000000000010 > CAP 0x08 0x01c0000c40660462 > ECAP 0x10 0x0000019e2ff0505e > GCMD 0x18 0x0000000000000000 > GSTS 0x1c 0x00000000c7000000 > RTADDR 0x20 0x00000004558d6800 > CCMD 0x28 0x0800000000000000 > FSTS 0x34 0x0000000000000000 > FECTL 0x38 0x0000000000000000 > FEDATA 0x3c 0xfee0100c00004141 > + seq_printf(m, "\nDMAR: %s: reg_base_addr %llx\n", > iommu->name, > + base); Can we get rid of leading '\n'? -- Andy Shevchenko Intel Finland Oy