build failure with kernel 2.6.35-rc5-git6/git7 on power box

2010-07-22 Thread divya
Hi, The kernel versions 2.6.35-rc5-git6(commitid f4b23cc2d5dc78ef) and 2.6.35-rc5-git7(commitid cd5b8f8755a89a5) fails to build on power6 and power5 machines with the following error drivers/gpu/drm/ttm/ttm_page_alloc.c: In function 'set_pages_array_wb':

Re: build failure with kernel 2.6.35-rc5-git6/git7 on power box

2010-07-22 Thread Stephen Rothwell
Hi, On Thu, 22 Jul 2010 13:20:57 +0530 divya dipra...@linux.vnet.ibm.com wrote: The kernel versions 2.6.35-rc5-git6(commitid f4b23cc2d5dc78ef) and 2.6.35-rc5-git7(commitid cd5b8f8755a89a5) fails to build on power6 and power5 machines with the following error

[PATCH] RapidIO,powerpc/85xx: remove MCSR_MASK in fsl_rio

2010-07-22 Thread Alexandre Bounine
Fixes compile problem caused by MCSR_MASK removal from book-E definitions. Signed-off-by: Alexandre Bounine alexandre.boun...@idt.com Cc: Kumar Gala ga...@kernel.crashing.org Cc: Grant Likely grant.lik...@secretlab.ca Cc: Matt Porter mpor...@kernel.crashing.org --- arch/powerpc/sysdev/fsl_rio.c

Re: [PATCH] powerpc: print cores passed to firmware in decimal

2010-07-22 Thread Segher Boessenkool
+ case 'i': + ++q; + v = va_arg(args, unsigned long); + prom_print_dec(v); + break; Unsigned long should be %lu. Segher ___ Linuxppc-dev mailing

Re: [PATCH] powerpc: rename immap_86xx.h to fsl_guts.h, and add 85xx support

2010-07-22 Thread Peter Tyser
Hi Timur, +/** + * Global Utility Registers. + * + * Not all registers defined in this structure are available on all chips, so + * you are expected to know whether a given register actually exists on your + * chip before you access it. + * + * Also, some registers are similar on

Re: [PATCH 2/2] mpc85xx_edac: change to use new definitions for PCI EDAC regspace

2010-07-22 Thread Kumar Gala
On Jul 21, 2010, at 7:03 PM, Dmitry Eremin-Solenikov wrote: Currently (as mpc8540-pci) devices are not created on of_platform bus, mpc85xx_edac can't probe to them. Follow the change to dts trees to bind not to the main mpc8540-pci node but to special mpc85xx-pci-error nodes, present on soc

Re: [PATCH] powerpc: rename immap_86xx.h to fsl_guts.h, and add 85xx support

2010-07-22 Thread Kumar Gala
On Jul 22, 2010, at 10:30 AM, Peter Tyser wrote: Hi Timur, +/** + * Global Utility Registers. + * + * Not all registers defined in this structure are available on all chips, so + * you are expected to know whether a given register actually exists on your + * chip before you access it.

Re: [PATCH 1/2] MPC85xx: add definitions for PCI error detection soc part

2010-07-22 Thread Peter Tyser
Hi Dmitry, On Thu, 2010-07-22 at 04:03 +0400, Dmitry Eremin-Solenikov wrote: Add definitions for PCI error detection device to be handled by (already existing) mpc85xx_edac.c driver. Signed-off-by: Dmitry Eremin-Solenikov dbarysh...@gmail.com --- arch/powerpc/boot/dts/mpc8536ds.dts

[PATCH 0/3] Add USB Host support for MPC5121 SoC

2010-07-22 Thread Anatolij Gustschin
This is new attempt to add MPC512x USB support in mainline kernel. USB OTG support is not included in this patch series, it will be submitted later. Anatolij Gustschin (3): powerpc/fsl_soc.c: remove FSL USB platform code USB: add of_platform glue driver for FSL USB DR controller USB: add

[PATCH 1/3] powerpc/fsl_soc.c: remove FSL USB platform code

2010-07-22 Thread Anatolij Gustschin
This removed code will be replaced by simple of_platform driver for creation of FSL USB platform devices which is added by next patch of the series. Signed-off-by: Anatolij Gustschin ag...@denx.de Cc: Kumar Gala ga...@kernel.crashing.org Cc: Grant Likely grant.lik...@secretlab.ca ---

[PATCH 2/3] USB: add of_platform glue driver for FSL USB DR controller

2010-07-22 Thread Anatolij Gustschin
The driver creates platform devices based on the information from USB nodes in the flat device tree. This is the replacement for old arch fsl_soc usb code removed by the previous patch. It uses usual of-style binding, available EHCI-HCD and UDC drivers can be bound to the created devices. The new

[PATCH 3/3] USB: add USB EHCI support for MPC5121 SoC

2010-07-22 Thread Anatolij Gustschin
Extends FSL EHCI platform driver glue layer to support MPC5121 USB controllers. MPC5121 Rev 2.0 silicon EHCI registers are in big endian format. The appropriate flags are set using the information in the platform data structure. MPC83xx system interface registers are not available on MPC512x, so

[PATCH][v2] powerpc: rename immap_86xx.h to fsl_guts.h, and add 85xx support

2010-07-22 Thread Timur Tabi
The immap_86xx.h header file only defines one data structure: the global utilities register set found on Freescale PowerPC SOCs. Rename this file to fsl_guts.h to reflect its true purpose, and extend it to cover the GUTS register set on 85xx chips. Signed-off-by: Timur Tabi ti...@freescale.com

Re: [PATCH 2/2] mpc85xx_edac: change to use new definitions for PCI EDAC regspace

2010-07-22 Thread Dmitry Eremin-Solenikov
Hello, On Thu, Jul 22, 2010 at 7:38 PM, Kumar Gala ga...@kernel.crashing.org wrote: On Jul 21, 2010, at 7:03 PM, Dmitry Eremin-Solenikov wrote: Currently (as mpc8540-pci) devices are not created on of_platform bus, mpc85xx_edac can't probe to them. Follow the change to dts trees to bind not

Re: [PATCH 1/2] MPC85xx: add definitions for PCI error detection soc part

2010-07-22 Thread Dmitry Eremin-Solenikov
Hello, On Thu, Jul 22, 2010 at 7:19 PM, Peter Tyser pty...@xes-inc.com wrote: Hi Dmitry, On Thu, 2010-07-22 at 04:03 +0400, Dmitry Eremin-Solenikov wrote: Add definitions for PCI error detection device to be handled by (already existing) mpc85xx_edac.c driver. Signed-off-by: Dmitry

Re: [PATCH][v2] powerpc: rename immap_86xx.h to fsl_guts.h, and add 85xx support

2010-07-22 Thread Mark Brown
On Thu, Jul 22, 2010 at 11:33:30AM -0500, Timur Tabi wrote: The immap_86xx.h header file only defines one data structure: the global utilities register set found on Freescale PowerPC SOCs. Rename this file to fsl_guts.h to reflect its true purpose, and extend it to cover the GUTS register set

Re: [PATCH 1/2] MPC85xx: add definitions for PCI error detection soc part

2010-07-22 Thread Peter Tyser
On Thu, 2010-07-22 at 04:03 +0400, Dmitry Eremin-Solenikov wrote: Add definitions for PCI error detection device to be handled by (already existing) mpc85xx_edac.c driver. Signed-off-by: Dmitry Eremin-Solenikov dbarysh...@gmail.com --- arch/powerpc/boot/dts/mpc8536ds.dts|

Re: [PATCH v2 2/2] EDAC: Remove deprecated bindings for MPC85xx

2010-07-22 Thread Scott Wood
On Wed, 21 Jul 2010 18:04:10 -0400 Bradley Hughes bhug...@silicontkx.com wrote: The fsl,85... style bindings for the l2-cache-controller and memory-controller were intended to be deprected as of 2.6.30 per comment in drivers/edac/mpc85xx_edac.c. And yet they were only removed from the

[PATCH][RFC] preempt_count corruption across H_CEDE call with CONFIG_PREEMPT on pseries

2010-07-22 Thread Darren Hart
While testing CPU offline/online, we hit various preempt_count related bugs. Various hacks have been employed for several theoretical corner cases. One situation however is perfectly repeatable on 2.6.33.6 with CONFIG_PREEMPT=y. BUG: scheduling while atomic: swapper/0/0x0065 Modules linked

Re: [PATCH 2/2] mpc85xx_edac: change to use new definitions for PCI EDAC regspace

2010-07-22 Thread Scott Wood
On Thu, 22 Jul 2010 20:48:15 +0400 Dmitry Eremin-Solenikov dbarysh...@gmail.com wrote: Hello, On Thu, Jul 22, 2010 at 7:38 PM, Kumar Gala ga...@kernel.crashing.org wrote: On Jul 21, 2010, at 7:03 PM, Dmitry Eremin-Solenikov wrote: Currently (as mpc8540-pci) devices are not created on

[PATCH] powerpc/kexec: Fix boundary case for book-e kexec memory limits

2010-07-22 Thread Kumar Gala
The KEXEC_*_MEMORY_LIMITs are inclusive addresses. We define them as 2Gs as that is what we allow mapping via TLBs. However, this should be 2G - 1 to be inclusive, otherwise if we have 2G of memory in a system we fail to boot properly via kexec. Signed-off-by: Kumar Gala

Re: [PATCH][RFC] preempt_count corruption across H_CEDE call with CONFIG_PREEMPT on pseries

2010-07-22 Thread Darren Hart
On 07/22/2010 11:24 AM, Darren Hart wrote: The following patch is most certainly not correct, but it does eliminate the situation on mainline 100% of the time (there is still a 25% reproduction rate on PREEMPT_RT). Can someone comment on: Apologies. This particular issue is also 100%

Re: [PATCH 2/2] mpc85xx_edac: change to use new definitions for PCI EDAC regspace

2010-07-22 Thread Kumar Gala
On Jul 22, 2010, at 1:25 PM, Scott Wood wrote: On Thu, 22 Jul 2010 20:48:15 +0400 Dmitry Eremin-Solenikov dbarysh...@gmail.com wrote: Hello, On Thu, Jul 22, 2010 at 7:38 PM, Kumar Gala ga...@kernel.crashing.org wrote: On Jul 21, 2010, at 7:03 PM, Dmitry Eremin-Solenikov wrote:

Re: [PATCH][RFC] preempt_count corruption across H_CEDE call with CONFIG_PREEMPT on pseries

2010-07-22 Thread Thomas Gleixner
On Thu, 22 Jul 2010, Darren Hart wrote: Also of interest is that this path cpu_idle()-cpu_die()-pseries_mach_cpu_die() to start_secondary() enters with a preempt_count=1 if it wasn't corrupted across the hcall. That triggers the problem as well. preempt_count needs to be 0 when entering

Re: [PATCH][v2] powerpc: rename immap_86xx.h to fsl_guts.h, and add 85xx support

2010-07-22 Thread Kumar Gala
On Jul 22, 2010, at 11:49 AM, Mark Brown wrote: On Thu, Jul 22, 2010 at 11:33:30AM -0500, Timur Tabi wrote: The immap_86xx.h header file only defines one data structure: the global utilities register set found on Freescale PowerPC SOCs. Rename this file to fsl_guts.h to reflect its true

Re: [PATCH 2/2] mpc85xx_edac: change to use new definitions for PCI EDAC regspace

2010-07-22 Thread Dmitry Eremin-Solenikov
Hello, On Thu, Jul 22, 2010 at 10:40 PM, Kumar Gala ga...@kernel.crashing.org wrote: On Jul 22, 2010, at 1:25 PM, Scott Wood wrote: On Thu, 22 Jul 2010 20:48:15 +0400 Dmitry Eremin-Solenikov dbarysh...@gmail.com wrote: Hello, On Thu, Jul 22, 2010 at 7:38 PM, Kumar Gala

Re: [PATCH 2/2] mpc85xx_edac: change to use new definitions for PCI EDAC regspace

2010-07-22 Thread Grant Likely
On Thu, Jul 22, 2010 at 10:48 AM, Dmitry Eremin-Solenikov dbarysh...@gmail.com wrote: Hello, On Thu, Jul 22, 2010 at 7:38 PM, Kumar Gala ga...@kernel.crashing.org wrote: On Jul 21, 2010, at 7:03 PM, Dmitry Eremin-Solenikov wrote: Currently (as mpc8540-pci) devices are not created on

Re: [PATCH 2/2] mpc85xx_edac: change to use new definitions for PCI EDAC regspace

2010-07-22 Thread Grant Likely
On Thu, Jul 22, 2010 at 1:03 PM, Dmitry Eremin-Solenikov dbarysh...@gmail.com wrote: Hello, On Thu, Jul 22, 2010 at 10:40 PM, Kumar Gala ga...@kernel.crashing.org wrote: On Jul 22, 2010, at 1:25 PM, Scott Wood wrote: On Thu, 22 Jul 2010 20:48:15 +0400 Dmitry Eremin-Solenikov

Re: [PATCH 2/2] mpc85xx_edac: change to use new definitions for PCI EDAC regspace

2010-07-22 Thread Scott Wood
On Thu, 22 Jul 2010 23:03:03 +0400 Dmitry Eremin-Solenikov dbarysh...@gmail.com wrote: Hello, On Thu, Jul 22, 2010 at 10:40 PM, Kumar Gala ga...@kernel.crashing.org wrote: On Jul 22, 2010, at 1:25 PM, Scott Wood wrote: How about keeping the error stuff as a separate device from

[git pull] Please pull powerpc.git merge branch

2010-07-22 Thread Kumar Gala
The following changes since commit cd5b8f8755a89a57fc8c408d284b8b613f090345: Linus Torvalds (1): Merge branch 'urgent' of git://git.kernel.org/.../brodo/pcmcia-2.6 are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/galak/powerpc.git merge Kumar

Re: [PATCH] powerpc: print cores passed to firmware in decimal

2010-07-22 Thread Jesse Larrew
On 07/22/2010 12:15 AM, Michael Neuling wrote: @@ -869,12 +895,12 @@ static void __init prom_send_capabilities(void) cores = (u32 *)PTRRELOC(ibm_architecture_vec[IBM_ARCH_VEC_NRCORES_OFFSET]); if (*cores != NR_CPUS) { prom_printf(WARNING !

[PATCH 1/1] powerpc: Increase pseries_cpu_die delay

2010-07-22 Thread Brian King
In testing SMT disable, we have been regularly seeing the following message: Querying DEAD? cpu %i (%i) shows %i This indicates the current delay in pseries_cpu_die where we wait for the specified CPU to die, is insufficient. Usually, this does not cause a problem, but we've seen this result in

Commit 3da34aa brakes MSI support on MPC8308 (possibly all MPC83xx) [REPOST]

2010-07-22 Thread Ilya Yanok
Hi Kumar, Kim, Josh, everybody, I hope to disturb you but I haven't got any reply for my first posting... I've found that MSI work correctly with older kernels on my MPC8308RDB board and don't work with newer ones. After bisecting I've found that the source of the problem is commit 3da34aa:

Re: Commit 3da34aa brakes MSI support on MPC8308 (possibly all MPC83xx) [REPOST]

2010-07-22 Thread Ilya Yanok
23.07.2010 1:09, Ilya Yanok wrote: I hope to disturb you but I haven't got any reply for my first posting... I shouldn't be working at night... It's 'hate' not 'hope'... Regards, Ilya. ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org

sec 1.0 talitos driver

2010-07-22 Thread Jayasri Sangu
Hi, Does anybody developed sec 1.0 talitos driver fro mpc8248 freescale processor. Thanks, Jayasri ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

[PATCH 5/9 v1.02] Add Synopsys DesignWare HS USB OTG Controller driver.

2010-07-22 Thread Fushen Chen
Implements DWC OTG USB Host Controller Driver (HCD) interrupt service routine. Signed-off-by: Fushen Chen fc...@apm.com Signed-off-by: Mark Miesfeld mmiesf...@apm.com --- drivers/usb/dwc_otg/dwc_otg_hcd_intr.c | 1477 1 files changed, 1477 insertions(+), 0

[PATCH 7/9 v1.02] Add Synopsys DesignWare HS USB OTG Controller driver.

2010-07-22 Thread Fushen Chen
The Peripheral Controller Driver (PCD) is responsible for translating requests from the Function Driver into the appropriate actions on the DWC OTG controller. Signed-off-by: Fushen Chen fc...@apm.com Signed-off-by: Mark Miesfeld mmiesf...@apm.com --- drivers/usb/dwc_otg/dwc_otg_pcd.c | 1758

[PATCH 3/9 v1.02] Add Synopsys DesignWare HS USB OTG Controller driver.

2010-07-22 Thread Fushen Chen
Core Interface Layer Common Interrupt handlers provides common interrupt handler for both host controller and peripheral controller. Signed-off-by: Fushen Chen fc...@apm.com Signed-off-by: Mark Miesfeld mmiesf...@apm.com --- drivers/usb/dwc_otg/dwc_otg_cil_intr.c | 631

[PATCH 1/9 v1.02] Add Synopsys DesignWare HS USB OTG Controller driver.

2010-07-22 Thread Fushen Chen
The DWC OTG driver module provides the initialization and cleanup entry points for the DWC OTG USB driver. Signed-off-by: Fushen Chen fc...@apm.com Signed-off-by: Mark Miesfeld mmiesf...@apm.com --- drivers/Makefile |1 + drivers/usb/Kconfig |2 +

[PATCH 6/9 v1.02] Add Synopsys DesignWare HS USB OTG Controller driver.

2010-07-22 Thread Fushen Chen
Implements functions to manage Queue Heads and Queue Transfer Descriptors of DWC USB OTG Controller. Signed-off-by: Fushen Chen fc...@apm.com Signed-off-by: Mark Miesfeld mmiesf...@apm.com --- drivers/usb/dwc_otg/dwc_otg_hcd_queue.c | 719 +++ 1 files changed, 719

Re: [PATCH][RFC] preempt_count corruption across H_CEDE call with CONFIG_PREEMPT on pseries

2010-07-22 Thread Benjamin Herrenschmidt
On Thu, 2010-07-22 at 11:24 -0700, Darren Hart wrote: 1) How can the preempt_count() get mangled across the H_CEDE hcall? 2) Should we call preempt_enable() in cpu_idle() prior to cpu_die() ? The preempt count is on the thread info at the bottom of the stack. Can you check the stack pointers

Re: [

2010-07-22 Thread Sean MacLennan
On Tue, 13 Jul 2010 11:50:24 +0200 Sam Ravnborg s...@ravnborg.org wrote: Ben - will you take it via the popwerpc tree or shall I ask Michal to take it via kbuild? Anything happening with this patch? Cheers, Sean ___ Linuxppc-dev mailing list

[PATCH 0/4] Replace reference to of_device with platform_device in arch and drivers/of/* code

2010-07-22 Thread Grant Likely
This series removes a lot of references to struct of_device which is just a #define alias to struct platform_device. It also replaces usage of to_of_device() with to_platform_device(). There shouldn't be anything risky or earth shattering here. Certainly no functional changes. I'll be putting

[PATCH 1/4] of/device: Replace of_device with platform_device in includes and core code

2010-07-22 Thread Grant Likely
of_device is currently just an #define alias to platform_device until it gets removed entirely. This patch removes references to it from the include directories and the core drivers/of code. Signed-off-by: Grant Likely grant.lik...@secretlab.ca --- arch/powerpc/include/asm/macio.h |2 +-

[PATCH 2/4] powerpc: remove references to of_device and to_of_device

2010-07-22 Thread Grant Likely
of_device is just a #define alias to platform_device. This patch replaces all references to it with platform_device. Signed-off-by: Grant Likely grant.lik...@secretlab.ca --- arch/powerpc/kernel/ibmebus.c |8 arch/powerpc/kernel/of_platform.c |8

[PATCH 3/4] sparc: remove references to of_device and to_of_device

2010-07-22 Thread Grant Likely
of_device is just a #define alias to platform_device. This patch replaces all references to it with platform_device. Signed-off-by: Grant Likely grant.lik...@secretlab.ca --- arch/sparc/include/asm/prom.h|2 +- arch/sparc/kernel/apc.c |4 ++--

[PATCH 4/4] microblaze: remove references to of_device and to_of_device

2010-07-22 Thread Grant Likely
of_device is just a #define alias to platform_device. This patch replaces all references to it with platform_device. Signed-off-by: Grant Likely grant.lik...@secretlab.ca --- arch/microblaze/kernel/of_platform.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git

Re: [

2010-07-22 Thread Benjamin Herrenschmidt
On Thu, 2010-07-22 at 18:27 -0400, Sean MacLennan wrote: On Tue, 13 Jul 2010 11:50:24 +0200 Sam Ravnborg s...@ravnborg.org wrote: Ben - will you take it via the popwerpc tree or shall I ask Michal to take it via kbuild? Anything happening with this patch? The subject line tripped my

Re: [PATCH] powerpc: print cores passed to firmware in decimal

2010-07-22 Thread Michael Neuling
Currently we look pretty stupid when printing out the number of cores passed to FW Max number of cores passed to firmware: 0x0080 So I've change this to print in decimal: Max number of cores passed to firmware: 128 (NR_CPUS = 256) This required adding a prom_print_dec()

[PATCH] powerpc: fix .data..init_task output section

2010-07-22 Thread Sean MacLennan
On Tue, 13 Jul 2010 11:50:24 +0200 Sam Ravnborg s...@ravnborg.org wrote: From 851e645a7eee68380caaf026eb6d3be118876370 Mon Sep 17 00:00:00 2001 From: Sam Ravnborg s...@ravnborg.org Date: Tue, 13 Jul 2010 11:39:42 +0200 Subject: [PATCH] vmlinux.lds: fix .data..init_task output section (fix

[PATCH] fix of_flat_dt_is_compatible to match the full compatible string

2010-07-22 Thread Stuart Yoder
From: Stuart Yoder stuart.yo...@freescale.com With the previous string comparison, a device tree compatible of foo-bar would match as compatible with a driver looking for foo. Signed-off-by: Stuart Yoder stuart.yo...@freescale.com --- drivers/of/fdt.c |2 +- 1 files changed, 1

[PATCH] powerpc: fix .data..init_task output section

2010-07-22 Thread Sean MacLennan
From 851e645a7eee68380caaf026eb6d3be118876370 Mon Sep 17 00:00:00 2001 From: Sam Ravnborg s...@ravnborg.org Date: Tue, 13 Jul 2010 11:39:42 +0200 Subject: [PATCH] vmlinux.lds: fix .data..init_task output section (fix popwerpc boot) The .data..init_task output section was missing a load offset

Re: [PATCH][RFC] preempt_count corruption across H_CEDE call with CONFIG_PREEMPT on pseries

2010-07-22 Thread Darren Hart
On 07/22/2010 03:25 PM, Benjamin Herrenschmidt wrote: On Thu, 2010-07-22 at 11:24 -0700, Darren Hart wrote: 1) How can the preempt_count() get mangled across the H_CEDE hcall? 2) Should we call preempt_enable() in cpu_idle() prior to cpu_die() ? The preempt count is on the thread info at

Re: [PATCH] powerpc: fix .data..init_task output section

2010-07-22 Thread Sean MacLennan
From 851e645a7eee68380caaf026eb6d3be118876370 Mon Sep 17 00:00:00 2001 From: Sam Ravnborg s...@ravnborg.org Date: Tue, 13 Jul 2010 11:39:42 +0200 Subject: [PATCH] vmlinux.lds: fix .data..init_task output section (fix popwerpc boot) The .data..init_task output section was missing a load offset

Re: [PATCH 1/9 v1.02] Add Synopsys DesignWare HS USB OTG Controller driver.

2010-07-22 Thread David Daney
On 07/22/2010 03:15 PM, Fushen Chen wrote: The DWC OTG driver module provides the initialization and cleanup entry points for the DWC OTG USB driver. Signed-off-by: Fushen Chenfc...@apm.com Signed-off-by: Mark Miesfeldmmiesf...@apm.com --- drivers/Makefile |1 +

linux-next: OOPS at bot time

2010-07-22 Thread Stephen Rothwell
Hi all, My Power7 boot test paniced like this: (next-20100722) %GQLogic Fibre Channel HBA Driver: 8.03.03-k0 qla2xxx 0002:01:00.2: enabling device (0144 - 0146) qla2xxx 0002:01:00.2: Found an ISP8001, irq 35, iobase 0xd80080014000 [ cut here ] kernel BUG at drivers

Re: [PATCH 1/9 v1.02] Add Synopsys DesignWare HS USB OTG Controller driver.

2010-07-22 Thread Greg KH
On Thu, Jul 22, 2010 at 05:11:08PM -0700, David Daney wrote: Also the subject line for all nine patches seems to be identical, yet the patches are distinct. Perhaps you could find better subject lines. s/Perhaps/Must/ As noted, I can't accept this series, please work to resolve these issues.

[PATCH 1/5] powerpc/mm: Handle hypervisor pte insert failure in __hash_page_huge

2010-07-22 Thread Benjamin Herrenschmidt
From: Anton Blanchard an...@samba.org If the hypervisor gives us an error on a hugepage insert we panic. The normal page code already handles this by returning an error instead and we end calling low_hash_fault which will just kill the task if possible. The patch below does a similar thing for

[PATCH 5/5] powerpc: Fix erroneous lmb-memblock conversions

2010-07-22 Thread Benjamin Herrenschmidt
Oooops... we missed these. We incorrectly converted strings used when parsing the device-tree on pseries, thus breaking access to drconf memory and hotplug memory. While at it, also revert some variable names that represent something the FW calls lmb and thus don't need to be converted to

[PATCH 2/5] powerpc/mm: Move around testing of _PAGE_PRESENT in hash code

2010-07-22 Thread Benjamin Herrenschmidt
Instead of adding _PAGE_PRESENT to the access permission mask in each low level routine independently, we add it once from hash_page(). We also move the preliminary access check (the racy one before the PTE is locked) up so it applies to the huge page case. This duplicates code in

[PATCH 3/5] powerpc/mm: Fix bugs in huge page hashing

2010-07-22 Thread Benjamin Herrenschmidt
There's a couple of nasty bugs lurking in our huge page hashing code. First, we don't check the access permission atomically with setting the _PAGE_BUSY bit, which means that the PTE value we end up using for the hashing might be different than the one we have checked the access permissions for.

[PATCH 4/5] powerpc/mm: Add some debug output when hash insertion fails

2010-07-22 Thread Benjamin Herrenschmidt
This adds some debug output to our MMU hash code to print out some useful debug data if the hypervisor refuses the insertion (which should normally never happen). Signed-off-by: Benjamin Herrenschmidt b...@kernel.crashing.org --- --- arch/powerpc/include/asm/mmu-hash64.h |4 ++-

Re: [PATCH] powerpc: print cores passed to firmware in decimal

2010-07-22 Thread Michael Neuling
Currently we look pretty stupid when printing out the number of cores passed to FW Max number of cores passed to firmware: 0x0080 So I've change this to print in decimal: Max number of cores passed to firmware: 128 (NR_CPUS = 256) This required adding a prom_print_dec()

Re: linux-next: OOPS at bot time

2010-07-22 Thread Ben Hutchings
On Fri, 2010-07-23 at 10:22 +1000, Stephen Rothwell wrote: Hi all, My Power7 boot test paniced like this: (next-20100722) %GQLogic Fibre Channel HBA Driver: 8.03.03-k0 qla2xxx 0002:01:00.2: enabling device (0144 - 0146) qla2xxx 0002:01:00.2: Found an ISP8001, irq 35, iobase

Re: linux-next: OOPS at bot time

2010-07-22 Thread Michael Ellerman
On Fri, 2010-07-23 at 02:19 +0100, Ben Hutchings wrote: On Fri, 2010-07-23 at 10:22 +1000, Stephen Rothwell wrote: Hi all, My Power7 boot test paniced like this: (next-20100722) %GQLogic Fibre Channel HBA Driver: 8.03.03-k0 qla2xxx 0002:01:00.2: enabling device (0144 - 0146

[PATCH 1/1] Added PowerMac10,2 device descriptor

2010-07-22 Thread Mark Crichton
Small patch to recognize the Mac Mini's that were quietly rolled out ~2005. Work needs to be done on the WOL (Radeon and network card). Signed-off-by: Mark Crichton crich...@gmail.com --- arch/powerpc/platforms/powermac/feature.c |4 1 files changed, 4 insertions(+), 0 deletions(-)

[PATCH] powerpc: ONLINE to OFFLINE CPU state transition during removal

2010-07-22 Thread Robert Jennings
If a CPU remove is attempted using the 'release' interface on hardware which supports extended cede, the CPU will be put in the INACTIVE state rather than the OFFLINE state due to the default preferred_offline_state in that situation. In the INACTIVE state it will fail to be removed. This patch

Re: [PATCH] fix of_flat_dt_is_compatible to match the full compatible string

2010-07-22 Thread Benjamin Herrenschmidt
On Thu, 2010-07-22 at 18:28 -0500, Stuart Yoder wrote: From: Stuart Yoder stuart.yo...@freescale.com With the previous string comparison, a device tree compatible of foo-bar would match as compatible with a driver looking for foo. Signed-off-by: Stuart Yoder stuart.yo...@freescale.com

Re: [PATCH 3/5] powerpc/mm: Fix bugs in huge page hashing

2010-07-22 Thread Benjamin Herrenschmidt
On Fri, 2010-07-23 at 10:41 +1000, Benjamin Herrenschmidt wrote: There's a couple of nasty bugs lurking in our huge page hashing code. First, we don't check the access permission atomically with setting the _PAGE_BUSY bit, which means that the PTE value we end up using for the hashing might

[PATCH 3/5 v2] powerpc/mm: Fix bugs in huge page hashing

2010-07-22 Thread Benjamin Herrenschmidt
There's a couple of nasty bugs lurking in our huge page hashing code. First, we don't check the access permission atomically with setting the _PAGE_BUSY bit, which means that the PTE value we end up using for the hashing might be different than the one we have checked the access permissions for.

Re: [PATCH] powerpc: ONLINE to OFFLINE CPU state transition during removal

2010-07-22 Thread Vaidyanathan Srinivasan
* Robert Jennings r...@linux.vnet.ibm.com [2010-07-22 21:43:44]: If a CPU remove is attempted using the 'release' interface on hardware which supports extended cede, the CPU will be put in the INACTIVE state rather than the OFFLINE state due to the default preferred_offline_state in that

[git pull] Please pull powerpc.git merge branch

2010-07-22 Thread Benjamin Herrenschmidt
Hi Linus ! Here's a few things for 2.6.35. One's a fallover from the lmb-memblock rename that I missed, which causes a bunch of pseries machine to boot with 128M of memory and that's it :-) There's a few patches fixing a nasty race we found in our hugepage code, a kexec fix from Kumar, and an

RE: [PATCH] RapidIO,powerpc/85xx: remove MCSR_MASK in fsl_rio

2010-07-22 Thread Li Yang-R58472
Subject: [PATCH] RapidIO,powerpc/85xx: remove MCSR_MASK in fsl_rio Fixes compile problem caused by MCSR_MASK removal from book-E definitions. Hi Alex, Only with your patch, there will still be problem on SRIO platforms other than MPC85xx. I have posted a patch series to fix this together with

Re: [PATCH][RFC] preempt_count corruption across H_CEDE call with CONFIG_PREEMPT on pseries

2010-07-22 Thread Darren Hart
On 07/22/2010 04:57 PM, Darren Hart wrote: On 07/22/2010 03:25 PM, Benjamin Herrenschmidt wrote: On Thu, 2010-07-22 at 11:24 -0700, Darren Hart wrote: 1) How can the preempt_count() get mangled across the H_CEDE hcall? 2) Should we call preempt_enable() in cpu_idle() prior to cpu_die() ?

Re: [PATCH][RFC] preempt_count corruption across H_CEDE call with CONFIG_PREEMPT on pseries

2010-07-22 Thread Vaidyanathan Srinivasan
* Darren Hart dvh...@us.ibm.com [2010-07-22 21:44:04]: On 07/22/2010 04:57 PM, Darren Hart wrote: On 07/22/2010 03:25 PM, Benjamin Herrenschmidt wrote: On Thu, 2010-07-22 at 11:24 -0700, Darren Hart wrote: 1) How can the preempt_count() get mangled across the H_CEDE hcall? 2) Should we

Re: [PATCH][RFC] preempt_count corruption across H_CEDE call with CONFIG_PREEMPT on pseries

2010-07-22 Thread Benjamin Herrenschmidt
On Thu, 2010-07-22 at 21:44 -0700, Darren Hart wrote: suggestion I updated the instrumentation to display the local_save_flags and irqs_disabled_flags: Jul 22 23:36:58 igoort1 kernel: local flags: 0, irqs disabled: 1 Jul 22 23:36:58 igoort1 kernel: before H_CEDE current-stack:

Re: [PATCH][RFC] preempt_count corruption across H_CEDE call with CONFIG_PREEMPT on pseries

2010-07-22 Thread Benjamin Herrenschmidt
On Fri, 2010-07-23 at 10:38 +0530, Vaidyanathan Srinivasan wrote: Yes. extended_cede_processor() will return with interrupts enabled in the cpu. (This is done by the hypervisor). Under normal cases we cannot be interrupted because no IO interrupts are routed to us after xics_teardown_cpu()

Re: [PATCH 1/4] of/device: Replace of_device with platform_device in includes and core code

2010-07-22 Thread David Miller
From: Grant Likely grant.lik...@secretlab.ca Date: Thu, 22 Jul 2010 16:30:06 -0600 of_device is currently just an #define alias to platform_device until it gets removed entirely. This patch removes references to it from the include directories and the core drivers/of code. Signed-off-by:

Re: [PATCH 3/4] sparc: remove references to of_device and to_of_device

2010-07-22 Thread David Miller
From: Grant Likely grant.lik...@secretlab.ca Date: Thu, 22 Jul 2010 16:30:16 -0600 of_device is just a #define alias to platform_device. This patch replaces all references to it with platform_device. Signed-off-by: Grant Likely grant.lik...@secretlab.ca Acked-by: David S. Miller