: Add debugfs extension to show Pasid table contents
Sohil Mehta (1):
iommu/vt-d: Debugfs support for Intel IOMMU Interrupt remapping
drivers/iommu/Kconfig | 10 +
drivers/iommu/Makefile| 1 +
drivers/iommu/intel-iommu-debug.c | 429
8a2800
Extended Root tbl entries:
Bus 0 L: 4016f4001 H: 0
Lower Context table entries for Bus: 0
[entry] DID :B :D .FLow High
[80]:00:0a.00 4016f3a05 102
Higher Context tbl entries for Bus: 0
[80]:00:0a.00 4015c 671b8000
Cc: Sohil Mehta <
e Addr : 8db2c160
Pasid table entries for domain:
[Entry] Contents
[0] 26a609801
Cc: Sohil Mehta <sohil.me...@intel.com>
Cc: Fenghua Yu <fenghua...@intel.com>
Cc: Jacob Pan <jacob.jun@linux.intel.com>
Cc: Ashok Raj <ashok@intel.com>
0x28 0x0800
FSTS 0x34 0x
FECTL0x38 0x
FEDATA 0x3c 0xfee0100c4141
Cc: Sohil Mehta <sohil.me...@intel.com>
Cc: Fenghua Yu <fenghua...@intel.com>
Cc: Jacob Pan <jacob.jun@linux.intel.com>
Cc: Ashok
intel.com>
Signed-off-by: Sohil Mehta <sohil.me...@intel.com>
---
drivers/iommu/intel-iommu-debug.c | 115 ++
1 file changed, 115 insertions(+)
diff --git a/drivers/iommu/intel-iommu-debug.c
b/drivers/iommu/intel-iommu-debug.c
index 2de4f1b..102aca6 10
From: Gayatri Kammela <gayatri.kamm...@intel.com>
Enable Intel IOMMU debug to export Intel IOMMU internals in debugfs
Cc: Sohil Mehta <sohil.me...@intel.com>
Cc: Fenghua Yu <fenghua...@intel.com>
Cc: Ashok Raj <ashok@intel.com>
Signed-off-by: Jacob Pan <jacob.jun.
e Addr : 8db2c160
Pasid table entries for domain:
[Entry] Contents
[0] 26a609801
Cc: Sohil Mehta <sohil.me...@intel.com>
Cc: Fenghua Yu <fenghua...@intel.com>
Cc: Jacob Pan <jacob.jun@linux.intel.com>
Cc: Ashok Raj <ashok@intel.com>
:00:1f.06 4467c9001 602
Root tbl entries:
Bus 1 L: 3fc8c2001 H: 0
Context table entries for Bus: 1
[entry] DID :B :D .FLow High
[0] :01:00.00 3fc8c3001 402
Cc: Sohil Mehta <sohil.me...@intel.com>
Cc: Fenghua Yu <fenghua...@intel.com>
Cc
intel.com>
Signed-off-by: Sohil Mehta <sohil.me...@intel.com>
---
v2: Handle the case when IR is not enabled. Fix seq_printf formatting
drivers/iommu/intel-iommu-debug.c | 123 ++
1 file changed, 123 insertions(+)
diff --git a/drivers/iommu/intel-
8a2800
Extended Root tbl entries:
Bus 0 L: 4016f4001 H: 0
Lower Context table entries for Bus: 0
[entry] DID :B :D .FLow High
[80]:00:0a.00 4016f3a05 102
Higher Context tbl entries for Bus: 0
[80]:00:0a.00 4015c 671b8000
Cc: Sohil Mehta <
0x28 0x0800
FSTS 0x34 0x
FECTL0x38 0x
FEDATA 0x3c 0xfee0100c4141
Cc: Sohil Mehta <sohil.me...@intel.com>
Cc: Fenghua Yu <fenghua...@intel.com>
Cc: Jacob Pan <jacob.jun@linux.intel.com>
Cc: Ashok
to show extended context internals
iommu/vt-d: Add debugfs extension to show register contents
iommu/vt-d: Add debugfs extension to show Pasid table contents
Sohil Mehta (1):
iommu/vt-d: Add debugfs support for Intel IOMMU Interrupt remapping
drivers/iommu/Kconfig | 10
0x28 0x0800
FSTS 0x34 0x
FECTL0x38 0x
FEDATA 0x3c 0xfee0100c4141
Cc: Sohil Mehta <sohil.me...@intel.com>
Cc: Fenghua Yu <fenghua...@intel.com>
Cc: Jacob Pan <jacob.jun@linux.intel.com>
Cc: Ashok
From: Gayatri Kammela <gayatri.kamm...@intel.com>
Enable Intel IOMMU debug to export Intel IOMMU internals in debugfs
Cc: Sohil Mehta <sohil.me...@intel.com>
Cc: Fenghua Yu <fenghua...@intel.com>
Cc: Ashok Raj <ashok@intel.com>
Signed-off-by: Jacob Pan <jacob.jun.
intel.com>
Signed-off-by: Sohil Mehta <sohil.me...@intel.com>
---
v4: Remove the unused function parameter
Fix checkpatch.pl warnings
Remove error reporting for debugfs_create_file function
Remove redundant IOMMU null check under for_each_active_iommu
v3: Use a macro for s
70e001 502
[254] :00:1f.06 4467c9001 602
Root tbl entries:
Bus 1 L: 3fc8c2001 H: 0
Context table entries for Bus: 1
[entry] DID :B :D .FLow High
[0] :01:00.00 3fc8c3001 402
Cc: Sohil Mehta <sohil.me...@intel.com>
Cc: Fenghua Yu <fenghua...@intel
e Addr : 8e2d4260
Pasid table entries for domain 0:
[Entry] Contents
[0] 12c409801
Cc: Sohil Mehta <sohil.me...@intel.com>
Cc: Fenghua Yu <fenghua...@intel.com>
Cc: Jacob Pan <jacob.jun@linux.intel.com>
Cc: Ashok Raj <ashok@intel.com>
2
[254] :00:1f.06 4467c9001 602
Root tbl entries:
Bus 1 L: 3fc8c2001 H: 0
Context table entries for Bus: 1
[entry] DID :B :D .FLow High
[0] :01:00.00 3fc8c3001 402
Cc: Sohil Mehta <sohil.me...@intel.com>
Cc: Fenghua Yu <fenghua...@intel.com>
Cc
context internals
iommu/vt-d: Add debugfs extension to show register contents
iommu/vt-d: Add debugfs extension to show Pasid table contents
Sohil Mehta (1):
iommu/vt-d: Add debugfs support for Intel IOMMU Interrupt remapping
drivers/iommu/Kconfig | 10 +
drivers/iommu/Makefile
0x28 0x0800
FSTS 0x34 0x
FECTL0x38 0x
FEDATA 0x3c 0xfee0100c4141
Cc: Sohil Mehta <sohil.me...@intel.com>
Cc: Fenghua Yu <fenghua...@intel.com>
Cc: Jacob Pan <jacob.jun@linux.intel.com>
Cc: Ashok
Table Addr : 8db2c160
Pasid table entries for domain:
[Entry] Contents
[0] 26a609801
Cc: Sohil Mehta <sohil.me...@intel.com>
Cc: Fenghua Yu <fenghua...@intel.com>
Cc: Jacob Pan <jacob.jun@linux.intel.com>
Cc: Ashok Raj <ashok@intel.
e Addr:4558a2800
Extended Root tbl entries:
Bus 0 L: 4016f4001 H: 0
Lower Context table entries for Bus: 0
[entry] DID :B :D .FLow High
[80]:00:0a.00 4016f3a05 102
Higher Context tbl entries for Bus: 0
[80]:00:0a.00 4015c 671b8000
Cc: Sohil
intel.com>
Signed-off-by: Sohil Mehta <sohil.me...@intel.com>
---
v3: Use a macro for seq file operations
Change the intel_iommu_interrupt_remap file name to ir_translation_struct
v2: Handle the case when IR is not enabled. Fix seq_printf formatting
drivers/i
From: Gayatri Kammela <gayatri.kamm...@intel.com>
Enable Intel IOMMU debug to export Intel IOMMU internals in debugfs
Cc: Sohil Mehta <sohil.me...@intel.com>
Cc: Fenghua Yu <fenghua...@intel.com>
Cc: Ashok Raj <ashok@intel.com>
Signed-off-by: Jacob Pan <jacob.jun.
intel.com>
Signed-off-by: Sohil Mehta <sohil.me...@intel.com>
---
v5: Fix seq_puts formatting and remove leading '\n's
v4: Remove the unused function parameter
Fix checkpatch.pl warnings
Remove error reporting for debugfs_create_file function
Remove redundant IOMMU null check under
e Addr : 8e2d4260
Pasid table entries for domain 0:
[Entry] Contents
[0] 12c409801
Cc: Sohil Mehta <sohil.me...@intel.com>
Cc: Fenghua Yu <fenghua...@intel.com>
Cc: Jacob Pan <jacob.jun@linux.intel.com>
Cc: Ashok Raj <ashok@intel.com>
From: Gayatri Kammela <gayatri.kamm...@intel.com>
Enable Intel IOMMU debug to export Intel IOMMU internals in debugfs
Cc: Sohil Mehta <sohil.me...@intel.com>
Cc: Fenghua Yu <fenghua...@intel.com>
Cc: Ashok Raj <ashok@intel.com>
Signed-off-by: Jacob Pan <jacob.jun.
Gayatri Kammela (4):
iommu/vt-d: Add debugfs support for Intel IOMMU internals
iommu/vt-d: Add debugfs support to show context internals
iommu/vt-d: Add debugfs support to show register contents
iommu/vt-d: Add debugfs support to show Pasid table contents
Sohil Mehta (1):
iommu/vt-d: Add
70e001 502
[254] :00:1f.06 4467c9001 602
Root tbl entries:
Bus 1 L: 3fc8c2001 H: 0
Context table entries for Bus: 1
[entry] DID :B :D .FLow High
[0] :01:00.00 3fc8c3001 402
Cc: Sohil Mehta <sohil.me...@intel.com>
Cc: Fenghua Yu <fenghua...@intel
0x28 0x0800
FSTS 0x34 0x
FECTL0x38 0x
FEDATA 0x3c 0xfee0100c4141
Cc: Sohil Mehta <sohil.me...@intel.com>
Cc: Fenghua Yu <fenghua...@intel.com>
Cc: Jacob Pan <jacob.jun@linux.intel.com>
Cc: Ashok
intel.com>
Signed-off-by: Sohil Mehta <sohil.me...@intel.com>
---
v6: Change a couple of seq_puts to seq_putc
v5: Fix seq_puts formatting and remove leading '\n's
v4: Remove the unused function parameter
Fix checkpatch.pl warnings
Remove error reporting for debugfs_create_file funct
e Addr : 8e2d4260
Pasid table entries for domain 0:
[Entry] Contents
[0] 12c409801
Cc: Sohil Mehta <sohil.me...@intel.com>
Cc: Fenghua Yu <fenghua...@intel.com>
Cc: Jacob Pan <jacob.jun@linux.intel.com>
Cc: Ashok Raj <ashok@intel.com>
0x28 0x0800
FSTS 0x34 0x
FECTL0x38 0x
FEDATA 0x3c 0xfee0100c4141
Cc: Sohil Mehta <sohil.me...@intel.com>
Cc: Fenghua Yu <fenghua...@intel.com>
Cc: Jacob Pan <jacob.jun@linux.intel.com>
Cc: Ashok
From: Gayatri Kammela <gayatri.kamm...@intel.com>
Enable Intel IOMMU debug to export Intel IOMMU internals in debugfs
Cc: Sohil Mehta <sohil.me...@intel.com>
Cc: Fenghua Yu <fenghua...@intel.com>
Cc: Ashok Raj <ashok@intel.com>
Signed-off-by: Jacob Pan <jacob.jun.
70e001 502
[254] :00:1f.06 4467c9001 602
Root tbl entries:
Bus 1 L: 3fc8c2001 H: 0
Context table entries for Bus: 1
[entry] DID :B :D .FLow High
[0] :01:00.00 3fc8c3001 402
Cc: Sohil Mehta <sohil.me...@intel.com>
Cc: Fenghua Yu <fenghua...@intel
to show register contents
iommu/vt-d: Add debugfs support to show Pasid table contents
Sohil Mehta (1):
iommu/vt-d: Add debugfs support for Interrupt remapping
drivers/iommu/Kconfig | 10 ++
drivers/iommu/Makefile| 1 +
drivers/iommu/intel-iommu-debug.c | 346
From: Gayatri Kammela <gayatri.kamm...@intel.com>
To reuse the static functions and the struct declarations, move them to
corresponding header files and export the needed functions.
Cc: Sohil Mehta <sohil.me...@intel.com>
Cc: Fenghua Yu <fenghua...@intel.com>
Cc: Ashok Raj &l
table contents
Sohil Mehta (1):
iommu/vt-d: Add debugfs support for Interrupt remapping
drivers/iommu/Kconfig | 8 +
drivers/iommu/Makefile| 1 +
drivers/iommu/intel-iommu-debug.c | 338 ++
drivers/iommu/intel-iommu.c | 34
ddress: 746cb0af
Pasid Table Entries for domain 0:
[Entry] Contents
[0] 12c409801
Cc: Fenghua Yu <fenghua...@intel.com>
Cc: Jacob Pan <jacob.jun@linux.intel.com>
Cc: Ashok Raj <ashok@intel.com>
Co-Developed-by: Sohil Mehta <sohil.me...@intel.com&
1:00.0401e04001 602
Cc: Fenghua Yu <fenghua...@intel.com>
Cc: Ashok Raj <ashok@intel.com>
Co-Developed-by: Sohil Mehta <sohil.me...@intel.com>
Signed-off-by: Jacob Pan <jacob.jun@linux.intel.com>
Signed-off-by: Sohil Mehta <sohil.me...@intel.com>
Signed-o
n <jacob.jun@linux.intel.com>
Cc: Ashok Raj <ashok@intel.com>
Co-Developed-by: Sohil Mehta <sohil.me...@intel.com>
Signed-off-by: Sohil Mehta <sohil.me...@intel.com>
Signed-off-by: Gayatri Kammela <gayatri.kamm...@intel.com>
---
v7: Use macro for register set defi
Pan <jacob.jun@linux.intel.com>
Cc: Fenghua Yu <fenghua...@intel.com>
Cc: Ashok Raj <ashok@intel.com>
Co-Developed-by: Gayatri Kammela <gayatri.kamm...@intel.com>
Signed-off-by: Gayatri Kammela <gayatri.kamm...@intel.com>
Signed-off-by: Sohil Mehta <sohi
the actual supported address
width to the maximum support available in IOMMU hardware.
Signed-off-by: Sohil Mehta <sohil.me...@intel.com>
---
drivers/iommu/intel-iommu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/iommu/intel-iommu.c b/drivers/iommu/intel-i
-directed-io-spec.pdf
Sohil Mehta (4):
iommu/vt-d: Enable upto 57 bits of domain address width
iommu/vt-d: Add a check for 1GB page support
iommu/vt-d: Add a check for 5-level paging support
iommu/vt-d: Enable 5-level paging mode in the PASID entry
drivers/iommu/intel-iommu.c | 2 +-
drivers
Add a check to verify IOMMU 1GB page support. If the CPU supports 1GB
pages but the IOMMU does not support it then disable SVM by not
allocating PASID tables.
Signed-off-by: Sohil Mehta <sohil.me...@intel.com>
---
drivers/iommu/intel-svm.c | 4
include/linux/intel-iommu.h | 1 +
2
If the CPU has support for 5-level paging enabled and the IOMMU also
supports 5-level paging then enable the 5-level paging mode for first-
level translations - used when SVM is enabled.
Signed-off-by: Sohil Mehta <sohil.me...@intel.com>
---
drivers/iommu/intel-svm.c | 15 +--
Add a check to verify IOMMU 5-level paging support. If the CPU supports
supports 5-level paging but the IOMMU does not support it then disable
SVM by not allocating PASID tables.
Signed-off-by: Sohil Mehta <sohil.me...@intel.com>
---
drivers/iommu/intel-svm.c | 4
include/linux
Baolu
Cc: Jacob Pan
Cc: Fenghua Yu
Cc: Ashok Raj
Co-Developed-by: Gayatri Kammela
Signed-off-by: Gayatri Kammela
Reviewed-by: Andy Shevchenko
Signed-off-by: Sohil Mehta
---
v8: Improve IR table formatting
Use irq lock to proctect IRTE access
v7: Print the IR table physical base address
248 00:1f.0 202 4564bf001
Cc: Lu Baolu
Cc: Fenghua Yu
Cc: Ashok Raj
Cc: Jacob Pan
Co-Developed-by: Gayatri Kammela
Signed-off-by: Gayatri Kammela
Reviewed-by: Andy Shevchenko
Reviewed-by: Lu Baolu
Signed-off-by: Sohil Mehta
---
v8: Remove extended context support since
-by: Sohil Mehta
---
v8: Move to the common iommu debugfs directory
Simplify and split the patches differently
Change filename to intel-iommu-debugfs.c
drivers/iommu/Kconfig | 13 +
drivers/iommu/Makefile | 1 +
drivers/iommu/intel-iommu-debugfs.c | 20
Shevchenko
Reviewed-by: Lu Baolu
Co-Developed-by: Sohil Mehta
Signed-off-by: Sohil Mehta
---
v8: Add MTRR and Virtual command register support
Use the iommu register lock to protect register access
v7: Use macro for register set definitions
Fix compiler warning for readq with 32bit
Add new register definitions added in the VT-d 3.0 specification. Also
include registers that were missing previously.
Cc: Lu Baolu
Cc: Fenghua Yu
Cc: Jacob Pan
Cc: Ashok Raj
Cc: Gayatri Kammela
Signed-off-by: Sohil Mehta
---
v8: Simplify and split the patches differently
include/linux
Sohil Mehta (5):
iommu/vt-d: Relocate struct/function declarations to its header files
iommu/vt-d: Update register definitions to VT-d 3.0 specification
iommu/vt-d: Enable base Intel IOMMU debugfs support
iommu/vt-d: Add debugfs support for Interrupt remapping
iommu/vt-d: Add debugfs
To reuse the static functions and the struct declarations, move them to
corresponding header files and export the needed functions.
Cc: Lu Baolu
Cc: Fenghua Yu
Cc: Jacob Pan
Cc: Ashok Raj
Reviewed-by: Andy Shevchenko
Signed-off-by: Gayatri Kammela
Signed-off-by: Sohil Mehta
---
v8: Remove
Cc: Jacob Pan
Cc: Lu Baolu
Reviewed-by: Lu Baolu
Reported-by: Ramos Falcon, Ernesto R
Tested-by: Ricardo Neri
Signed-off-by: Sohil Mehta
---
drivers/iommu/intel-iommu.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/iommu/intel-iommu.c b/drivers/iommu/intel-iom
55 matches
Mail list logo