[PATCH] powerpc/powernv: Unfreeze VF PE on releasing it

2015-06-23 Thread Gavin Shan
When releasing PE for SRIOV VF, the PE is forced to be frozen wrongly. When the same PE is picked for another VF, it won't work anyhow. The patch fixes the issue by unfreezing, not freezing the VF PE when releasing it. Signed-off-by: Gavin Shan --- arch/powerpc/platforms/powernv/pci-ioda.c | 2 +

Re: [RFC PATCH] powerpc/numa: initialize distance lookup table from drconf path

2015-06-23 Thread Nikunj A Dadhania
Hi Anton, Anton Blanchard writes: > Hi Nikunj, > >> From: Nikunj A Dadhania >> >> powerpc/numa: initialize distance lookup table from drconf path >> >> In some situations, a NUMA guest that supports >> ibm,dynamic-memory-reconfiguration node will end up having flat NUMA >> distances between n

Re: [PATCH SLOF 1/5] disk-label: simplify gpt-prep-partition? routine

2015-06-23 Thread Thomas Huth
On Mon, 22 Jun 2015 13:29:43 +0530 Nikunj A Dadhania wrote: > Signed-off-by: Nikunj A Dadhania > --- > slof/fs/packages/disk-label.fs | 36 +--- > 1 file changed, 13 insertions(+), 23 deletions(-) > > diff --git a/slof/fs/packages/disk-label.fs b/slof/fs/package

Re: [PATCH SLOF 2/5] introduce 8-byte LE helpers

2015-06-23 Thread Thomas Huth
On Mon, 22 Jun 2015 13:29:44 +0530 Nikunj A Dadhania wrote: > Signed-off-by: Nikunj A Dadhania > --- > slof/fs/little-endian.fs | 6 ++ > slof/fs/packages/disk-label.fs | 4 ++-- > 2 files changed, 8 insertions(+), 2 deletions(-) > > diff --git a/slof/fs/little-endian.fs b/slof/fs/li

Re: [PATCH SLOF 4/5] disk-label: add support for booting from GPT FAT partition

2015-06-23 Thread Thomas Huth
On Mon, 22 Jun 2015 13:29:46 +0530 Nikunj A Dadhania wrote: > For a GPT+LVM combination disk, older bootloader that does not support > LVM, cannot load kernel from LVM. > > The patch add support to read from BASIC_DATA UUID > partition. Installer has installed CHRP-BOOT config on a FAT file > sy

Re: [PATCH SLOF 5/5] disk-label: make gpt detection code more robust

2015-06-23 Thread Thomas Huth
On Mon, 22 Jun 2015 13:29:47 +0530 Nikunj A Dadhania wrote: > * Check for Protective MBR Magic > * Check for valid GPT Signature > * Boundary check for allocated block size before reading into the > buffer > > Signed-off-by: Nikunj A Dadhania > --- > slof/fs/packages/disk-label.fs | 21 +

[PATCH v4] powerpc/rcpm: add RCPM driver

2015-06-23 Thread Yuantian.Tang
From: Tang Yuantian There is a RCPM (Run Control/Power Management) in Freescale QorIQ series processors. The device performs tasks associated with device run control and power management. The driver implements some features: mask/unmask irq, enter/exit low power states, freeze time base, etc. S

[BACKPORT PATCH 1/5] perf probe ppc: Fix symbol fixup issues due to ELF type

2015-06-23 Thread Naveen N. Rao
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 use it in all perf tools, such as: perf record -e probe:do_for

[BACKPORT PATCH 2/5] perf probe ppc64le: Fix ppc64 ABIv2 symbol decoding

2015-06-23 Thread Naveen N. Rao
From: Ananth N Mavinakayanahalli From: Ananth N Mavinakayanahalli ppc64 ELF ABIv2 has a Global Entry Point (GEP) and a Local Entry Point (LEP). For purposes of probing, we need the LEP - the offset to which is encoded in st_other. Signed-off-by: Ananth N Mavinakayanahalli Reviewed-by: Srikar

[BACKPORT PATCH 3/5] perf probe ppc64le: Prefer symbol table lookup over DWARF

2015-06-23 Thread Naveen N. Rao
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://sourceware.org/bugzilla/show_bug.cgi?id=17638 "The DWARF address

[BACKPORT PATCH 4/5] perf probe ppc64le: Fixup function entry if using kallsyms lookup

2015-06-23 Thread Naveen N. Rao
On powerpc ABIv2, if no debug-info is found and we use kallsyms, we need to fixup the function entry to point to the local entry point. Use offset of 8 since current toolchains always generate 2 instructions (8 bytes). Signed-off-by: Naveen N. Rao Reviewed-by: Srikar Dronamraju Cc: Ananth N Mavi

[git pull] Please pull mpe/linux.git powerpc-4.2-1 tag

2015-06-23 Thread Michael Ellerman
Hi Linus, Please pull powerpc updates for 4.2: The following changes since commit 030bbdbf4c833bc69f502eae58498bc5572db736: Linux 4.1-rc3 (2015-05-10 15:12:29 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/mpe/linux.git tags/powerpc-4.2-1 for

[PATCH] ASoC: fsl: Add dedicated DMA buffer size for each cpu dai

2015-06-23 Thread Shengjiu Wang
As the ssi is not the only cpu dai, there are esai, spdif, sai. and imx_pcm_dma can be used by all of them. Especially ESAI need a larger DMA buffer size. So Add dedicated DMA buffer for each cpu dai. Signed-off-by: Shengjiu Wang --- sound/soc/fsl/fsl_esai.c|2 +- sound/soc/fsl/fsl_sai.c

Re: [RESEND PATCH V2 1/3] Add mmap flag to request pages are locked after page fault

2015-06-23 Thread Vlastimil Babka
On 06/22/2015 04:18 PM, Eric B Munson wrote: On Mon, 22 Jun 2015, Michal Hocko wrote: On Fri 19-06-15 12:43:33, Eric B Munson wrote: On Fri, 19 Jun 2015, Michal Hocko wrote: On Thu 18-06-15 16:30:48, Eric B Munson wrote: On Thu, 18 Jun 2015, Michal Hocko wrote: [...] Wouldn't it be much m

Re: [RESEND PATCH V2 0/3] Allow user to request memory to be locked on page fault

2015-06-23 Thread Vlastimil Babka
On 06/15/2015 04:43 PM, Eric B Munson wrote: Note that the semantic of MAP_LOCKED can be subtly surprising: "mlock(2) fails if the memory range cannot get populated to guarantee that no future major faults will happen on the range. mmap(MAP_LOCKED) on the other hand silently succeeds even if the

Re: [PATCH v2 1/1] net: fs_enet: Fix NETIF_F_SG feature for Freescale MPC5121

2015-06-23 Thread David Miller
From: Alexander Popov Date: Sun, 21 Jun 2015 01:32:46 +0300 > Commit 4fc9b87bae25 ("net: fs_enet: Implement NETIF_F_SG feature") > brings a trouble to Freescale MPC512x: a kernel oops happens > during sending non-linear sk_buff with .data not aligned by 4. > > Log quotation: ... > The reason: >

Re: [PATCH 1/2] Move the pt_regs_offset struct definition from arch to common include file

2015-06-23 Thread David Long
On 06/22/15 23:32, Michael Ellerman wrote: On Fri, 2015-06-19 at 10:12 -0400, David Long wrote: On 06/19/15 00:19, Michael Ellerman wrote: On Mon, 2015-06-15 at 12:42 -0400, David Long wrote: From: "David A. Long" The pt_regs_offset structure is used for HAVE_REGS_AND_STACK_ACCESS_API fea

[PATCH 05/13] perf pmu: Use __weak definition from

2015-06-23 Thread Arnaldo Carvalho de Melo
From: Sukadev Bhattiprolu Jiri Olsa pointed out, that the defines the attribute '__weak'. We might as well use that. Signed-off-by: Sukadev Bhattiprolu Acked-by: Jiri Olsa Cc: Andi Kleen Cc: Madhavan Srinivasan Cc: Michael Ellerman Cc: Namhyung Kim Cc: linuxppc-dev@lists.ozlabs.org Link:

[GIT PULL 00/13] perf/core improvements and fixes

2015-06-23 Thread Arnaldo Carvalho de Melo
Hi Ingo, Please consider pulling, - Arnaldo The following changes since commit a9a3cd900fbbcbf837d65653105e7bfc583ced09: Merge tag 'perf-core-for-mingo' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux into perf/core (2015-06-20 01:11:11 +0200) are available in the git r

[PATCH 06/13] perf pmu: Split perf_pmu__new_alias()

2015-06-23 Thread Arnaldo Carvalho de Melo
From: Sukadev Bhattiprolu Separate the event parsing code in perf_pmu__new_alias() out into a separate function __perf_pmu__new_alias() so that code can be called indepdently. This is based on an earlier patch from Andi Kleen. Signed-off-by: Sukadev Bhattiprolu Acked-by: Jiri Olsa Cc: Andi Kl

[PATCH 07/13] perf tools: Allow events with dot

2015-06-23 Thread Arnaldo Carvalho de Melo
From: Andi Kleen The Intel events use a dot to separate event name and unit mask. Allow dot in names in the scanner, and remove special handling of dot as EOF. Also remove the hack in jevents to replace dot with underscore. This way dotted events can be specified directly by the user. I'm not f

Re: [2/3] powerpc/iommu: Cleanup setting of DMA base/offset

2015-06-23 Thread Michael Ellerman
On Mon, 2015-22-06 at 04:32:05 UTC, Benjamin Herrenschmidt wrote: > Now that the table and the offset can co-exist, we no longer need > to flip/flop, we can just establish both once at boot time. > > Signed-off-by: Benjamin Herrenschmidt > --- > arch/powerpc/platforms/powernv/pci-ioda.c | 50 >

Re: [PATCH SLOF 4/5] disk-label: add support for booting from GPT FAT partition

2015-06-23 Thread Segher Boessenkool
On Tue, Jun 23, 2015 at 09:34:44AM +0200, Thomas Huth wrote: > > +: load-from-gpt-partition ( [ addr ] -- size | TRUE ) > > What do you mean with addr in square brackets? Is it optional? And "size | TRUE"? The code even returns "false" instead, which usually is a valid size (0). Just always ret

Re: [PATCH v2 6/7]powerpc/powernv: generic nest pmu event functions

2015-06-23 Thread Madhavan Srinivasan
On Tuesday 23 June 2015 07:19 AM, Sukadev Bhattiprolu wrote: > Madhavan Srinivasan [ma...@linux.vnet.ibm.com] wrote: > | From: Madhavan Srinivasan > | Subject: [PATCH v2 6/7]powerpc/powernv: generic nest pmu event functions > | > | Add generic format attribute and set of generic nest pmu relate

Re: powerpc,numa: Memory hotplug to memory-less nodes ?

2015-06-23 Thread Bharata B Rao
So will it be correct to say that memory hotplug to memory-less node isn't supported by PowerPC kernel ? Should I enforce the same in QEMU for PowerKVM ? On Mon, Jun 22, 2015 at 10:18 AM, Bharata B Rao wrote: > Hi, > > While developing memory hotplug support in QEMU for PoweKVM, I > realized that

Re: [PATCH 1/2] Move the pt_regs_offset struct definition from arch to common include file

2015-06-23 Thread Michael Ellerman
On Tue, 2015-06-23 at 09:48 -0400, David Long wrote: > On 06/22/15 23:32, Michael Ellerman wrote: > > On Fri, 2015-06-19 at 10:12 -0400, David Long wrote: > >> On 06/19/15 00:19, Michael Ellerman wrote: > >>> On Mon, 2015-06-15 at 12:42 -0400, David Long wrote: > From: "David A. Long" >

Re: [PATCH] powerpc: Set the correct kernel taint on machine check errors.

2015-06-23 Thread Michael Ellerman
On Mon, 2015-06-15 at 13:25 +1000, Daniel Axtens wrote: > This means the 'M' flag will work properly when the kernel prints a backtrace. > > Signed-off-by: Daniel Axtens > --- > arch/powerpc/kernel/traps.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/arch/powerpc/kernel/traps.c b/

Re: [PATCH] powerpc: Set the correct kernel taint on machine check errors.

2015-06-23 Thread Daniel Axtens
On Wed, 2015-06-24 at 15:00 +1000, Michael Ellerman wrote: > On Mon, 2015-06-15 at 13:25 +1000, Daniel Axtens wrote: > > This means the 'M' flag will work properly when the kernel prints a > > backtrace. > > > > Signed-off-by: Daniel Axtens > > --- > > arch/powerpc/kernel/traps.c | 2 ++ > > 1

[PATCH 1/3] powerpc/iommu: Remove dma_data union

2015-06-23 Thread Benjamin Herrenschmidt
To support "hybrid" DMA ops in a subsequent patch, we will need both a direct DMA offset and an iommu pointer. Those are currently exclusive (a union), so change them to be separate fields. While there, also type iommu_table_base properly and make exist only on CONFIG_PPC64 since it's not referenc

[PATCH 2/3] powerpc/iommu: Cleanup setting of DMA base/offset

2015-06-23 Thread Benjamin Herrenschmidt
Now that the table and the offset can co-exist, we no longer need to flip/flop, we can just establish both once at boot time. Signed-off-by: Benjamin Herrenschmidt --- arch/powerpc/platforms/powernv/pci-ioda.c | 3 +-- arch/powerpc/platforms/pseries/iommu.c| 3 +-- arch/powerpc/sysdev/dart

[PATCH 3/3] powerpc/iommu: Support "hybrid" iommu/direct DMA ops for coherent_mask < dma_mask

2015-06-23 Thread Benjamin Herrenschmidt
This patch adds the ability to the DMA direct ops to fallback to the IOMMU ops for coherent alloc/free if the coherent mask of the device isn't suitable for accessing the direct DMA space and the device also happens to have an active IOMMU table. Signed-off-by: Benjamin Herrenschmidt --- arch/po

Re: [PATCH SLOF 4/5] disk-label: add support for booting from GPT FAT partition

2015-06-23 Thread Nikunj A Dadhania
Segher Boessenkool writes: > On Tue, Jun 23, 2015 at 09:34:44AM +0200, Thomas Huth wrote: >> > +: load-from-gpt-partition ( [ addr ] -- size | TRUE ) >> >> What do you mean with addr in square brackets? Is it optional? > > And "size | TRUE"? The code even returns "false" instead, which > usuall

Re: [PATCH SLOF 4/5] disk-label: add support for booting from GPT FAT partition

2015-06-23 Thread Nikunj A Dadhania
Thomas Huth writes: > On Mon, 22 Jun 2015 13:29:46 +0530 > Nikunj A Dadhania wrote: > >> For a GPT+LVM combination disk, older bootloader that does not support >> LVM, cannot load kernel from LVM. >> >> The patch add support to read from BASIC_DATA UUID >> partition. Installer has installed CHR

Re: [PATCH SLOF 5/5] disk-label: make gpt detection code more robust

2015-06-23 Thread Nikunj A Dadhania
Thomas Huth writes: > On Mon, 22 Jun 2015 13:29:47 +0530 > Nikunj A Dadhania wrote: > >> * Check for Protective MBR Magic >> * Check for valid GPT Signature >> * Boundary check for allocated block size before reading into the >> buffer >> >> Signed-off-by: Nikunj A Dadhania >> --- >> slof/f

Re: [PATCH v2 7/7]powerpc/powernv: nest pmu cpumask and cpu hotplug support

2015-06-23 Thread Madhavan Srinivasan
On Monday 22 June 2015 02:45 PM, Madhavan Srinivasan wrote: > > On Tuesday 16 June 2015 11:58 AM, Preeti U Murthy wrote: >> On 06/11/2015 10:47 AM, Madhavan Srinivasan wrote: >>> Adds cpumask attribute to be used by each nest pmu since nest >>> units are per-chip. Only one cpu (first online cpu)

[PATCH] tick/idle/powerpc: Do not register idle states with CPUIDLE_FLAG_TIMER_STOP set in periodic mode

2015-06-23 Thread Preeti U Murthy
On some archs, the local clockevent device stops in deep cpuidle states. The broadcast framework is used to wakeup cpus in these idle states, in which either an external clockevent device is used to send wakeup ipis or the hrtimer broadcast framework kicks in in the absence of such a device. One cp