uot;)
Cc:
Cc: Ashok Raj
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
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 it is
: 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
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
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
ow register contents
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
iom
CCMD0x280x0800
FSTS0x340x
FECTL 0x380x
FEDATA 0x3c0xfee010044021
Cc: Fenghua Yu
Cc: Jacob Pan
Cc: Ashok Raj
Co-Developed-by: Sohil Mehta
Signed-off-by: Sohil
Entries for domain 0:
[Entry] Contents
[0] 12c409801
Cc: Fenghua Yu
Cc: Jacob Pan
Cc: Ashok Raj
Co-Developed-by: Sohil Mehta
Signed-off-by: Sohil Mehta
Signed-off-by: Gayatri Kammela
---
v7: Improve code indentation and formatting
v6: No change
v5: No change
v4: Remove
: Fenghua Yu
Cc: Ashok Raj
Co-Developed-by: Sohil Mehta
Signed-off-by: Jacob Pan
Signed-off-by: Sohil Mehta
Signed-off-by: Gayatri Kammela
---
v7: Split patch 1/5 and 2/5 differently
Update commit message and copyright year
Fix typo in a comment
Simplify code
v6: Change the order of
Pan
Cc: Fenghua Yu
Cc: Ashok Raj
Co-Developed-by: Gayatri Kammela
Signed-off-by: Gayatri Kammela
Signed-off-by: Sohil Mehta
---
v7: Print the IR table physical base address
Simplify IR table formatting
v6: Change a couple of seq_puts to seq_putc
v5: Fix seq_puts formatting and remove
From: Gayatri Kammela
To reuse the static functions and the struct declarations, move them to
corresponding header files and export the needed functions.
Cc: Sohil Mehta
Cc: Fenghua Yu
Cc: Ashok Raj
Signed-off-by: Jacob Pan
Signed-off-by: Gayatri Kammela
---
v7: Split patch 1/5 and 2/5
upport to show Pasid 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
entries for domain 0:
[Entry] Contents
[0] 12c409801
Cc: Sohil Mehta
Cc: Fenghua Yu
Cc: Jacob Pan
Cc: Ashok Raj
Signed-off-by: Gayatri Kammela
---
v6: No change
v5: No change
v4: Remove the unused function parameter
Fix checkpatch.pl warnings
v3: No change
v2: Fix
40c7c880 41 00144300 40c7c88000418001
5 4300 0010 40c7c880 51 00144300 40c7c88000518001
Cc: Gayatri Kammela
Cc: Jacob Pan
Cc: Fenghua Yu
Cc: Ashok Raj
Signed-off-by: Sohil Mehta
---
v6: Change a couple of seq_puts to seq_putc
v5: Fix seq_puts formatting and remove
0x
FECTL0x38 0x
FEDATA 0x3c 0xfee0100c4141
Cc: Sohil Mehta
Cc: Fenghua Yu
Cc: Jacob Pan
Cc: Ashok Raj
Signed-off-by: Gayatri Kammela
---
v6: No change
v5: No change
v4: Fix checkpatch.pl warnings
Remove error reporting for
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
Cc: Fenghua Yu
Cc: Ashok Raj
Signed-off-by: Jacob Pan
Signed-off-by: Gayatri Kammela
---
v6
From: Gayatri Kammela
Enable Intel IOMMU debug to export Intel IOMMU internals in debugfs
Cc: Sohil Mehta
Cc: Fenghua Yu
Cc: Ashok Raj
Signed-off-by: Jacob Pan
Signed-off-by: Gayatri Kammela
---
v6: No change
v5: No change
v4: No change
v3: No change
v2: No change
drivers/iommu
d debugfs support 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
entries for domain 0:
[Entry] Contents
[0] 12c409801
Cc: Sohil Mehta
Cc: Fenghua Yu
Cc: Jacob Pan
Cc: Ashok Raj
Signed-off-by: Gayatri Kammela
---
v5: No change
v4: Remove the unused function parameter
Fix checkpatch.pl warnings
v3: No change
v2: Fix seq_printf
40c7c880 41 00144300 40c7c88000418001
5 4300 0010 40c7c880 51 00144300 40c7c88000518001
Cc: Gayatri Kammela
Cc: Jacob Pan
Cc: Fenghua Yu
Cc: Ashok Raj
Signed-off-by: Sohil Mehta
---
v5: Fix seq_puts formatting and remove leading '\n's
v4: Remove the unuse
From: Gayatri Kammela
Enable Intel IOMMU debug to export Intel IOMMU internals in debugfs
Cc: Sohil Mehta
Cc: Fenghua Yu
Cc: Ashok Raj
Signed-off-by: Jacob Pan
Signed-off-by: Gayatri Kammela
---
v5: No change
v4: No change
v3: No change
v2: No change
drivers/iommu/Kconfig | 10
0x
FECTL0x38 0x
FEDATA 0x3c 0xfee0100c4141
Cc: Sohil Mehta
Cc: Fenghua Yu
Cc: Jacob Pan
Cc: Ashok Raj
Signed-off-by: Gayatri Kammela
---
v5: No change
v4: Fix checkpatch.pl warnings
Remove error reporting for
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
Cc: Fenghua Yu
Cc: Ashok Raj
Signed-off-by: Jacob Pan
Signed-off-by: Gayatri Kammela
---
v5
pping is not enabled
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
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
---
drivers/iommu/intel-svm.c | 15 +--
1 file changed, 13 insertions
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
---
drivers/iommu/intel-svm.c | 4
include/linux/intel-iommu.h | 1 +
2 files
the actual supported address
width to the maximum support available in IOMMU hardware.
Signed-off-by: Sohil Mehta
---
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-iommu.c
index 4a2de34..457795b
-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
---
drivers/iommu/intel-svm.c | 4
include/linux/intel-iommu.h | 1 +
2 files changed, 5 insertions
From: Gayatri Kammela
Enable Intel IOMMU debug to export Intel IOMMU internals in debugfs
Cc: Sohil Mehta
Cc: Fenghua Yu
Cc: Ashok Raj
Signed-off-by: Jacob Pan
Signed-off-by: Gayatri Kammela
---
v4: No change
v3: No change
v2: No change
drivers/iommu/Kconfig | 10
0x
FECTL0x38 0x
FEDATA 0x3c 0xfee0100c4141
Cc: Sohil Mehta
Cc: Fenghua Yu
Cc: Jacob Pan
Cc: Ashok Raj
Signed-off-by: Gayatri Kammela
---
v4: Fix checkpatch.pl warnings
Remove error reporting for debugfs_create_file function
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
Cc: Fenghua Yu
Cc: Ashok Raj
Signed-off-by: Jacob Pan
Signed-off-by: Gayatri Kammela
---
v4
40c7c880 41 00144300 40c7c88000418001
5 4300 0010 40c7c880 51 00144300 40c7c88000518001
Cc: Gayatri Kammela
Cc: Jacob Pan
Cc: Fenghua Yu
Cc: Ashok Raj
Signed-off-by: Sohil Mehta
---
v4: Remove the unused function parameter
Fix checkpatch.pl warnings
Remove
entries for domain 0:
[Entry] Contents
[0] 12c409801
Cc: Sohil Mehta
Cc: Fenghua Yu
Cc: Jacob Pan
Cc: Ashok Raj
Signed-off-by: Gayatri Kammela
---
v4: Remove the unused function parameter
Fix checkpatch.pl warnings
v3: No change
v2: Fix seq_printf formatting
dd 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 debugfs support for Interrupt remapping
drivers/iommu/Kconfig | 10 ++
dri
40c7c880 41 00144300 40c7c88000418001
5 4300 0010 40c7c880 51 00144300 40c7c88000518001
Cc: Gayatri Kammela
Cc: Jacob Pan
Cc: Fenghua Yu
Cc: Ashok Raj
Signed-off-by: Sohil Mehta
---
v3: Use a macro for seq file operations
Change the intel_iommu_interrupt_remap
0x
FECTL0x38 0x
FEDATA 0x3c 0xfee0100c4141
Cc: Sohil Mehta
Cc: Fenghua Yu
Cc: Jacob Pan
Cc: Ashok Raj
Signed-off-by: Gayatri Kammela
---
v3: Use a macro for seq file operations
Change the intel_iommu_regset file name to
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
Cc: Fenghua Yu
Cc: Ashok Raj
Signed-off-by: Jacob Pan
Signed-off-by: Gayatri Kammela
---
v3: Add a macro
Pasid table entries for domain:
[Entry] Contents
[0] 26a609801
Cc: Sohil Mehta
Cc: Fenghua Yu
Cc: Jacob Pan
Cc: Ashok Raj
Signed-off-by: Gayatri Kammela
---
v3: No change
v2: Fix seq_printf formatting
drivers/iommu/intel-iommu-debug.c | 32
w 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 +
drivers/iomm
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
Cc: Fenghua Yu
Cc: Jacob Pan
Cc
From: Gayatri Kammela
Enable Intel IOMMU debug to export Intel IOMMU internals in debugfs
Cc: Sohil Mehta
Cc: Fenghua Yu
Cc: Ashok Raj
Signed-off-by: Jacob Pan
Signed-off-by: Gayatri Kammela
---
v3: No change
v2: No change
drivers/iommu/Kconfig | 10 ++
drivers/iommu
0x34 0x
FECTL0x38 0x
FEDATA 0x3c 0xfee0100c4141
Cc: Sohil Mehta
Cc: Fenghua Yu
Cc: Jacob Pan
Cc: Ashok Raj
Signed-off-by: Gayatri Kammela
---
v2: Fix seq_printf formatting
drivers/iommu/intel-iommu-debug.c | 96
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
Cc: Fenghua Yu
Cc: Jacob Pan
Cc: Ashok
0010 40c7c880 41 00144300 40c7c88000418001
5 4300 0010 40c7c880 51 00144300 40c7c88000518001
Cc: Gayatri Kammela
Cc: Jacob Pan
Cc: Fenghua Yu
Cc: Ashok Raj
Signed-off-by: Sohil Mehta
---
v2: Handle the case when IR is not enabled. Fix seq_printf formatting
From: Gayatri Kammela
Enable Intel IOMMU debug to export Intel IOMMU internals in debugfs
Cc: Sohil Mehta
Cc: Fenghua Yu
Cc: Ashok Raj
Signed-off-by: Jacob Pan
Signed-off-by: Gayatri Kammela
---
v2: No change
drivers/iommu/Kconfig | 10 ++
drivers/iommu/intel-iommu.c | 31
entries for domain:
[Entry] Contents
[0] 26a609801
Cc: Sohil Mehta
Cc: Fenghua Yu
Cc: Jacob Pan
Cc: Ashok Raj
Signed-off-by: Gayatri Kammela
---
v2: Fix seq_printf formatting
drivers/iommu/intel-iommu-debug.c | 32
drivers/iommu
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
Cc: Fenghua Yu
Cc: Ashok Raj
Signed-off-by: Jacob Pan
Signed-off-by: Gayatri Kammela
---
v2: No change
drivers
MU debugfs 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
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
Cc: Fenghua Yu
Cc: Ashok Raj
Signed-off-by: Jacob Pan
Signed-off-by: Gayatri Kammela
---
drivers/iommu/Makefile
0010 40c7c880 41 00144300 40c7c88000418001
5 4300 0010 40c7c880 51 00144300 40c7c88000518001
Cc: Gayatri Kammela
Cc: Jacob Pan
Cc: Fenghua Yu
Cc: Ashok Raj
Signed-off-by: Sohil Mehta
---
drivers/iommu/intel-iommu-debug.c | 115
0x34 0x
FECTL0x38 0x
FEDATA 0x3c 0xfee0100c4141
Cc: Sohil Mehta
Cc: Fenghua Yu
Cc: Jacob Pan
Cc: Ashok Raj
Signed-off-by: Gayatri Kammela
---
drivers/iommu/intel-iommu-debug.c | 97 +++
1
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
Cc: Fenghua Yu
Cc: Jacob Pan
Cc: Ashok
entries for domain:
[Entry] Contents
[0] 26a609801
Cc: Sohil Mehta
Cc: Fenghua Yu
Cc: Jacob Pan
Cc: Ashok Raj
Signed-off-by: Gayatri Kammela
---
drivers/iommu/intel-iommu-debug.c | 33 +
drivers/iommu/intel-svm.c | 8
From: Gayatri Kammela
Enable Intel IOMMU debug to export Intel IOMMU internals in debugfs
Cc: Sohil Mehta
Cc: Fenghua Yu
Cc: Ashok Raj
Signed-off-by: Jacob Pan
Signed-off-by: Gayatri Kammela
---
drivers/iommu/Kconfig | 10 ++
drivers/iommu/intel-iommu.c | 31
iommu/vt-d: 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-deb
58 matches
Mail list logo