Patch "powerpc/e500mc: Set assembler machine type to e500mc" has been added to the 4.17-stable tree

2018-07-01 Thread gregkh
This is a note to let you know that I've just added the patch titled powerpc/e500mc: Set assembler machine type to e500mc to the 4.17-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: p

Re: [PATCH 1/3] [v2] powerpc: mac: fix rtc read/write functions

2018-07-01 Thread Meelis Roos
A patch for the subject is now upstream. That made me finally take some time to test it on my PowerMac G4. Tha date is OK but I get two warnings with backtrace on bootup. Full dmesg below. [0.00] Total memory = 1024MB; using 2048kB for hash table (at (ptrval)) [0.00] RAM mapped w

[PATCH 4.17 057/220] powerpc/e500mc: Set assembler machine type to e500mc

2018-07-01 Thread Greg Kroah-Hartman
4.17-stable review patch. If anyone has any objections, please let me know. -- From: Michael Jeanson commit 69a8405999aa1c489de4b8d349468f0c2b83f093 upstream. In binutils 2.26 a new opcode for the "wait" instruction was added for the POWER9 and has precedence over the one spec

Re: [PATCH v9 0/6] add support for relative references in special sections

2018-07-01 Thread Ard Biesheuvel
On 27 June 2018 at 17:15, Will Deacon wrote: > Hi Ard, > > On Tue, Jun 26, 2018 at 08:27:55PM +0200, Ard Biesheuvel wrote: >> This adds support for emitting special sections such as initcall arrays, >> PCI fixups and tracepoints as relative references rather than absolute >> references. This reduc

Re: [PATCH v2 1/1] powerpc/pseries: fix EEH recovery of some IOV devices

2018-07-01 Thread Michael Ellerman
Sam Bobroff writes: > EEH recovery currently fails on pSeries for some IOV capable PCI > devices, if CONFIG_PCI_IOV is on and the hypervisor doesn't provide > certain device tree properties for the device. (Found on an IOV > capable device using the ipr driver.) > > Recovery fails in pci_enable_r

Re: [PATCH] powerpc: mpc5200: Remove VLA usage

2018-07-01 Thread Michael Ellerman
Kees Cook writes: > On Fri, Jun 29, 2018 at 2:02 PM, Arnd Bergmann wrote: >> On Fri, Jun 29, 2018 at 8:53 PM, Kees Cook wrote: >>> In the quest to remove all stack VLA usage from the kernel[1], this >>> switches to using a stack size large enough for the saved routine and >>> adds a sanity chec

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

2018-07-01 Thread David Gibson
On Fri, Jun 29, 2018 at 05:07:47PM +1000, Alexey Kardashevskiy wrote: > On Fri, 29 Jun 2018 15:18:20 +1000 > Alexey Kardashevskiy wrote: > > > On Fri, 29 Jun 2018 14:57:02 +1000 > > David Gibson wrote: > > > > > On Fri, Jun 29, 2018 at 02:51:21PM +1000, Alexey Kardashevskiy wrote: > > > > On

Re: [Update] Regression in 4.18 - 32-bit PowerPC crashes on boot - bisected to commit 1d40a5ea01d5

2018-07-01 Thread Michael Ellerman
Linus Torvalds writes: > On Fri, Jun 29, 2018 at 1:42 PM Larry Finger > wrote: >> >> I have more information regarding this BUG. Line 700 of page-flags.h is the >> macro PAGE_TYPE_OPS(Table, table). For further debugging, I manually expanded >> the macro, and found that the bug line is VM_BUG_ON

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

2018-07-01 Thread Alexey Kardashevskiy
On Mon, 2 Jul 2018 14:08:52 +1000 David Gibson wrote: > On Fri, Jun 29, 2018 at 05:07:47PM +1000, Alexey Kardashevskiy wrote: > > On Fri, 29 Jun 2018 15:18:20 +1000 > > Alexey Kardashevskiy wrote: > > > > > On Fri, 29 Jun 2018 14:57:02 +1000 > > > David Gibson wrote: > > > > > > > On Fri,

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

2018-07-01 Thread David Gibson
On Mon, Jul 02, 2018 at 02:33:30PM +1000, Alexey Kardashevskiy wrote: > On Mon, 2 Jul 2018 14:08:52 +1000 > David Gibson wrote: > > > On Fri, Jun 29, 2018 at 05:07:47PM +1000, Alexey Kardashevskiy wrote: > > > On Fri, 29 Jun 2018 15:18:20 +1000 > > > Alexey Kardashevskiy wrote: > > > > > > >

[PATCH v5 0/7] powerpc/pseries: Machien check handler improvements.

2018-07-01 Thread Mahesh J Salgaonkar
This patch series includes some improvement to Machine check handler for pseries. Patch 1 fixes a buffer overrun issue if rtas extended error log size is greater than RTAS_ERROR_LOG_MAX. Patch 2 fixes an issue where machine check handler crashes kernel while accessing vmalloc-ed buffer while in nmi

[PATCH v5 1/7] powerpc/pseries: Avoid using the size greater than

2018-07-01 Thread Mahesh J Salgaonkar
From: Mahesh Salgaonkar The global mce data buffer that used to copy rtas error log is of 2048 (RTAS_ERROR_LOG_MAX) bytes in size. Before the copy we read extended_log_length from rtas error log header, then use max of extended_log_length and RTAS_ERROR_LOG_MAX as a size of data to be copied. Ide

[PATCH v5 2/7] powerpc/pseries: Defer the logging of rtas error to irq work queue.

2018-07-01 Thread Mahesh J Salgaonkar
From: Mahesh Salgaonkar rtas_log_buf is a buffer to hold RTAS event data that are communicated to kernel by hypervisor. This buffer is then used to pass RTAS event data to user through proc fs. This buffer is allocated from vmalloc (non-linear mapping) area. On Machine check interrupt, register

[PATCH v5 3/7] powerpc/pseries: Fix endainness while restoring of r3 in MCE handler.

2018-07-01 Thread Mahesh J Salgaonkar
From: Mahesh Salgaonkar During Machine Check interrupt on pseries platform, register r3 points RTAS extended event log passed by hypervisor. Since hypervisor uses r3 to pass pointer to rtas log, it stores the original r3 value at the start of the memory (first 8 bytes) pointed by r3. Since hyperv

[PATCH v5 4/7] powerpc/pseries: Define MCE error event section.

2018-07-01 Thread Mahesh J Salgaonkar
From: Mahesh Salgaonkar On pseries, the machine check error details are part of RTAS extended event log passed under Machine check exception section. This patch adds the definition of rtas MCE event section and related helper functions. Signed-off-by: Mahesh Salgaonkar --- arch/powerpc/include

[PATCH v5 5/7] powerpc/pseries: flush SLB contents on SLB MCE errors.

2018-07-01 Thread Mahesh J Salgaonkar
From: Mahesh Salgaonkar On pseries, as of today system crashes if we get a machine check exceptions due to SLB errors. These are soft errors and can be fixed by flushing the SLBs so the kernel can continue to function instead of system crash. We do this in real mode before turning on MMU. Otherwi

[PATCH v5 6/7] powerpc/pseries: Display machine check error details.

2018-07-01 Thread Mahesh J Salgaonkar
From: Mahesh Salgaonkar Extract the MCE error details from RTAS extended log and display it to console. With this patch you should now see mce logs like below: [ 142.371818] Severe Machine check interrupt [Recovered] [ 142.371822] NIP [dca301b8]: init_module+0x1b8/0x338 [bork_kernel

[PATCH v5 7/7] powerpc/pseries: Dump the SLB contents on SLB MCE errors.

2018-07-01 Thread Mahesh J Salgaonkar
From: Mahesh Salgaonkar If we get a machine check exceptions due to SLB errors then dump the current SLB contents which will be very much helpful in debugging the root cause of SLB errors. Introduce an exclusive buffer per cpu to hold faulty SLB entries. In real mode mce handler saves the old SLB

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

2018-07-01 Thread Alexey Kardashevskiy
On Mon, 2 Jul 2018 14:52:43 +1000 David Gibson wrote: > On Mon, Jul 02, 2018 at 02:33:30PM +1000, Alexey Kardashevskiy wrote: > > On Mon, 2 Jul 2018 14:08:52 +1000 > > David Gibson wrote: > > > > > On Fri, Jun 29, 2018 at 05:07:47PM +1000, Alexey Kardashevskiy wrote: > > > > On Fri, 29 Jun