iommu/vt-d: Print pasid table entries MSB to LSB in debugfs

Commit dd5142ca5d ("iommu/vt-d: Add debugfs support to show scalable mode
DMAR table internals") prints content of pasid table entries from LSB to
MSB where as other entries are printed MSB to LSB. So, to maintain
uniformity among all entries and to not confuse the user, print MSB first.

Cc: Joerg Roedel <joro@8bytes.org>
Cc: Lu Baolu <baolu.lu@linux.intel.com>
Cc: Sohil Mehta <sohil.mehta@intel.com>
Cc: Jacob Pan <jacob.jun.pan@linux.intel.com>
Signed-off-by: Sai Praneeth Prakhya <sai.praneeth.prakhya@intel.com>
Fixes: dd5142ca5d ("iommu/vt-d: Add debugfs support to show scalable mode DMAR table internals")
Signed-off-by: Joerg Roedel <jroedel@suse.de>
This commit is contained in:
Sai Praneeth Prakhya 2019-07-21 17:22:07 -07:00 committed by Joerg Roedel
parent 9eed17d37c
commit 7f6cade5b6
1 changed files with 2 additions and 2 deletions

View File

@ -162,9 +162,9 @@ static inline void print_tbl_walk(struct seq_file *m)
(u64)0, (u64)0, (u64)0); (u64)0, (u64)0, (u64)0);
else else
seq_printf(m, "%-6d\t0x%016llx:0x%016llx:0x%016llx\n", seq_printf(m, "%-6d\t0x%016llx:0x%016llx:0x%016llx\n",
tbl_wlk->pasid, tbl_wlk->pasid_tbl_entry->val[0], tbl_wlk->pasid, tbl_wlk->pasid_tbl_entry->val[2],
tbl_wlk->pasid_tbl_entry->val[1], tbl_wlk->pasid_tbl_entry->val[1],
tbl_wlk->pasid_tbl_entry->val[2]); tbl_wlk->pasid_tbl_entry->val[0]);
} }
static void pasid_tbl_walk(struct seq_file *m, struct pasid_entry *tbl_entry, static void pasid_tbl_walk(struct seq_file *m, struct pasid_entry *tbl_entry,