Re: [PATCH v2] powerpc: Add cpu family documentation

2014-04-29 Thread Michael Ellerman
On Tue, 2014-02-04 at 16:43 -0600, Scott Wood wrote: > On Sat, 2014-02-01 at 15:35 +1100, Michael Ellerman wrote: > > This patch adds some documentation on the different cpu families > > supported by arch/powerpc. > > > > Signed-off-by: Michael Ellerman > > --- > > v2: Reworked formatting to avoi

[PATCH] powerpc: fix skipping call to early_init_fdt_scan_reserved_mem

2014-04-29 Thread Rob Herring
From: Rob Herring The call to early_init_fdt_scan_reserved_mem will be skipped if reserved-ranges is not found. Move the call earlier so that it is called unconditionally. Signed-off-by: Rob Herring Cc: Marek Szyprowski Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: linuxppc-dev@lists.ozl

Re: [PATCH RFC v12 0/7] MPC512x DMA slave s/g support, OF DMA lookup

2014-04-29 Thread Alexander Popov
Hello 2014-04-23 17:53 GMT+04:00 Alexander Popov : > Changes in v12: > A new patch (part 2/7) is added to this series. > Part 6/7: > - change the description of 'compatible' property according part 2/7; > - improve the document according Gerhard's feedback; Could I have a feedback? Is the bin

Re: [PATCH 1/2] powerpc: mm: use macro PGTABLE_EADDR_SIZE instead of digital

2014-04-29 Thread Aneesh Kumar K.V
Liu Ping Fan writes: > In case of extending the eaddr in future, use this macro > PGTABLE_EADDR_SIZE to ease the maintenance of the code. > > Signed-off-by: Liu Ping Fan Reviewed-by: Aneesh Kumar K.V > --- > arch/powerpc/mm/slb_low.S | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >

Re: [PATCH v2] powerpc 32: Provides VIRT_CPU_ACCOUNTING

2014-04-29 Thread Benjamin Herrenschmidt
On Mon, 2014-04-07 at 09:31 +0200, Christophe Leroy wrote: > This patch provides VIRT_CPU_ACCOUTING to PPC32 architecture. > Unlike PPC64, PPC32 doesn't use the PACA convention. Therefore the > implementation is taken from the IA64 architecture. > It is based on additional information added to the

Re: [PATCH 1/1] powerpc: crtsaveres.o needed only when -Os flag is enabled

2014-04-29 Thread Benjamin Herrenschmidt
On Tue, 2014-04-29 at 10:38 -0500, Brian W Hart wrote: > > CHECKFLAGS += -m$(CONFIG_WORD_SIZE) -D__powerpc__ > > -D__powerpc$(CONFIG_WORD_SIZE)__ > > > > +ifdef CONFIG_CC_OPTIMIZE_FOR_SIZE > > KBUILD_LDFLAGS_MODULE += arch/powerpc/lib/crtsavres.o > > +endif > > + > > > > # No AltiVec or VS

Re: [PATCH 0/6] Implement split core for POWER8

2014-04-29 Thread Michael Neuling
> This patch series implements split core mode on POWER8. This enables up to 4 > subcores per core which can each independently run guests (per guest SPRs like > SDR1, LPIDR etc are replicated per subcore). Lots more documentation on this > feature in the code and commit messages. > > Most of th

Re: [PATCH] powerpc 32: Provides VIRT_CPU_ACCOUNTING

2014-04-29 Thread Benjamin Herrenschmidt
On Wed, 2014-03-19 at 17:05 -0500, Scott Wood wrote: > On Wed, 2014-03-19 at 22:52 +0100, Christophe Leroy wrote: > > This patch provides VIRT_CPU_ACCOUTING to PPC32 architecture. > > Unlike PPC64, PPC32 doesn't provide the PACA register. Therefore the > > implementation is similar to the one done

Re: [PATCH 1/2] powerpc/powernv: reduce multi-hit of iommu_add_device()

2014-04-29 Thread Wei Yang
On Wed, Apr 30, 2014 at 10:28:12AM +1000, Gavin Shan wrote: > >It seems that we have 2 problems here: > >- For non-SRIOV case, pcibios_setup_device() is called for towice. That > seems incorrect. We could simply remove pcibios_setup_bus_devices() > from pcibios_fixup_bus(). I have thought about

RE: [PATCH] powerpc/fsl-rio: Fix fsl_rio_setup error paths and use-after-unmap

2014-04-29 Thread gang....@freescale.com
> -Original Message- > From: Wood Scott-B07421 > Sent: Wednesday, April 30, 2014 1:13 AM > To: Liu Gang-B34182 > Cc: linuxppc-dev@lists.ozlabs.org > Subject: Re: [PATCH] powerpc/fsl-rio: Fix fsl_rio_setup error paths and > use-after-unmap > > On Mon, 2014-04-28 at 23:04 -0500, Liu Gang-B3

Re: [PATCH v2 2/2] fsl/mpic_timer: make mpic_timer to support deep sleep feature

2014-04-29 Thread Scott Wood
On Thu, 2014-04-24 at 14:12 +0800, Dongsheng Wang wrote: > From: Wang Dongsheng > > At T104x platfrom the timer clock will be changed from platform_clock > to sys_ref_clock when system going to deep sleep. > > So before system going to deep sleep, we need to change time to adapt > to the new fre

Re: [PATCH 1/2] powerpc/powernv: reduce multi-hit of iommu_add_device()

2014-04-29 Thread Wei Yang
On Tue, Apr 29, 2014 at 11:11:05PM +1000, Alexey Kardashevskiy wrote: >On 04/29/2014 07:37 PM, Wei Yang wrote: >> On Tue, Apr 29, 2014 at 05:55:48PM +1000, Alexey Kardashevskiy wrote: >>> On 04/29/2014 04:49 PM, Wei Yang wrote: On Mon, Apr 28, 2014 at 11:35:32PM +1000, Alexey Kardashevskiy wro

Re: [PATCH v2 00/21] FDT clean-ups and libfdt support

2014-04-29 Thread Stephen N Chivers
> From: Rob Herring > To: Grant Likely , linux- > ker...@vger.kernel.org, devicet...@vger.kernel.org > Cc: Rob Herring , Aurelien Jacquiot jacqu...@ti.com>, Benjamin Herrenschmidt , > Chris Zankel , "H. Peter Anvin" , > Ingo Molnar , James Hogan > Date: 04/30/2014 09:45 AM > Subject: [PATCH v2

Re: [PATCH 0/3] Add new ptrace request macros on PowerPC

2014-04-29 Thread Michael Neuling
Anshuman Khandual wrote: > On 04/29/2014 01:52 PM, Michael Neuling wrote: > > That's not what that patch does. It shouldn't make any user visible changes > > to DSCR or PPR. > > It may not when it runs uninterrupted but after the tracee process has > stopped, thread.dscr reflects the default DSC

Re: [PATCH 1/2] powerpc/powernv: reduce multi-hit of iommu_add_device()

2014-04-29 Thread Gavin Shan
On Tue, Apr 29, 2014 at 02:49:55PM +0800, Wei Yang wrote: >On Mon, Apr 28, 2014 at 11:35:32PM +1000, Alexey Kardashevskiy wrote: >>On 04/23/2014 12:26 PM, Wei Yang wrote: .../... >Generally, when kernel enumerate on the pci device, following functions will >be invoked. > > pci_device_add >

[PATCH 2/2] powerpc: fix smp_processor_id() in preemptible splat in set_breakpoint

2014-04-29 Thread Paul Gortmaker
Currently, on 8641D, which doesn't set CONFIG_HAVE_HW_BREAKPOINT we get the following splat: BUG: using smp_processor_id() in preemptible [] code: login/1382 caller is set_breakpoint+0x1c/0xa0 CPU: 0 PID: 1382 Comm: login Not tainted 3.15.0-rc3-00041-g2aafe1a4d451 #1 Call Trace: [decd5d80]

[PATCH 0/2] Fix smp_processor_id() in preemptible splat

2014-04-29 Thread Paul Gortmaker
This seems to have been around for a while; I tripped over it while working on testing 3.10-rt with Steven, and then confirmed it still was an issue on today's mainline. (didn't check -next however...) I didn't bisect, but it looks like it may have come in from the changes in v3.9-rc1~100^2~57. I

[PATCH] powerpc: memcpy optimization for 64bit LE

2014-04-29 Thread Anton Blanchard
From: Philippe Bergheaud Unaligned stores take alignment exceptions on POWER7 running in little-endian. This is a dumb little-endian base memcpy that prevents unaligned stores. Once booted the feature fixup code switches over to the VMX copy loops (which are already endian safe). The question is

[PATCH] powerpc: memcpy optimization for 64bit LE

2014-04-29 Thread Anton Blanchard
Unaligned stores take alignment exceptions on POWER7 running in little-endian. This is a dumb little-endian base memcpy that prevents unaligned stores. Once booted the feature fixup code switches over to the VMX copy loops (which are already endian safe). The question is what we do before that swi

[PATCH 1/2] powerpc: drop return value from set_breakpoint as it is unused

2014-04-29 Thread Paul Gortmaker
None of the callers check the return value, so it might as well not have one at all. Signed-off-by: Paul Gortmaker --- arch/powerpc/include/asm/debug.h | 2 +- arch/powerpc/kernel/process.c| 8 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/arch/powerpc/include/asm/d

Re: [PATCH v2 1/2] powerpc/pm: add api to get suspend state which is STANDBY or MEM

2014-04-29 Thread Rafael J. Wysocki
On Tuesday, April 29, 2014 05:47:12 PM Scott Wood wrote: > On Mon, 2014-04-28 at 13:53 +0800, Leo Li wrote: > > On Sat, Apr 26, 2014 at 5:45 AM, Scott Wood wrote: > > > On Thu, 2014-04-24 at 14:11 +0800, Dongsheng Wang wrote: > > >> From: Wang Dongsheng > > >> > > >> Add set_pm_suspend_state & pm

Re: [PATCH v2 1/2] powerpc/pm: add api to get suspend state which is STANDBY or MEM

2014-04-29 Thread Scott Wood
On Mon, 2014-04-28 at 13:53 +0800, Leo Li wrote: > On Sat, Apr 26, 2014 at 5:45 AM, Scott Wood wrote: > > On Thu, 2014-04-24 at 14:11 +0800, Dongsheng Wang wrote: > >> From: Wang Dongsheng > >> > >> Add set_pm_suspend_state & pm_suspend_state functions to set/get > >> suspend state. When system g

Re: [PATCH] powerpc/fsl-rio: Fix fsl_rio_setup error paths and use-after-unmap

2014-04-29 Thread Scott Wood
On Mon, 2014-04-28 at 23:04 -0500, Liu Gang-B34182 wrote: > > -Original Message- > > From: Wood Scott-B07421 > > Sent: Tuesday, April 29, 2014 9:32 AM > > To: linuxppc-dev@lists.ozlabs.org > > Cc: Wood Scott-B07421; Liu Gang-B34182 > > Subject: [PATCH] powerpc/fsl-rio: Fix fsl_rio_setup err

Re: [PATCH 1/1] powerpc: crtsaveres.o needed only when -Os flag is enabled

2014-04-29 Thread Brian W Hart
On Mon, Apr 28, 2014 at 05:05:08PM -0700, Ram Pai wrote: > powerpc: crtsaveres.o needed only when -Os flag is enabled > > Currently on powerpc arch, out-of-tree module fails to build without > crtsaveres.o, even when the module has no dependency on the symbols > provided by the

Re: [PATCH v2 00/21] FDT clean-ups and libfdt support

2014-04-29 Thread Grant Likely
On Tue, 22 Apr 2014 20:18:00 -0500, Rob Herring wrote: > From: Rob Herring > > This is a series of clean-ups of architecture FDT code and converts the > core FDT code over to using libfdt functions. This is in preparation > to add FDT based address translation parsing functions for early > conso

Re: [PATCH 1/2] powerpc/powernv: reduce multi-hit of iommu_add_device()

2014-04-29 Thread Alexey Kardashevskiy
On 04/29/2014 07:37 PM, Wei Yang wrote: > On Tue, Apr 29, 2014 at 05:55:48PM +1000, Alexey Kardashevskiy wrote: >> On 04/29/2014 04:49 PM, Wei Yang wrote: >>> On Mon, Apr 28, 2014 at 11:35:32PM +1000, Alexey Kardashevskiy wrote: On 04/23/2014 12:26 PM, Wei Yang wrote: > During the EEH hotp

Re: [PATCH 0/3] Add new ptrace request macros on PowerPC

2014-04-29 Thread Anshuman Khandual
On 04/29/2014 01:52 PM, Michael Neuling wrote: > That's not what that patch does. It shouldn't make any user visible changes > to DSCR or PPR. It may not when it runs uninterrupted but after the tracee process has stopped, thread.dscr reflects the default DSCR value as mentioned before. This can b

Re: [PATCH V3 2/2] powerpc/pseries: init fault_around_order for pseries

2014-04-29 Thread Madhavan Srinivasan
On Tuesday 29 April 2014 12:36 PM, Ingo Molnar wrote: > > * Madhavan Srinivasan wrote: > >> Performance data for different FAULT_AROUND_ORDER values from 4 socket >> Power7 system (128 Threads and 128GB memory). perf stat with repeat of 5 >> is used to get the stddev values. Test ran in v3.14 ke

Re: [PATCH 0/3] Add new ptrace request macros on PowerPC

2014-04-29 Thread Michael Neuling
That's not what that patch does. It shouldn't make any user visible changes to DSCR or PPR. Over syscall PPR and DSCR may change. Depending on your test case, that may be your problem. Mikey On 29 Apr 2014 18:02, "Anshuman Khandual" wrote: > On 04/29/2014 12:36 PM, Michael Neuling wrote: > > Ho

Re: [git pull] Please pull abiv2 branch

2014-04-29 Thread Philippe Bergheaud
Rusty Russell wrote: Philippe Bergheaud writes: Anton Blanchard wrote: Here are the ABIv2 patches rebased against 3.15-rc2. After recompiling 3.15-rc2 with the ABIv2 patches, I see the following line in Modules.symvers: 0x TOC. vmlinux EXPORT_SYMBOL Kernel will not load modul

Re: [PATCH 1/2] powerpc/powernv: reduce multi-hit of iommu_add_device()

2014-04-29 Thread Wei Yang
On Tue, Apr 29, 2014 at 05:55:48PM +1000, Alexey Kardashevskiy wrote: >On 04/29/2014 04:49 PM, Wei Yang wrote: >> On Mon, Apr 28, 2014 at 11:35:32PM +1000, Alexey Kardashevskiy wrote: >>> On 04/23/2014 12:26 PM, Wei Yang wrote: During the EEH hotplug event, iommu_add_device() will be invoked t

Re: [PATCH V3 2/2] powerpc/pseries: init fault_around_order for pseries

2014-04-29 Thread Madhavan Srinivasan
On Tuesday 29 April 2014 07:48 AM, Rusty Russell wrote: > Madhavan Srinivasan writes: >> diff --git a/arch/powerpc/platforms/pseries/setup.c >> b/arch/powerpc/platforms/pseries/setup.c >> index 2db8cc6..c87e6b6 100644 >> --- a/arch/powerpc/platforms/pseries/setup.c >> +++ b/arch/powerpc/platforms

Re: [PATCH V3 1/2] mm: move FAULT_AROUND_ORDER to arch/

2014-04-29 Thread Madhavan Srinivasan
On Monday 28 April 2014 03:06 PM, Kirill A. Shutemov wrote: > Madhavan Srinivasan wrote: >> Kirill A. Shutemov with 8c6e50b029 commit introduced >> vm_ops->map_pages() for mapping easy accessible pages around >> fault address in hope to reduce number of minor page faults. >> >> This patch creates i

Re: [PATCH V3 1/2] mm: move FAULT_AROUND_ORDER to arch/

2014-04-29 Thread Madhavan Srinivasan
On Monday 28 April 2014 02:36 PM, Peter Zijlstra wrote: > On Mon, Apr 28, 2014 at 02:31:29PM +0530, Madhavan Srinivasan wrote: >> +unsigned int fault_around_order = CONFIG_FAULT_AROUND_ORDER; > > __read_mostly? > Agreed. Will add it. Thanks for review. With regards Maddy ___

Re: [PATCH 0/3] Add new ptrace request macros on PowerPC

2014-04-29 Thread Anshuman Khandual
On 04/29/2014 12:36 PM, Michael Neuling wrote: > How is it causing the problem? As mentioned before, what I thought to be a problem is something expected behaviour. So it's not a problem any more. DSCR value inside the transaction will fall back to default as kernel wont let user specified value t

[PATCH] powerpc/eeh: Dump PE location code

2014-04-29 Thread Gavin Shan
As Ben suggested, it's meaningful to dump PE's location code for site engineers when hitting EEH errors. The patch introduces function eeh_pe_loc_get() to retireve the location code from dev-tree so that we can output it when hitting EEH errors. If primary PE bus is root bus, the PHB's dev-node wo

Re: [PATCH 1/2] powerpc/powernv: reduce multi-hit of iommu_add_device()

2014-04-29 Thread Alexey Kardashevskiy
On 04/29/2014 04:49 PM, Wei Yang wrote: > On Mon, Apr 28, 2014 at 11:35:32PM +1000, Alexey Kardashevskiy wrote: >> On 04/23/2014 12:26 PM, Wei Yang wrote: >>> During the EEH hotplug event, iommu_add_device() will be invoked three times >>> and two of them will trigger warning or error. >>> >>> The

[PATCH 1/2] ftrace: PPC, fix obsolete comment

2014-04-29 Thread Jiri Slaby
CONFIG_MCOUNT is not defined anymore, the corresponding #ifdef there is CONFIG_FUNCTION_TRACER. Signed-off-by: Jiri Slaby Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Cc: Steven Rostedt Cc: Frederic Weisbecker Cc: Ingo Molnar --- arch/powerpc/kernel/entry_32.S | 2 +- 1 file changed,

Re: [PATCH 0/3] Add new ptrace request macros on PowerPC

2014-04-29 Thread Michael Neuling
How is it causing the problem? Mikey On 29 Apr 2014 17:02, "Anshuman Khandual" wrote: > > On 04/02/2014 03:02 PM, Anshuman Khandual wrote: > > On 04/02/2014 12:32 PM, Anshuman Khandual wrote: > >> This patch series adds new ELF note sections which are used to > >> create new ptrace request

Re: [PATCH V3 2/2] powerpc/pseries: init fault_around_order for pseries

2014-04-29 Thread Ingo Molnar
* Madhavan Srinivasan wrote: > Performance data for different FAULT_AROUND_ORDER values from 4 socket > Power7 system (128 Threads and 128GB memory). perf stat with repeat of 5 > is used to get the stddev values. Test ran in v3.14 kernel (Baseline) and > v3.15-rc1 for different fault around orde

Re: [PATCH 0/3] Add new ptrace request macros on PowerPC

2014-04-29 Thread Anshuman Khandual
On 04/02/2014 03:02 PM, Anshuman Khandual wrote: > On 04/02/2014 12:32 PM, Anshuman Khandual wrote: >> This patch series adds new ELF note sections which are used to >> create new ptrace request macros for various transactional memory and >> miscellaneous registers on PowerPC. Please find the