[PATCH] powerpc: Convert power off logic to pm_power_off

2014-10-21 Thread Michael Ellerman
fully turn off my virtual machine after halt. Signed-off-by: Alexander Graf [mpe: Squash into one patch and update changelog based on cover letter] Signed-off-by: Michael Ellerman --- arch/powerpc/include/asm/machdep.h | 1 - arch/powerpc/kernel/setup-common.c | 6 +-

Re: [PATCH] powernv: Use _GLOBAL_TOC for opal wrappers

2014-10-21 Thread Michael Ellerman
On Wed, 2014-10-22 at 11:32 +0800, Jeremy Kerr wrote: > Currently, we can't call opal wrappers from modules when using the LE > ABIv2, which requires a TOC init. What happens if we try? Build failure or run time bug? > This change uses the _GLOBAL_TOC() macro (rather than _GLOBAL) for the > opal

Re: [PATCH] cpuidle/powernv: Populate cpuidle state details by querying the device-tree

2014-10-26 Thread Michael Ellerman
On Fri, 2014-10-24 at 15:30 +0100, Lorenzo Pieralisi wrote: > On Tue, Oct 14, 2014 at 08:53:00AM +0100, Preeti U Murthy wrote: > > We hard code the metrics relevant for cpuidle states in the kernel today. > > Instead pick them up from the device tree so that they remain relevant > > and updated for

Re: CXL: Fix PSL error due to duplicate segment table entries

2014-10-26 Thread Michael Ellerman
On Mon, 2014-27-10 at 04:24:35 UTC, Ian Munsie wrote: > From: Ian Munsie > > In certain circumstances the PSL can send an interrupt for a segment Define PSL before using it please. > miss that the kernel has already handled. This can happen if multiple > translations for the same segment are qu

[PATCH] powerpc: Remove unused vgacon_remap_base & fix build break

2014-10-27 Thread Michael Ellerman
never initialised. It used to be, back in arch/ppc (pplus.c and prep_setup.c), but none of that code ever made it to arch/powerpc. So given it's been unused for >6 years, remove it. Whether vga16fb.c works on 32-bit is another question, but this patch shouldn't affect it. Signed-off-by

Re: powerpc: Replace __get_cpu_var uses

2014-10-27 Thread Michael Ellerman
On Tue, 2014-10-28 at 08:10 +1100, Benjamin Herrenschmidt wrote: > On Mon, 2014-10-27 at 10:57 -0500, Christoph Lameter wrote: > > Ping? We are planning to remove support for __get_cpu_var in the > > 3.19 merge period. I can move the definition for __get_cpu_var into the > > powerpc per cpu definit

[PATCH] Revert "powerpc/powernv: Fix endian bug in LPC bus debugfs accessors"

2014-10-27 Thread Michael Ellerman
This reverts commit bf7588a0859580a45c63cb082825d77c13eca357. Ben says, "The original code was fine, I think the bug was actually in the userspace tool I was using (don't worry, nothing on the field uses that interface yet and I can still fix the tool)." Signed-off-by: M

Re: [PATCH V3 1/2] mm: Update generic gup implementation to handle hugepage directory

2014-10-27 Thread Michael Ellerman
On Mon, 2014-10-27 at 16:06 -0700, Andrew Morton wrote: > On Sat, 25 Oct 2014 16:14:19 +0530 "Aneesh Kumar K.V" > wrote: > > > Update generic gup implementation with powerpc specific details. > > On powerpc at pmd level we can have hugepte, normal pmd pointer > > or a pointer to the hugepage dir

Re: Warnings reported while building the vanilla kernel on powerpc

2014-10-27 Thread Michael Ellerman
On Mon, 2014-10-27 at 19:03 +0530, Preeti U Murthy wrote: > Hello, > > I noticed the following warnings while building the upstream kernel as of > yesterday. > The commit I checked out at was cac7f2429872d3 : Linux 3.18-rc2. > > Please verify if any of these can be fixed. Patches welcome. chee

Re: powerc: fix build failure when CONFIG_HUGETLB_PAGE is not set

2014-10-27 Thread Michael Ellerman
On Mon, 2014-27-10 at 14:30:06 UTC, =?utf-8?q?C=C3=A9dric_Le_Goater?= wrote: > CC arch/powerpc/mm/slice.o > In file included from ../arch/powerpc/mm/slice.c:33:0: > ../include/linux/hugetlb.h:141:47: error: expected identifier or ‘(’ > before numeric constant > #define is_hugepage_only_r

Re: [PATCH] drivers: depend on instead of select BACKLIGHT_CLASS_DEVICE and ACPI_VIDEO

2014-10-28 Thread Michael Ellerman
On Tue, 2014-10-28 at 13:29 -0700, Randy Dunlap wrote: > On 10/27/14 06:13, Tomi Valkeinen wrote: > > I also think the 'depends on BACKLIGHT_CLASS_DEVICE || > > BACKLIGHT_CLASS_DEVICE=n' pattern is quite... interesting (i.e. sounds > > like a hack to me =). > > It does exactly what is needed and i

Re: [PATCH V3 1/2] mm: Update generic gup implementation to handle hugepage directory

2014-10-28 Thread Michael Ellerman
On Tue, 2014-10-28 at 10:44 +, Steve Capper wrote: > On Mon, Oct 27, 2014 at 06:32:41PM -0700, Andrew Morton wrote: > > On Tue, 28 Oct 2014 12:20:29 +1100 Michael Ellerman > > wrote: > > > > > On Mon, 2014-10-27 at 16:06 -0700, Andrew Morton wrote: > > &g

Re: [v3] PowerPC: boot: Parse chosen/cmdline-timeout parameter

2014-10-28 Thread Michael Ellerman
it for input. We > have a board where the serial port gives garbage when it's not > connected - this board would then hang in the bootloader. > > If someone (Michael Ellerman?) has already applied it somewhere, I can > send a separate patch for that particular change. No I have

Re: powerpc: Replace __get_cpu_var uses

2014-10-28 Thread Michael Ellerman
On Tue, 2014-21-10 at 20:23:25 UTC, Christoph Lameter wrote: > This still has not been merged and now powerpc is the only arch that does > not have this change. Sorry about missing linuxppc-dev before. > > --- linux.orig/arch/powerpc/include/asm/hardirq.h > +++ linux/arch/powerpc/include/asm/hardi

Re: [PATCH] drivers: depend on instead of select BACKLIGHT_CLASS_DEVICE and ACPI_VIDEO

2014-10-29 Thread Michael Ellerman
On Wed, 2014-10-29 at 09:54 +0200, Jani Nikula wrote: > On Wed, 29 Oct 2014, Michael Ellerman wrote: > > On Tue, 2014-10-28 at 13:29 -0700, Randy Dunlap wrote: > >> On 10/27/14 06:13, Tomi Valkeinen wrote: > >> > I also think the 'depends on BACKLIGHT_CLASS_DEVI

[git pull] Please pull mpe.git for-linus branch (for powerpc)

2014-10-29 Thread Michael Ellerman
Jeremy Kerr (1): powernv: Use _GLOBAL_TOC for opal wrappers Michael Ellerman (1): Revert "powerpc/powernv: Fix endian bug in LPC bus debugfs accessors" Nishanth Aravamudan (2): powerpc/numa: use cached value of update->cpu in update_cpu_topology powerpc/numa: ensu

Re: FSL MSI Mapping

2014-10-29 Thread Michael Ellerman
On Tue, 2014-10-28 at 18:06 +0100, Johannes Thumshirn wrote: > Hi, > > I got notified about your patch to support multiple MSI Vectors on Freescale > PowerPC platforms. Is there any reason why it wasn't applied until now? I > couldn't find anything about it in the list archives. > > I think it wo

Re: [PATCH] PPC: bpf_jit_comp: add SKF_AD_PKTTYPE instruction

2014-10-29 Thread Michael Ellerman
On Wed, 2014-10-29 at 13:21 +0400, Denis Kirjanov wrote: > Any feedback from PPC folks? Hi Denis, I had a look at this, but I don't know enough about BPF to comment. Maybe you can explain what a BPF_ANC | SKF_AD_PKTTYPE means and perhaps then we can guess if the code is correct. I think testing

Re: [PATCH 1/5] powerpc: Remove bootmem allocator

2014-10-30 Thread Michael Ellerman
On Thu, 2014-10-30 at 01:00 -0500, Emil Medve wrote: > On 09/17/2014 07:15 AM, Anton Blanchard wrote: > > At the moment we transition from the memblock alloctor to the bootmem > > allocator. Gitting rid of the bootmem allocator removes a bunch of > > complicated code (most of which I owe the dubiou

Re: [PATCH] hwrng: pseries - port to new read API and fix stack corruption

2014-10-31 Thread Michael Ellerman
On Fri, 2014-10-31 at 07:50 +0100, Greg Kurz wrote: > The add_early_randomness() function in drivers/char/hw_random/core.c passes > a 16-byte buffer to pseries_rng_data_read(). Unfortunately, plpar_hcall() > returns four 64-bit values and trashes 16 bytes on the stack. Hmm, thanks. I thought I'd f

Re: [PATCH v2] PPC: bpf_jit_comp: add SKF_AD_PKTTYPE instruction

2014-11-03 Thread Michael Ellerman
; skb->pkt_type field. > >> > >> Before: > >> [ 88.262622] test_bpf: #11 LD_IND_NET 86 97 99 PASS > >> [ 88.265740] test_bpf: #12 LD_PKTTYPE 109 107 PASS > >> > >> After: > >> [ 80.605964] test_bpf: #11 LD_IND_NET 44 40 39 PASS > &g

[git pull] Please pull mpe.git for-linus branch (for powerpc)

2014-11-03 Thread Michael Ellerman
Hi Linus, Some more powerpc fixes if you please. cheers The following changes since commit d506aa68c23db708ad45ca8c17f0d7f5d7029a37: Merge branch 'for-linus' of git://git.kernel.dk/linux-block (2014-10-29 11:57:10 -0700) are available in the git repository at: git://git.kernel.org/pub/

powerpc: Convert power off logic to pm_power_off topic branch

2014-11-03 Thread Michael Ellerman
Hi Guenter, I've put the pm_power_off patch in a topic branch: https://git.kernel.org/cgit/linux/kernel/git/mpe/linux.git/log/?h=topic/pm-power-off I'll pull this into my next when I open it. Let me know if there's any issue with it. cheers ___

Re: powerpc: Replace __get_cpu_var uses

2014-11-03 Thread Michael Ellerman
On Tue, 2014-10-21 at 15:23 -0500, Christoph Lameter wrote: > This still has not been merged and now powerpc is the only arch that does > not have this change. Sorry about missing linuxppc-dev before. Hi Christoph, I've put this in a topic branch, with the fixups I described last week: https:

Re: powerpc: Convert power off logic to pm_power_off topic branch

2014-11-04 Thread Michael Ellerman
On Mon, 2014-11-03 at 21:11 -0800, Guenter Roeck wrote: > On 11/03/2014 08:47 PM, Michael Ellerman wrote: > > I've put the pm_power_off patch in a topic branch: > > > > > > https://git.kernel.org/cgit/linux/kernel/git/mpe/linux.git/log/?h=topic/pm-power-off &

powerpc test branch for 3.19

2014-11-05 Thread Michael Ellerman
_node_put Kyle McMartin (1): powerpc: Remove unused devm_ioremap_prot() Michael Ellerman (5): Merge branch 'topic/pm-power-off' into next Merge branch 'topic/get-cpu-var' into next powerpc: Remove CPU_FTR_HVMODE from CPU_FTRS_ALWAYS powerpc: Remo

Re: [PATCH v2] hwmon: (ibmpowernv) Use platform 'id_table' to probe the device

2014-11-09 Thread Michael Ellerman
need an ack from one of the powerpc maintainers to proceed. Looks OK to me. Acked-by: Michael Ellerman cheers ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

Re: [PATCH v6 41/48] powerpc: Register with kernel power-off handler

2014-11-10 Thread Michael Ellerman
ault priority, > unless the power-off handler installation code suggests that there can be > more than one power-off handler and the new handler is only installed > conditionally. In this case, install the handler with low priority. > > Cc: Alexander Graf > Cc: Michael Ellerma

Re: [PATCH v3 4/7] sound/radeon: Add quirk for broken 64-bit MSI

2014-11-11 Thread Michael Ellerman
On Tue, 2014-11-11 at 14:12 -0700, Bjorn Helgaas wrote: > On Thu, Oct 16, 2014 at 09:55:32AM +1100, Benjamin Herrenschmidt wrote: > > On Wed, 2014-10-15 at 16:19 -0600, Bjorn Helgaas wrote: > > > PCI/MSI: Add device flag indicating that 64-bit MSIs don't work > > I'm still assuming you're going

Re: [PATCH 0/2] Add IPMI support for powernv powerpc machines

2014-11-11 Thread Michael Ellerman
On Thu, 2014-11-06 at 08:15 -0600, Corey Minyard wrote: > On 11/05/2014 09:38 PM, Jeremy Kerr wrote: > > Corey & Michael: if this is acceptable, it may be mergable as two > > separate patches - one for the IPMI subsystem, one for the powernv > > platform. However, we'd need to preserve their order

Re: powerpc: mitigate impact of decrementer reset

2014-11-12 Thread Michael Ellerman
On Wed, 2014-11-05 at 11:06 -0600, Paul Clarke wrote: > Sorry it took me so long to get back to this... > > On 10/07/2014 09:52 PM, Michael Ellerman wrote: > > On Tue, 2014-07-10 at 19:13:24 UTC, Paul Clarke wrote: > >> This patch short-circuits the reset of the de

Re: [PATCH] powerpc: mitigate impact of decrementer reset

2014-11-12 Thread Michael Ellerman
On Mon, 2014-11-10 at 14:58 -0600, Paul Clarke wrote: > On 11/10/2014 04:08 AM, Benjamin Herrenschmidt wrote: > > On Tue, 2014-10-07 at 14:13 -0500, Paul Clarke wrote: > >> This patch short-circuits the reset of the decrementer, exiting after > >> the decrementer reset, but before the housekeeping

Re: [PATCH v3 4/7] sound/radeon: Add quirk for broken 64-bit MSI

2014-11-12 Thread Michael Ellerman
On Wed, 2014-11-12 at 15:06 +1100, Benjamin Herrenschmidt wrote: > On Wed, 2014-11-12 at 13:23 +1100, Michael Ellerman wrote: > > On Tue, 2014-11-11 at 14:12 -0700, Bjorn Helgaas wrote: > > > On Thu, Oct 16, 2014 at 09:55:32AM +1100, Benjamin Herrenschmidt wrote: > > >

Re: powerpc/powernv: Support OPAL requested heartbeat

2014-11-12 Thread Michael Ellerman
On Wed, 2014-12-11 at 06:03:14 UTC, Benjamin Herrenschmidt wrote: > If OPAL requests it, call it back via opal_poll_events() at a > regular interval. Some versions of OPAL on some machines require > this to operate some internal timeouts properly. > > diff --git a/arch/powerpc/platforms/powernv/op

Re: [PATCH] i2c: Driver to expose PowerNV platform i2c busses

2014-11-12 Thread Michael Ellerman
On Wed, 2014-11-12 at 17:07 +1100, Benjamin Herrenschmidt wrote: > On Mon, 2014-11-10 at 11:35 +0530, Neelesh Gupta wrote: > > The patch exposes the available i2c busses on the PowerNV platform > > to the kernel and implements the bus driver to support i2c and > > smbus commands. > > The driver use

Re: [PATCH V2] powerpc/TM: Disable/Enable TM looking at the ibm, pa-features device tree entry

2014-11-12 Thread Michael Ellerman
patch for > P8 PR support and wanted a mechanism to disable TM. Alex added basic TM > support for PR mode after that. So we can drop the PR part of the > commit message. > > Michael Ellerman, > > Let me know if you want me to send an updated version with the those > part o

Re: [PATCH v2] drivers/char/ipmi: Add powernv IPMI driver

2014-11-13 Thread Michael Ellerman
On Thu, 2014-11-13 at 19:42 -0600, Corey Minyard wrote: > This looks good. Can this go into the IPMI tree now, or does it need > work done in the PowerPC tree first? You need to merge this first: https://git.kernel.org/cgit/linux/kernel/git/mpe/linux.git/log/?h=topic/opal-ipmi ie. $ git f

Re: powerpc: Fix Text randomization

2014-11-13 Thread Michael Ellerman
On Fri, 2014-11-14 at 11:03 +0530, Vineeth Vijayan wrote: > ping ! > > any update on this ? As i understand, only powerpc and s390 uses the > randomize_et_dyn call; for all other architecture this is an obsolete > function call. I asked: > >> I'm not clear on what has changed to break this? And

Re: [PATCH] [powerpc] Fix Text randomization

2014-11-16 Thread Michael Ellerman
On Fri, 2014-11-14 at 14:42 +0530, Vineeth Vijayan wrote: > Now there is no way to disable TEXT randomization on a PPC32/PPC64 > machine. Text randomization happens even in the case of "echo 0 > > /proc/sys/kernel/randomize_va_space" > > This happens due to the incorrect definition of ELF_ET_DYN_B

Re: [PATCH] powerpc: mitigate impact of decrementer reset

2014-11-17 Thread Michael Ellerman
On Mon, 2014-11-17 at 11:18 -0800, Paul E. McKenney wrote: > On Thu, Nov 13, 2014 at 01:42:12PM +1100, Michael Ellerman wrote: > > On Mon, 2014-11-10 at 14:58 -0600, Paul Clarke wrote: > > > On 11/10/2014 04:08 AM, Benjamin Herrenschmidt wrote: > > > > On Tue, 2

Re: [PATCH net-next] PPC: bpf_jit_comp: Unify BPF_MOD | BPF_X and BPF_DIV | BPF_X

2014-11-17 Thread Michael Ellerman
On Mon, 2014-11-17 at 23:07 +0300, Denis Kirjanov wrote: > Reduce duplicated code by unifying > BPF_ALU | BPF_MOD | BPF_X and BPF_ALU | BPF_DIV | BPF_X > > CC: Alexei Starovoitov > CC: Daniel Borkmann > CC: Philippe Bergheaud > Signed-off-by: Denis Kirjanov Please include the output of the test

Re: [powerpc] init nvram_pstore_info's buf_lock

2014-11-17 Thread Michael Ellerman
On Mon, 2014-17-11 at 02:52:30 UTC, Li Zhong wrote: > It seems nvram_pstore_info's buf_lock is not initialized before > registering, which causes some strange behavior when trying to obtain > the lock during kdump process. What kind of strange behaviour? Does it still work and just print a warning

[PATCH] powerpc: Remove more traces of bootmem

2014-11-17 Thread Michael Ellerman
o the NULL checks are and always have been redundant. Signed-off-by: Michael Ellerman --- arch/powerpc/kernel/pci-common.c| 1 - arch/powerpc/kernel/pci_32.c| 6 ++ arch/powerpc/kernel/setup_64.c | 2 +- arch/powerpc/lib/alloc.c

Re: [PATCH] [powerpc] Fix Text randomization

2014-11-18 Thread Michael Ellerman
On Tue, 2014-11-18 at 12:50 +0530, Vineeth Vijayan wrote: > On Mon, Nov 17, 2014 at 12:23 PM, Michael Ellerman > wrote: > > On Fri, 2014-11-14 at 14:42 +0530, Vineeth Vijayan wrote: > >> Now there is no way to disable TEXT randomization on a PPC32/PPC64 > >> machi

Re: [PATCH] powerpc: Remove more traces of bootmem

2014-11-18 Thread Michael Ellerman
On Tue, 2014-11-18 at 17:52 +1100, Michael Ellerman wrote: > diff --git a/arch/powerpc/platforms/ps3/setup.c > b/arch/powerpc/platforms/ps3/setup.c > index 009a2004b876..86ed156f468f 100644 > --- a/arch/powerpc/platforms/ps3/setup.c > +++ b/arch/powerpc/platforms/ps3/setup.c >

[git pull] Please pull mpe.git for-linus branch (for powerpc)

2014-11-18 Thread Michael Ellerman
Hi Linus, Please pull one fix from Scott, he says: This patch fixes a crash (introduced in v3.18-rc1) in the FSL MSI driver when threaded IRQs are enabled. The following changes since commit 8a97577a5967c1234ccc3bc1b45e4b1a58b39ea8: Merge branch 'for-linus' of git://git.kernel.org/pub/s

Re: [PATCH] powerpc: Remove more traces of bootmem

2014-11-18 Thread Michael Ellerman
On Tue, 2014-11-18 at 10:26 +, David Laight wrote: > From: Michael Ellerman > > Although we are now selecting NO_BOOTMEM, we still have some traces of > > bootmem lying around. That is because even with NO_BOOTMEM there is > > still a shim that converts bootmem calls int

Re: [PATCH] powerpc: Remove more traces of bootmem

2014-11-18 Thread Michael Ellerman
On Wed, 2014-11-19 at 16:29 +1100, Michael Ellerman wrote: > On Tue, 2014-11-18 at 10:26 +, David Laight wrote: > > From: Michael Ellerman > > > Although we are now selecting NO_BOOTMEM, we still have some traces of > > > bootmem lying around. That is because ev

[PATCH v2] powerpc: Remove more traces of bootmem

2014-11-19 Thread Michael Ellerman
_base() because MAX_DMA_ADDRESS is ~0ul on powerpc, so limiting the allocation to that is pointless, 16XB ought to be enough for anyone. Signed-off-by: Michael Ellerman --- arch/powerpc/kernel/pci-common.c| 1 - arch/powerpc/kernel/pci_32.c| 4 +--- arch/powerpc/ke

Re: pseries/le: Fix endiannes issue in RTAS call from xmon

2014-11-25 Thread Michael Ellerman
On Mon, 2014-24-11 at 14:07:53 UTC, Laurent Dufour wrote: > On pseries system (LPAR) xmon failed to enter when running in LE mode, system > is hunging. Inititating xmon will lead to such an output on the console: OK. You say "LPAR", by which you mean "under phyp" I think. I haven't seen this under

Re: powerpc/powernv: Fix the hmi event version check.

2014-11-25 Thread Michael Ellerman
On Thu, 2014-20-11 at 04:14:36 UTC, Mahesh Salgaonkar wrote: > From: Mahesh Salgaonkar > > The current HMI event structure is an ABI and carries a version field to > accommodate future changes without affecting/rearranging current structure > members that are valid for previous versions. The curr

Re: [2/3] powerpc/powernv: Replace OPAL_DEASSERT_RESET with EEH_RESET_DEACTIVATE

2014-11-25 Thread Michael Ellerman
On Mon, 2014-24-11 at 22:26:59 UTC, Gavin Shan wrote: > The flag passed to ioda_eeh_phb_reset() should be EEH_RESET_DEACTIVATE, > which is translated to OPAL_DEASSERT_RESET or something else by the > EEH backend accordingly. > > The patch replaces OPAL_DEASSERT_RESET with EEH_RESET_DEACTIVATE for

Re: [3/3] powerpc/eeh: Fix missed PE#0 on P7IOC

2014-11-25 Thread Michael Ellerman
On Mon, 2014-24-11 at 22:27:00 UTC, Gavin Shan wrote: > PE#0 should be regarded as valid for P7IOC, while it's invalid for > PHB3. The patch adds flag EEH_VALID_PE_ZERO to differentiate those > two cases. Without the patch, we possibly see frozen PE#0 state is > cleared without EEH recovery taken o

Re: [RESEND, V3] powerpc, xmon: Enable HW instruction breakpoint on POWER8

2014-11-26 Thread Michael Ellerman
On Tue, 2014-25-11 at 10:08:48 UTC, Anshuman Khandual wrote: > This patch enables support for hardware instruction breakpoints > on POWER8 with the help of a new register CIABR (Completed > Instruction Address Breakpoint Register). With this patch, single > hardware instruction breakpoint can be ad

Re: powerpc/powernv: Fix the hmi event version check.

2014-11-26 Thread Michael Ellerman
On Wed, 2014-11-26 at 15:56 +0530, Mahesh Jagannath Salgaonkar wrote: > On 11/26/2014 09:14 AM, Michael Ellerman wrote: > > On Thu, 2014-20-11 at 04:14:36 UTC, Mahesh Salgaonkar wrote: > >> From: Mahesh Salgaonkar > >> > >> The current HMI event structure is a

Re: [PATCH] powerpc: 32 bit getcpu VDSO function uses 64 bit instructions

2014-11-26 Thread Michael Ellerman
On Thu, 2014-11-27 at 08:11 +1100, Anton Blanchard wrote: > I used some 64 bit instructions when adding the 32 bit getcpu VDSO > function. Fix it. Ouch. The symptom is a SIGILL I presume? Could we catch this by forcing -m32 in the CFLAGS for vdso32 ? cheers

[git pull] Please pull mpe.git for-linus branch (for powerpc)

2014-11-26 Thread Michael Ellerman
Hi Linus, Here are five fixes for you to pull please. I think these are all rc6 material, but I'm still learning so let me know if you disagree :) They're all CC'ed to stable except the "Fix PE state format" one which went in this release. cheers The following changes since commit d7ce4377494

Re: powerpc/powernv: Add debugfs file to grab opalv3 trace data

2014-11-27 Thread Michael Ellerman
On Wed, 2014-26-11 at 04:10:04 UTC, Benjamin Herrenschmidt wrote: > This adds files in debugfs that can be used to retrieve the > OPALv3 firmware "live binary traces" which can then be parsed > using a userspace tool. > > Mostly from Rusty with some updates by myself (BenH) > > Signed-off-by: Rus

Re: [RESEND, V3] powerpc, xmon: Enable HW instruction breakpoint on POWER8

2014-11-27 Thread Michael Ellerman
On Thu, 2014-11-27 at 13:46 +0530, Anshuman Khandual wrote: > On 11/26/2014 01:55 PM, Michael Ellerman wrote: > > Something like this, untested: > > Yeah it is working on LPAR and also on bare metal platform as well. The new > patch > will use some of your suggested co

Re: powerpc/book3s: Fix flush_tlb cpu_spec hook to take a generic argument.

2014-11-28 Thread Michael Ellerman
On Tue, 2014-23-09 at 03:53:54 UTC, Mahesh Salgaonkar wrote: > From: Mahesh Salgaonkar > > The flush_tlb hook in cpu_spec was introduced as a generic function hook > to invalidate TLBs. But the current implementation of flush_tlb hook > takes IS (invalidation selector) as an argument which is arc

Re: [PATCH 6/8 v2] crypto: replace memset by memzero_explicit

2014-11-30 Thread Michael Ellerman
atch that makes this > > Signed-off-by: Julia Lawall > > --- > Daniel Borkmann suggested that these patches could go through Herbert Xu's > cryptodev tree. That's fine by me: Acked-by: Michael Ellerman cheers ___

Re: [PATCH v2] slab: Fix nodeid bounds check for non-contiguous node IDs

2014-11-30 Thread Michael Ellerman
On Mon, 2014-12-01 at 15:28 +1100, Paul Mackerras wrote: > The bounds check for nodeid in cache_alloc_node gives false > positives on machines where the node IDs are not contiguous, leading > to a panic at boot time. For example, on a POWER8 machine the node > IDs are typically 0, 1, 16 and 17

Re: [V4] powerpc, xmon: Enable HW instruction breakpoint on POWER8

2014-11-30 Thread Michael Ellerman
On Fri, 2014-28-11 at 04:36:42 UTC, Anshuman Khandual wrote: > This patch enables support for hardware instruction breakpoint in > xmon on POWER8 platform with the help of a new register called the > CIABR (Completed Instruction Address Breakpoint Register). With this > patch, a single hardware ins

[PATCH] powerpc/xmon: Cleanup the breakpoint flags

2014-11-30 Thread Michael Ellerman
Drop BP_IABR_TE, which though used, does not do anything useful. Rename BP_IABR to BP_CIABR. Renumber the flags. Signed-off-by: Michael Ellerman --- arch/powerpc/xmon/xmon.c | 19 +-- 1 file changed, 9 insertions(+), 10 deletions(-) This is on top of Anshuman's v4 of

Re: [PATCH v2] slab: Fix nodeid bounds check for non-contiguous node IDs

2014-12-01 Thread Michael Ellerman
On Mon, 2014-12-01 at 16:24 +1100, Paul Mackerras wrote: > On Mon, Dec 01, 2014 at 04:02:14PM +1100, Michael Ellerman wrote: > > On Mon, 2014-12-01 at 15:28 +1100, Paul Mackerras wrote: > > > The bounds check for nodeid in cache_alloc_node gives false > > > positives

Re: [PATCH REPOST 3/3] powerpc/vphn: move endianness fixing to vphn_unpack_associativity()

2014-12-01 Thread Michael Ellerman
On Fri, 2014-11-28 at 09:39 +0100, Greg Kurz wrote: > On Fri, 28 Nov 2014 12:49:08 +1100 > Benjamin Herrenschmidt wrote: > > In a second pass, we parse that stream, one 16-bytes at a time, and > > we could do so with a simple loop of be16_to_cpup(foo++). I wouldn't > > bother with the cast to 32-b

Re: [PATCH 2/2] powerpc/mm: don't do tlbie for updatepp request with NO HPTE fault

2014-12-01 Thread Michael Ellerman
On Mon, 2014-11-03 at 20:21 +0530, Aneesh Kumar K.V wrote: > upatepp get called for a nohpte fault, when we find from the linux > page table that the translation was hashed before. In that case > we are sure that there is no existing translation, hence we could > avoid doing tlbie. We are sure the

Re: Right location in sysfs for dlpar file

2014-12-01 Thread Michael Ellerman
On Mon, 2014-12-01 at 09:41 -0600, Nathan Fontenot wrote: > On 11/26/2014 09:12 PM, Benjamin Herrenschmidt wrote: > > Hi Greg, > > > > So Nathan is working on a patch series to cleanup and improve our > > "DLPAR" infrastructure which is basically our hotplug mechanism when > > running under the Po

Re: [PATCH v2] powerpc: Remove more traces of bootmem

2014-12-02 Thread Michael Ellerman
On Thu, 2014-11-20 at 13:33 +1100, Tony Breeds wrote: > On Thu, Nov 20, 2014 at 11:07:38AM +1100, Michael Ellerman wrote: > > --- a/arch/powerpc/lib/alloc.c > > +++ b/arch/powerpc/lib/alloc.c > > @@ -13,9 +13,7 @@ void * __init_refok zalloc_maybe_bootmem(size_t size, >

Re: [PATCH V2] powerpc/mm: don't do tlbie for updatepp request with NO HPTE fault

2014-12-02 Thread Michael Ellerman
On Tue, 2014-12-02 at 12:20 +0530, Aneesh Kumar K.V wrote: > upatepp get called for a nohpte fault, when we find from the linux > page table that the translation was hashed before. In that case > we are sure that there is no existing translation, hence we could > avoid doing tlbie. Same comments a

Re: [V6,1/9] elf: Add new powerpc specifc core note sections

2014-12-02 Thread Michael Ellerman
On Tue, 2014-02-12 at 07:56:45 UTC, Anshuman Khandual wrote: > This patch adds four new ELF core note sections for powerpc > transactional memory and one new ELF core note section for > powerpc general miscellaneous debug registers. These addition > of new ELF core note sections extends the existin

Re: [PATCH v5 1/6] perf: provide sysfs_show for struct perf_pmu_events_attr

2014-12-02 Thread Michael Ellerman
On Tue, 2014-12-02 at 18:03 -0800, Sukadev Bhattiprolu wrote: > From: Cody P Schafer > > (struct perf_pmu_events_attr) is defined in include/linux/perf_event.h, > but the only "show" for it is in x86 and contains x86 specific stuff. > > Make a generic one for those of us who are just using the e

Re: [PATCH] powerpc: drop useless warning in eeh_init()

2014-12-03 Thread Michael Ellerman
On Thu, 2014-12-04 at 09:14 +1100, Gavin Shan wrote: > On Wed, Dec 03, 2014 at 03:20:46PM +0100, Greg Kurz wrote: > >On Wed, 26 Nov 2014 09:28:47 +1100 > >Gavin Shan wrote: > >> On Tue, Nov 25, 2014 at 05:10:06PM +0100, Greg Kurz wrote: > >> >This is what we get in dmesg when booting a pseries gue

Re: [2/2] pstore: add pstore support on powernv

2014-12-03 Thread Michael Ellerman
On Wed, 2014-03-12 at 11:03:15 UTC, Hari Bathini wrote: > This patch extends pstore, a generic interface to platform dependent > persistent storage, support for powernv platform to capture certain > useful information, during dying moments. Such support is already in > place for pseries platform.

Re: powerpc/pci: remove pci device on a bus in reverse order

2014-12-03 Thread Michael Ellerman
On Thu, 2014-04-12 at 03:24:37 UTC, Wei Yang wrote: > As in commit ac205b7b (PCI: make sriov work with hotplug remove) indicates, > when removing pci devices on a bus which has VFs, we need to remove them in > the reverse order. > > This patch applies this pattern on the hotplug remove path on pow

Re: powerpc: remove the smt-enabled kernel parameter

2014-12-03 Thread Michael Ellerman
On Wed, 2014-03-12 at 13:58:13 UTC, Greg Kurz wrote: > This parameter basically leaves unwanted cpus executing in firmware or > wherever they happen to be. This is a hack that shoudn't be used in a > production environment. > > It also has an evil side effect on the split-core feature for powernv.

Re: powerpc/book3s: Fix flush_tlb cpu_spec hook to take a generic argument.

2014-12-04 Thread Michael Ellerman
On Tue, 2014-12-02 at 14:31 +0530, Mahesh Jagannath Salgaonkar wrote: > On 11/29/2014 04:08 AM, Michael Ellerman wrote: > > On Tue, 2014-23-09 at 03:53:54 UTC, Mahesh Salgaonkar wrote: > >> From: Mahesh Salgaonkar > >> > >> The flush_tlb hook in cpu_spec was i

Re: [v2] powerpc/powernv: Expose OPAL firmware symbol map

2014-12-05 Thread Michael Ellerman
On Fri, 2014-05-12 at 04:26:17 UTC, Benjamin Herrenschmidt wrote: > Newer versions of OPAL will provide this, so let's expose it to user > space so tools like perf can use it to properly decode samples in > firmware space. > > diff --git a/arch/powerpc/platforms/powernv/opal.c > b/arch/powerpc/pl

Re: powerpc: refresh mpc85xx_defconfig using "make savedefconfig"

2014-12-05 Thread Michael Ellerman
On Fri, 2014-05-12 at 08:17:42 UTC, Alessio Igor Bogani wrote: > Signed-off-by: Alessio Igor Bogani > --- > arch/powerpc/configs/mpc85xx_defconfig | 57 > +++--- > 1 file changed, 12 insertions(+), 45 deletions(-) Actually I was planning on doing this in bulk for all

[PATCH] powerpc/kernel: Make syscall_exit a local label

2014-12-05 Thread Michael Ellerman
call, and it was SyS_read(). Signed-off-by: Michael Ellerman --- arch/powerpc/kernel/entry_64.S | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/arch/powerpc/kernel/entry_64.S b/arch/powerpc/kernel/entry_64.S index 0905c8da90f1..d8828e50dbef 100644 --- a

Re: [PATCH 2 1/4] powerpc: drop the ability to tweak SMT mode at boot time

2014-12-08 Thread Michael Ellerman
On Fri, 2014-12-05 at 12:52 -0600, Scott Wood wrote: > On Fri, 2014-12-05 at 16:14 +0100, Greg Kurz wrote: > > The smt-enabled kernel parameter basically leaves unwanted cpus executing > > in firmware or wherever they happen to be. The very same applies to the > > ibm,smt-enabled DT property which

Re: [PATCH] arch: powerpc: kernel: vio.c: Remove unused function

2014-12-08 Thread Michael Ellerman
On Sun, 2014-12-07 at 23:31 +0100, Rickard Strandqvist wrote: > Remove the function cmo_high_show() that is not used anywhere. > > This was partially found by using a static code analysis program called > cppcheck. > > Signed-off-by: Rickard Strandqvist > --- > arch/powerpc/kernel/vio.c |5

Re: [v3] i2c: Driver to expose PowerNV platform i2c busses

2014-12-09 Thread Michael Ellerman
On Mon, 2014-08-12 at 06:36:16 UTC, Neelesh Gupta wrote: > The patch exposes the available i2c busses on the PowerNV platform > to the kernel and implements the bus driver to support i2c and > smbus commands. > The driver uses the platform device infrastructure to probe the busses > on the platform

Re: [4/5] powerpc, dscr: Added some in-code documentation

2014-12-09 Thread Michael Ellerman
On Mon, 2014-08-12 at 06:30:11 UTC, Anshuman Khandual wrote: > This patch adds some in-code documentation to the DSCR related > code to make it more readable without having any functional > change to it. Adding documentation is always good, but ... > diff --git a/arch/powerpc/include/asm/processo

Re: powerpc32: missing accessors to pgprot_t objects

2014-12-09 Thread Michael Ellerman
On Mon, 2014-08-12 at 14:16:29 UTC, LEROY Christophe wrote: > Compilation with #define STRICT_MM_TYPECHECKS in > arch/powerpc/include/asm/page.h > fails due to missing use of pgprot_val() when using pgprot_t objects. Any idea when this broke? Recently, or has it gone unnoticed for a long time? c

Re: [1/5] powerpc: Fix handling of DSCR related facility unavailable exception

2014-12-09 Thread Michael Ellerman
On Mon, 2014-08-12 at 06:30:08 UTC, Anshuman Khandual wrote: > Currently DSCR (Data Stream Control Register) can be accessed with > mfspr or mtspr instructions inside a thread via two different SPR > numbers. One being the user accessible problem state SPR number 0x03 > and the other being the priv

Re: powerpc32: missing accessors to pgprot_t objects

2014-12-09 Thread Michael Ellerman
On Mon, 2014-08-12 at 14:16:29 UTC, LEROY Christophe wrote: > Compilation with #define STRICT_MM_TYPECHECKS in > arch/powerpc/include/asm/page.h > fails due to missing use of pgprot_val() when using pgprot_t objects. Hmm, looks like 64 bit doesn't build either. Aneesh I think you added this, min

Re: [PATCH 2 1/4] powerpc: drop the ability to tweak SMT mode at boot time

2014-12-09 Thread Michael Ellerman
On Tue, 2014-12-09 at 15:04 -0600, Scott Wood wrote: > On Tue, 2014-12-09 at 15:11 +1100, Michael Ellerman wrote: > > On Fri, 2014-12-05 at 12:52 -0600, Scott Wood wrote: > > > On Fri, 2014-12-05 at 16:14 +0100, Greg Kurz wrote: > > > > The smt-enabled kernel param

Re: [PATCH 2 1/4] powerpc: drop the ability to tweak SMT mode at boot time

2014-12-09 Thread Michael Ellerman
On Tue, 2014-12-09 at 18:14 -0600, Scott Wood wrote: > On Wed, 2014-12-10 at 10:56 +1100, Michael Ellerman wrote: > > On Tue, 2014-12-09 at 15:04 -0600, Scott Wood wrote: > > > On Tue, 2014-12-09 at 15:11 +1100, Michael Ellerman wrote: > > > > On Fri, 2014-12-05 at

Re: [PATCH V4] powerpc: add little endian flag to syscall_get_arch()

2014-12-09 Thread Michael Ellerman
On Tue, 2014-12-09 at 21:11 -0500, Paul Moore wrote: > On Tuesday, December 09, 2014 03:37:07 PM Richard Guy Briggs wrote: > > Since both ppc and ppc64 have LE variants which are now reported by uname, > > add that flag (__AUDIT_ARCH_LE) to syscall_get_arch() and add > > AUDIT_ARCH_PPC64LE variant.

Re: [PATCH 1/2] perf/powerpc/hv-24x7: Use per-cpu page buffer

2014-12-10 Thread Michael Ellerman
On Tue, 2014-12-09 at 23:06 -0800, Sukadev Bhattiprolu wrote: > From 470c16c8955672103a9529c78dffbb239e9e27b8 Mon Sep 17 00:00:00 2001 > From: Sukadev Bhattiprolu > Date: Tue, 9 Dec 2014 22:17:46 -0500 > Subject: [PATCH 1/2] perf/poweprc/hv-24x7: Use per-cpu page buffer > > diff --git a/arch/powe

Re: [PATCH 2/2] perf/power/hv-24x7: Use kmem_cache_free() instead of kfree

2014-12-10 Thread Michael Ellerman
On Tue, 2014-12-09 at 23:09 -0800, Sukadev Bhattiprolu wrote: > From 982bf5a660ae33fbe2f9187187caa6752c66783d Mon Sep 17 00:00:00 2001 > From: Sukadev Bhattiprolu > Date: Wed, 10 Dec 2014 01:43:34 -0500 > Subject: [PATCH 2/2] power/perf: hv-24x7: Use kmem_cache_free() instead of > kfree This got

Re: [RFC PATCH 1/8] kprobes: Fix kallsyms lookup across powerpc ABIv1 and ABIv2

2014-12-10 Thread Michael Ellerman
On Tue, 2014-12-09 at 23:03 +0530, Naveen N. Rao wrote: > Currently, all non-dot symbols are being treated as function descriptors > in ABIv1. This is incorrect and is resulting in perf probe not working: I don't understand that first sentence. With ABIv1 non-dot symbols *are* function descriptors

Re: [RFC PATCH 2/8] perf probe powerpc: Fix symbol fixup issues due to ELF type

2014-12-10 Thread Michael Ellerman
On Tue, 2014-12-09 at 23:04 +0530, Naveen N. Rao wrote: > If using the symbol table, symbol addresses are not being fixed up > properly, resulting in probes being placed at wrong addresses: > > # perf probe do_fork > Added new event: > probe:do_fork(on do_fork) > > You can now u

Re: [RFC PATCH 3/8] perf probe: Improve detection of file/function name in the probe pattern

2014-12-10 Thread Michael Ellerman
On Tue, 2014-12-09 at 23:04 +0530, Naveen N. Rao wrote: > Currently, perf probe considers patterns including a '.' to be a file. > However, this causes problems on powerpc ABIv1 where all functions have > a leading '.': > > $ perf probe -F | grep schedule_timeout_interruptible > .schedule_time

Re: [RFC PATCH 4/8] perf probe powerpc: Handle powerpc dot symbols

2014-12-10 Thread Michael Ellerman
On Tue, 2014-12-09 at 23:04 +0530, Naveen N. Rao wrote: > Fix up various perf aspects related to ppc64's usage of dot functions: > - ignore leading '.' when generating event names and when looking for > existing events. > - use the proper prefix when ignoring SyS symbol lookups. > > diff --git a

Re: [RFC PATCH 5/8] perf probe powerpc: Allow matching against dot symbols

2014-12-10 Thread Michael Ellerman
On Tue, 2014-12-09 at 23:04 +0530, Naveen N. Rao wrote: > Allow perf probe to work on powerpc ABIv1 without the need to specify the > leading dot '.' for functions. 'perf probe do_fork' works with this patch. > > Signed-off-by: Naveen N. Rao > --- > tools/perf/util/probe-event.c | 9 + >

Re: [RFC PATCH 6/8] perf tools powerpc: Fix PPC64 ELF ABIv2 symbol decoding

2014-12-10 Thread Michael Ellerman
On Tue, 2014-12-09 at 23:04 +0530, Naveen N. Rao wrote: > PPC64 ELF ABIv2 has a Global Entry Point (GEP) and a Local Entry Point > (LEP). For purposes of probing, we need the LEP. Offset to the LEP is > encoded in st_other. > > diff --git a/tools/perf/arch/powerpc/util/elf-sym-decode.c > b/tools/

Re: [RFC PATCH 7/8] perf probe powerpc: Use DWARF info only if necessary

2014-12-10 Thread Michael Ellerman
On Tue, 2014-12-09 at 23:04 +0530, Naveen N. Rao wrote: > Use symbol table lookups by default if DWARF is not necessary, since > powerpc ABIv2 encodes local entry points in the symbol table and the > function entry address in DWARF may not be appropriate for kprobes, > as described here: > https://

Re: [RFC PATCH 3/8] perf probe: Improve detection of file/function name in the probe pattern

2014-12-10 Thread Michael Ellerman
On Wed, 2014-12-10 at 16:29 +0530, Naveen N. Rao wrote: > On 2014/12/10 09:00PM, Michael Ellerman wrote: > > On Tue, 2014-12-09 at 23:04 +0530, Naveen N. Rao wrote: > > > Currently, perf probe considers patterns including a '.' to be a file. > > > However,

<    1   2   3   4   5   6   7   8   9   10   >