Unable to turn on user SVA feature when intel_iommu=on,sm_on
- Dominant language
- C
- Stars
- 72
- Forks
- 36
- PR merge metrics
- No merged PRs in 30d
Description
I rebooted the system with "intel_iommu=on,sm_on" but the "Unable to turn on user SVA function" is still there.
CPU: Intel(R) Xeon(R) Gold 6448H
System: Ubuntu 22.04
Kernel: 6.2.0-34-generic
```
$ accel-config -v
4.1.1.git435fa62b
$ cat /proc/cmdline
BOOT_IMAGE=/vmlinuz-6.2.0-34-generic root=/dev/mapper/ubuntu--vg-ubuntu--lv ro intel_iommu=on,sm_on iommu=pt no5lvl
$ sudo dmesg | grep idxd
[ 7.927615] idxd 0000:f2:01.0: enabling device (0144 -> 0146)
[ 7.927634] idxd 0000:f2:01.0: Unable to turn on user SVA feature.
[ 7.947937] idxd 0000:f2:01.0: Intel(R) Accelerator Device (v100)
[ 7.947971] idxd 0000:f2:02.0: enabling device (0140 -> 0142)
[ 7.947990] idxd 0000:f2:02.0: Unable to turn on user SVA feature.
[ 7.987380] idxd 0000:f2:02.0: Intel(R) Accelerator Device (v100)
[ 1543.197818] idxd 0000:f2:01.0: Unable to turn on user SVA feature.
[ 1543.202996] idxd 0000:f2:01.0: Intel(R) Accelerator Device (v100)
[ 1543.203158] idxd 0000:f2:02.0: Unable to turn on user SVA feature.
[ 1543.208112] idxd 0000:f2:02.0: Intel(R) Accelerator Device (v100)
$ sudo dmesg | grep -i dmar
[ 0.010986] ACPI: DMAR 0x000000006FF7A000 00027C (v01 SUPERM SMCI--MB 00000001 INTL 20091013)
[ 0.011060] ACPI: Reserving DMAR table memory at [mem 0x6ff7a000-0x6ff7a27b]
[ 0.170988] DMAR: IOMMU enabled
[ 0.170989] DMAR: Enable scalable mode if hardware supports
[ 0.432222] DMAR: Host address width 46
[ 0.432224] DMAR: DRHD base: 0x000000a9ffc000 flags: 0x0
[ 0.432231] DMAR: dmar0: reg_base_addr a9ffc000 ver 6:0 cap 9ed008c40780466 ecap 3ee9e86f050df
[ 0.432236] DMAR: DRHD base: 0x000000be3fc000 flags: 0x0
[ 0.432240] DMAR: dmar1: reg_base_addr be3fc000 ver 6:0 cap 9ed008c40780466 ecap 3ee9e86f050df
[ 0.432244] DMAR: DRHD base: 0x000000d27fc000 flags: 0x0
[ 0.432251] DMAR: dmar2: reg_base_addr d27fc000 ver 6:0 cap 9ed008c40780466 ecap 3ee9e86f050df
[ 0.432254] DMAR: DRHD base: 0x000000e6bfc000 flags: 0x0
[ 0.432259] DMAR: dmar3: reg_base_addr e6bfc000 ver 6:0 cap 9ed008c40780466 ecap 3ee9e86f050df
[ 0.432263] DMAR: DRHD base: 0x000000faffc000 flags: 0x0
[ 0.432267] DMAR: dmar4: reg_base_addr faffc000 ver 6:0 cap 9ed008c40780466 ecap 3ee9e86f050df
[ 0.432270] DMAR: DRHD base: 0x000000fb7fc000 flags: 0x0
[ 0.432275] DMAR: dmar5: reg_base_addr fb7fc000 ver 6:0 cap 9ed008c40780466 ecap 3ef9e86f050df
[ 0.432278] DMAR: DRHD base: 0x000000957fc000 flags: 0x1
[ 0.432282] DMAR: dmar6: reg_base_addr 957fc000 ver 6:0 cap 9ed008c40780466 ecap 3ee9e86f050df
[ 0.432286] DMAR: RMRR base: 0x00000076edf000 end: 0x00000076f01fff
[ 0.432289] DMAR: RMRR base: 0x000000748bc000 end: 0x00000074b05fff
[ 0.432291] DMAR: ATSR flags: 0x0
[ 0.432293] DMAR: RHSA base: 0x000000957fc000 proximity domain: 0x0
[ 0.432296] DMAR: RHSA base: 0x000000a9ffc000 proximity domain: 0x0
[ 0.432298] DMAR: RHSA base: 0x000000be3fc000 proximity domain: 0x0
[ 0.432299] DMAR: RHSA base: 0x000000d27fc000 proximity domain: 0x0
[ 0.432301] DMAR: RHSA base: 0x000000e6bfc000 proximity domain: 0x0
[ 0.432303] DMAR: RHSA base: 0x000000faffc000 proximity domain: 0x0
[ 0.432305] DMAR: RHSA base: 0x000000fb7fc000 proximity domain: 0x0
[ 0.432307] DMAR: SATC flags: 0x0
[ 0.432310] DMAR-IR: IOAPIC id 8 under DRHD base 0x957fc000 IOMMU 6
[ 0.432313] DMAR-IR: HPET id 0 under DRHD base 0x957fc000
[ 0.432315] DMAR-IR: Queued invalidation will be enabled to support x2apic and Intr-remapping.
[ 0.433621] DMAR-IR: Enabled IRQ remapping in x2apic mode
[ 4.537603] DMAR: IOMMU feature pasid inconsistent
[ 4.537604] DMAR: IOMMU feature pasid inconsistent
[ 4.537606] DMAR: IOMMU feature pasid inconsistent
[ 4.537607] DMAR: IOMMU feature pasid inconsistent
[ 4.537609] DMAR: IOMMU feature pasid inconsistent
[ 4.537610] DMAR: IOMMU feature pasid inconsistent
[ 4.537611] DMAR: dmar5: Using Queued invalidation
[ 4.537618] DMAR: dmar4: Using Queued invalidation
[ 4.537620] DMAR: dmar3: Using Queued invalidation
[ 4.537622] DMAR: dmar2: Using Queued invalidation
[ 4.537625] DMAR: dmar1: Using Queued invalidation
[ 4.537630] DMAR: dmar0: Using Queued invalidation
[ 4.537632] DMAR: dmar6: Using Queued invalidation
[ 4.542595] DMAR: Intel(R) Virtualization Technology for Directed I/O
$ sudo lspci -vvv -s f2:01.0
f2:01.0 System peripheral: Intel Corporation Device 0b25
Subsystem: Intel Corporation Device 0000
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr+ Stepping- SERR+ FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- SERR-
Capabilities: [220 v1] Address Translation Service (ATS)
ATSCap: Invalidate Queue Depth: 00
ATSCtl: Enable+, Smallest Translation Unit: 00
Capabilities: [230 v1] Process Address Space ID (PASID)
PASIDCap: Exec- Priv+, Max PASID Width: 14
PASIDCtl: Enable+ Exec- Priv+
Capabilities: [240 v1] Page Request Interface (PRI)
PRICtl: Enable- Reset-
PRISta: RF- UPRGI- Stopped+
Page Request Capacity: 00000200, Page Request Allocation: 00000000
Kernel driver in use: idxd
Kernel modules: idxd
$ cat /sys/bus/dsa/devices/dsa0/pasid_enabled
0
```
Contributor guide
Assessment
This issue has not been assessed yet.