Re: [PATCH v3 0/6] Prerequisites for NXP LS104xA SMMU enablement

2019-05-30 Thread David Miller
From: laurentiu.tu...@nxp.com Date: Thu, 30 May 2019 17:19:45 +0300 > Depends on this pull request: > > http://lists.infradead.org/pipermail/linux-arm-kernel/2019-May/653554.html I'm not sure how you want me to handle this.

Re: [PATCH kernel] prom_init: Fetch flatten device tree from the system firmware

2019-05-30 Thread Benjamin Herrenschmidt
On Thu, 2019-05-30 at 14:37 -0500, Segher Boessenkool wrote: > On Thu, May 30, 2019 at 05:09:06PM +1000, Alexey Kardashevskiy wrote: > > so, it is sort-of nack from David and sort-of ack from Segher, what > > happens now? > > Maybe what we really need just a CI call to get all properties of a

Re: [WIP RFC PATCH 0/6] Generic Firmware Variable Filesystem

2019-05-30 Thread Nayna
On 05/20/2019 02:25 AM, Daniel Axtens wrote: Hi all, As PowerNV moves towards secure boot, we need a place to put secure variables. One option that has been canvassed is to make our secure variables look like EFI variables. This is an early sketch of another approach where we create a

Re: [PATCH 22/22] docs: fix broken documentation links

2019-05-30 Thread Michael S. Tsirkin
On Thu, May 30, 2019 at 10:17:32PM +0200, Federico Vaga wrote: > On Thursday, May 30, 2019 1:23:53 AM CEST Mauro Carvalho Chehab wrote: > > Mostly due to x86 and acpi conversion, several documentation > > links are still pointing to the old file. Fix them. > > For the Italian documentation I just

Re: [PATCH v3 1/3] PCI: Introduce pcibios_ignore_alignment_request

2019-05-30 Thread Shawn Anastasio
On 5/29/19 10:39 PM, Alexey Kardashevskiy wrote: On 28/05/2019 17:39, Shawn Anastasio wrote: On 5/28/19 1:27 AM, Alexey Kardashevskiy wrote: On 28/05/2019 15:36, Oliver wrote: On Tue, May 28, 2019 at 2:03 PM Shawn Anastasio wrote: Introduce a new pcibios function

Re: [PATCH v3 1/3] PCI: Introduce pcibios_ignore_alignment_request

2019-05-30 Thread Alexey Kardashevskiy
On 31/05/2019 08:49, Shawn Anastasio wrote: > On 5/29/19 10:39 PM, Alexey Kardashevskiy wrote: >> >> >> On 28/05/2019 17:39, Shawn Anastasio wrote: >>> >>> >>> On 5/28/19 1:27 AM, Alexey Kardashevskiy wrote: On 28/05/2019 15:36, Oliver wrote: > On Tue, May 28, 2019 at 2:03 PM

Re: [PATCH 22/22] docs: fix broken documentation links

2019-05-30 Thread Federico Vaga
On Thursday, May 30, 2019 1:23:53 AM CEST Mauro Carvalho Chehab wrote: > Mostly due to x86 and acpi conversion, several documentation > links are still pointing to the old file. Fix them. For the Italian documentation I just send I patch to fix them in a dedicated patch > > Signed-off-by:

Re: [PATCH v3 07/11] mm/memory_hotplug: Create memory block devices after arch_add_memory()

2019-05-30 Thread Pavel Tatashin
On Mon, May 27, 2019 at 7:12 AM David Hildenbrand wrote: > > Only memory to be added to the buddy and to be onlined/offlined by > user space using /sys/devices/system/memory/... needs (and should have!) > memory block devices. > > Factor out creation of memory block devices. Create all devices

Re: [EXTERNAL] Re: [PATCH v3 1/3] PCI: Introduce pcibios_ignore_alignment_request

2019-05-30 Thread Shawn Anastasio
On 5/30/19 1:55 AM, Sam Bobroff wrote: On Tue, May 28, 2019 at 03:36:34PM +1000, Oliver wrote: On Tue, May 28, 2019 at 2:03 PM Shawn Anastasio wrote: Introduce a new pcibios function pcibios_ignore_alignment_request which allows the PCI core to defer to platform-specific code to determine

Re: [PATCH v3 01/11] mm/memory_hotplug: Simplify and fix check_hotplug_memory_range()

2019-05-30 Thread Pavel Tatashin
On Mon, May 27, 2019 at 7:12 AM David Hildenbrand wrote: > > By converting start and size to page granularity, we actually ignore > unaligned parts within a page instead of properly bailing out with an > error. > > Cc: Andrew Morton > Cc: Oscar Salvador > Cc: Michal Hocko > Cc: David

Re: [PATCH v3 0/6] Prerequisites for NXP LS104xA SMMU enablement

2019-05-30 Thread Li Yang
On Thu, May 30, 2019 at 5:09 PM David Miller wrote: > > From: laurentiu.tu...@nxp.com > Date: Thu, 30 May 2019 17:19:45 +0300 > > > Depends on this pull request: > > > > http://lists.infradead.org/pipermail/linux-arm-kernel/2019-May/653554.html > > I'm not sure how you want me to handle this.

Re: [PATCH v3 06/11] mm/memory_hotplug: Allow arch_remove_pages() without CONFIG_MEMORY_HOTREMOVE

2019-05-30 Thread Pavel Tatashin
On Mon, May 27, 2019 at 7:12 AM David Hildenbrand wrote: > > We want to improve error handling while adding memory by allowing > to use arch_remove_memory() and __remove_pages() even if > CONFIG_MEMORY_HOTREMOVE is not set to e.g., implement something like: > > arch_add_memory() >

Re: [RFC PATCH v2 07/10] KVM: PPC: Ultravisor: Restrict LDBAR access

2019-05-30 Thread Claudio Carvalho
On 5/21/19 2:24 AM, Madhavan Srinivasan wrote: > > On 18/05/19 7:55 PM, Claudio Carvalho wrote: >> From: Ram Pai When the ultravisor firmware is >> available, it takes control over the LDBAR register. In this case, >> thread-imc updates and save/restore operations on the LDBAR register are >>

Re: [RFC PATCH] powerpc/book3e: KASAN Full support for 64bit

2019-05-30 Thread Daniel Axtens
Hi Christophe, I tried this on the t4240rdb and it fails to boot if KASAN is enabled. It does boot with the patch applied but KASAN disabled, so that narrows it down a little bit. I need to focus on 3s first so I'll just drop 3e from my patch set for now. Regards, Daniel > The KASAN shadow

Re: [PATCH kernel] prom_init: Fetch flatten device tree from the system firmware

2019-05-30 Thread Segher Boessenkool
On Thu, May 30, 2019 at 05:09:06PM +1000, Alexey Kardashevskiy wrote: > so, it is sort-of nack from David and sort-of ack from Segher, what > happens now? Maybe what we really need just a CI call to get all properties of a node at once? Will that speed up things enough? That way you need no

[PATCH kernel v3 2/3] powerpc/powernv/ioda2: Allocate TCE table levels on demand for default DMA window

2019-05-30 Thread Alexey Kardashevskiy
We allocate only the first level of multilevel TCE tables for KVM already (alloc_userspace_copy==true), and the rest is allocated on demand. This is not enabled though for baremetal. This removes the KVM limitation (implicit, via the alloc_userspace_copy parameter) and always allocates just the

Re: [PATCH 09/22] docs: mark orphan documents as such

2019-05-30 Thread Paolo Bonzini
On 30/05/19 01:23, Mauro Carvalho Chehab wrote: > Sphinx doesn't like orphan documents: > > Documentation/accelerators/ocxl.rst: WARNING: document isn't included in > any toctree > Documentation/arm/stm32/overview.rst: WARNING: document isn't included in > any toctree >

[PATCH] Documentation/stackprotector: powerpc supports stack protector

2019-05-30 Thread Bhupesh Sharma
powerpc architecture (both 64-bit and 32-bit) supports stack protector mechanism since some time now [see commit 06ec27aea9fc ("powerpc/64: add stack protector support")]. Update stackprotector arch support documentation to reflect the same. Signed-off-by: Bhupesh Sharma ---

Re: [RFC] mm: Generalize notify_page_fault()

2019-05-30 Thread Matthew Wilcox
On Thu, May 30, 2019 at 11:25:13AM +0530, Anshuman Khandual wrote: > Similar notify_page_fault() definitions are being used by architectures > duplicating much of the same code. This attempts to unify them into a > single implementation, generalize it and then move it to a common place. >

Re: [PATCH 22/22] docs: fix broken documentation links

2019-05-30 Thread Wolfram Sang
On Wed, May 29, 2019 at 08:23:53PM -0300, Mauro Carvalho Chehab wrote: > Mostly due to x86 and acpi conversion, several documentation > links are still pointing to the old file. Fix them. > > Signed-off-by: Mauro Carvalho Chehab Didn't I ack this already? For the I2C part: Reviewed-by:

Re: [PATCH kernel] prom_init: Fetch flatten device tree from the system firmware

2019-05-30 Thread Alexey Kardashevskiy
so, it is sort-of nack from David and sort-of ack from Segher, what happens now? On 01/05/2019 13:42, Alexey Kardashevskiy wrote: > At the moment, on 256CPU + 256 PCI devices guest, it takes the guest > about 8.5sec to fetch the entire device tree via the client interface > as the DT is

Re: [EXTERNAL] Re: [PATCH v3 1/3] PCI: Introduce pcibios_ignore_alignment_request

2019-05-30 Thread Sam Bobroff
On Tue, May 28, 2019 at 03:36:34PM +1000, Oliver wrote: > On Tue, May 28, 2019 at 2:03 PM Shawn Anastasio wrote: > > > > Introduce a new pcibios function pcibios_ignore_alignment_request > > which allows the PCI core to defer to platform-specific code to > > determine whether or not to ignore

[PATCH kernel v3 1/3] powerpc/iommu: Allow bypass-only for DMA

2019-05-30 Thread Alexey Kardashevskiy
POWER8 and newer support a bypass mode which maps all host memory to PCI buses so an IOMMU table is not always required. However if we fail to create such a table, the DMA setup fails and the kernel does not boot. This skips the 32bit DMA setup check if the bypass is can be selected.

[PATCH kernel v3 0/3] powerpc/ioda2: Yet another attempt to allow DMA masks between 32 and 59

2019-05-30 Thread Alexey Kardashevskiy
This is an attempt to allow DMA masks between 32..59 which are not large enough to use either a PHB3 bypass mode or a sketchy bypass. Depending on the max order, up to 40 is usually available. This is based on v5.2-rc2. Please comment. Thanks. Alexey Kardashevskiy (3): powerpc/iommu: Allow

[PATCH kernel v3 3/3] powerpc/powernv/ioda2: Create bigger default window with 64k IOMMU pages

2019-05-30 Thread Alexey Kardashevskiy
At the moment we create a small window only for 32bit devices, the window maps 0..2GB of the PCI space only. For other devices we either use a sketchy bypass or hardware bypass but the former can only work if the amount of RAM is no bigger than the device's DMA mask and the latter requires devices

Re: [PATCH kernel 0/2] pseries: Enable SWIOTLB

2019-05-30 Thread Alexey Kardashevskiy
Ping, anyone? On 07/05/2019 16:25, Alexey Kardashevskiy wrote: > This is an attempt to allow PCI pass through to a secure guest when > hardware can only access insecure memory. This allows SWIOTLB use > for passed through devices. > > Later on secure VMs will unsecure SWIOTLB bounce buffers for

Re: [PATCH] Documentation/stackprotector: powerpc supports stack protector

2019-05-30 Thread Michael Ellerman
Bhupesh Sharma writes: > powerpc architecture (both 64-bit and 32-bit) supports stack protector > mechanism since some time now [see commit 06ec27aea9fc ("powerpc/64: > add stack protector support")]. > > Update stackprotector arch support documentation to reflect the same. > > Signed-off-by:

Re: [PATCH v1 00/15] Fixing selftests failure on Talitos driver

2019-05-30 Thread Herbert Xu
On Tue, May 21, 2019 at 01:34:06PM +, Christophe Leroy wrote: > Several test failures have popped up following recent changes to crypto > selftests. > > This series fixes (most of) them. > > The last three patches are trivial cleanups. > > Christophe Leroy (15): > crypto: talitos - fix

Re: [PATCH] Documentation/stackprotector: powerpc supports stack protector

2019-05-30 Thread Jonathan Corbet
On Thu, 30 May 2019 18:37:46 +0530 Bhupesh Sharma wrote: > > This should probably go via the documentation tree? > > > > Acked-by: Michael Ellerman > > Thanks for the review Michael. > I am ok with this going through the documentation tree as well. Works for me too, but I don't seem to find

[PATCH v3 2/6] fsl/fman: add API to get the device behind a fman port

2019-05-30 Thread laurentiu . tudor
From: Laurentiu Tudor Add an API that retrieves the 'struct device' that the specified fman port probed against. The new API will be used in a subsequent iommu enablement related patch. Signed-off-by: Laurentiu Tudor Acked-by: Madalin Bucur --- drivers/net/ethernet/freescale/fman/fman_port.c

Re: [PATCH] Documentation/stackprotector: powerpc supports stack protector

2019-05-30 Thread Bhupesh Sharma
On Thu, May 30, 2019 at 6:25 PM Michael Ellerman wrote: > > Bhupesh Sharma writes: > > powerpc architecture (both 64-bit and 32-bit) supports stack protector > > mechanism since some time now [see commit 06ec27aea9fc ("powerpc/64: > > add stack protector support")]. > > > > Update stackprotector

Re: [PATCH] crypto: vmx - convert to SPDX license identifiers

2019-05-30 Thread Herbert Xu
On Mon, May 20, 2019 at 09:42:32AM -0700, Eric Biggers wrote: > From: Eric Biggers > > Remove the boilerplate license text and replace it with the equivalent > SPDX license identifier. > > Signed-off-by: Eric Biggers > --- > drivers/crypto/vmx/aes.c | 14 +- >

[PATCH v3 3/6] dpaa_eth: defer probing after qbman

2019-05-30 Thread laurentiu . tudor
From: Laurentiu Tudor Enabling SMMU altered the order of device probing causing the dpaa1 ethernet driver to get probed before qbman and causing a boot crash. Add predictability in the probing order by deferring the ethernet driver probe after qbman and portals by using the recently introduced

Re: [PATCH v8 1/7] iommu: enhance IOMMU default DMA mode build options

2019-05-30 Thread John Garry
On 30/05/2019 04:48, Zhen Lei wrote: First, add build option IOMMU_DEFAULT_{LAZY|STRICT}, so that we have the opportunity to set {lazy|strict} mode as default at build time. Then put the three config options in an choice, make people can only choose one of the three at a time. Since this was

[PATCH v3 6/6] dpaa_eth: fix iova handling for sg frames

2019-05-30 Thread laurentiu . tudor
From: Laurentiu Tudor The driver relies on the no longer valid assumption that dma addresses (iovas) are identical to physical addressees and uses phys_to_virt() to make iova -> vaddr conversions. Fix this also for scatter-gather frames using the iova -> phys conversion function added in the

Re: [PATCH v5 1/3] powerpc: Fix vDSO clock_getres()

2019-05-30 Thread shuah
On 5/28/19 6:04 AM, Vincenzo Frascino wrote: clock_getres in the vDSO library has to preserve the same behaviour of posix_get_hrtimer_res(). In particular, posix_get_hrtimer_res() does: sec = 0; ns = hrtimer_resolution; and hrtimer_resolution depends on the enablement of the high

Re: [PATCH v5 2/3] s390: Fix vDSO clock_getres()

2019-05-30 Thread shuah
On 5/28/19 6:04 AM, Vincenzo Frascino wrote: clock_getres in the vDSO library has to preserve the same behaviour of posix_get_hrtimer_res(). In particular, posix_get_hrtimer_res() does: sec = 0; ns = hrtimer_resolution; and hrtimer_resolution depends on the enablement of the high

Re: [RFC] mm: Generalize notify_page_fault()

2019-05-30 Thread Matthew Wilcox
On Thu, May 30, 2019 at 05:31:15PM +0530, Anshuman Khandual wrote: > On 05/30/2019 04:36 PM, Matthew Wilcox wrote: > > The two handle preemption differently. Why is x86 wrong and this one > > correct? > > Here it expects context to be already non-preemptible where as the proposed > generic

Re: [PATCH] crypto: vmx - convert to skcipher API

2019-05-30 Thread Herbert Xu
On Mon, May 20, 2019 at 09:44:48AM -0700, Eric Biggers wrote: > From: Eric Biggers > > Convert the VMX implementations of AES-CBC, AES-CTR, and AES-XTS from > the deprecated "blkcipher" API to the "skcipher" API. > > As part of this, I moved the skcipher_request for the fallback algorithm > off

[PATCH v3 5/6] dpaa_eth: fix iova handling for contiguous frames

2019-05-30 Thread laurentiu . tudor
From: Laurentiu Tudor The driver relies on the no longer valid assumption that dma addresses (iovas) are identical to physical addressees and uses phys_to_virt() to make iova -> vaddr conversions. Fix this by adding a function that does proper iova -> phys conversions using the iommu api and

[PATCH v3 0/6] Prerequisites for NXP LS104xA SMMU enablement

2019-05-30 Thread laurentiu . tudor
From: Laurentiu Tudor This patch series contains several fixes in preparation for SMMU support on NXP LS1043A and LS1046A chips. Once these get picked up, I'll submit the actual SMMU enablement patches consisting in the required device tree changes. This patch series contains only part of the

Re: [RFC] mm: Generalize notify_page_fault()

2019-05-30 Thread Anshuman Khandual
On 05/30/2019 04:36 PM, Matthew Wilcox wrote: > On Thu, May 30, 2019 at 11:25:13AM +0530, Anshuman Khandual wrote: >> Similar notify_page_fault() definitions are being used by architectures >> duplicating much of the same code. This attempts to unify them into a >> single implementation,

Re: [PATCH] crypto: testmgr - fix length truncation with large page size

2019-05-30 Thread Herbert Xu
On Mon, May 20, 2019 at 09:47:19AM -0700, Eric Biggers wrote: > From: Eric Biggers > > On PowerPC with CONFIG_CRYPTO_MANAGER_EXTRA_TESTS=y, there is sometimes > a crash in generate_random_aead_testvec(). The problem is that the > generated test vectors use data lengths of up to about 2 *

[PATCH v3 4/6] dpaa_eth: base dma mappings on the fman rx port

2019-05-30 Thread laurentiu . tudor
From: Laurentiu Tudor The dma transactions initiator is the rx fman port so that's the device that the dma mappings should be done. Previously the mappings were done through the MAC device which makes no sense because it's neither dma-able nor connected in any way to smmu. Signed-off-by:

[PATCH v3 1/6] fsl/fman: don't touch liodn base regs reserved on non-PAMU SoCs

2019-05-30 Thread laurentiu . tudor
From: Laurentiu Tudor liodn base registers are specific to PAMU based NXP systems and on SMMU based ones are reserved. Don't access them if PAMU is compiled in. Signed-off-by: Laurentiu Tudor --- drivers/net/ethernet/freescale/fman/fman.c | 6 +- 1 file changed, 5 insertions(+), 1

Re: [PATCH v2] powerpc/pseries: Use correct event modifier in rtas_parse_epow_errlog()

2019-05-30 Thread Yuehaibing
Hi all, Friendly ping: Who can take this? On 2019/4/24 10:17, Yue Haibing wrote: > From: YueHaibing > > rtas_parse_epow_errlog() should pass 'modifier' to > handle_system_shutdown, because event modifier only use > bottom 4 bits. > > Fixes: 55fc0c561742 ("powerpc/pseries: Parse and handle

Re: [RFC PATCH V2 1/3] mm/nvdimm: Add PFN_MIN_VERSION support

2019-05-30 Thread Aneesh Kumar K.V
Hi Dan, Are you ok with this patch series? If yes I can send a non-RFC version for this series. Since we are now marking all previously created pfn_sb on ppc64 as not supported, (pfn_sb->page_size = SZ_4K) I would like to get this merged early. -aneesh "Aneesh Kumar K.V" writes: > This