[PATCH] powerpc: add hvcall.h include to book3s_hv.c

2011-11-09 Thread Michael Neuling
If you build with KVM and UP it fails with the following due to a missing include. /arch/powerpc/kvm/book3s_hv.c: In function 'do_h_register_vpa': arch/powerpc/kvm/book3s_hv.c:156:10: error: 'H_PARAMETER' undeclared (first use in this function) arch/powerpc/kvm/book3s_hv.c:156:10: note: each unde

Re: [PATCH v2 1/5] [ppc] Process dynamic relocations for kernel

2011-11-09 Thread Suzuki Poulose
On 11/09/11 20:23, Josh Poimboeuf wrote: On Wed, 2011-11-09 at 12:03 +0530, Suzuki Poulose wrote: On Tue, 08 Nov 2011 10:19:05 -0600 Josh Poimboeuf wrote: On Tue, 2011-11-08 at 12:41 +0530, Suzuki Poulose wrote: What I was suggesting is, instead of flushing the cache in relocate(), lets do i

[RFC PATCH 17/17] powerpc/e500: Finally remove "CONFIG_E500"

2011-11-09 Thread Kyle Moffett
This ambiguous config option is now only present as a Kconfig stub. Remove it and fix up the users. Signed-off-by: Kyle Moffett --- arch/powerpc/platforms/Kconfig.cputype | 10 -- 1 files changed, 4 insertions(+), 6 deletions(-) diff --git a/arch/powerpc/platforms/Kconfig.cputype b/a

[RFC PATCH 16/17] powerpc/e500: Make __setup_cpu_{e200, e500, e500mc, e5500} optional

2011-11-09 Thread Kyle Moffett
Only build the setup functions when the corresponding entries are included in the CPU table. Signed-off-by: Kyle Moffett --- arch/powerpc/kernel/cpu_setup_fsl_booke.S | 14 +- 1 files changed, 13 insertions(+), 1 deletions(-) diff --git a/arch/powerpc/kernel/cpu_setup_fsl_booke.S

[RFC PATCH 15/17] powerpc/e500: Fix up all remaining code uses of CONFIG_E500

2011-11-09 Thread Kyle Moffett
The CONFIG_E500 config option is ambiguous and used incorrectly in many places to refer to some combination of e500v1/v2, e500mc, and e5500. Fix up each reference to use the correct combinations of the following config options: CONFIG_FSL_E500_V1_V2 CONFIG_FSL_E500MC CONFIG_FSL_E5500 Signed

[RFC PATCH 14/17] powerpc/e500: Don't make kgdb use e500v1/e500v2 registers on e500mc

2011-11-09 Thread Kyle Moffett
The only systems which need the sparse PowerPC register map are the e500v1/e500v2. NOTE: The kgdb code does not otherwise use CONFIG_E500, so this support is probably still buggy on e500v1/e500v2, but I don't know kgdb enough to fix it. Signed-off-by: Kyle Moffett --- arch/powerpc/include/asm/k

[RFC PATCH 13/17] powerpc/e500: Add a new CONFIG_FSL_E5500 option for the e5500

2011-11-09 Thread Kyle Moffett
As part of splitting CONFIG_E500 into separate options for e500v1/v2 and e500mc/e5500, some code only needs to be built when e5500 support is required. This adds a new internal-use config option for both 32-bit and 64-bit builds that enables only the e5500 support code. Signed-off-by: Kyle Moffet

[RFC PATCH 12/17] powerpc/e500: Separate e500mc CPU table entries from e500v1/e500v2

2011-11-09 Thread Kyle Moffett
The e500mc CPUs have a classic FPU and are not compatible with e500v1 or e500v2. This patch fixes the 32-bit CPU feature tables so that e500mc entries are not present on e500v1/e500v2 systems and vice versa. Signed-off-by: Kyle Moffett --- arch/powerpc/include/asm/cputable.h | 16 ++--

[RFC PATCH 10/17] powerpc/e500: Fix up the last references to CONFIG_PPC_E500MC

2011-11-09 Thread Kyle Moffett
This moves the "select PPC_FPU" from PPC_E500MC to the new FSL_E500MC processor selection, where it belongs. The only actual difference that this patch introduces is the P5020DS board (FreeScale e5500 CPU) will not set FSL_E500MC when building in 64-bit mode. This is OK as all of the existing cod

[RFC PATCH 09/17] powerpc/e500: Split idle handlers for e500v1/v2 and e500mc

2011-11-09 Thread Kyle Moffett
These are totally different (more so in fact than 6xx vs. e500v1/v2), so there isn't really a good reason to keep them in the same file. Signed-off-by: Kyle Moffett --- arch/powerpc/include/asm/machdep.h |1 + arch/powerpc/kernel/Makefile|3 +- arch/powerpc/kernel/idle_e

[RFC PATCH 11/17] powerpc/e500: Use the correct assembler flags for e500mc and e5500

2011-11-09 Thread Kyle Moffett
The "-me500" assembler option is intended only for use on e500v1 or e500v2 systems. On modern binutils it will refuse to assemble standard floating point opcodes, and it will translate "lwsync" into "sync". This fixes the e500mc/e5500 kernel build on recent binutils. For e500mc/e5500 with standa

[RFC PATCH 08/17] powerpc/e500: Remove conditional "lwsync" substitution

2011-11-09 Thread Kyle Moffett
As FreeScale e500 systems have different cacheline sizes from e500mc, it is basically impossible for the kernel to support both in a single system image at present. Given that one is SPE-float and the other is classic-float, they are not generally userspace-compatible either. This patch updates t

[RFC PATCH 07/17] powerpc/e200: Rename CONFIG_E200 => CONFIG_FSL_E200

2011-11-09 Thread Kyle Moffett
Match the config symbols for FreeScale e500/e5500 chips by using "FSL" in the name of the config symbol. Signed-off-by: Kyle Moffett --- arch/powerpc/Kconfig |2 +- arch/powerpc/Makefile |2 +- arch/powerpc/include/asm/cputable.h|2 +- arch/powe

[RFC PATCH 06/17] powerpc/e500: Split FreeScale e500v1/v2 and e500mc config options

2011-11-09 Thread Kyle Moffett
Kernels built for e500 and e500mc are fundamentally incompatible with each other due to different cacheline sizes, support for SPE instructions, etc. Unfortuantely, there is a lot of support code with a morass of config options which mostly mean the same things (E500/E500MC/PPC_85xx/etc). As prep

[RFC PATCH 05/17] powerpc/e500: Remove unused "default e500" from CPU table

2011-11-09 Thread Kyle Moffett
As the 3 "e500" variants are generally incompatible with each other, (32bit-spe, 32bit-classic-fpu, 64bit-classic-fpu), there is no such thing as a "default e500" processor. Signed-off-by: Kyle Moffett --- arch/powerpc/kernel/cputable.c | 16 1 files changed, 0 insertions(+),

[RFC PATCH 04/17] powerpc: Allow multiple machine-check handlers

2011-11-09 Thread Kyle Moffett
Certain processor types are co-supportable, and their machine-check handlers will be referenced if the entries in cputable.c are actually generated, so allow more than one machine-check handler to be built in. This fixes a bug where configuring FreeScale E5500 support (P5020DS) into the kernel wou

[RFC PATCH 03/17] fsl_rio: Remove FreeScale e500 conditionals

2011-11-09 Thread Kyle Moffett
The "CONFIG_E500" conditional should be unnecessary. The fsl_rio hardware is only present on MPC85xx (e500/e500mc) anyways, although it should build everywhere for better compile-test coverage. The conditionally-defined fsl_rio_mcheck_exception() function lost its two e500-specific constants in c

[RFC PATCH 02/17] powerpc: Split up PHYS_64BIT config option to fix "select" issues

2011-11-09 Thread Kyle Moffett
The "CONFIG_PHYS_64BIT" option violates the Kconfig best-practices in various colorful ways. It has explicit dependencies, but it is also "select"ed by various CPUs and platforms. It is not set on 64-bit systems, but it is used by a number of pieces of powerpc code to enable or disable 64-bit phy

[RFC PATCH 01/17] powerpc/mpic: Fix bogus CONFIG_BOOKE conditional

2011-11-09 Thread Kyle Moffett
The code inside the conditional is only used by 85xx CoreNet fabric platforms, so add a new config define and use it where necessary. Signed-off-by: Kyle Moffett --- arch/powerpc/platforms/85xx/Kconfig|5 + arch/powerpc/platforms/85xx/Makefile | 11 ++- arch/powerpc/platf

[RFC PATCH 00/17] powerpc/e500: separate e500 from e500mc

2011-11-09 Thread Kyle Moffett
(Sorry for the repost, I accidentally omitted Baruch's email). Hello, I saw Baruch Siach's patch: powerpc: 85xx: separate e500 from e500mc Unfortunately, that patch breaks the dependencies for the P5020DS platform and does not fix the underlying code which does not understand what the ambiguou

[stable 3.1] [PATCH] powerpc/kvm: Fix build failure with HV KVM and CBE

2011-11-09 Thread Michael Neuling
From: Alexander Graf powerpc/kvm: Fix build failure with HV KVM and CBE When running with HV KVM and CBE config options enabled, I get build failures like the following: arch/powerpc/kernel/head_64.o: In function `cbe_system_error_hv': (.text+0x1228): undefined reference to `do_kvm_0x1202'

[stable 3.1] [PATCH] KVM: PPC: Assemble book3s{, _hv}_rmhandlers.S separately

2011-11-09 Thread Michael Neuling
From: Paul Mackerras KVM: PPC: Assemble book3s{,_hv}_rmhandlers.S separately This makes arch/powerpc/kvm/book3s_rmhandlers.S and arch/powerpc/kvm/book3s_hv_rmhandlers.S be assembled as separate compilation units rather than having them #included in arch/powerpc/kernel/exceptions-64s.S. We no lo

[RFC PATCH 00/17] powerpc/e500: separate e500 from e500mc

2011-11-09 Thread Kyle Moffett
Hello, I saw Baruch Siach's patch: powerpc: 85xx: separate e500 from e500mc Unfortunately, that patch breaks the dependencies for the P5020DS platform and does not fix the underlying code which does not understand what the ambiguous "CONFIG_E500" means. In order to fix the issue at the fundame

Re: [PATCH] net: fsl_pq_mdio: fix oops when using uninitialized mutex

2011-11-09 Thread Andy Fleming
> Fix this by moving the of_mdiobus_register() call earlier. > > Cc: Andy Fleming > Signed-off-by: Baruch Siach > --- >  drivers/net/ethernet/freescale/fsl_pq_mdio.c |   14 +++--- >  1 files changed, 7 insertions(+), 7 deletions(-) > > diff --git a/drivers/net/ethernet/freescale/fsl_pq_md

RE: [PATCH v14 03/10] USB/ppc4xx: Add Synopsys DWC OTG Core Interface Layer (CIL)

2011-11-09 Thread Tirumala Marri
>-Original Message- >From: linuxppc-dev-bounces+tmarri=amcc@lists.ozlabs.org >[mailto:linuxppc-dev-bounces+tmarri=amcc@lists.ozlabs.org] On Behalf >Of Pratyush Anand >Sent: Thursday, October 20, 2011 2:12 AM >To: tma...@apm.com >Cc: Mark Miesfeld; g...@kroah.com; linux-...@vger.kern

Re: [PATCH 5/7] fsl_pmc: update device bindings

2011-11-09 Thread Scott Wood
On Wed, Nov 09, 2011 at 04:59:16AM -0600, Li Yang-R58472 wrote: > >>> Do we have any chips that have ethernet controller support for wake > >>> on user-defined packet, but a sleep mode that doesn't let it be used? > >> > >> I think it is more a PMC feature cause Ethernet controller on many > >> SoC

Re: [PATCH 4/7] powerpc/85xx: add support to JOG feature using cpufreq interface

2011-11-09 Thread Scott Wood
On Wed, Nov 09, 2011 at 07:38:13PM +0800, Zhao Chenhui wrote: > On Mon, Nov 07, 2011 at 12:50:24PM -0600, Scott Wood wrote: > > On 11/07/2011 04:27 AM, Zhao Chenhui wrote: > > > There is only one ppc_proc_freq. no lock. > > > > I realize there's only one. > > > > I'm asking whether CPUs can have

Re: [PATCH 2/7] powerpc/85xx: add HOTPLUG_CPU support

2011-11-09 Thread Scott Wood
On Wed, Nov 09, 2011 at 02:31:23AM -0600, Li Yang-R58472 wrote: > >-Original Message- > >From: Wood Scott-B07421 > >Sent: Wednesday, November 09, 2011 4:58 AM > >To: Li Yang-R58472 > >Cc: Wood Scott-B07421; Zhao Chenhui-B35336; linuxppc-dev@lists.ozlabs.org > >Subject: Re: [PATCH 2/7] power

Re: [PATCH] powerpc/p1023: set IRQ[4:6, 11] to high level sensitive for PCIe

2011-11-09 Thread Kumar Gala
How did you come by this information? - k On Nov 7, 2011, at 2:32 AM, Roy Zang wrote: > P1023 external IRQ[4:6, 11] do not pin out, but the interrupts are > shared with PCIe controller. > The silicon internally ties the interrupts to L, so change the > IRQ[4:6,11] to high level sensitive for PCI

Re: [PATCH] powerpc: Export PIR data through sysfs

2011-11-09 Thread Scott Wood
On Wed, Nov 09, 2011 at 10:11:24AM +0530, Ananth N Mavinakayanahalli wrote: > On Tue, Nov 08, 2011 at 10:59:46AM -0600, Scott Wood wrote: > > On 11/08/2011 12:58 AM, Ananth N Mavinakayanahalli wrote: > > > On Mon, Nov 07, 2011 at 11:18:32AM -0600, Scott Wood wrote: > > >> What use does userspace ha

Re: [PATCH] powerpc/p1023: set IRQ[4:6, 11] to high level sensitive for PCIe

2011-11-09 Thread Scott Wood
On Wed, Nov 09, 2011 at 09:27:02AM -0600, Zang Roy-R61911 wrote: > > -Original Message- > > From: Wood Scott-B07421 > > Sent: Wednesday, November 09, 2011 0:54 AM > > To: Zang Roy-R61911 > > Cc: Wood Scott-B07421; linuxppc-dev@lists.ozlabs.org > > Subject: Re: [PATCH] powerpc/p1023: set IRQ

RE: [PATCH] powerpc/p1023: set IRQ[4:6, 11] to high level sensitive for PCIe

2011-11-09 Thread Zang Roy-R61911
> -Original Message- > From: Wood Scott-B07421 > Sent: Wednesday, November 09, 2011 0:54 AM > To: Zang Roy-R61911 > Cc: Wood Scott-B07421; linuxppc-dev@lists.ozlabs.org > Subject: Re: [PATCH] powerpc/p1023: set IRQ[4:6, 11] to high level sensitive > for > PCIe > > On 11/07/2011 11:51 PM

Re: [PATCH v2 1/5] [ppc] Process dynamic relocations for kernel

2011-11-09 Thread Josh Poimboeuf
On Wed, 2011-11-09 at 12:03 +0530, Suzuki Poulose wrote: > On Tue, 08 Nov 2011 10:19:05 -0600 > Josh Poimboeuf wrote: > > > On Tue, 2011-11-08 at 12:41 +0530, Suzuki Poulose wrote: > > > What I was suggesting is, instead of flushing the cache in > > > relocate(), lets do it like: > > > > > > for

Re: [PATCH 4/7] powerpc/85xx: add support to JOG feature using cpufreq interface

2011-11-09 Thread Zhao Chenhui
On Mon, Nov 07, 2011 at 12:50:24PM -0600, Scott Wood wrote: > On 11/07/2011 04:27 AM, Zhao Chenhui wrote: > > On Fri, Nov 04, 2011 at 02:42:54PM -0500, Scott Wood wrote: > >> On 11/04/2011 07:36 AM, Zhao Chenhui wrote: > >>> + cpufreq_frequency_table_target(policy, > >>> +

RE: [PATCH 5/7] fsl_pmc: update device bindings

2011-11-09 Thread Li Yang-R58472
>-Original Message- >From: Wood Scott-B07421 >Sent: Wednesday, November 09, 2011 4:40 AM >To: Li Yang-R58472 >Cc: Wood Scott-B07421; Zhao Chenhui-B35336; linuxppc-dev@lists.ozlabs.org >Subject: Re: [PATCH 5/7] fsl_pmc: update device bindings > >On 11/08/2011 04:56 AM, Li Yang-R58472 wrote:

Re: [PATCH] memory hotplug: Refuse to add unaligned memory regions

2011-11-09 Thread Chen Gong
于 2011/9/15 4:26, Anton Blanchard 写道: The sysfs memory probe interface allows unaligned regions to be added: # echo 0xff> /sys/devices/system/memory/probe # cat /proc/iomem 00ff-01fe : System RAM 01ff-02fe : System RAM 02ff-03fe : System RAM 03ff-04fe : Sys

Re: [PATCH 1/2] powerpc/ps3: Fix lost SMP IPIs

2011-11-09 Thread Peter Zijlstra
On Tue, 2011-11-08 at 14:37 -0800, Geoff Levand wrote: > Fixes the PS3 bootup hang introduced in 3.0-rc1 by: > > commit 317f394160e9beb97d19a84c39b7e5eb3d7815a > sched: Move the second half of ttwu() to the remote cpu > > Move the PS3's LV1 EOI call lv1_end_of_interrupt_ext() from ps3_chip_eo

Re: [PATCH v2 1/5] [ppc] Process dynamic relocations for kernel

2011-11-09 Thread Suzuki Poulose
On 11/09/11 12:03, Suzuki Poulose wrote: On Tue, 08 Nov 2011 10:19:05 -0600 Josh Poimboeuf wrote: On Tue, 2011-11-08 at 12:41 +0530, Suzuki Poulose wrote: What I was suggesting is, instead of flushing the cache in relocate(), lets do it like: for e.g, on 440x, (in head_44x.S :) #ifdef CONFI

RE: [PATCH 2/7] powerpc/85xx: add HOTPLUG_CPU support

2011-11-09 Thread Li Yang-R58472
>-Original Message- >From: Wood Scott-B07421 >Sent: Wednesday, November 09, 2011 4:58 AM >To: Li Yang-R58472 >Cc: Wood Scott-B07421; Zhao Chenhui-B35336; linuxppc-dev@lists.ozlabs.org >Subject: Re: [PATCH 2/7] powerpc/85xx: add HOTPLUG_CPU support > >On 11/08/2011 04:05 AM, Li Yang-R58472

Re: [PATCH v3 3/3] Use separate struct console structure for each hvc_console.

2011-11-09 Thread Michael Ellerman
On Tue, 2011-11-08 at 13:45 -0800, Miche Baker-Harvey wrote: > It is possible to make any virtio_console port be a console > by sending VIRITO_CONSOLE_CONSOLE_PORT. But hvc_alloc was > using a single struct console hvc_console, which contains > both an index and flags which are per-port. > > This