intel iommu pasid question
Hi all,
I am currently developing a pcie device driver on Linux kernel 4.4 or later. I want to use pasid to directly access user-mode memory. But I found that the iommu of my development machine does not support pasid.pasid_enabled(iommu) or pasid_supported(iommu) return false.
I want to know how to enable the pasid function of intel iommu,Is there a separate switch to enable the iommu pasid function or the iommu hardware implementation has decided whether to support PASID and the software cannot configure it?
How can I check which version of intel vt-d is implemented by iommu on my platform?Does the value of iommu's Version Register represent the vt-d version? the iommu version register of my intel xeon gold 5118 platform server is 1.0
_______________________________________________
iommu mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/iommu
Hi all,
I am currently developing a pcie device driver on Linux kernel 4.4 or later. I want to use pasid to directly access user-mode memory. But I found that the iommu of my development machine does not support pasid.pasid_enabled(iommu) or pasid_supported(iommu) return false.
I want to know how to enable the pasid function of intel iommu,Is there a separate switch to enable the iommu pasid function or the iommu hardware implementation has decided whether to support PASID and the software cannot configure it?
How can I check which version of intel vt-d is implemented by iommu on my platform?Does the value of iommu's Version Register represent the vt-d version? the iommu version register of my intel xeon gold 5118 platform server is 1.0
_______________________________________________
iommu mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/iommu
Quoted 5 lines
From: iommu [mailto:[email protected]] On Behalf Of ???
Sent: Saturday, January 18, 2020 12:21 PM
To: [email protected]
Subject: intel iommu pasid question
Quoted 7 lines
Hi all,
I am currently developing a pcie device driver on Linux kernel 4.4 or later. I want to use pasid to directly access user-mode memory. But I found that the iommu of my development machine does not support
pasid.pasid_enabled(iommu)orpasid_supported(iommu)return false.
Echo Baolu's comment.
Quoted 4 lines
I want to know how to enable the pasid function of intel iommu,Is there a separate switch to enable the iommu pasid function or the iommu hardware implementation has decided whether to support PASID and the software cannot configure it?
You can check if VT-d is enabled in Linux kernel by below command:
dmesg | grep “Intel(R) Virtualization Technology for Directed I/O”
Quoted 4 lines
How can I check which version of intel vt-d is implemented by iommu on my platform?Does the value of iommu's Version Register represent the vt-d version? the iommu version register of my intel xeon gold 5118 platform server is 1.0
You can check VT-d PASID support by echo "dmesg | grep “dmar”"
You should get some info like below. Check PASID support by checking bit 40 of ecap register.
[ 0.078285] DMAR: dmar1: reg_base_addr fed90000 ver 1:0 cap 1c0000c40660462 ecap 7e3ff0505e [ 0.078289] DMAR: dmar2: reg_base_addr fed91000 ver 1:0 cap d2008c40660462 ecap f050da
Also, if your kernel supports iommu debugfs, you may dump the translation. structures in /sys/kernel/debug/iommu/intel/dmar_translation_struct. There is a bit is Context Entry which enables PASID. (bit 3 of Context entry).
Regards,
Yi Liu
Quoted 5 lines
_______________________________________________
iommu mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/iommu
_______________________________________________
iommu mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/iommu
Hi Guangdi,
Quoted 6 lines · 周光迪
Hi all,
I am currently developing a pcie device driver on Linux kernel 4.4 or
later. I want to use pasid to directly access user-mode memory. But I
found that the iommu of my development machine does not supportpasid.pasid_enabled(iommu)orpasid_supported(iommu)return false.
Intel IOMMU driver currently supports SVA through APIs defined in include/linux/intel-svm.h. We are switching to use the APIs defined in driver/iommu/iommu.c, but it should last for some while.
Best regards,
baolu
_______________________________________________
iommu mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/iommu