Re: [RFC PATCH] virtio_ring: Use DMA API if guest memory is encrypted

2019-08-12 Thread Christoph Hellwig
On Sun, Aug 11, 2019 at 04:55:27AM -0400, Michael S. Tsirkin wrote: > On Sun, Aug 11, 2019 at 07:56:07AM +0200, Christoph Hellwig wrote: > > So we need a flag on the virtio device, exposed by the > > hypervisor (or hardware for hw virtio devices) that says: hey, I'm real, > > don't take a

[PATCH] iommu: exynos: Remove __init annotation from exynos_sysmmu_probe()

2019-08-12 Thread Marek Szyprowski
Exynos SYSMMU driver supports deferred probe. It happens when clocks needed for this driver are not yet available. Typically next calls to driver ->probe() happen before init section is free, but this is not really guaranteed. To make if safe, remove __init annotation from exynos_sysmmu_probe()

Re: [PATCH] iommu/arm-smmu-v3: add nr_ats_masters to avoid unnecessary operations

2019-08-12 Thread John Garry
On 01/08/2019 13:20, Zhen Lei wrote: When (smmu_domain->smmu->features & ARM_SMMU_FEAT_ATS) is true, even if a smmu domain does not contain any ats master, the operations of arm_smmu_atc_inv_to_cmd() and lock protection in arm_smmu_atc_inv_domain() are always executed. This will impact

Re: [PATCH 3/6] usb: add a HCD_DMA flag instead of guestimating DMA capabilities

2019-08-12 Thread Christoph Hellwig
> diff --git a/drivers/usb/host/ehci-ppc-of.c b/drivers/usb/host/ehci-ppc-of.c > index 576f7d79ad4e..9d17e0695e35 100644 > --- a/drivers/usb/host/ehci-ppc-of.c > +++ b/drivers/usb/host/ehci-ppc-of.c > @@ -31,7 +31,7 @@ static const struct hc_driver ehci_ppc_of_hc_driver = { >* generic

Re: [RFC PATCH] virtio_ring: Use DMA API if guest memory is encrypted

2019-08-12 Thread Christoph Hellwig
On Sat, Aug 10, 2019 at 11:46:21PM -0700, Ram Pai wrote: > If the hypervisor (hardware for hw virtio devices) does not mandate a > DMA API, why is it illegal for the driver to request, special handling > of its i/o buffers? Why are we associating this special handling to > always mean, some DMA

Re: [RFC PATCH] virtio_ring: Use DMA API if guest memory is encrypted

2019-08-12 Thread David Gibson
On Sun, Aug 11, 2019 at 07:56:07AM +0200, Christoph Hellwig wrote: > sev_active() is gone now in linux-next, at least as a global API. > > And once again this is entirely going in the wrong direction. The only > way using the DMA API is going to work at all is if the device is ready > for it.

[PATCH] dma-mapping: Use unsigned types for size checks

2019-08-12 Thread Isaac J. Manjarres
Both the size parameter in the dma_alloc_from_[dev/global]_coherent() functions and the size field in the dma_coherent_mem structure are represented by a signed quantity, which makes it so that any comparisons between these two quantities is a signed comparison. When a reserved memory region is

Re: Crash kernel with 256 MB reserved memory runs into OOM condition

2019-08-12 Thread Paul Menzel
Dear Michal, On 12.08.19 11:50, Michal Hocko wrote: > On Mon 12-08-19 11:42:33, Paul Menzel wrote: >> On a Dell PowerEdge R7425 with two AMD EPYC 7601 (total 128 threads) and >> 1 TB RAM, the crash kernel with 256 MB of space reserved crashes. >> >> Please find the messages of the normal and

Re: Crash kernel with 256 MB reserved memory runs into OOM condition

2019-08-12 Thread Michal Hocko
On Mon 12-08-19 11:42:33, Paul Menzel wrote: > Dear Linux folks, > > > On a Dell PowerEdge R7425 with two AMD EPYC 7601 (total 128 threads) and > 1 TB RAM, the crash kernel with 256 MB of space reserved crashes. > > Please find the messages of the normal and the crash kernel attached. You will

Re: Crash kernel with 256 MB reserved memory runs into OOM condition

2019-08-12 Thread Dave Young
On 08/13/19 at 10:46am, Dave Young wrote: > Add more cc. > On 08/13/19 at 10:43am, Dave Young wrote: > > Hi, > > > > On 08/12/19 at 11:50am, Michal Hocko wrote: > > > On Mon 12-08-19 11:42:33, Paul Menzel wrote: > > > > Dear Linux folks, > > > > > > > > > > > > On a Dell PowerEdge R7425 with

Re: [PATCH] iommu/amd: Override wrong IVRS IOAPIC on Raven Ridge systems

2019-08-12 Thread Kai-Heng Feng
at 23:39, Joerg Roedel wrote: On Thu, Aug 08, 2019 at 06:17:07PM +0800, Kai-Heng Feng wrote: Raven Ridge systems may have malfunction touchpad or hang at boot if incorrect IVRS IOAPIC is provided by BIOS. Users already found correct "ivrs_ioapic=" values, let's put them inside kernel to

Re: Crash kernel with 256 MB reserved memory runs into OOM condition

2019-08-12 Thread Dave Young
Hi, On 08/12/19 at 11:50am, Michal Hocko wrote: > On Mon 12-08-19 11:42:33, Paul Menzel wrote: > > Dear Linux folks, > > > > > > On a Dell PowerEdge R7425 with two AMD EPYC 7601 (total 128 threads) and > > 1 TB RAM, the crash kernel with 256 MB of space reserved crashes. > > > > Please find

Re: Crash kernel with 256 MB reserved memory runs into OOM condition

2019-08-12 Thread Dave Young
Add more cc. On 08/13/19 at 10:43am, Dave Young wrote: > Hi, > > On 08/12/19 at 11:50am, Michal Hocko wrote: > > On Mon 12-08-19 11:42:33, Paul Menzel wrote: > > > Dear Linux folks, > > > > > > > > > On a Dell PowerEdge R7425 with two AMD EPYC 7601 (total 128 threads) and > > > 1 TB RAM, the

RE: [RFC PATCH] virtio_ring: Use DMA API if guest memory is encrypted

2019-08-12 Thread Ram Pai
On Mon, Aug 12, 2019 at 02:13:24PM +0200, Christoph Hellwig wrote: > On Sat, Aug 10, 2019 at 11:46:21PM -0700, Ram Pai wrote: > > If the hypervisor (hardware for hw virtio devices) does not mandate a > > DMA API, why is it illegal for the driver to request, special handling > > of its i/o buffers?