Re: [PATCH 2/5 V6] x86/ioremap: strengthen the logic in early_memremap_pgprot_adjust() to adjust encryption mask

2018-09-04 Thread Dave Young
[snip] > > As previously mentioned, there are also many differences between kexec and > kdump. In general, > kexec needs to look at all of available physical memory, but kdump doesn't > need. > > For kexec, kexec-tools will read /sys/firmware/memmap and recreate the e820 > ranges for the 2nd >

Re: [PATCH 2/5 V6] x86/ioremap: strengthen the logic in early_memremap_pgprot_adjust() to adjust encryption mask

2018-09-04 Thread lijiang
在 2018年09月04日 09:51, Dave Young 写道: > On 09/04/18 at 09:29am, Dave Young wrote: >> On 09/04/18 at 08:44am, Dave Young wrote: >>> On 09/03/18 at 10:06pm, lijiang wrote: 在 2018年09月03日 10:45, Dave Young 写道: > On 08/31/18 at 04:19pm, Lianbo Jiang wrote: >> For kdump kernel, when SME is ena

[PATCH v4] iommu/iova: Optimise attempts to allocate iova from 32bit address range

2018-09-04 Thread Ganapatrao Kulkarni
As an optimisation for PCI devices, there is always first attempt been made to allocate iova from SAC address range. This will lead to unnecessary attempts, when there are no free ranges available. Adding fix to track recently failed iova address size and allow further attempts, only if requested s

Re: [PATCH v2 13/40] vfio: Add support for Shared Virtual Addressing

2018-09-04 Thread Xu Zaibo
Hi, On 2018/9/4 18:57, Jean-Philippe Brucker wrote: On 04/09/2018 03:12, Xu Zaibo wrote: On 2018/9/3 18:34, Jean-Philippe Brucker wrote: On 01/09/18 03:23, Xu Zaibo wrote: As one application takes a whole function while using VFIO-PCI, why do the application and the function need to enable PA

RE: [RFC PATCH v2 00/10] vfio/mdev: IOMMU aware mediated device

2018-09-04 Thread Tian, Kevin
> From: Lu Baolu [mailto:baolu...@linux.intel.com] > Sent: Thursday, August 30, 2018 12:09 PM > [...] > > In order to distinguish the IOMMU-capable mediated devices from those > which still need to rely on parent devices, this patch set adds a > domain type attribute to each mdev. > > enum mdev_

Re: [PATCH v3 1/2] iommu/arm-smmu-v3: fix unexpected CMD_SYNC timeout

2018-09-04 Thread Leizhen (ThunderTown)
On 2018/8/19 15:02, Leizhen (ThunderTown) wrote: > > > On 2018/8/16 17:27, Robin Murphy wrote: >> On 2018-08-16 10:18 AM, Will Deacon wrote: >>> On Thu, Aug 16, 2018 at 04:21:17PM +0800, Leizhen (ThunderTown) wrote: On 2018/8/15 20:26, Robin Murphy wrote: > On 15/08/18 11:23, Zhen Lei

Re: [PATCH v4 2/2] iommu/arm-smmu-v3: avoid redundant CMD_SYNCs if possible

2018-09-04 Thread Leizhen (ThunderTown)
On 2018/8/30 19:18, John Garry wrote: > On 19/08/2018 08:51, Zhen Lei wrote: >> spin_unlock_irqrestore(&smmu->cmdq.lock, flags); > > I find something like this adds support for combining CMD_SYNC commands for > regular polling mode: > > @@ -569,6 +569,7 @@ struct arm_smmu_device { >

RE: [RFC 01/13] iommu: Introduce bind_guest_stage API

2018-09-04 Thread Tian, Kevin
> From: Jean-Philippe Brucker [mailto:jean-philippe.bruc...@arm.com] > Sent: Tuesday, September 4, 2018 5:53 PM > > On 04/09/2018 09:41, Auger Eric wrote: > > I think the confusion comes from the different terminology used in VTD > > and ARM SMMU spec. > > > > Your PASID table ~ ARM SMMU Context D

Re: [RFCv2 PATCH 0/7] A General Accelerator Framework, WarpDrive

2018-09-04 Thread Alex Williamson
On Tue, 4 Sep 2018 11:00:19 -0400 Jerome Glisse wrote: > On Mon, Sep 03, 2018 at 08:51:57AM +0800, Kenneth Lee wrote: > > From: Kenneth Lee > > > > WarpDrive is an accelerator framework to expose the hardware capabilities > > directly to the user space. It makes use of the exist vfio and vfio-m

Re: [PATCH 3/7] vfio: add sdmdev support

2018-09-04 Thread kbuild test robot
Hi Kenneth, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on cryptodev/master] [also build test WARNING on v4.19-rc2 next-20180831] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0d

Re: [PATCH 3/7] vfio: add sdmdev support

2018-09-04 Thread kbuild test robot
Hi Kenneth, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on cryptodev/master] [also build test WARNING on v4.19-rc2 next-20180831] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url: https://github.com/0d

[RFC PATCH] vfio: vfio_sdmdev_groups[] can be static

2018-09-04 Thread kbuild test robot
Fixes: 1e47d5e60865 ("vfio: add sdmdev support") Signed-off-by: kbuild test robot --- vfio_sdmdev.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/vfio/sdmdev/vfio_sdmdev.c b/drivers/vfio/sdmdev/vfio_sdmdev.c index c6eb5d4..e7d3c23 100644 --- a/drivers/vfio/sdmd

Re: [RFCv2 PATCH 0/7] A General Accelerator Framework, WarpDrive

2018-09-04 Thread Jerome Glisse
On Mon, Sep 03, 2018 at 08:51:57AM +0800, Kenneth Lee wrote: > From: Kenneth Lee > > WarpDrive is an accelerator framework to expose the hardware capabilities > directly to the user space. It makes use of the exist vfio and vfio-mdev > facilities. So the user application can send request and DMA

Re: [PATCH v3 09/19] memory: tegra: Adapt to Tegra20 device-tree binding changes

2018-09-04 Thread Marcel Ziswiler via iommu
On Sat, 2018-08-18 at 18:54 +0300, Dmitry Osipenko wrote: > The tegra20-mc DT binding has been changed, GART has been squashed > into Memory Controller and now the clock property is mandatory for > Tegra20. Adapt driver the to DT changes. Minor nitpick concerning the commit message: Adapt driver

Re: [PATCH v2 13/40] vfio: Add support for Shared Virtual Addressing

2018-09-04 Thread Jean-Philippe Brucker
On 04/09/2018 03:12, Xu Zaibo wrote: > On 2018/9/3 18:34, Jean-Philippe Brucker wrote: >> On 01/09/18 03:23, Xu Zaibo wrote: >>> As one application takes a whole function while using VFIO-PCI, why do >>> the application and the >>> function need to enable PASID capability? (Since just one I/O page

Re: [RFC 01/13] iommu: Introduce bind_guest_stage API

2018-09-04 Thread Jean-Philippe Brucker
On 04/09/2018 09:41, Auger Eric wrote: > I think the confusion comes from the different terminology used in VTD > and ARM SMMU spec. > > Your PASID table ~ ARM SMMU Context Descriptor (CD) table > Your Root Entry/Context Entry ~ ARM SMMU Stream Table Entry (STE) In past discussions we used "PASID

Re: [PATCH v3 09/19] memory: tegra: Adapt to Tegra20 device-tree binding changes

2018-09-04 Thread Dmitry Osipenko
On Tuesday 04 September 2018 00:06:01 Marcel Ziswiler wrote: > On Sat, 2018-08-18 at 18:54 +0300, Dmitry Osipenko wrote: > > The tegra20-mc DT binding has been changed, GART has been squashed > > into Memory Controller and now the clock property is mandatory for > > Tegra20. Adapt driver the to DT

RE: [RFC 01/13] iommu: Introduce bind_guest_stage API

2018-09-04 Thread Tian, Kevin
> From: Auger Eric > Sent: Tuesday, September 4, 2018 4:41 PM > > Hi Kevin, > > On 09/04/2018 10:34 AM, Tian, Kevin wrote: > >> From: Auger Eric > >> Sent: Tuesday, September 4, 2018 4:11 PM > >> > >> Hi Kevin, > >> On 09/04/2018 09:57 AM, Tian, Kevin wrote: > From: Auger Eric > Sent: F

Re: [RFC 01/13] iommu: Introduce bind_guest_stage API

2018-09-04 Thread Auger Eric
Hi Kevin, On 09/04/2018 10:34 AM, Tian, Kevin wrote: >> From: Auger Eric >> Sent: Tuesday, September 4, 2018 4:11 PM >> >> Hi Kevin, >> On 09/04/2018 09:57 AM, Tian, Kevin wrote: From: Auger Eric Sent: Friday, August 31, 2018 9:52 PM Hi Jean-Philippe, On 08/31/2018 03

RE: [RFC 01/13] iommu: Introduce bind_guest_stage API

2018-09-04 Thread Tian, Kevin
> From: Auger Eric > Sent: Tuesday, September 4, 2018 4:11 PM > > Hi Kevin, > On 09/04/2018 09:57 AM, Tian, Kevin wrote: > >> From: Auger Eric > >> Sent: Friday, August 31, 2018 9:52 PM > >> > >> Hi Jean-Philippe, > >> > >> On 08/31/2018 03:11 PM, Jean-Philippe Brucker wrote: > >>> Hi Eric, > >>>

Re: [RFC 01/13] iommu: Introduce bind_guest_stage API

2018-09-04 Thread Auger Eric
Hi Kevin, On 09/04/2018 09:57 AM, Tian, Kevin wrote: >> From: Auger Eric >> Sent: Friday, August 31, 2018 9:52 PM >> >> Hi Jean-Philippe, >> >> On 08/31/2018 03:11 PM, Jean-Philippe Brucker wrote: >>> Hi Eric, >>> >>> On 23/08/18 16:25, Auger Eric wrote: > +int iommu_bind_guest_stage(struct iom

RE: [RFC 01/13] iommu: Introduce bind_guest_stage API

2018-09-04 Thread Tian, Kevin
> From: Auger Eric > Sent: Friday, August 31, 2018 9:52 PM > > Hi Jean-Philippe, > > On 08/31/2018 03:11 PM, Jean-Philippe Brucker wrote: > > Hi Eric, > > > > On 23/08/18 16:25, Auger Eric wrote: > >>> +int iommu_bind_guest_stage(struct iommu_domain *domain, struct > device *dev, > >>> +