[2/5] Cleanup management of kmem_caches for pagetables

2009-09-09 Thread David Gibson
Currently we have a fair bit of rather fiddly code to manage the various kmem_caches used to store page tables of various levels. We generally have two caches holding some combination of PGD, PUD and PMD tables, plus several more for the special hugepage pagetables. This patch cleans this all up

[4/5] Cleanup initialization of hugepages on powerpc

2009-09-09 Thread David Gibson
This patch simplifies the logic used to initialize hugepages on powerpc. The somewhat oddly named set_huge_psize() is renamed to add_huge_page_size() and now does all necessary verification of whether it's given a valid hugepage sizes (instead of just some) and instantiates the generic hstate

[3/5] Allow more flexible layouts for hugepage pagetables

2009-09-09 Thread David Gibson
Currently each available hugepage size uses a slightly different pagetable layout: that is, the bottem level table of pointers to hugepages is a different size, and may branch off from the normal page tables at a different level. Every hugepage aware path that needs to walk the pagetables must

[5/5] Split hash MMU specific hugepage code into a new file

2009-09-09 Thread David Gibson
This patch separates the parts of hugetlbpage.c which are inherently specific to the hash MMU into a new hugelbpage-hash64.c file. Signed-off-by: David Gibson d...@au1.ibm.com --- arch/powerpc/include/asm/hugetlb.h |3 arch/powerpc/mm/Makefile |5 -

Re: [FTRACE] Enabling function_graph causes OOPS

2009-09-09 Thread Sachin Sant
Steven Rostedt wrote: I'm going through old email, and I found this. Do you still see this error. I don't recall seeing it myself. I can still recreate this with 31-rc9. When i enable tracing with function_graph i notice the following oops. This happens only once. Later if i try to

Re: Question about e300 core decrementer interrupt

2009-09-09 Thread Kenneth Johansson
On Tue, 2009-09-08 at 13:48 +0800, Li Tao-B22598 wrote: Dear all, I have a problem in MPC5121 sleep mode. As you know MPC5121 use e300c4 core. When I make the e300c4 core into sleep mode, it will return to full power mode when the“decrementer interrupt” occurred. But in the e300 core

[PATCH] powerpc: Fix bug where perf_counters breaks oprofile

2009-09-09 Thread Paul Mackerras
Currently there is a bug where if you use oprofile on a pSeries machine, then use perf_counters, then use oprofile again, oprofile will not work correctly; it will lose the PMU configuration the next time the hypervisor does a partition context switch, and thereafter won't count anything. Maynard

RE: Queries regarding I2C and GPIO driver for Freescale MPC5121e in Linux2.6.24 of BSP: MPC512xADS_20090603-ltib.iso

2009-09-09 Thread Uma Kanta Patro
Hi Chen Hongjun-R66092, Thanks for your response. Actually for the GPIO driver I am having some success and it is in progress. But regarding the I2C chip(client) driver I am running witout any progress. Actually I followed the existing driver $(LINUX)\drivers\rtc\rtc-m41t80.c (for the RTC

pq2 pro: kgdb access to MURAM?

2009-09-09 Thread Michael Barkowski
Just wondering how I can get kgdb to show me the contents of MURAM on the QE? -- Michael Barkowski 905-482-4577 ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

Re: [PATCH] powerpc: Fix bug where perf_counters breaks oprofile

2009-09-09 Thread Maynard Johnson
Paul Mackerras wrote: Currently there is a bug where if you use oprofile on a pSeries machine, then use perf_counters, then use oprofile again, oprofile will not work correctly; it will lose the PMU configuration the next time the hypervisor does a partition context switch, and thereafter

Re: AW: PowerPC PCI DMA issues (prefetch/coherency?)

2009-09-09 Thread Mikhail Zolotaryov
Hi, Why manage cache lines manually, if appropriate code is a part of __dma_sync / dma_sync_single_for_device of DMA API ? (implies CONFIG_NOT_COHERENT_CACHE enabled, as default for Sequoia Board) Prodyut Hazarika wrote: Hi Adam, Yes, I am using the 440EPx (same as the sequoia board).

Bug in of_mpc8xxx_spi chipselect

2009-09-09 Thread Michael Barkowski
Just want to document this bug, since I don't have time to make a patch: In of_mpc8xxx_spi_get_chipselects(): pinfo-alow_flags[i] = flags OF_GPIO_ACTIVE_LOW; ret = gpio_direction_output(pinfo-gpios[i], pinfo-alow_flags[i]); The initial

Re: AW: PowerPC PCI DMA issues (prefetch/coherency?)

2009-09-09 Thread Mikhail Zolotaryov
Hi Tom, possible solution could be to use tasklet to perform DMA-related job (as in most cases DMA transfer is interrupt driven - makes sense). Tom Burns wrote: Hi, With the default config for the Sequoia board on 2.6.24, calling pci_dma_sync_sg_for_cpu() results in executing

Re: AW: PowerPC PCI DMA issues (prefetch/coherency?)

2009-09-09 Thread Tom Burns
Hi, With the default config for the Sequoia board on 2.6.24, calling pci_dma_sync_sg_for_cpu() results in executing invalidate_dcache_range() in arch/ppc/kernel/misc.S from __dma_sync(). This OOPses on PPC440 since it tries to call directly the assembly instruction dcbi, which can only be

Re: AW: PowerPC PCI DMA issues (prefetch/coherency?)

2009-09-09 Thread Tom Burns
Hi Mikhail, Sorry, this DMA code is in a tasklet. Are you suggesting the processor is in supervisor mode at that time? Calling pci_dma_sync_sg_for_cpu() from the tasklet context is what generates the OOPS. The entire oops is as follows, if it's relevant: Oops: kernel access of bad area,

[PATCH] 82xx: kmalloc failure ignored in ep8248e_mdio_probe()

2009-09-09 Thread Roel Kluin
Prevent NULL dereference if kmalloc() fails. Also clean up if of_mdiobus_register() returns an error. Signed-off-by: Roel Kluin roel.kl...@gmail.com --- Found with sed: http://kernelnewbies.org/roelkluin Please review. diff --git a/arch/powerpc/platforms/82xx/ep8248e.c

[PATCH] powerpc: kmalloc failure ignored in vio_build_iommu_table()

2009-09-09 Thread Roel Kluin
Prevent NULL dereference if kmalloc() fails. Signed-off-by: Roel Kluin roel.kl...@gmail.com --- Found with sed: http://kernelnewbies.org/roelkluin diff --git a/arch/powerpc/kernel/vio.c b/arch/powerpc/kernel/vio.c index 819e59f..1f5266f 100644 --- a/arch/powerpc/kernel/vio.c +++

Re: some questions [gpio]

2009-09-09 Thread Grant Likely
(Added devicetree and linuxppc-dev to cc: list) On Wed, Sep 9, 2009 at 5:50 AM, Vitaly Bordugv...@kernel.crashing.org wrote: Hi Grant, Remember I was asking some time ago about multiple gpio chips per device node to enable sint gpio on 52xx? I need an advice again: adding multiple chips is

Re: [PATCH] * mpc8313erdb.dts: Fixed eTSEC interrupt assignment.

2009-09-09 Thread Scott Wood
On Fri, Sep 04, 2009 at 12:31:25PM +0200, Roland Lezuo wrote: The following patch is needed to correctly assign the IRQs for the gianfar driver on the MPC8313ERDB-revc boards. ERR and TX are swapped as well as the interrupt lines for the two devices. And it will incorrectly assign them on

Re: MPC85xx External/Internal Interrupts

2009-09-09 Thread Scott Wood
On Sun, Sep 06, 2009 at 01:06:41PM +0200, Sebastian Andrzej Siewior wrote: irq_of_parse_and_map() creates a mapping between the hardware irq number as specified in the device tree and the linux number (virq) which is used within the linux api in request_irq() for instance.

Re: Question about e300 core decrementer interrupt

2009-09-09 Thread Scott Wood
On Wed, Sep 09, 2009 at 01:16:07PM +0200, Kenneth Johansson wrote: On Tue, 2009-09-08 at 13:48 +0800, Li Tao-B22598 wrote: Dear all, I have a problem in MPC5121 sleep mode. As you know MPC5121 use e300c4 core. When I make the e300c4 core into sleep mode, it will return to full power

Re: [PATCH] 82xx: kmalloc failure ignored in ep8248e_mdio_probe()

2009-09-09 Thread Scott Wood
On Wed, Sep 09, 2009 at 04:49:57PM +0200, Roel Kluin wrote: Prevent NULL dereference if kmalloc() fails. Also clean up if of_mdiobus_register() returns an error. Signed-off-by: Roel Kluin roel.kl...@gmail.com Acked-by: Scott Wood scottw...@freescale.com -Scott

Re: [FTRACE] Enabling function_graph causes OOPS

2009-09-09 Thread Steven Rostedt
On Wed, 2009-09-09 at 11:57 +0530, Sachin Sant wrote: Steven Rostedt wrote: I'm going through old email, and I found this. Do you still see this error. I don't recall seeing it myself. I can still recreate this with 31-rc9. When i enable tracing with function_graph i notice the

Re: [PATCH] * mpc8313erdb.dts: Fixed eTSEC interrupt assignment.

2009-09-09 Thread Kumar Gala
On Sep 9, 2009, at 1:22 PM, Scott Wood wrote: On Fri, Sep 04, 2009 at 12:31:25PM +0200, Roland Lezuo wrote: The following patch is needed to correctly assign the IRQs for the gianfar driver on the MPC8313ERDB-revc boards. ERR and TX are swapped as well as the interrupt lines for the two

Re: [PATCH] * mpc8313erdb.dts: Fixed eTSEC interrupt assignment.

2009-09-09 Thread Kim Phillips
On Wed, 9 Sep 2009 15:28:01 -0500 Kumar Gala ga...@kernel.crashing.org wrote: On Sep 9, 2009, at 1:22 PM, Scott Wood wrote: On Fri, Sep 04, 2009 at 12:31:25PM +0200, Roland Lezuo wrote: The following patch is needed to correctly assign the IRQs for the gianfar driver on the

Re: [PATCH] * mpc8313erdb.dts: Fixed eTSEC interrupt assignment.

2009-09-09 Thread Mark Bishop
Quoting Scott Wood scottw...@freescale.com: On Fri, Sep 04, 2009 at 12:31:25PM +0200, Roland Lezuo wrote: The following patch is needed to correctly assign the IRQs for the gianfar driver on the MPC8313ERDB-revc boards. ERR and TX are swapped as well as the interrupt lines for the two devices.

Removing deprecated drivers from drivers/i2c/chips

2009-09-09 Thread Wolfram Sang
Hi, continuing the quest to clean up and ultimately remove the drivers/i2c/chips directory, this patch series removes three drivers for GPIO-expanders which are obsoleted and marked as deprecated for more than a year. The newer (and better) drivers can be found in drivers/gpio. As it is ensured

[PATCH 1/4] gpio/pcf857x: copy i2c_device_id from old pcf8574-driver

2009-09-09 Thread Wolfram Sang
The deprecated pcf8574 driver is going to be removed. Make sure this replacement-driver inherits all i2c_device_ids for a smooth transition. Signed-off-by: Wolfram Sang w.s...@pengutronix.de Cc: David Brownell dbrown...@users.sourceforge.net Cc: Jean Delvare kh...@linux-fr.org ---

[PATCH 2/4] i2c/chips: Remove deprecated pcf8575-driver

2009-09-09 Thread Wolfram Sang
The pcf8575-driver in drivers/i2c/chips which just exports its register to sysfs is superseeded by drivers/gpio/pcf857x.c which properly uses the gpiolib. As this driver has been deprecated for more than a year, finally remove it. Signed-off-by: Wolfram Sang w.s...@pengutronix.de Cc: Bart Van

[PATCH 3/4] i2c/chips: Remove deprecated pca9539-driver

2009-09-09 Thread Wolfram Sang
The pca9539-driver in drivers/i2c/chips which just exports its registers to sysfs is superseeded by drivers/gpio/pca953x.c which properly uses the gpiolib. As this driver has been deprecated for more than a year, finally remove it. Signed-off-by: Wolfram Sang w.s...@pengutronix.de Cc: Ben Gardner

[PATCH 4/4] i2c/chips: Remove deprecated pcf8574-driver

2009-09-09 Thread Wolfram Sang
The pcf8574-driver in drivers/i2c/chips which just exports its register to sysfs is superseeded by drivers/gpio/pcf857x.c which properly uses the gpiolib. As this driver has been deprecated for more than a year, finally remove it. Signed-off-by: Wolfram Sang w.s...@pengutronix.de Cc: Aurelien

powerpc/ps3: Workaround for flash memory I/O error

2009-09-09 Thread Geoff Levand
A workaround for flash memory I/O errors when the PS3 internal hard disk has not been formatted for OtherOS use. This error condition mainly effects 'Live CD' users who have not formatted the PS3's internal hard disk for OtherOS. Fixes errors similar to these when using the ps3-flash-util or

Re: [Uclinux-dist-devel] Removing deprecated drivers from drivers/i2c/chips

2009-09-09 Thread Mike Frysinger
On Wed, Sep 9, 2009 at 17:22, Wolfram Sang wrote: continuing the quest to clean up and ultimately remove the drivers/i2c/chips directory, this patch series removes three drivers for GPIO-expanders which are obsoleted and marked as deprecated for more than a year. The newer (and better)

Re: [PATCH 3/4] i2c/chips: Remove deprecated pca9539-driver

2009-09-09 Thread Ben Gardner
On Wed, Sep 9, 2009 at 4:22 PM, Wolfram Sangw.s...@pengutronix.de wrote: The pca9539-driver in drivers/i2c/chips which just exports its registers to sysfs is superseeded by drivers/gpio/pca953x.c which properly uses the gpiolib. As this driver has been deprecated for more than a year, finally

RE: Queries regarding I2C and GPIO driver for Freescale MPC5121e in Linux2.6.24 of BSP: MPC512xADS_20090603-ltib.iso

2009-09-09 Thread Chen Hongjun-R66092
From the following error message, I2C controller can't receive ACK from I2C client, so please make sure that the pins of I2C have been initialized properly, or you can measure the tx signal and rx signal on the right pins. B.R, Hongjun From: Uma Kanta

[PATCH 1/3] phy/marvell: Make non-aneg speed/duplex forcing work for 88E1111 PHYs

2009-09-09 Thread Anton Vorontsov
According to specs, when auto-negotiation is disabled, Marvell PHYs need a software reset after changing speed/duplex forcing bits. Otherwise, the modified bits have no effect. Signed-off-by: Anton Vorontsov avoront...@ru.mvista.com --- drivers/net/phy/marvell.c | 21 - 1

[PATCH 2/3] ucc_geth: Rearrange some code to avoid forward declarations

2009-09-09 Thread Anton Vorontsov
We'll need ugeth_disable() and ugeth_enable() calls earlier in the file, so rearrange some code to avoid forward declarations. The patch doesn't contain any functional changes. Signed-off-by: Anton Vorontsov avoront...@ru.mvista.com --- drivers/net/ucc_geth.c | 300

[PATCH 3/3] ucc_geth: Fix hangs after switching from full to half duplex

2009-09-09 Thread Anton Vorontsov
MPC8360 QE UCC ethernet controllers hang when changing link duplex under a load (a bit of NFS activity is enough). PHY: m...@e0102120:00 - Link is Up - 1000/Full sh-3.00# ethtool -s eth0 speed 100 duplex half autoneg off PHY: m...@e0102120:00 - Link is Down PHY: m...@e0102120:00 - Link is

Re: [FTRACE] Enabling function_graph causes OOPS

2009-09-09 Thread Sachin Sant
Steven Rostedt wrote: Ah, seems the bug happens to be in the module handling. Does the call back always have .mod_return_to_handler? Yes. Every time it ends up in .mod_return_to_handler Thanks -Sachin This doesn't surprise me any. The module code is a bit harry, and function graph does