[PATCH 0/4] ipmi: Allow dynamic device IDs

2016-09-12 Thread Jeremy Kerr
This series implements a more dynamic method of reporting BMC version & identification. The current method of registering versions and IDs during ipmi_register_smi means that if a BMC is upgraded during a boot, the IPMI core code will report old version information. We do this by querying the BMC

[PATCH 4/4] ipmi/powernv: Use dynamic device ids

2016-09-12 Thread Jeremy Kerr
We don't currently provide any device ID info in the SMI registration, so use the dynamic ID infrastructure instead. Signed-off-by: Jeremy Kerr --- drivers/char/ipmi/ipmi_powernv.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git

[PATCH 3/4] ipmi: allow dynamic BMC version information

2016-09-12 Thread Jeremy Kerr
Currently, it's up to the IPMI SMIs to provide the product & version details of BMCs behind registered IPMI SMI interfaces. This device ID is provided on SMI regsitration, and kept around for all future queries. However, this version information isn't always static. For example, a BMC may be

Re: [PATCH v2 3/3] powerpc/mm: Speed up computation of base and actual page size for a HPTE

2016-09-12 Thread Paolo Bonzini
On 12/09/2016 05:03, Michael Ellerman wrote: >> > Can you place it in a pull request for both Michael and myself? > Paul and I talked about this offline, he's going to create a topic > branch with this in it. > > I'll hold off merging it until closer to the merge window, and I'll > merge it

Re: [PATCH] drivers/edac: NO_IRQ removal from powerpc-only drivers

2016-09-12 Thread Michael Ellerman
Arnd Bergmann writes: > On Monday, September 12, 2016 2:47:37 PM CEST Michael Ellerman wrote: >> >> @@ -1058,7 +1058,7 @@ static int mpc85xx_mc_err_probe(struct >> >> platform_device *op) >> >> >> >> pdata = mci->pvt_info; >> >> pdata->name = "mpc85xx_mc_err"; >> >> -

[PATCH v2] drivers/edac: NO_IRQ removal from powerpc-only drivers

2016-09-12 Thread Michael Ellerman
We'd like to eventually remove NO_IRQ on powerpc, so remove usages of it from powerpc-only drivers. The pdata structs are kzalloc'ed, so we don't need to initialise those to 0, we can just drop the assignments entirely. Signed-off-by: Michael Ellerman --- v2: Don't

[PATCH 1/4] ipmi: Add a reference from BMC devices to their interfaces

2016-09-12 Thread Jeremy Kerr
In an upcoming change, we'll want to grab a reference to the ipmi_smi_t from a struct bmc_device. This change adds a pointer to allow this. Signed-off-by: Jeremy Kerr --- drivers/char/ipmi/ipmi_msghandler.c | 2 ++ 1 file changed, 2 insertions(+) diff --git

[PATCH v14 05/15] selftests/powerpc: Add ptrace tests for GPR/FPR registers in TM

2016-09-12 Thread wei . guo . simon
From: Anshuman Khandual This patch adds ptrace interface test for GPR/FPR registers inside TM context. This adds ptrace interface based helper functions related to checkpointed GPR/FPR access. Signed-off-by: Anshuman Khandual

[PATCH v14 08/15] selftests/powerpc: Add ptrace tests for TAR, PPR, DSCR in TM

2016-09-12 Thread wei . guo . simon
From: Anshuman Khandual This patch adds ptrace interface test for TAR, PPR, DSCR registers inside TM context. This also adds ptrace interface based helper functions related to checkpointed TAR, PPR, DSCR register access. Signed-off-by: Anshuman Khandual

Re: [PATCH] drivers/edac: NO_IRQ removal from powerpc-only drivers

2016-09-12 Thread Arnd Bergmann
On Monday, September 12, 2016 2:47:37 PM CEST Michael Ellerman wrote: > >> @@ -1058,7 +1058,7 @@ static int mpc85xx_mc_err_probe(struct > >> platform_device *op) > >> > >> pdata = mci->pvt_info; > >> pdata->name = "mpc85xx_mc_err"; > >> -pdata->irq = NO_IRQ; > >> +pdata->irq =

[PATCH 2/4] ipmi: Make ipmi_demangle_device_id more generic

2016-09-12 Thread Jeremy Kerr
Currently, ipmi_demagle_device_id requires a full response buffer in its data argument. This means we can't use it to parse a response in a struct ipmi_recv_msg, which has the netfn and cmd as separate bytes. This change alters the definition and users of ipmi_demangle_device_id to use a split

[PATCH] powerpc/32: add missing \n at end of printk warning message

2016-09-12 Thread Colin King
From: Colin Ian King The message is missing a \n, add it. Signed-off-by: Colin Ian King --- arch/powerpc/mm/init_32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/mm/init_32.c b/arch/powerpc/mm/init_32.c

[PATCH] cxl: Fix informational message

2016-09-12 Thread Frederic Barrat
When set_sl_ops() is called, the adapter data structure is not fully initialized yet. Therefore the device name is not showing up in the trace. Fix is simply to get the device name from the pci_dev structure. Fixes: 6d382616ac22 ("cxl: Abstract the differences between the PSL and XSL")

[PATCH v14 01/15] selftests/powerpc: Add more SPR numbers, TM & VMX instructions to 'reg.h'

2016-09-12 Thread wei . guo . simon
From: Anshuman Khandual This patch adds SPR number for TAR, PPR, DSCR special purpose registers. It also adds TM, VSX, VMX related instructions which will then be used by patches later in the series. Signed-off-by: Anshuman Khandual

[PATCH v14 07/15] selftests/powerpc: Add ptrace tests for TAR, PPR, DSCR registers

2016-09-12 Thread wei . guo . simon
From: Anshuman Khandual This patch adds ptrace interface test for TAR, PPR, DSCR registers. This also adds ptrace interface based helper functions related to TAR, PPR, DSCR register access. Signed-off-by: Anshuman Khandual

[PATCH v14 10/15] selftests/powerpc: Add ptrace tests for VSX, VMX registers

2016-09-12 Thread wei . guo . simon
From: Anshuman Khandual This patch adds ptrace interface test for VSX, VMX registers. This also adds ptrace interface based helper functions related to VSX, VMX registers access. This also adds some assembly helper functions related to VSX and VMX registers.

[PATCH v14 11/15] selftests/powerpc: Add ptrace tests for VSX, VMX registers in TM

2016-09-12 Thread wei . guo . simon
From: Anshuman Khandual This patch adds ptrace interface test for VSX, VMX registers inside TM context. This also adds ptrace interface based helper functions related to chckpointed VSX, VMX registers access. Signed-off-by: Anshuman Khandual

[PATCH v14 02/15] selftests/powerpc: Use the new SPRN_DSCR_PRIV definiton

2016-09-12 Thread wei . guo . simon
From: Anshuman Khandual Now that the new DSCR register definitions (SPRN_DSCR_PRIV and SPRN_DSCR) are defined outside this directory, use them instead. Signed-off-by: Anshuman Khandual Signed-off-by: Simon Guo

RE: [v11, 5/8] soc: fsl: add GUTS driver for QorIQ platforms

2016-09-12 Thread Y.B. Lu
Hi Scott, Thanks for your review :) See my comment inline. > -Original Message- > From: Scott Wood [mailto:o...@buserror.net] > Sent: Friday, September 09, 2016 11:47 AM > To: Y.B. Lu; linux-...@vger.kernel.org; ulf.hans...@linaro.org; Arnd > Bergmann > Cc: linuxppc-dev@lists.ozlabs.org;

[PATCH v14 15/15] selftests/powerpc: Fix a build issue

2016-09-12 Thread wei . guo . simon
From: Anshuman Khandual Fixes the following build failure - cp_abort.c:90:3: error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode for (int i = 0; i < NUM_LOOPS; i++) { ^ cp_abort.c:90:3: note: use option -std=c99, -std=gnu99, -std=c11 or

[PATCH v14 04/15] selftests/powerpc: Add ptrace tests for GPR/FPR registers

2016-09-12 Thread wei . guo . simon
From: Anshuman Khandual This patch adds ptrace interface test for GPR/FPR registers. This adds ptrace interface based helper functions related to GPR/FPR access and some assembly helper functions related to GPR/FPR registers. Signed-off-by: Anshuman Khandual

[PATCH v14 12/15] selftests/powerpc: Add ptrace tests for VSX, VMX registers in suspended TM

2016-09-12 Thread wei . guo . simon
From: Anshuman Khandual This patch adds ptrace interface test for VSX, VMX registers inside suspended TM context. Signed-off-by: Anshuman Khandual Signed-off-by: Simon Guo ---

[PATCH v14 14/15] selftests/powerpc: Add .gitignore file for ptrace executables

2016-09-12 Thread wei . guo . simon
From: Anshuman Khandual This patch adds a .gitignore file for all the executables in the ptrace test directory thus making invisible with git status query. Signed-off-by: Anshuman Khandual Signed-off-by: Simon Guo

[PATCH v14 03/15] selftests/powerpc: Add ptrace tests for EBB

2016-09-12 Thread wei . guo . simon
From: Anshuman Khandual This patch adds ptrace interface test for EBB/PMU specific registers. This also adds some generic ptrace interface based helper functions to be used by other patches later on in the series. Signed-off-by: Anshuman Khandual

[PATCH v14 00/15] selftests/powerpc: Add ptrace tests for ppc registers

2016-09-12 Thread wei . guo . simon
From: Simon Guo This selftest suite is for PPC register ptrace functionality. It is also useful for Transaction Memory functionality verification. Signed-off-by: Anshuman Khandual Signed-off-by: Simon Guo Test

[PATCH v14 06/15] selftests/powerpc: Add ptrace tests for GPR/FPR registers in suspended TM

2016-09-12 Thread wei . guo . simon
From: Anshuman Khandual This patch adds ptrace interface test for GPR/FPR registers inside suspended TM context. Signed-off-by: Anshuman Khandual Signed-off-by: Simon Guo ---

[PATCH v14 09/15] selftests/powerpc: Add ptrace tests for TAR, PPR, DSCR in suspended TM

2016-09-12 Thread wei . guo . simon
From: Anshuman Khandual This patch adds ptrace interface test for TAR, PPR, DSCR registers inside suspended TM context. Signed-off-by: Anshuman Khandual Signed-off-by: Simon Guo ---

[PATCH v14 13/15] selftests/powerpc: Add ptrace tests for TM SPR registers

2016-09-12 Thread wei . guo . simon
From: Anshuman Khandual This patch adds ptrace interface test for TM SPR registers. This also adds ptrace interface based helper functions related to TM SPR registers access. Signed-off-by: Anshuman Khandual Signed-off-by: Simon Guo

Re: [RFC] KVM: PPC: Book3S HV: Fall back to same size HPT in allocation ioctl

2016-09-12 Thread Aneesh Kumar K.V
Anshuman Khandual writes: > When the HPT size is explicitly passed on from the userspace, currently > the KVM_PPC_ALLOCATE_HTAB will try to allocate the requested size of HPT > from reserved CMA area and if that is not possible, the allocation just > fails. With the

[RFC] KVM: PPC: Book3S HV: Fall back to same size HPT in allocation ioctl

2016-09-12 Thread Anshuman Khandual
When the HPT size is explicitly passed on from the userspace, currently the KVM_PPC_ALLOCATE_HTAB will try to allocate the requested size of HPT from reserved CMA area and if that is not possible, the allocation just fails. With the commit 572abd563befd56 ("KVM: PPC: Book3S HV: Don't fall back to

Re: [PATCH v2] drivers/edac: NO_IRQ removal from powerpc-only drivers

2016-09-12 Thread Borislav Petkov
On Mon, Sep 12, 2016 at 08:00:36PM +1000, Michael Ellerman wrote: > We'd like to eventually remove NO_IRQ on powerpc, so remove usages of it > from powerpc-only drivers. > > The pdata structs are kzalloc'ed, so we don't need to initialise those > to 0, we can just drop the assignments entirely. >

Re: [RFC] KVM: PPC: Book3S HV: Fall back to same size HPT in allocation ioctl

2016-09-12 Thread Balbir Singh
On Mon, Sep 12, 2016 at 9:13 PM, Anshuman Khandual wrote: > When the HPT size is explicitly passed on from the userspace, currently > the KVM_PPC_ALLOCATE_HTAB will try to allocate the requested size of HPT > from reserved CMA area and if that is not possible, the

Re: [PATCH] powerpc/32: add missing \n at end of printk warning message

2016-09-12 Thread Christophe Leroy
Le 12/09/2016 à 12:12, Colin King a écrit : From: Colin Ian King The message is missing a \n, add it. Signed-off-by: Colin Ian King --- arch/powerpc/mm/init_32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH v5 1/2] powerpc/pseries: Implement indexed-count hotplug memory add

2016-09-12 Thread Nathan Fontenot
From: Sahil Mehta Indexed-count add for memory hotplug guarantees that a contiguous block of lmbs beginning at a specified will be assigned (NOT that lmbs will be added). Because of Qemu's per-DIMM memory management, the addition of a contiguous block of memory

Re: [Openipmi-developer] [PATCH 3/4] ipmi: allow dynamic BMC version information

2016-09-12 Thread Corey Minyard
On 09/12/2016 03:55 AM, Jeremy Kerr wrote: Currently, it's up to the IPMI SMIs to provide the product & version details of BMCs behind registered IPMI SMI interfaces. This device ID is provided on SMI regsitration, and kept around for all future queries. However, this version information isn't

Re: [PATCH 3/3] Cyrus: create a defconfig

2016-09-12 Thread Scott Wood
On 09/10/2016 05:12 PM, Andy Fleming wrote: > > > On Tuesday, September 6, 2016, Scott Wood > wrote: > > On 09/06/2016 02:12 PM, Andy Fleming wrote: > > This sets up the proper config elements for Power and Reset to work > > properly

[PATCH v3 2/2] atomic64: No need for CONFIG_ARCH_HAS_ATOMIC64_DEC_IF_POSITIVE

2016-09-12 Thread Vineet Gupta
This came to light when implementing native 64-bit atomics for ARCv2. The atomic64 self-test code uses CONFIG_ARCH_HAS_ATOMIC64_DEC_IF_POSITIVE to check whether atomic64_dec_if_positive() is available. It seems it was needed when not every arch defined it. However as of current code the Kconfig

[PATCH v5 0/2] powerpc/pseries: Implement indexed-count hotplug memory management

2016-09-12 Thread Nathan Fontenot
Indexed-count memory management allows addition and removal of contiguous lmb blocks with a single command. When compared to the series of calls previously required to manage contiguous blocks, indexed-count decreases command frequency and reduces risk of buffer overflow. Changes in v2:

Re: [PATCH] powerpc/32: add missing \n at end of printk warning message

2016-09-12 Thread Joe Perches
On Mon, 2016-09-12 at 11:12 +0100, Colin King wrote: > From: Colin Ian King > The message is missing a \n, add it. Was this found via inspection or a tool?

Re: [PATCH] powerpc/32: add missing \n at end of printk warning message

2016-09-12 Thread Colin Ian King
On 12/09/16 17:34, Joe Perches wrote: > On Mon, 2016-09-12 at 11:12 +0100, Colin King wrote: >> From: Colin Ian King >> The message is missing a \n, add it. > > Was this found via inspection or a tool? > grep

[PATCH] KVM: PPC: e500: Rename jump labels in kvmppc_e500_tlb_init()

2016-09-12 Thread SF Markus Elfring
From: Markus Elfring Date: Mon, 12 Sep 2016 22:33:53 +0200 Adjust jump labels according to the current Linux coding style convention. Signed-off-by: Markus Elfring --- Thanks that five update steps could be integrated into the

[PATCH 0/8] powerpc/64: use asm sections for head/exception layout

2016-09-12 Thread Nicholas Piggin
Hi, This patch uses asm/ld sections and macro wrappers to hide the details of placing exception vectors at the correct location. Currently we lay out everything in head_64.S as it is to appear in the output, starting from physical 0, and uses '.' location counter directives to place vectors

[PATCH 4/8] powerpc/pseries: consolidate exception handler alignment

2016-09-12 Thread Nicholas Piggin
Move exception handler alignment directives into the head-64.h macros, beause they will no longer work in-place after the next patch. This slightly changes functions that have alignments applied and therefore code generation, which is why it was not done initially (see earlier patch).

[PATCH 7/8] powerpc/pseries: use single macro for both parts of OOL exception

2016-09-12 Thread Nicholas Piggin
Simple substitution. This is possible now that both parts of the OOL initial handler get linked into their correct location. Signed-off-by: Nicholas Piggin --- arch/powerpc/kernel/exceptions-64s.S | 55 1 file changed, 18 insertions(+), 37

[PATCH 1/8] powerpc/pseries: hypervisor facility unavailable use correct handler

2016-09-12 Thread Nicholas Piggin
The 0xf80 hv_facility_unavailable trampoline branches to the 0xf60 handler. This works because they both do the same thing, but it should be fixed. Signed-off-by: Nicholas Piggin --- arch/powerpc/kernel/exceptions-64s.S | 4 ++-- 1 file changed, 2 insertions(+), 2

[PATCH 2/8] powerpc/pseries: syscall remove trampoline

2016-09-12 Thread Nicholas Piggin
The syscall trampoline is not required, remove it. Signed-off-by: Nicholas Piggin --- arch/powerpc/kernel/exceptions-64s.S | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/arch/powerpc/kernel/exceptions-64s.S b/arch/powerpc/kernel/exceptions-64s.S

[PATCH 6/8] powerpc/pseries: move related exception code together

2016-09-12 Thread Nicholas Piggin
This is just moving related handler code together in the .S, which is possible since it is linked into the correct location. Generated code should remain the same, except for placement and offsets. Signed-off-by: Nicholas Piggin --- arch/powerpc/kernel/exceptions-64s.S | 2110

[PATCH 5/8] powerpc/64: use gas sections for arranging exception vectors

2016-09-12 Thread Nicholas Piggin
Use assembler sections of fixed size and location to arrange pseries exception vector code (64e also using it in head_64.S for 0x0..0x100). This allows better flexibility in arranging exception code and hiding unimportant details behind macros. Gas sections can be a bit painful to use this way,

Re: [PATCH] cxl: Fix informational message

2016-09-12 Thread Andrew Donnellan
On 12/09/16 20:37, Frederic Barrat wrote: When set_sl_ops() is called, the adapter data structure is not fully initialized yet. Therefore the device name is not showing up in the trace. Fix is simply to get the device name from the pci_dev structure. Fixes: 6d382616ac22 ("cxl: Abstract the

Re: linux-next: manual merge of the kbuild tree with Linus' tree

2016-09-12 Thread Stephen Rothwell
Hi Michal, [For the new cc's, we are discussing the "thin archives" and "link dead code/data elimination" patches in the kbuild tree.] On Tue, 13 Sep 2016 09:39:45 +1000 Stephen Rothwell wrote: > > On Mon, 12 Sep 2016 11:03:08 +0200 Michal Marek wrote: >

Re: [RFC] KVM: PPC: Book3S HV: Fall back to same size HPT in allocation ioctl

2016-09-12 Thread Anshuman Khandual
On 09/12/2016 05:03 PM, Balbir Singh wrote: > On Mon, Sep 12, 2016 at 9:13 PM, Anshuman Khandual > wrote: >> > When the HPT size is explicitly passed on from the userspace, currently >> > the KVM_PPC_ALLOCATE_HTAB will try to allocate the requested size of HPT >> >

[PATCH v5 2/2] powerpc/pseries: Implement indexed-count hotplug memory remove

2016-09-12 Thread Nathan Fontenot
From: Sahil Mehta Indexed-count remove for memory hotplug guarantees that a contiguous block of lmbs beginning at a specified will be unassigned (NOT that lmbs will be removed). Because of Qemu's per-DIMM memory management, the removal of a contiguous block of memory

[PATCH v2 2/2] atomic64: No need for CONFIG_ARCH_HAS_ATOMIC64_DEC_IF_POSITIVE

2016-09-12 Thread Vineet Gupta
This came to light when implementing native 64-bit atomics for ARCv2. The atomic64 self-test code uses CONFIG_ARCH_HAS_ATOMIC64_DEC_IF_POSITIVE to check whether atomic64_dec_if_positive() is available. It seems it was needed when not every arch defined it. However as of current code the Kconfig

[PATCH 3/8] powerpc/pseries: exception vector macros

2016-09-12 Thread Nicholas Piggin
Create arch/powerpc/include/asm/head-64.h with macros that specify an exception vector (name, type, location), which will be used to label and lay out exceptions into the object file. Naming is moved out of exception-64s.h, which is used to specify the implementation of exception handlers.

[PATCH 8/8] powerpc/pseries: remove unused exception code, small cleanups

2016-09-12 Thread Nicholas Piggin
This was not done before the big patches because I only noticed them afterwards. It has become much easier to see which handlers are branched to from which exception vectors now, and to see exactly what vector space is being used for what. Signed-off-by: Nicholas Piggin ---

Re: linux-next: manual merge of the kbuild tree with Linus' tree

2016-09-12 Thread Nicholas Piggin
On Tue, 13 Sep 2016 14:02:57 +1000 Stephen Rothwell wrote: > Hi Michal, > > [For the new cc's, we are discussing the "thin archives" and "link dead > code/data elimination" patches in the kbuild tree.] > > On Tue, 13 Sep 2016 09:39:45 +1000 Stephen Rothwell

Re: [PATCH 3/3] Cyrus: create a defconfig

2016-09-12 Thread Michael Ellerman
Scott Wood writes: > On 09/10/2016 05:12 PM, Andy Fleming wrote: >> On Tuesday, September 6, 2016, Scott Wood > > wrote: >> On 09/06/2016 02:12 PM, Andy Fleming wrote: >> > +CONFIG_EXT3_FS=y >> >> This has nothing to

Re: [PATCH] powerpc/32: add missing \n at end of printk warning message

2016-09-12 Thread Michael Ellerman
Christophe Leroy writes: > Le 12/09/2016 à 12:12, Colin King a écrit : >> diff --git a/arch/powerpc/mm/init_32.c b/arch/powerpc/mm/init_32.c >> index 448685f..b532dd9 100644 >> --- a/arch/powerpc/mm/init_32.c >> +++ b/arch/powerpc/mm/init_32.c >> @@ -137,7 +137,7 @@ void

Re: [PATCH v2] powerpc: move hmi.c to arch/powerpc/kvm/

2016-09-12 Thread Michael Ellerman
Paul Mackerras writes: > On Thu, Aug 11, 2016 at 03:07:43PM +0200, Paolo Bonzini wrote: >> hmi.c functions are unused unless sibling_subcore_state is nonzero, and >> that in turn happens only if KVM is in use. So move the code to >> arch/powerpc/kvm/, putting it under

Re: powernv: Restore SPRs correctly upon wake up from hypervisor state loss

2016-09-12 Thread Michael Ellerman
On Wed, 2016-07-09 at 05:16:30 UTC, "Gautham R. Shenoy" wrote: > From: "Gautham R. Shenoy" > > pnv_wakeup_tb_loss function currently expects the cr4 to be "eq" if > the CPU is waking up from a complete hypervisor state loss. Hence, it > currently restores the SPR

Re: [PATCH 2/3] corenet: Support gpio power/reset for corenet

2016-09-12 Thread Scott Wood
On 09/10/2016 05:05 PM, Andy Fleming wrote: > > > On Tuesday, September 6, 2016, Scott Wood > wrote: > > On 09/06/2016 02:12 PM, Andy Fleming wrote: > > Boards can implement power and reset functionality over gpio using > > these

Re: powerpc/kernel: Fix size of NUM_CPU_FTR_KEYS on 32-bit

2016-09-12 Thread Michael Ellerman
On Mon, 2016-12-09 at 02:54:50 UTC, Michael Ellerman wrote: > The number of CPU feature keys is meant to map 1:1 to the number of CPU > feature flags defined in cputable.h, and the latter must fit in an > unsigned long. > > In commit 4db7327194db ("powerpc: Add option to use jump label for >

Re: [v11, 5/8] soc: fsl: add GUTS driver for QorIQ platforms

2016-09-12 Thread Scott Wood
On Mon, 2016-09-12 at 06:39 +, Y.B. Lu wrote: > Hi Scott, > > Thanks for your review :) > See my comment inline. > > > > > -Original Message- > > From: Scott Wood [mailto:o...@buserror.net] > > Sent: Friday, September 09, 2016 11:47 AM > > To: Y.B. Lu; linux-...@vger.kernel.org;

[PATCH v1] Fix __tlbiel in hash_native_64

2016-09-12 Thread Balbir Singh
__tlbie and __tlbiel are out of sync. __tlbie does the right thing it calls tlbie with "tlbie rb, L" if CPU_FTR_ARCH_206 (cpu feature) is clear and with "tlbie rb" otherwise. During the cleanup of __tlbiel I noticed that __tlbiel was setting bit 11 PPC_BIT(21) independent of the ISA version for

Re: [PATCH v14 00/15] selftests/powerpc: Add ptrace tests for ppc registers

2016-09-12 Thread Cyril Bur
On Mon, 2016-09-12 at 15:33 +0800, wei.guo.si...@gmail.com wrote: > From: Simon Guo > > This selftest suite is for PPC register ptrace functionality. It > is also useful for Transaction Memory functionality verification. > > Signed-off-by: Anshuman Khandual

Re: [PATCH v1] Fix __tlbiel in hash_native_64

2016-09-12 Thread Balbir Singh
On 13/09/16 14:42, Balbir Singh wrote: > __tlbie and __tlbiel are out of sync. __tlbie does the right thing > it calls tlbie with "tlbie rb, L" if CPU_FTR_ARCH_206 (cpu feature) is clear > and with "tlbie rb" otherwise. During the cleanup of __tlbiel I noticed > that __tlbiel was setting bit 11

Re: [RFC] KVM: PPC: Book3S HV: Fall back to same size HPT in allocation ioctl

2016-09-12 Thread Balbir Singh
On 13/09/16 14:07, Anshuman Khandual wrote: > On 09/12/2016 05:03 PM, Balbir Singh wrote: >> On Mon, Sep 12, 2016 at 9:13 PM, Anshuman Khandual >> wrote: When the HPT size is explicitly passed on from the userspace, currently the KVM_PPC_ALLOCATE_HTAB will

Re: [RFC] KVM: PPC: Book3S HV: Fall back to same size HPT in allocation ioctl

2016-09-12 Thread Anshuman Khandual
On 09/13/2016 10:04 AM, Balbir Singh wrote: > > > On 13/09/16 14:07, Anshuman Khandual wrote: >> On 09/12/2016 05:03 PM, Balbir Singh wrote: >>> On Mon, Sep 12, 2016 at 9:13 PM, Anshuman Khandual >>> wrote: > When the HPT size is explicitly passed on from the