RE: [RFC PATCH 0/6] Auxiliary IOMMU domains and Arm SMMUv3

2018-11-25 Thread Tian, Kevin
> From: Tian, Kevin > Sent: Monday, November 26, 2018 11:01 AM [...] > > aux-domain is just a normal domain (struct iommu_domain), what > > happens > > when a domain that was used as a primary domain and has bound > > aux-domains to it, is bound with iommu_aux_domain_attach() to another > > domain?

Re: [PATCH] mm: Replace all open encodings for NUMA_NO_NODE

2018-11-25 Thread Anshuman Khandual
On 11/24/2018 07:35 PM, Vinod Koul wrote: > On 23-11-18, 15:24, Anshuman Khandual wrote: > >> --- a/drivers/dma/dmaengine.c >> +++ b/drivers/dma/dmaengine.c >> @@ -386,7 +386,8 @@ EXPORT_SYMBOL(dma_issue_pending_all); >> static bool dma_chan_is_local(struct dma_chan *chan, int cpu) >> { >>

Re: [PATCH 6/9] iommu/dma-iommu.c: Convert to use vm_insert_range

2018-11-25 Thread Souptick Joarder
On Sat, Nov 24, 2018 at 3:04 AM Matthew Wilcox wrote: > > On Fri, Nov 23, 2018 at 05:23:06PM +, Robin Murphy wrote: > > On 15/11/2018 15:49, Souptick Joarder wrote: > > > Convert to use vm_insert_range() to map range of kernel > > > memory to user vma. > > > > > > Signed-off-by: Souptick Joard

Re: [RESEND PATCH v17 2/5] iommu/arm-smmu: Invoke pm_runtime during probe, add/remove device

2018-11-25 Thread Vivek Gautam
On 11/24/2018 12:06 AM, Will Deacon wrote: On Thu, Nov 22, 2018 at 05:32:24PM +0530, Vivek Gautam wrote: Hi Will, On Wed, Nov 21, 2018 at 11:09 PM Will Deacon wrote: On Fri, Nov 16, 2018 at 04:54:27PM +0530, Vivek Gautam wrote: From: Sricharan R The smmu device probe/remove and add/remo

Re: [PATCH v2 07/17] debugobjects: Move printk out of db lock critical sections

2018-11-25 Thread Sergey Senozhatsky
On (11/23/18 12:48), Petr Mladek wrote: [..] > > This should make serial consoles re-entrant. > > So printk->console_driver_write() hopefully will not deadlock. > > Is the re-entrance safe? Some risk might be acceptable in Oops/panic > situations. It is much less acceptable for random warnings. G

Re: [RESEND PATCH v17 5/5] iommu/arm-smmu: Add support for qcom,smmu-v2 variant

2018-11-25 Thread Tomasz Figa
On Sat, Nov 24, 2018 at 3:34 AM Will Deacon wrote: > > On Fri, Nov 23, 2018 at 03:06:29PM +0530, Vivek Gautam wrote: > > On Fri, Nov 23, 2018 at 2:52 PM Tomasz Figa wrote: > > > On Fri, Nov 23, 2018 at 6:13 PM Vivek Gautam > > > wrote: > > > > On Wed, Nov 21, 2018 at 11:09 PM Will Deacon > > >

Re: [PATCH v4 8/8] vfio/type1: Handle different mdev isolation type

2018-11-25 Thread Lu Baolu
Hi, On 11/23/18 10:23 PM, Auger Eric wrote: Hi Lu, On 11/5/18 8:34 AM, Lu Baolu wrote: This adds the support to determine the isolation type of a mediated device group by checking whether it has an iommu device. If an iommu device exists, an iommu domain will be allocated and then attached to

Re: [PATCH v4 7/8] vfio/type1: Add domain at(de)taching group helpers

2018-11-25 Thread Lu Baolu
Hi, On 11/23/18 10:13 PM, Auger Eric wrote: Hi Lu, On 11/5/18 8:34 AM, Lu Baolu wrote: This adds helpers to attach or detach a domain to a group. This will replace iommu_attach_group() which only works for pci devices. s/pci/non mdev? ... which doesn't work for mdev devices. If a domain

RE: [RFC PATCH 0/6] Auxiliary IOMMU domains and Arm SMMUv3

2018-11-25 Thread Tian, Kevin
> From: j...@8bytes.org [mailto:j...@8bytes.org] > Sent: Friday, November 23, 2018 7:21 PM > > On Wed, Nov 21, 2018 at 12:40:44PM +0800, Lu Baolu wrote: > > Can you please elaborate a bit more about the concept of subdomains? > > From my point of view, an aux-domain is a normal un-managed domain >

Re: [PATCH v4 4/8] iommu/vt-d: Attach/detach domains in auxiliary mode

2018-11-25 Thread Lu Baolu
Hi, On 11/23/18 6:49 PM, Auger Eric wrote: Hi Lu, On 11/5/18 8:34 AM, Lu Baolu wrote: When multiple domains per device has been enabled by the device driver, the device will tag the default PASID for the domain to all DMA traffics out of the subset of this device; and the IOMMU should translat

Re: [PATCH v4 2/8] iommu/vt-d: Add multiple domains per device query

2018-11-25 Thread Lu Baolu
Hi, On 11/23/18 6:49 PM, Auger Eric wrote: Hi, On 11/5/18 8:34 AM, Lu Baolu wrote: Add the response to IOMMU_DEV_ATTR_AUXD_CAPABILITY capability query through iommu_get_dev_attr(). commit title: Advertise auxiliary domain capability? Yes. I should make it consistent. Thanks. Cc: Ashok R

Re: [PATCH v4 1/8] iommu: Add APIs for multiple domains per device

2018-11-25 Thread Lu Baolu
Hi Eric, On 11/23/18 6:50 PM, Auger Eric wrote: Hi Lu, On 11/5/18 8:34 AM, Lu Baolu wrote: Sharing a physical PCI device in a finer-granularity way is becoming a consensus in the industry. IOMMU vendors are also engaging efforts to support such sharing as well as possible. Among the efforts, t

Re: [GIT PULL] dma-mapping fixes for 4.20

2018-11-25 Thread pr-tracker-bot
The pull request you sent on Sun, 25 Nov 2018 09:35:52 +0100: > git://git.infradead.org/users/hch/dma-mapping.git tags/dma-mapping-4.20-3 has been merged into torvalds/linux.git: https://git.kernel.org/torvalds/c/d6d460b89378b1bc6715574cdafd748ba59d5a27 Thank you! -- Deet-doot-dot, I am a bot.

[GIT PULL] dma-mapping fixes for 4.20

2018-11-25 Thread Christoph Hellwig
The following changes since commit c8ce94b8fe5324aca4c10baeb53dea2d5775a170: Merge tag 'mips_fixes_4.20_3' of git://git.kernel.org/pub/scm/linux/kernel/git/mips/linux (2018-11-20 14:31:00 -0800) are available in the Git repository at: git://git.infradead.org/users/hch/dma-mapping.git tags/