[PATCH v2 0/2] iommu/vt-d: Minor cleanups

2022-04-16 Thread Lu Baolu
Hi folks, This series include some minor cleanups for the VT-d drivers. No intentional functional impact. Best regards, baolu Change log: v1: initial post - https://lore.kernel.org/linux-iommu/20220409133006.3953129-1-baolu...@linux.intel.com/ v2: - Add a new patch to fold dmar_insert_one_d

[PATCH v2 2/2] iommu/vt-d: Fold dmar_insert_one_dev_info() into its caller

2022-04-16 Thread Lu Baolu
Fold dmar_insert_one_dev_info() into domain_add_dev_info() which is its only caller. No intentional functional impact. Suggested-by: Christoph Hellwig Signed-off-by: Lu Baolu --- drivers/iommu/intel/iommu.c | 110 +--- 1 file changed, 51 insertions(+), 59 deleti

[PATCH v2 1/2] iommu/vt-d: Change return type of dmar_insert_one_dev_info()

2022-04-16 Thread Lu Baolu
The dmar_insert_one_dev_info() returns the pass-in domain on success and NULL on failure. This doesn't make much sense. Change it to an integer. Signed-off-by: Lu Baolu --- drivers/iommu/intel/iommu.c | 27 +++ 1 file changed, 11 insertions(+), 16 deletions(-) diff --git

[PATCH 0/3] iommu/vt-d: Some fine tuning of SVA

2022-04-16 Thread Lu Baolu
Hi folks, This includes several tunings of Intel SVA implementation. I plan to target them for v5.19. Please help to review. Best regards, baolu Lu Baolu (3): iommu/vt-d: Set PGSNP bit in pasid table entry for sva binding iommu/vt-d: Drop stop marker messages iommu/vt-d: Size Page Request

[PATCH 1/3] iommu/vt-d: Set PGSNP bit in pasid table entry for sva binding

2022-04-16 Thread Lu Baolu
This field make the requests snoop processor caches irrespective of other attributes in the request or other fields in paging structure entries used to translate the request. The latest VT-d specification states that this field is treated as Reserved(0) for implementations not supporting Snoop Cont

[PATCH 2/3] iommu/vt-d: Drop stop marker messages

2022-04-16 Thread Lu Baolu
The VT-d driver explicitly drains the pending page requests when a CPU page table (represented by a mm struct) is unbound from a PASID according to the procedures defined in the VT-d spec. Hence, there's no need to report the stop-marker message in prq_event_thread(). The stop marker messages do no

[PATCH 3/3] iommu/vt-d: Size Page Request Queue to avoid overflow condition

2022-04-16 Thread Lu Baolu
PRQ overflow may cause I/O throughput congestion, resulting in unnecessary degradation of IO performance. Appropriately increasing the length of PRQ can greatly reduce the occurrence of PRQ overflow. The count of maximum page requests that can be generated in parallel by a PCIe device is statically

Re: [GIT PULL] dma-mapping fixes for Linux 5.18

2022-04-16 Thread pr-tracker-bot
The pull request you sent on Sat, 16 Apr 2022 07:55:18 +0200: > git://git.infradead.org/users/hch/dma-mapping.git tags/dma-mapping-5.18-2 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/b00868396dbd23bb6875f4096b6e59e1b17d67de Thank you! -- Deet-doot-dot, I am a bot.