Re: [PATCH 02/16] PCI/P2PDMA: Avoid pci_get_slot() which sleeps

2021-05-01 Thread John Hubbard
On 4/8/21 10:01 AM, Logan Gunthorpe wrote: In order to use upstream_bridge_distance_warn() from a dma_map function, it must not sleep. However, pci_get_slot() takes the pci_bus_sem so it might sleep. In order to avoid this, try to get the host bridge's device from bus->self, and if that is not s

Re: [PATCH 01/16] PCI/P2PDMA: Pass gfp_mask flags to upstream_bridge_distance_warn()

2021-05-01 Thread John Hubbard
On 4/8/21 10:01 AM, Logan Gunthorpe wrote: In order to call upstream_bridge_distance_warn() from a dma_map function, it must not sleep. The only reason it does sleep is to allocate the seqbuf to print which devices are within the ACS path. Switch the kmalloc call to use a passed in gfp_mask and

Re: [PATCH 00/16] Add new DMA mapping operation for P2PDMA

2021-05-01 Thread John Hubbard
On 4/8/21 10:01 AM, Logan Gunthorpe wrote: Hi, This patchset continues my work to to add P2PDMA support to the common dma map operations. This allows for creating SGLs that have both P2PDMA and regular pages which is a necessary step to allowing P2PDMA pages in userspace. The earlier RFC[1] gen

Re: [git pull] IOMMU Updates for Linux v5.13

2021-05-01 Thread pr-tracker-bot
The pull request you sent on Fri, 30 Apr 2021 16:17:18 +0200: > git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu.git > tags/iommu-updates-v5.13 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/4f9701057a9cc1ae6bfc533204c9d3ba386687de Thank you! -- Deet-doot-d