Re: [PATCH 6/6] 44x/currituck: Add support for the new IBM currituck platform

2011-11-29 Thread David Gibson
On Wed, Nov 30, 2011 at 05:20:22PM +1100, Benjamin Herrenschmidt wrote: > On Wed, 2011-11-30 at 16:24 +1100, Tony Breeds wrote: > > > + cpu@1 { > > + device_type = "cpu"; > > + model = "PowerPC,476"; > > + reg = <1>; > > +

Re: [PATCH 6/6] 44x/currituck: Add support for the new IBM currituck platform

2011-11-29 Thread Benjamin Herrenschmidt
On Wed, 2011-11-30 at 16:24 +1100, Tony Breeds wrote: > + cpu@1 { > + device_type = "cpu"; > + model = "PowerPC,476"; > + reg = <1>; > + clock-frequency = <16>; // 1.6 GHz > + ti

[PATCH] powerpc/pci: Make pci_read_irq_line() static

2011-11-29 Thread Benjamin Herrenschmidt
It's only used inside the same file where it's defined. There's also no point exporting it anymore. Signed-off-by: Benjamin Herrenschmidt --- arch/powerpc/include/asm/pci.h |2 -- arch/powerpc/kernel/pci-common.c |3 +-- 2 files changed, 1 insertions(+), 4 deletions(-) diff --git a/ar

Re: [PATCH 4/6] powerpc/boot: Add extended precision shifts to the boot wrapper.

2011-11-29 Thread Benjamin Herrenschmidt
On Wed, 2011-11-30 at 16:23 +1100, Tony Breeds wrote: > Code copied from arch/powerpc/kernel/misc_32.S > > Signed-off-by: Tony Breeds > --- > arch/powerpc/boot/div64.S | 52 > + > 1 files changed, 52 insertions(+), 0 deletions(-) Should we just lin

Re: [PATCH 1/6] 44x/pci: Continue pci setup even if there is no sdr-base in the device-tree

2011-11-29 Thread Benjamin Herrenschmidt
On Wed, 2011-11-30 at 16:23 +1100, Tony Breeds wrote: > Signed-off-by: Tony Breeds > --- > arch/powerpc/sysdev/ppc4xx_pci.c |6 +++--- > 1 files changed, 3 insertions(+), 3 deletions(-) > > diff --git a/arch/powerpc/sysdev/ppc4xx_pci.c > b/arch/powerpc/sysdev/ppc4xx_pci.c > index 16f5eba..d

Kernel support for the Freescale P2020-MSC8156 AdvancedMC Reference Design

2011-11-29 Thread Daniel Ng2
Hi, Does anyone know of any kernel support for the Freescale P2020-MSC8156 AMC board?- http://freescale.com.hk/webapp/sps/site/prod_summary.jsp?code=P2020-MSC8156AMCRD I am looking for platform-specific files ie. the ones that go in arch/powerpc/platforms/85xx and DTS files if possible... Chee

[PATCH 6/6] 44x/currituck: Add support for the new IBM currituck platform

2011-11-29 Thread Tony Breeds
Based on original work by David 'Shaggy' Kliekamp. Signed-off-by: Tony Breeds --- arch/powerpc/boot/Makefile |5 +- arch/powerpc/boot/dts/currituck.dts | 240 ++ arch/powerpc/boot/treeboot-currituck.c | 129 ++ arch/power

[PATCH 5/6] powerpc/boot: Add mfdcrx

2011-11-29 Thread Tony Breeds
Signed-off-by: Tony Breeds --- arch/powerpc/boot/dcr.h |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/arch/powerpc/boot/dcr.h b/arch/powerpc/boot/dcr.h index 645a7c9..51b5893 100644 --- a/arch/powerpc/boot/dcr.h +++ b/arch/powerpc/boot/dcr.h @@ -9,6 +9,12 @@

[PATCH 4/6] powerpc/boot: Add extended precision shifts to the boot wrapper.

2011-11-29 Thread Tony Breeds
Code copied from arch/powerpc/kernel/misc_32.S Signed-off-by: Tony Breeds --- arch/powerpc/boot/div64.S | 52 + 1 files changed, 52 insertions(+), 0 deletions(-) diff --git a/arch/powerpc/boot/div64.S b/arch/powerpc/boot/div64.S index d271ab5..bbcb8

[PATCH 3/6] 44x: Removing dead CONFIG_PPC47x

2011-11-29 Thread Tony Breeds
From: Christoph Egger CONFIG_PPC47x doesn't exist in Kconfig, therefore removing all references for it from the source code. Signed-off-by: Christoph Egger --- arch/powerpc/mm/44x_mmu.c |4 1 files changed, 0 insertions(+), 4 deletions(-) diff --git a/arch/powerpc/mm/44x_mmu.c b/arch

[PATCH 2/6] 44x/pci: Setup the dma_window properties for each pci_controller

2011-11-29 Thread Tony Breeds
Needed if you want to use swiotlb, harmless otherwise. Signed-off-by: Tony Breeds --- arch/powerpc/sysdev/ppc4xx_pci.c |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/arch/powerpc/sysdev/ppc4xx_pci.c b/arch/powerpc/sysdev/ppc4xx_pci.c index d3fa380..d766068 100644 -

[PATCH 1/6] 44x/pci: Continue pci setup even if there is no sdr-base in the device-tree

2011-11-29 Thread Tony Breeds
Signed-off-by: Tony Breeds --- arch/powerpc/sysdev/ppc4xx_pci.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/powerpc/sysdev/ppc4xx_pci.c b/arch/powerpc/sysdev/ppc4xx_pci.c index 16f5eba..d3fa380 100644 --- a/arch/powerpc/sysdev/ppc4xx_pci.c +++ b/arch/powerpc

Add support for the currituck 476 platform from IBM

2011-11-29 Thread Tony Breeds
Patches 1 and 2 Modify the 44x PCI code to work with currituck. Patch 3 Is an old patch by Christoph Egger that fell through the cracks somehow. Patches 4 and 5 Modify the bootwrapper to handle currituck Patch 6 The platform itself. arch/powerpc/boot/Makefile

Re: [linux-pm] [RFC PATCH v2 4/4] cpuidle: (POWER) Handle power_save=off

2011-11-29 Thread Benjamin Herrenschmidt
On Wed, 2011-11-30 at 06:55 +0530, Deepthi Dharwar wrote: > I was trying to add a return value for power_save for all arch/powepc > idle functions but a few of them directly call *.S routines, as they > are asm. > > What would be a good way to change the return value for asm > routines ? > Do we

Re: [PATCH 00/10] powerpc/mpic: General cleanup patch series

2011-11-29 Thread Benjamin Herrenschmidt
On Tue, 2011-11-29 at 13:58 -0500, Kyle Moffett wrote: > Hello, > > As BenH requested, this is the version-2 repost of the PowerPC MPIC > cleanup patch series. > > All of the review comments have been addressed, and I have performed > build and boot testing on our HWW-1U-1A hardware with these pa

[PATCH 3/3] powerpc/powernv: Workaround OFW issues in prom_init.c

2011-11-29 Thread Benjamin Herrenschmidt
Open Firmware on OPAL machines seems to have issues if we close stdin and/or we try to print things after calling "quiesce" so we avoid doing both. Signed-off-by: Benjamin Herrenschmidt --- arch/powerpc/kernel/prom_init.c | 14 ++ 1 files changed, 10 insertions(+), 4 deletions(-)

[PATCH 2/3] powerpc/powernv: Display diag data on p7ioc EEH errors

2011-11-29 Thread Benjamin Herrenschmidt
Signed-off-by: Benjamin Herrenschmidt --- arch/powerpc/platforms/powernv/pci-ioda.c | 25 --- arch/powerpc/platforms/powernv/pci-p5ioc2.c |1 + arch/powerpc/platforms/powernv/pci.c| 117 -- arch/powerpc/platforms/powernv/pci.h| 16 4 fil

[PATCH 1/3] powerpc/powernv: Update OPAL interfaces

2011-11-29 Thread Benjamin Herrenschmidt
This adds some more interfaces for OPAL v2 Signed-off-by: Benjamin Herrenschmidt --- arch/powerpc/include/asm/opal.h| 131 +++- arch/powerpc/platforms/powernv/opal-wrappers.S |8 ++ arch/powerpc/platforms/powernv/pci-ioda.c |4 +- 3 files changed

Re: [BUG?]3.0-rc4+ftrace+kprobe: set kprobe at instruction 'stwu' lead to system crash/freeze

2011-11-29 Thread Benjamin Herrenschmidt
On Fri, 2011-07-01 at 18:03 +0800, tiejun.chen wrote: > > Here emulate_step() is called to emulate 'stwu'. Actually this is equivalent > to > 1> update pr_regs->gpr[1] = mem(old r1 + (-A)) > 2> 'stw , mem<(old r1 + (-A)) > > > You should notice the stack based on new r1 would be covered with mem

Re: [PATCH 2/8] powerpc/ps3: Fix hcall lv1_net_stop_rx_dma

2011-11-29 Thread Geoff Levand
Hi Dave, Unfortunately, your address got cut off for this patch. I think Ben can merge this one through his powerpc tree since it is just a trivial change to the ps3 gelic net driver. Please consider. -Geoff On Wed, 2011-11-30 at 01:38 +, Geoff Levand wrote: > The lv1_net_stop_tx_dma and

Re: [PATCH v2] Integrated Flash Controller support

2011-11-29 Thread Kumar Gala
On Nov 29, 2011, at 3:48 PM, Scott Wood wrote: > On 11/29/2011 03:40 PM, Artem Bityutskiy wrote: >> On Thu, 2011-11-24 at 08:24 -0600, Kumar Gala wrote: >>> On Nov 22, 2011, at 9:41 PM, Kumar Gala wrote: >>> On Oct 31, 2011, at 4:38 AM, wrote: > From: Liu Shuo >

[PATCH 7/8] powerpc/ps3: Add __init to ps3_smp_probe

2011-11-29 Thread Geoff Levand
Add an __init annotation to the ps3_smp_probe() routine. Fixes build warnings like these when CONFIG_DEBUG_SECTION_MISMATCH=y: WARNING: Section mismatch in reference from the function .ps3_smp_probe() Signed-off-by: Geoff Levand --- arch/powerpc/platforms/ps3/smp.c |2 +- 1 files changed,

[PATCH 6/8] powerpc/ps3: Fix pr_debug build warnings

2011-11-29 Thread Geoff Levand
Fix some PS3 build warnings when DEBUG is defined. Fixes warnings like these: format '%lx' expects type 'long unsigned int', but argument 7 has type 'u64' Signed-off-by: Geoff Levand --- arch/powerpc/platforms/ps3/repository.c | 14 -- 1 files changed, 8 insertions(+), 6 deleti

[PATCH 4/8] powerpc/ps3: Fix hcall lv1_get_version_info

2011-11-29 Thread Geoff Levand
The lv1_get_version_info hcall takes 2, not 1 output arguments. Adjust the lv1 hcall table and all calls. Usage: int lv1_get_version_info(u64 *version_number, u64 *vendor_id) Signed-off-by: Geoff Levand --- arch/powerpc/include/asm/lv1call.h |2 +- arch/powerpc/kernel/irq.c |

[PATCH 8/8] powerpc/ps3: Update ps3_defconfig

2011-11-29 Thread Geoff Levand
Refresh ps3_defconfig to latest kernel sources and change the options: CONFIG_PPP=m to CONFIG_PPP=n. CONFIG_NAMESPACES=y to CONFIG_NAMESPACES=n CONFIG_NUMA=y to CONFIG_NUMA=n Signed-off-by: Geoff Levand --- arch/powerpc/configs/ps3_defconfig | 39 ++- 1 f

[PATCH 1/8] powerpc/ps3: Interrupt code cleanup

2011-11-29 Thread Geoff Levand
General code cleanup for PS3 interrupt.c: o Fill out comments for structure members. o Move variables ipi_debug_brk_mask and lock from struct ps3_bmp to struct ps3_private. o Fix pr_debug build errors when DEBUG is defined. o Convert bit operation to set_bit(). o Convert DBG macro from pr_

[PATCH 2/8] powerpc/ps3: Fix hcall lv1_net_stop_rx_dma

2011-11-29 Thread Geoff Levand
The lv1_net_stop_tx_dma and net_stop_rx_dma hcalls take 2, not 3 input arguments. Adjust the lv1 hcall table and all calls. Signed-off-by: Geoff Levand --- arch/powerpc/include/asm/lv1call.h |4 ++-- drivers/net/ethernet/toshiba/ps3_gelic_net.c |4 ++-- 2 files changed, 4 inse

[PATCH 3/8] powerpc/ps3: Fix hcall lv1_get_virtual_address_space_id_of_ppe

2011-11-29 Thread Geoff Levand
The lv1_get_virtual_address_space_id_of_ppe hcall takes 0, not 1 input arguments. Adjust the lv1 hcall table and all calls. Signed-off-by: Geoff Levand --- arch/powerpc/include/asm/lv1call.h |2 +- arch/powerpc/platforms/ps3/spu.c |2 +- 2 files changed, 2 insertions(+), 2 deletions(-

[PATCH 5/8] powerpc/ps3: Fix hcall lv1_read_repository_node

2011-11-29 Thread Geoff Levand
The lv1 hcall #91 should be named lv1_read_repository_node, and not lv1_get_repository_node_value. Adjust the lv1 hcall table and all calls. Signed-off-by: Geoff Levand --- arch/powerpc/include/asm/lv1call.h |2 +- arch/powerpc/platforms/ps3/repository.c |4 ++-- 2 files changed, 3

[GIT PULL] PS3 updates for powerpc next

2011-11-29 Thread Geoff Levand
Hi Ben, Here are the PS3 updates for 3.3. The patch 'powerpc/ps3: Fix hcall lv1_net_stop_rx_dma' includes a trivial change to the ps3_gelic_net driver in drivers/net. -Geoff The following changes since commit caca6a03d365883564885f2c1da3e88dcf65d139: Linus Torvalds (1): Linux 3.2-rc3

Re: [PATCH 04/13] powerpc: Update hugetlb huge_pte_alloc and tablewalk code for FSL BOOKE

2011-11-29 Thread David Gibson
On Tue, Nov 29, 2011 at 10:36:42AM -0600, Becky Bruce wrote: > > On Nov 28, 2011, at 11:25 PM, Benjamin Herrenschmidt wrote: > > > On Mon, 2011-10-10 at 15:50 -0500, Becky Bruce wrote: > >> From: Becky Bruce > >> > >> This updates the hugetlb page table code to handle 64-bit FSL_BOOKE. > >> The

Re: [linux-pm] [RFC PATCH v2 4/4] cpuidle: (POWER) Handle power_save=off

2011-11-29 Thread Deepthi Dharwar
On 11/29/2011 12:14 PM, Deepthi Dharwar wrote: > On 11/29/2011 02:09 AM, Benjamin Herrenschmidt wrote: > >> On Mon, 2011-11-28 at 16:33 +0530, Deepthi Dharwar wrote: >> >>> On an LPAR if cpuidle is disabled, ppc_md.power_save is still set to >>> cpuidle_idle_call by default here. This would resul

[PATCH] powerpc: Define/use HUGETLB_NEED_PRELOAD insead of complicated #if

2011-11-29 Thread Becky Bruce
From: Becky Bruce Define HUGETLB_NEED_PRELOAD in mmu-book3e.h for CONFIG_PPC64 instead of having a much more complicated #if block. This is easier to read and maintain. Signed-off-by: Becky Bruce --- arch/powerpc/include/asm/hugetlb.h|3 +-- arch/powerpc/include/asm/mmu-book3e.h |

Re: [PATCH][RFC] fsldma: fix performance degradation by optimizing spinlock use.

2011-11-29 Thread Tabi Timur-B04825
On Tue, Nov 29, 2011 at 11:25 AM, Ira W. Snyder wrote: > I believe that you are correct, for powerpc. However, anything outside > of arch/powerpc shouldn't assume it only runs on powerpc. I wouldn't be > surprised to see fsldma running on an iMX someday (ARM processor). I certainly would. The i

Re: [PATCH 2/6] powerpc/85xx: consolidate of_platform_bus_probe calls

2011-11-29 Thread Timur Tabi
Kumar Gala wrote: >> > The only fix I can think of is to move "fsl,eloplus-dma" into >> > mpc85xx_common_ids[]. I'll post a patch that does that, and we can >> > discuss it. > what if you make the p1022_ds_ids call first? Maybe we need to add 'soc' to > p1022_ds_ids list Reversing the calls

Re: [PATCH v2] Integrated Flash Controller support

2011-11-29 Thread Scott Wood
On 11/29/2011 03:40 PM, Artem Bityutskiy wrote: > On Thu, 2011-11-24 at 08:24 -0600, Kumar Gala wrote: >> On Nov 22, 2011, at 9:41 PM, Kumar Gala wrote: >> >>> >>> On Oct 31, 2011, at 4:38 AM, >>> wrote: >>> From: Liu Shuo Integrated Flash Controller supports various flashes like

Re: [PATCH v2] Integrated Flash Controller support

2011-11-29 Thread Artem Bityutskiy
On Thu, 2011-11-24 at 08:24 -0600, Kumar Gala wrote: > On Nov 22, 2011, at 9:41 PM, Kumar Gala wrote: > > > > > On Oct 31, 2011, at 4:38 AM, > > wrote: > > > >> From: Liu Shuo > >> > >> Integrated Flash Controller supports various flashes like NOR, NAND > >> and other devices using NOR, NAN

Re: [PATCH v2] Integrated Flash Controller support

2011-11-29 Thread Artem Bityutskiy
On Mon, 2011-10-31 at 17:38 +0800, b35...@freescale.com wrote: > +/* > + * fsl_ifc_ctrl_probe > + * > + * called by device layer when it finds a device matching > + * one our driver can handled. This code allocates all of > + * the resources needed for the controller only. The > + * resources for

Re: [PATCH 2/6] powerpc/85xx: consolidate of_platform_bus_probe calls

2011-11-29 Thread Kumar Gala
On Nov 29, 2011, at 12:52 PM, Timur Tabi wrote: > Kumar Gala wrote: >> Ben would probably have to answer that. I can't remember why he wanted it. >> I'm sure he has a good reason. > > Well, I'm not sure what's going on with the code. I *think* what's happening > is that the first call of_pl

Re: [PATCH][RFC] fsldma: fix performance degradation by optimizing spinlock use.

2011-11-29 Thread Scott Wood
On 11/28/2011 09:19 PM, Li Yang-R58472 wrote: >> Subject: Re: [PATCH][RFC] fsldma: fix performance degradation by optimizing >> spinlock use. >> >> On Thu, Nov 24, 2011 at 08:12:25AM +, Shi Xuelin-B29237 wrote: >>> Hi Ira, >>> >>> Thanks for your review. >>> >>> After second thought, I think yo

Re: [PATCH 2/6] powerpc/85xx: consolidate of_platform_bus_probe calls

2011-11-29 Thread Scott Wood
On 11/29/2011 10:20 AM, Timur Tabi wrote: > Timur Tabi wrote: > >> If I move the "fsl,eloplus-dma" into mpc85xx_common_ids[], then everything >> works. >> >> I suspect there's some kind of state machine in of_platform_bus_probe() that >> allows it to find the DMA channel nodes if it's scanned ev

Re: Booting Linux on one core of P1022

2011-11-29 Thread Scott Wood
On 11/29/2011 02:36 AM, Arshad, Farrukh wrote: > I am loading the kernel from Uboot as following way > > > > Setenv bootm_low 0x1000 > > Setenv bootm_size 0x1000 > > Setenv bootm boot=/dev/mmcblk0p3 ro debug rootdelay=5 > > Interrupts off > > Bootm start $load1addr - $fdt1addr > >

[PATCH 10/10] powerpc/mpic: Add in-core support for cascaded MPICs

2011-11-29 Thread Kyle Moffett
The Cell and PowerMac platforms use virtually identical cascaded-IRQ setup code, so just merge it into the core. Ideally this code would trigger automatically when an MPIC device-node specifies an "interrupts" property, perhaps even enabling MPIC_SECONDARY along the way. Unfortunately, Benjamin H

[PATCH 06/10] powerpc/mpic: Invert the meaning of MPIC_PRIMARY

2011-11-29 Thread Kyle Moffett
It turns out that there are only 2 in-tree platforms which use MPICs which are not "primary": IBM Cell and PowerMac. To reduce the complexity of the typical board setup code, invert the MPIC_PRIMARY bit into MPIC_SECONDARY. Signed-off-by: Kyle Moffett --- arch/powerpc/include/asm/mpic.h

[PATCH 07/10] powerpc/mpic: Don't open-code dcr_resource_start

2011-11-29 Thread Kyle Moffett
Don't open-code the OpenFirmware "dcr-reg" property lookup trying to map DCR resources. This makes the code a bit easier to read. Signed-off-by: Kyle Moffett --- arch/powerpc/sysdev/mpic.c |7 ++- 1 files changed, 2 insertions(+), 5 deletions(-) diff --git a/arch/powerpc/sysdev/mpic.c

[PATCH 08/10] powerpc/mpic: Put "pic-no-reset" test back into the MPIC code

2011-11-29 Thread Kyle Moffett
There's not really any reason to have this one-liner in a separate static inline function, given that all the other similar tests are already in the alloc_mpic() code. Signed-off-by: Kyle Moffett --- arch/powerpc/sysdev/mpic.c |7 +-- 1 files changed, 1 insertions(+), 6 deletions(-) dif

[PATCH 05/10] powerpc/mpic: Search for open-pic device-tree node if NULL

2011-11-29 Thread Kyle Moffett
Almost all PowerPC platforms use a standard "open-pic" device node so the mpic_alloc() function now accepts NULL for the device-node. This will cause it to perform a default search with of_find_matching_node(). Signed-off-by: Kyle Moffett --- arch/powerpc/platforms/85xx/corenet_ds.c |

[PATCH 09/10] powerpc/mpic: Cache the device-tree node in "struct mpic"

2011-11-29 Thread Kyle Moffett
Store the node pointer in the MPIC during initialization so that all of the later operational code can just reuse the cached pointer. Signed-off-by: Kyle Moffett --- arch/powerpc/include/asm/mpic.h |3 +++ arch/powerpc/sysdev/mpic.c | 33 - 2 files chan

[PATCH 01/10] powerpc/85xx: Move mpc85xx_smp_init() decl to a new "smp.h"

2011-11-29 Thread Kyle Moffett
This removes a bunch of "extern" declarations and CONFIG_SMP ifdefs. Signed-off-by: Kyle Moffett Cc: Benjamin Herrenschmidt Cc: Paul Mackerras Cc: Kumar Gala --- arch/powerpc/platforms/85xx/corenet_ds.c |7 +-- arch/powerpc/platforms/85xx/mpc85xx_ds.c |6 +- arch/powerpc/pla

[PATCH 04/10] powerpc/mpic: Save computed phys_addr for board-specific code

2011-11-29 Thread Kyle Moffett
The MPIC code can already perform an automatic OF address translation step as part of mpic_alloc(), but several boards need to use that base address when they perform mpic_assign_isu(). The easiest solution is to save the computed physical address into the "struct mpic" for later use by the board

[PATCH 02/10] powerpc: Consolidate mpic_alloc() OF address translation

2011-11-29 Thread Kyle Moffett
Instead of using the open-coded "reg" property lookup and address translation in mpic_alloc(), directly call of_address_to_resource(). This includes various workarounds for special cases which the naive of_address_translate() does not. Afterwards it is possible to remove the copiously copy-pasted

[PATCH 03/10] powerpc/mpic: Assume a device-node was passed in mpic_alloc()

2011-11-29 Thread Kyle Moffett
All of the existing callers of mpic_alloc() pass in a non-NULL device-node pointer, so the checks for a NULL device-node may be removed. Signed-off-by: Kyle Moffett --- arch/powerpc/sysdev/mpic.c | 50 ++- 1 files changed, 21 insertions(+), 29 deletions(

[PATCH 00/10] powerpc/mpic: General cleanup patch series

2011-11-29 Thread Kyle Moffett
Hello, As BenH requested, this is the version-2 repost of the PowerPC MPIC cleanup patch series. All of the review comments have been addressed, and I have performed build and boot testing on our HWW-1U-1A hardware with these patches applied (plus a few independent board-support patches). Unfort

Re: [PATCH 2/6] powerpc/85xx: consolidate of_platform_bus_probe calls

2011-11-29 Thread Timur Tabi
Kumar Gala wrote: > Ben would probably have to answer that. I can't remember why he wanted it. > I'm sure he has a good reason. Well, I'm not sure what's going on with the code. I *think* what's happening is that the first call of_platform_bus_probe() is scanning most, but not all, of the tr

Re: [PATCH v3 2/3] hvc_init(): Enforce one-time initialization.

2011-11-29 Thread Miche Baker-Harvey
Good grief! Sorry for the spacing mess-up! Here's a resend with reformatting. Amit, We aren't using either QEMU or kvmtool, but we are using KVM. All the issues we are seeing happen when we try to establish multiple virtioconsoles at boot time. The command line isn't relevant, but I can tell y

Re: [PATCH][RFC] fsldma: fix performance degradation by optimizing spinlock use.

2011-11-29 Thread Ira W. Snyder
On Tue, Nov 29, 2011 at 03:19:05AM +, Li Yang-R58472 wrote: > > Subject: Re: [PATCH][RFC] fsldma: fix performance degradation by optimizing > > spinlock use. > > > > On Thu, Nov 24, 2011 at 08:12:25AM +, Shi Xuelin-B29237 wrote: > > > Hi Ira, > > > > > > Thanks for your review. > > > > > >

Re: [PATCH v3 2/3] hvc_init(): Enforce one-time initialization.

2011-11-29 Thread Miche Baker-Harvey
Amit, We aren't using either QEMU or kvmtool, but we are using KVM.  All theissues we are seeing happen when we try to establish multiple virtioconsoles at boot time.  The command line isn't relevant, but I cantell you the protocol that's passing between the host (kvm) and theguest (see the end of

Re: [PATCH 02/13] powerpc: hugetlb: fix huge_ptep_set_access_flags return value

2011-11-29 Thread Becky Bruce
On Nov 28, 2011, at 9:58 PM, Benjamin Herrenschmidt wrote: > On Mon, 2011-10-10 at 15:50 -0500, Becky Bruce wrote: > >> diff --git a/arch/powerpc/include/asm/hugetlb.h >> b/arch/powerpc/include/asm/hugetlb.h >> index 8600493..70f9885 100644 >> --- a/arch/powerpc/include/asm/hugetlb.h >> +++ b/a

Re: [PATCH 2/6] powerpc/85xx: consolidate of_platform_bus_probe calls

2011-11-29 Thread Kumar Gala
On Nov 29, 2011, at 10:20 AM, Timur Tabi wrote: > Timur Tabi wrote: > >> If I move the "fsl,eloplus-dma" into mpc85xx_common_ids[], then everything >> works. >> >> I suspect there's some kind of state machine in of_platform_bus_probe() that >> allows it to find the DMA channel nodes if it's s

Re: [PATCH 04/13] powerpc: Update hugetlb huge_pte_alloc and tablewalk code for FSL BOOKE

2011-11-29 Thread Becky Bruce
On Nov 28, 2011, at 11:25 PM, Benjamin Herrenschmidt wrote: > On Mon, 2011-10-10 at 15:50 -0500, Becky Bruce wrote: >> From: Becky Bruce >> >> This updates the hugetlb page table code to handle 64-bit FSL_BOOKE. >> The previous 32-bit work counted on the inner levels of the page table >> collap

Re: [PATCH 2/6] powerpc/85xx: consolidate of_platform_bus_probe calls

2011-11-29 Thread Timur Tabi
Timur Tabi wrote: > If I move the "fsl,eloplus-dma" into mpc85xx_common_ids[], then everything > works. > > I suspect there's some kind of state machine in of_platform_bus_probe() that > allows it to find the DMA channel nodes if it's scanned everything else > first. I'm trying to debug it no

Re: [PATCH 2/6] powerpc/85xx: consolidate of_platform_bus_probe calls

2011-11-29 Thread Timur Tabi
Kumar Gala wrote: >> I don't think this is working. I need to investigate some more to be >> sure, but it looks like this is not picking up "fsl,eloplus-dma". >> None of the DMA channels are being probed in the audio driver >> (sound/soc/fsl_dma.c). > > Hmm, that's odd. Should see if the issues

Re: [PATCH 2/6] powerpc/85xx: consolidate of_platform_bus_probe calls

2011-11-29 Thread Kumar Gala
On Nov 28, 2011, at 5:42 PM, Tabi Timur-B04825 wrote: > On Thu, Nov 17, 2011 at 11:56 AM, Dmitry Eremin-Solenikov > wrote: > >> diff --git a/arch/powerpc/platforms/85xx/p1022_ds.c >> b/arch/powerpc/platforms/85xx/p1022_ds.c >> index 00d93a4..cacb4d4 100644 >> --- a/arch/powerpc/platforms/85xx/

Re: [PATCH v3 2/3] hvc_init(): Enforce one-time initialization.

2011-11-29 Thread Amit Shah
Hi, On (Mon) 28 Nov 2011 [15:40:41], Miche Baker-Harvey wrote: > Amit, > > You said that the work would be serialized "due to port additions > being on work items on the same workqueue". I'm not seeing that. You leave a lot of questions unanswered. What's your environment? Are you hot-plugging

lmb_alloc() and page memory overlap

2011-11-29 Thread Prashant Bhole
Hi, I am using custom 460ex board with kernel version 2.6.30. I noticed that page_alloc() is returning a page whose memory is already allocated by lmb_alloc() while unflattening the device tree. As per my knowledge the memory allocated by lmb_alloc() should be reserved till the end, right? Some mo

Booting Linux on one core of P1022

2011-11-29 Thread Arshad, Farrukh
Greetings All, I am working on P1022RDK (P1022 Processor). I am trying to bring up LTIB Linux only on Core1 of the processor. I have configured the "cpus" node in the device tree file as following way Cpus { #address-cells = <1>; #size-cells = <0>; PowerPC,P1022@1 { De

[PATCH net-next v4 3/4] can: cc770: add platform bus driver for the CC770 and AN82527

2011-11-29 Thread Wolfgang Grandegger
This driver works with both, static platform data and device tree bindings. It has been tested on a TQM855L board with two AN82527 CAN controllers on the local bus. CC: devicetree-disc...@lists.ozlabs.org CC: linuxppc-...@ozlabs.org CC: Kumar Gala Signed-off-by: Wolfgang Grandegger Acked-by: Mar

[PATCH net-next v4 4/4] powerpc: tqm8548/tqm8xx: add and update CAN device nodes

2011-11-29 Thread Wolfgang Grandegger
This patch enables or updates support for the CC770 and AN82527 CAN controller on the TQM8548 and TQM8xx boards. CC: devicetree-disc...@lists.ozlabs.org CC: linuxppc-...@ozlabs.org CC: Kumar Gala Signed-off-by: Wolfgang Grandegger --- arch/powerpc/boot/dts/tqm8548-bigflash.dts | 19 ++