Re: [PATCH] fix double ;;s in code

2018-02-20 Thread Jani Nikula
On Mon, 19 Feb 2018, Pavel Machek wrote: > On Mon 2018-02-19 16:41:35, Daniel Vetter wrote: >> Yeah, pls split this into one patch per area, with a suitable patch >> subject prefix. Look at git log of each file to get a feeling for what's >> the standard in each area. > > Yeah I can spend hour spl

Re: [PATCH 37/37] vfio: Add support for Shared Virtual Addressing

2018-02-20 Thread Jean-Philippe Brucker
On 16/02/18 19:33, Alex Williamson wrote: [...] >> +static int vfio_iommu_sva_init(struct device *dev, void *data) >> +{ >> + >> +int ret; >> + >> +ret = iommu_sva_device_init(dev, IOMMU_SVA_FEAT_PASID | >> +IOMMU_SVA_FEAT_IOPF, 0); >> +if (ret) >> +

Re: [PATCH 11/37] dt-bindings: document stall and PASID properties for IOMMU masters

2018-02-20 Thread Jean-Philippe Brucker
On 19/02/18 02:51, Rob Herring wrote: [...] >> +- pasid-bits: Some masters support multiple address spaces for DMA, by >> + tagging DMA transactions with an address space identifier. By default, >> + this is 0, which means that the device only has one address space. > > So 3 would mean 8 address

Re: [PATCH 1/4] iommu: Add virtio-iommu driver

2018-02-20 Thread Jean-Philippe Brucker
On 19/02/18 12:23, Tomasz Nowicki wrote: [...] >> +static int viommu_receive_resp(struct viommu_dev *viommu, int nr_sent, >> + struct list_head *sent) >> +{ >> + >> +unsigned int len; >> +int nr_received = 0; >> +struct viommu_request *req, *pending; >> + >> +

Re: [PATCH] fix double ;;s in code

2018-02-20 Thread Alex Deucher
On Tue, Feb 20, 2018 at 3:03 AM, Jani Nikula wrote: > On Mon, 19 Feb 2018, Pavel Machek wrote: >> On Mon 2018-02-19 16:41:35, Daniel Vetter wrote: >>> Yeah, pls split this into one patch per area, with a suitable patch >>> subject prefix. Look at git log of each file to get a feeling for what's >

Re: [PATCH] fix double ;;s in code

2018-02-20 Thread Joe Perches
On Tue, 2018-02-20 at 17:19 +1100, Michael Ellerman wrote: > Daniel Vetter writes: > > On Sun, Feb 18, 2018 at 11:00:56AM +0100, Christophe LEROY wrote: > > > Le 17/02/2018 à 22:19, Pavel Machek a écrit : > > > > > > > > Fix double ;;'s in code. > > > > > > > > Signed-off-by: Pavel Machek > > >

[PATCH] iommu/rockchip: Perform a reset on shutdown

2018-02-20 Thread Marc Zyngier
Trying to do a kexec whilst the iommus are still on is proving to be a challenging exercise. It is terribly unsafe, as we're reusing the memory allocated for the page tables, leading to a likely crash. Let's implement a shutdown method that will at least try to stop DMA from going crazy behind our

Re: [PATCH v7 0/5] Add Intel IOMMU debugfs support

2018-02-20 Thread Jacob Pan
On Sun, 18 Feb 2018 23:15:32 +0100 Yves-Alexis Perez wrote: > On Tue, 2018-02-13 at 13:40 -0800, Raj, Ashok wrote: > > This version has only hw dumps for now, but we plan to add some > > other things like walking 2nd level page-tables, or get some SVM > > specific data from the driver in the futu

Re: [PATCH 09/37] iommu/fault: Let handler return a fault response

2018-02-20 Thread Jacob Pan
On Mon, 12 Feb 2018 18:33:24 + Jean-Philippe Brucker wrote: > > +/** > + * enum page_response_code - Return status of fault handlers, > telling the IOMMU > + * driver how to proceed with the fault. > + * > + * @IOMMU_FAULT_STATUS_HANDLED: Stop processing the fault, and do > not send a > + *

Re: [PATCH] fix double ;;s in code

2018-02-20 Thread Andrew Morton
On Tue, 20 Feb 2018 10:03:56 +0200 Jani Nikula wrote: > On Mon, 19 Feb 2018, Pavel Machek wrote: > > On Mon 2018-02-19 16:41:35, Daniel Vetter wrote: > >> Yeah, pls split this into one patch per area, with a suitable patch > >> subject prefix. Look at git log of each file to get a feeling for w

RE: [PATCH v4 00/12] Intel IPU3 ImgU patchset

2018-02-20 Thread Mani, Rajmohan
Hi Mauro, > > > Subject: Re: [PATCH v4 00/12] Intel IPU3 ImgU patchset > > > > > > Hi, > > > > > > Em Fri, 17 Nov 2017 02:58:56 + > > > "Mani, Rajmohan" escreveu: > > > > > > > Here is an update on the IPU3 documentation that we are currently > > > > working > > > on. > > > > > > > > Image pr

Re: [PATCH v3] iommu/amd: Add support for fast IOTLB flushing

2018-02-20 Thread Suravee Suthikulpanit
Hi Joerg, On 2/13/18 8:29 PM, Joerg Roedel wrote: Hi Suravee, thanks for working on this. On Wed, Jan 31, 2018 at 12:01:14AM -0500, Suravee Suthikulpanit wrote: +static void amd_iommu_iotlb_range_add(struct iommu_domain *domain, + unsigned long iova, size_t

[PATCH v4] iommu/amd: Add support for fast IOTLB flushing

2018-02-20 Thread Suravee Suthikulpanit
Since AMD IOMMU driver currently flushes all TLB entries when page size is more than one, use the same interface for both iommu_ops.flush_iotlb_all() and iommu_ops.iotlb_sync(). Cc: Joerg Roedel Signed-off-by: Suravee Suthikulpanit --- Changes from v3 (https://patchwork.kernel.org/patch/10193235