[PATCH] powerpc/hugetlbpage: Rmove unhelpful HUGEPD_*_SHIFT macros

2018-07-16 Thread David Gibson
The HUGEPD_*_SHIFT macros are always defined to be PGDIR_SHIFT and PUD_SHIFT, and have to have those values to work properly. They once used to have different values, but that was really only because they were used to mean different things in different contexts. 6fa50483 "powerpc/mm/hugetlb:

Re: [PATCH] powerpc/msi: Remove VLA usage

2018-07-16 Thread Kees Cook
On Fri, Jun 29, 2018 at 11:52 AM, Kees Cook wrote: > In the quest to remove all stack VLA usage from the kernel[1], this > switches from an unchanging variable to a constant expression to eliminate > the VLA generation. > > [1] >

Re: powerpc/64s: remove POWER9 DD1 support

2018-07-16 Thread Michael Ellerman
On Thu, 2018-07-05 at 08:47:00 UTC, Nicholas Piggin wrote: > POWER9 DD1 was never a product. It is no longer supported by upstream > firmware, and it is not effectively supported in Linux due to lack of > testing. > > Signed-off-by: Nicholas Piggin Applied to powerpc topic/ppc-kvm, thanks.

Re: [kernel,v3,1/6] powerpc/powernv: Remove useless wrapper

2018-07-16 Thread Michael Ellerman
On Wed, 2018-07-04 at 06:13:44 UTC, Alexey Kardashevskiy wrote: > This gets rid of a useless wrapper around > pnv_pci_ioda2_table_free_pages(). > > Reviewed-by: David Gibson > Signed-off-by: Alexey Kardashevskiy Series applied to powerpc topic/ppc-kvm, thanks.

Re: [PATCH kernel] KVM: PPC: Expose userspace mm context id via debugfs

2018-07-16 Thread Paul Mackerras
On Thu, Jul 12, 2018 at 05:30:26PM +1000, Alexey Kardashevskiy wrote: > This adds a debugfs entry with mm context id of a process which is using > KVM. This id is an index in the process table so the userspace can dump > that tree provided it is granted access to /dev/mem. Is the main intention

Re: [PATCH v3 5/6] powerpc/fsl: Add barrier_nospec implementation for NXP PowerPC Book3E

2018-07-16 Thread kbuild test robot
Hi Diana, Thank you for the patch! Yet something to improve: [auto build test ERROR on powerpc/next] [also build test ERROR on v4.18-rc5 next-20180713] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] url:

Re: [PATCH 1/2] powerpc/pseries: Avoid blocking rtas polling handling multiple PRRN events

2018-07-16 Thread John Allen
On Fri, Jul 13, 2018 at 09:22:23AM -0500, John Allen wrote: When a PRRN event is being handled and another PRRN event comes in, the second event will block rtas polling waiting on the first to complete, preventing any further rtas events from being handled. This can be especially problematic in

Re: [PATCH] net/ethernet/freescale/fman: fix cross-build error

2018-07-16 Thread David Miller
From: Randy Dunlap Date: Fri, 13 Jul 2018 21:25:19 -0700 > From: Randy Dunlap > > CC [M] drivers/net/ethernet/freescale/fman/fman.o > In file included from ../drivers/net/ethernet/freescale/fman/fman.c:35: > ../include/linux/fsl/guts.h: In function 'guts_set_dmacr': >

Re: [4.18.0-rc4][bisected a063057d][mpt3sas] WARNING: CPU: 87 PID: 18868 at block/blk-core.c:781 blk_cleanup_queue+0x20c/0x220

2018-07-16 Thread Bart Van Assche
On Mon, 2018-07-16 at 14:23 +0530, Abdul Haleem wrote: > mpt3sas module unload triggered a warning at block/blk-core.c:781 on a > powerpc bare-metal running mainline kernel > > WARN_ON_ONCE() was introduced with commit a063057 : block: Fix a race > between request queue removal and the block

[next-20180713][NET] linux-next kernel panics when booting powerpc

2018-07-16 Thread Abdul Haleem
Greeting's Today's next kernel panics while booting powerpc Machine: Power 8 Bare-metal kernel : 4.18.0-rc4-next-20180713 test: Boot boot messages: -- Reached target Timers. Started System Logging Service. Started Dump dmesg to /var/log/dmesg. Started Login Service. Started Resets

[4.18.0-rc4][bisected a063057d][mpt3sas] WARNING: CPU: 87 PID: 18868 at block/blk-core.c:781 blk_cleanup_queue+0x20c/0x220

2018-07-16 Thread Abdul Haleem
Greeting's mpt3sas module unload triggered a warning at block/blk-core.c:781 on a powerpc bare-metal running mainline kernel WARN_ON_ONCE() was introduced with commit a063057 : block: Fix a race between request queue removal and the block cgroup controller Machine: Power8 Bare-metal kernel :

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

2018-07-16 Thread Michal Hocko
On Mon 16-07-18 11:32:56, Mahesh J Salgaonkar wrote: > 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

Re: [PATCH 2/2] dma: remove unsupported gfp_mask parameter from dma_alloc_from_contiguous()

2018-07-16 Thread Vlastimil Babka
On 07/09/2018 02:19 PM, Marek Szyprowski wrote: > The CMA memory allocator doesn't support standard gfp flags for memory > allocation, so there is no point having it as a parameter for > dma_alloc_from_contiguous() function. Replace it by a boolean no_warn > argument, which covers all the

Re: [PATCH 1/2] mm/cma: remove unsupported gfp_mask parameter from cma_alloc()

2018-07-16 Thread Vlastimil Babka
On 07/09/2018 02:19 PM, Marek Szyprowski wrote: > cma_alloc() function doesn't really support gfp flags other than > __GFP_NOWARN, so convert gfp_mask parameter to boolean no_warn parameter. > > This will help to avoid giving false feeling that this function supports > standard gfp flags and

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

2018-07-16 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

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

2018-07-16 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 ---

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

2018-07-16 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

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

2018-07-16 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

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

2018-07-16 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