[PATCH] powerpc/platforms/85xx: fix t1042rdb_diu.c build errors & warning

2018-07-15 Thread Randy Dunlap
From: Randy Dunlap Fix build errors and warnings in t1042rdb_diu.c by adding header files and MODULE_LICENSE(). ../arch/powerpc/platforms/85xx/t1042rdb_diu.c:152:1: warning: data definition has no type or storage class early_initcall(t1042rdb_diu_init); ../arch/powerpc/platforms/85xx/t1042rdb_

[PATCH] usb/phy: fix PPC64 build errors in phy-fsl-usb.c

2018-07-15 Thread Randy Dunlap
From: Randy Dunlap Fix build errors when built for PPC64: These variables are only used on PPC32 so they don't need to be initialized for PPC64. ../drivers/usb/phy/phy-fsl-usb.c: In function 'usb_otg_start': ../drivers/usb/phy/phy-fsl-usb.c:865:3: error: '_fsl_readl' undeclared (first use in th

Re: [PATCH 2/2] powerpc: Add ppc64le and ppc64_book3e allmodconfig targets

2018-07-15 Thread Randy Dunlap
On 07/09/18 07:24, Michael Ellerman wrote: > Similarly as we just did for 32-bit, add phony targets for generating > a little endian and Book3E allmodconfig. These aren't covered by the > regular allmodconfig, which is big endian and Book3S due to the way > the Kconfig symbols are structured. [add

Re: [PATCH kernel v3 3/6] KVM: PPC: Make iommu_table::it_userspace big endian

2018-07-15 Thread Paul Mackerras
On Wed, Jul 04, 2018 at 04:13:46PM +1000, Alexey Kardashevskiy wrote: > We are going to reuse multilevel TCE code for the userspace copy of > the TCE table and since it is big endian, let's make the copy big endian > too. > > Reviewed-by: David Gibson > Signed-off-by: Alexey Kardashevskiy Acked

Re: [PATCH kernel v6 2/2] KVM: PPC: Check if IOMMU page is contained in the pinned physical page

2018-07-15 Thread David Gibson
On Wed, Jul 11, 2018 at 09:00:44PM +1000, Alexey Kardashevskiy wrote: > A VM which has: > - a DMA capable device passed through to it (eg. network card); > - running a malicious kernel that ignores H_PUT_TCE failure; > - capability of using IOMMU pages bigger that physical pages > can create an

Re: [PATCH v3 2/2] powerpc: Enable CPU_FTR_ASYM_SMT for interleaved big-cores

2018-07-15 Thread Gautham R Shenoy
On Wed, Jul 11, 2018 at 04:32:30PM +0800, kbuild test robot wrote: > Hi Gautham, > > Thank you for the patch! Yet something to improve: > > [auto build test ERROR on powerpc/next] > [also build test ERROR on v4.18-rc4 next-20180710] > [if your patch is applied to the wrong git tree, please drop

[RFC PATCH v6 0/4] powerpc/fadump: Improvements and fixes for firmware-assisted dump.

2018-07-15 Thread Mahesh J Salgaonkar
One of the primary issues with Firmware Assisted Dump (fadump) on Power is that it needs a large amount of memory to be reserved. This reserved memory is used for saving the contents of old crashed kernel's memory before fadump capture kernel uses old kernel's memory area to boot. However, This res

[RFC PATCH v6 1/4] mm/page_alloc: Introduce an interface to mark reserved memory as ZONE_MOVABLE

2018-07-15 Thread Mahesh J Salgaonkar
From: Mahesh Salgaonkar Add an interface to allow a custom reserved memory to be marked as ZONE_MOVABLE. This will help some subsystem's to convert their reserved memory region into ZONE_MOVABLE so that the memory can still be available to user applications. The approach is based on Joonsoo Kim'

[RFC PATCH v6 2/4] powerpc/fadump: Reservationless firmware assisted dump

2018-07-15 Thread Mahesh J Salgaonkar
From: Mahesh Salgaonkar One of the primary issues with Firmware Assisted Dump (fadump) on Power is that it needs a large amount of memory to be reserved. On large systems with TeraBytes of memory, this reservation can be quite significant. In some cases, fadump fails if the memory reserved is in

[RFC PATCH v6 3/4] powerpc/fadump: throw proper error message on fadump registration failure.

2018-07-15 Thread Mahesh J Salgaonkar
From: Mahesh Salgaonkar fadump fails to register when there are holes in reserved memory area. This can happen if user has hot-removed a memory that falls in the fadump reserved memory area. Throw a meaningful error message to the user in such case. Signed-off-by: Mahesh Salgaonkar --- arch/po

[RFC PATCH v6 4/4] powerpc/fadump: Do not allow hot-remove memory from fadump reserved area.

2018-07-15 Thread Mahesh J Salgaonkar
From: Mahesh Salgaonkar For fadump to work successfully there should not be any holes in reserved memory ranges where kernel has asked firmware to move the content of old kernel memory in event of crash. Now that fadump reserved memory is marked as movable zone, this memory area is now not protec