[v2 PATCH] powernv:idle: Fix bug due to labeling ambiguity in power_enter_stop

2017-02-26 Thread Gautham R. Shenoy
From: "Gautham R. Shenoy" Commit 09206b600c76 ("powernv: Pass PSSCR value and mask to power9_idle_stop") added additional code in power_enter_stop() to distinguish between stop requests whose PSSCR had ESL=EC=1 from those which did not. When ESL=EC=1, we do a

Re: [PATCH] powernv:idle: Fix bug due to labeling ambiguity in power_enter_stop

2017-02-26 Thread Gautham R Shenoy
Hi Anton, On Mon, Feb 27, 2017 at 10:37:07AM +1100, Anton Blanchard wrote: > Hi Gautham, > > > +handle_esl_ec_set: > > Unless we want to expose this to things like perf, we might want to > make it a local label (eg .Lxx) Sure. We don't want to expose this to perf at least as of now! Will resend

[PATCH] KVM: PPC: Book3S HV: Fix software walk of guest process page tables

2017-02-26 Thread Paul Mackerras
This fixes some bugs in the code that walks the guest's page tables. These bugs cause MMIO emulation to fail whenever the guest is in virtial mode (MMU on), leading to the guest hanging if it tried to access a virtio device. The first bug was that when reading the guest's process table, we were

[PATCH] powerpc/64: Invalidate process table caching after setting process table

2017-02-26 Thread Paul Mackerras
The POWER9 MMU reads and caches entries from the process table. When we kexec from one kernel to another, the second kernel sets its process table pointer but doesn't currently do anything to make the CPU invalidate any cached entries from the old process table. This adds a tlbie (TLB invalidate

Re: [PATCH kernel v5 10/10] KVM: PPC: VFIO: Add in-kernel acceleration for VFIO

2017-02-26 Thread Alexey Kardashevskiy
On 27/02/17 12:53, David Gibson wrote: > On Fri, Feb 24, 2017 at 02:43:05PM +1100, Alexey Kardashevskiy wrote: >> On 24/02/17 14:36, David Gibson wrote: >>> On Fri, Feb 24, 2017 at 02:29:14PM +1100, Alexey Kardashevskiy wrote: On 24/02/17 13:14, David Gibson wrote: > On Wed, Feb 22, 2017

Re: [PATCH kernel v5 10/10] KVM: PPC: VFIO: Add in-kernel acceleration for VFIO

2017-02-26 Thread David Gibson
On Fri, Feb 24, 2017 at 02:43:05PM +1100, Alexey Kardashevskiy wrote: > On 24/02/17 14:36, David Gibson wrote: > > On Fri, Feb 24, 2017 at 02:29:14PM +1100, Alexey Kardashevskiy wrote: > >> On 24/02/17 13:14, David Gibson wrote: > >>> On Wed, Feb 22, 2017 at 07:21:33PM +1100, Alexey Kardashevskiy

Re: [PATCH v3] powerpc/powernv: add hdat attribute to sysfs

2017-02-26 Thread Oliver O'Halloran
On Mon, Feb 27, 2017 at 12:59 PM, Andrew Donnellan wrote: > On 24/02/17 17:20, Matt Brown wrote: >> >> The HDAT data area is consumed by skiboot and turned into a device-tree. >> In some cases we would like to look directly at the HDAT, so this patch >> adds a sysfs

Re: [PATCH v3] powerpc/powernv: add hdat attribute to sysfs

2017-02-26 Thread Andrew Donnellan
On 24/02/17 17:20, Matt Brown wrote: The HDAT data area is consumed by skiboot and turned into a device-tree. In some cases we would like to look directly at the HDAT, so this patch adds a sysfs node to allow it to be viewed. This is not possible through /dev/mem as it is reserved memory which

Re: [PATCH kernel] powerpc/powernv/ioda2: Gracefully fail if too many TCE levels requested

2017-02-26 Thread Gavin Shan
On Wed, Feb 22, 2017 at 03:43:59PM +1100, Alexey Kardashevskiy wrote: >The IODA2 specification says that a 64 DMA address cannot use top 4 bits >(3 are reserved and one is a "TVE select"); bottom page_shift bits >cannot be used for multilevel table addressing either. > >The existing IODA2 table

[PATCH] powerpc/xics: Fix migrate_irqs_away - set CPPR to lowest priority

2017-02-26 Thread Balbir Singh
With XICS emulation, setting the CPPR to DEFAULT_PRIORITY masks all interrupts including IPI's which map to a single underlying priority. The fix does two things 1. It moves the setting of CPPR to after all IRQ migration is complete 2. It sets the CPPR to LOWEST_PRIORITY, so that interrupts

Re: [PATCH 2/2] powerpc/powernv/opal-dump : Use IRQ_HANDLED instead of numbers in interrupt handler

2017-02-26 Thread Jeremy Kerr
Hi Mukesh, >> Unless I'm mistaken, there are two things I can see happening with the >> old code: if we hit the IRQ_NONE path enough, we'll report a "nobody >> cared" error (see __report_bad_irq) and disable the interrupt, or for >> the -1 case, we'll immediately log a "bogus return value" error

Re: [RFC] Remove memory from nodes for memtrace.

2017-02-26 Thread Oliver O'Halloran
On Thu, Feb 23, 2017 at 8:39 AM, Rashmica Gupta wrote: > Some powerpc hardware features may want to gain access to a > chunk of undisturbed real memory. This update provides a means to unplug > said memory from the kernel with a set of sysfs calls. By writing an integer

Re: [PATCH] powernv:idle: Fix bug due to labeling ambiguity in power_enter_stop

2017-02-26 Thread Anton Blanchard
Hi Gautham, > +handle_esl_ec_set: Unless we want to expose this to things like perf, we might want to make it a local label (eg .Lxx) Anton

[RESEND PATCH] i2c/busses/pasemi: Remove hardcoded bus numbers on smbus

2017-02-26 Thread Darren Stevens
The pasemi smbus controller uses PCI_FUNC(dev->devfn) to define which number bus to attach to, however this fails when something else is probed first, for example an ATI Radeon graphics card will claim 9 or 10 busses, including the ones the pasemi wants. Patch the driver to call i2c_add_adapter

[PATCH] powernv:idle: Fix bug due to labeling ambiguity in power_enter_stop

2017-02-26 Thread Gautham R. Shenoy
From: "Gautham R. Shenoy" Commit 09206b600c76 ("powernv: Pass PSSCR value and mask to power9_idle_stop") added additional code in power_enter_stop() to distinguish between stop requests whose PSSCR had ESL=EC=1 from those which did not. When ESL=EC=1, we do a

Re: [PATCH v2 0/2] Allow configurable stack size (especially 32k on PPC64)

2017-02-26 Thread Hamish Martin
On 02/24/2017 10:54 PM, David Laight wrote: > From: Hamish Martin >> Sent: 24 February 2017 00:52 >> This patch series adds the ability to configure the THREAD_SHIFT value and >> thereby alter the stack size on powerpc systems. We are particularly >> interested >> in configuring for a 32k stack

Re: [PATCH v2 1/2] crypto: vmx - Use skcipher for cbc fallback

2017-02-26 Thread Marcelo Cerri
On Fri, Feb 24, 2017 at 11:23:54AM -0300, Paulo Flabiano Smorigo wrote: > Signed-off-by: Paulo Flabiano Smorigo > --- > drivers/crypto/vmx/aes_cbc.c | 44 > ++-- > 1 file changed, 22 insertions(+), 22 deletions(-) > > diff

[RFC][PATCH] powerpc: use ibm,tlb-congruence-classes dt if it exists

2017-02-26 Thread Nicholas Piggin
Remove the open-coding of radix set sizes for loops. Populate the cputable with the correct values for old firmware, but override it with the device-tree property if that exists. This goes with the skiboot patch posted earlier. Thanks, Nick --- arch/powerpc/include/asm/cputable.h | 11 +